:root {
    --kba-consent-bg: #0b0b0a;
    --kba-consent-panel: #11110f;
    --kba-consent-cream: #f2e8d9;
    --kba-consent-muted: #aaa095;
    --kba-consent-gold: #c8a66b;
    --kba-consent-border: rgba(242, 232, 217, 0.14);
}

html.kba-consent-lock {
    overflow: hidden;
}

.kba-consent[hidden],
.kba-consent-modal[hidden],
.kba-map-consent[hidden] {
    display: none !important;
}

.kba-consent {
    position: fixed;
    inset: auto 0 0;
    z-index: 2147483000;
    padding: 18px;
    pointer-events: none;
}

.kba-consent__banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 34px;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px 28px;
    border: 1px solid var(--kba-consent-border);
    border-radius: 2px;
    background: rgba(11, 11, 10, 0.98);
    color: var(--kba-consent-cream);
    box-shadow: 0 -18px 70px rgba(0, 0, 0, 0.52);
    pointer-events: auto;
}

.kba-consent__eyebrow {
    display: block;
    margin-bottom: 9px;
    color: var(--kba-consent-gold);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.22em;
}

.kba-consent h2,
.kba-consent-modal h2 {
    margin: 0 0 8px;
    color: var(--kba-consent-cream);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1;
}

.kba-consent__copy p,
.kba-consent-modal__intro,
.kba-consent-option p {
    margin: 0;
    color: var(--kba-consent-muted);
    font-size: 13px;
    line-height: 1.55;
}

.kba-consent__copy > a {
    display: inline-block;
    margin-top: 9px;
    color: var(--kba-consent-gold);
    font-size: 11px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.kba-consent__actions,
.kba-consent-modal__actions {
    display: flex;
    gap: 9px;
    align-items: center;
}

.kba-consent__button {
    min-height: 44px;
    padding: 11px 17px;
    border: 1px solid var(--kba-consent-border);
    border-radius: 2px;
    background: transparent;
    color: var(--kba-consent-cream);
    font: 700 10px/1.2 system-ui, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.kba-consent__button:hover,
.kba-consent__button:focus-visible {
    border-color: var(--kba-consent-gold);
    outline: none;
}

.kba-consent__button--primary {
    border-color: var(--kba-consent-gold);
    background: var(--kba-consent-gold);
    color: #090908;
}

.kba-consent__button--text {
    padding-inline: 8px;
    border-color: transparent;
    color: var(--kba-consent-gold);
}

.kba-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483001;
    display: grid;
    place-items: center;
    padding: 20px;
}

.kba-consent-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(3px);
}

.kba-consent-modal__panel {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 34px;
    border: 1px solid var(--kba-consent-border);
    border-radius: 2px;
    background: var(--kba-consent-panel);
    color: var(--kba-consent-cream);
    box-shadow: 0 28px 100px rgba(0, 0, 0, 0.65);
}

.kba-consent-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--kba-consent-border);
    border-radius: 50%;
    background: transparent;
    color: var(--kba-consent-cream);
    font-size: 23px;
    cursor: pointer;
}

.kba-consent-modal__intro {
    margin-bottom: 24px;
}

.kba-consent-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 19px 0;
    border-top: 1px solid var(--kba-consent-border);
    cursor: pointer;
}

.kba-consent-option strong {
    display: block;
    margin-bottom: 5px;
    color: var(--kba-consent-cream);
    font-size: 13px;
}

.kba-consent-option__status {
    color: var(--kba-consent-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kba-consent-switch {
    position: relative;
    display: block;
    width: 48px;
    height: 26px;
}

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

.kba-consent-switch span {
    position: absolute;
    inset: 0;
    border: 1px solid var(--kba-consent-border);
    border-radius: 999px;
    background: #080807;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.kba-consent-switch span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--kba-consent-muted);
    transition: transform 0.2s ease, background 0.2s ease;
}

.kba-consent-switch input:checked + span {
    border-color: var(--kba-consent-gold);
    background: rgba(200, 166, 107, 0.18);
}

.kba-consent-switch input:checked + span::after {
    background: var(--kba-consent-gold);
    transform: translateX(22px);
}

.kba-consent-switch input:focus-visible + span {
    outline: 2px solid var(--kba-consent-gold);
    outline-offset: 3px;
}

.kba-consent-modal__actions {
    justify-content: flex-end;
    padding-top: 22px;
    border-top: 1px solid var(--kba-consent-border);
}

[data-kba-external-content="google-maps"] {
    position: relative;
}

[data-kba-external-content="google-maps"]:not(.is-consented) iframe[data-kba-consent-src] {
    visibility: hidden;
}

[data-kba-external-content="google-maps"].kba-contact__map {
    filter: none !important;
}

[data-kba-external-content="google-maps"].kba-contact__map iframe {
    filter: grayscale(1) contrast(1.1);
}

.kba-map-consent {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px;
    background: #0c0c0b;
    color: var(--kba-consent-cream);
    text-align: center;
}

.kba-map-consent strong {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(25px, 3vw, 38px);
    font-weight: 500;
}

.kba-map-consent p {
    max-width: 520px;
    margin: 0;
    color: var(--kba-consent-muted);
    font-size: 13px;
    line-height: 1.6;
}

.kba-map-consent button,
.kba-map-consent a {
    color: var(--kba-consent-gold);
    font: 800 10px/1.3 system-ui, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kba-map-consent button {
    margin-top: 8px;
    padding: 11px 17px;
    border: 1px solid var(--kba-consent-gold);
    border-radius: 2px;
    background: transparent;
    cursor: pointer;
}

.kba-map-consent a {
    padding: 4px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 768px) {
    .kba-consent {
        padding: 10px;
    }

    .kba-consent__banner {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px;
    }

    .kba-consent__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .kba-consent__button--text {
        grid-column: 1 / -1;
    }

    .kba-consent-modal__panel {
        padding: 28px 22px 22px;
    }

    .kba-consent-modal__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .kba-consent__actions,
    .kba-consent-modal__actions {
        grid-template-columns: 1fr;
    }

    .kba-consent__button--text {
        grid-column: auto;
    }

    .kba-consent__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kba-consent-switch span,
    .kba-consent-switch span::after {
        transition: none;
    }
}
