:root {
    --ase-cookie-navy: #0a1d37;
    --ase-cookie-gold: #c5a059;
    --ase-cookie-text: #253247;
    --ase-cookie-border: #d9dee6;
    --ase-cookie-surface: #ffffff;
}

.ase-cookie-banner,
.ase-cookie-modal {
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
    color: var(--ase-cookie-text);
}

.ase-cookie-banner {
    position: fixed;
    z-index: 2147483000;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 18px;
    background: var(--ase-cookie-surface);
    border-top: 4px solid var(--ase-cookie-navy);
    box-shadow: 0 -8px 30px rgba(10, 29, 55, 0.2);
}

.ase-cookie-banner[hidden],
.ase-cookie-modal[hidden] {
    display: none;
}

.ase-cookie-banner__inner {
    display: flex;
    max-width: 1180px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.ase-cookie-banner__content {
    max-width: 690px;
}

.ase-cookie-title {
    margin: 0 0 7px;
    color: var(--ase-cookie-navy);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.ase-cookie-text {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
}

.ase-cookie-text a {
    color: var(--ase-cookie-navy);
    font-weight: 700;
    text-decoration: underline;
}

.ase-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.ase-cookie-button {
    min-height: 44px;
    padding: 10px 17px;
    border: 2px solid var(--ase-cookie-navy);
    border-radius: 3px;
    background: var(--ase-cookie-navy);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ase-cookie-button:hover,
.ase-cookie-button:focus-visible {
    border-color: var(--ase-cookie-gold);
    background: var(--ase-cookie-gold);
    color: var(--ase-cookie-navy);
    outline: none;
}

.ase-cookie-button--secondary {
    background: #ffffff;
    color: var(--ase-cookie-navy);
}

.ase-cookie-modal {
    position: fixed;
    z-index: 2147483001;
    inset: 0;
    display: flex;
    padding: 20px;
    align-items: center;
    justify-content: center;
    background: rgba(5, 16, 31, 0.72);
}

.ase-cookie-modal__dialog {
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 28px;
    border-top: 5px solid var(--ase-cookie-gold);
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
}

.ase-cookie-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.ase-cookie-modal__close {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--ase-cookie-border);
    border-radius: 50%;
    background: #ffffff;
    color: var(--ase-cookie-navy);
    cursor: pointer;
    font-size: 26px;
    line-height: 34px;
}

.ase-cookie-option {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 20px;
    padding: 17px 0;
    border-top: 1px solid var(--ase-cookie-border);
}

.ase-cookie-option__title {
    margin: 0;
    color: var(--ase-cookie-navy);
    font-size: 16px;
    font-weight: 700;
}

.ase-cookie-option__description {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
}

.ase-cookie-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.ase-cookie-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ase-cookie-switch__track {
    position: absolute;
    inset: 0;
    border-radius: 30px;
    background: #a7afba;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ase-cookie-switch__track::before {
    position: absolute;
    bottom: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    content: "";
    transition: transform 0.2s ease;
}

.ase-cookie-switch input:checked + .ase-cookie-switch__track {
    background: var(--ase-cookie-navy);
}

.ase-cookie-switch input:checked + .ase-cookie-switch__track::before {
    transform: translateX(22px);
}

.ase-cookie-switch input:focus-visible + .ase-cookie-switch__track {
    outline: 3px solid rgba(197, 160, 89, 0.5);
    outline-offset: 2px;
}

.ase-cookie-switch input:disabled + .ase-cookie-switch__track {
    cursor: not-allowed;
    opacity: 0.65;
}

.ase-cookie-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.ase-cookie-settings-link {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f4f4f4;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
}

.ase-cookie-settings-link:hover,
.ase-cookie-settings-link:focus-visible {
    color: var(--ase-cookie-gold);
    outline: none;
}

.ase-map-consent {
    display: flex;
    min-height: 100%;
    padding: 30px;
    align-items: center;
    justify-content: center;
    background: #eef1f5;
    text-align: center;
}

.ase-map-consent__inner {
    max-width: 360px;
}

.ase-map-consent__title {
    margin: 0 0 8px;
    color: var(--ase-cookie-navy);
    font-size: 19px;
    font-weight: 700;
}

.ase-map-consent__text {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.55;
}

body.ase-cookie-modal-open {
    overflow: hidden;
}

@media only screen and (max-width: 900px) {
    .ase-cookie-banner__inner {
        display: block;
    }

    .ase-cookie-actions {
        justify-content: flex-start;
        margin-top: 16px;
    }
}

@media only screen and (max-width: 600px) {
    .ase-cookie-banner {
        padding: 15px;
    }

    .ase-cookie-title {
        font-size: 17px;
    }

    .ase-cookie-actions,
    .ase-cookie-modal__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ase-cookie-button {
        width: 100%;
    }

    .ase-cookie-modal {
        padding: 10px;
    }

    .ase-cookie-modal__dialog {
        max-height: calc(100vh - 20px);
        padding: 21px 18px;
    }
}
