.consent-banner {
    position: fixed;
    z-index: 3000;
    right: 20px;
    bottom: 20px;
    left: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
    padding: 18px;
    border: 1px solid rgba(55, 68, 106, 0.18);
    border-radius: 8px;
    color: #25242a;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(34, 43, 70, 0.18);
}

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

.consent-banner__copy {
    display: grid;
    gap: 6px;
}

.consent-banner__copy strong,
.consent-modal h2 {
    color: #222b46;
}

.consent-banner__copy p,
.consent-modal p,
.consent-option small {
    color: #5f6270;
    line-height: 1.5;
}

.consent-banner__actions,
.consent-modal__actions,
.map-consent-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.consent-button,
.privacy-preferences-link,
.footer-privacy-button,
.inline-privacy-button,
.map-fallback-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(55, 68, 106, 0.22);
    border-radius: 6px;
    padding: 10px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.consent-button:hover,
.privacy-preferences-link:hover,
.footer-privacy-button:hover,
.inline-privacy-button:hover,
.map-fallback-link:hover {
    transform: translateY(-1px);
}

.consent-button--primary {
    border-color: #222b46;
    color: #ffffff;
    background: #222b46;
}

.consent-button--secondary {
    color: #222b46;
    background: #fffaf4;
}

.consent-button--ghost,
.privacy-preferences-link,
.footer-privacy-button,
.inline-privacy-button,
.map-fallback-link {
    color: #222b46;
    background: transparent;
}

.footer-privacy-button {
    justify-content: flex-start;
    min-height: auto;
    border: 0;
    padding: 0;
    color: inherit;
}

.footer-privacy-button:hover {
    color: #f16536;
}

.inline-privacy-button {
    margin-top: 12px;
    color: #222b46;
    background: #fffaf4;
}

.privacy-preferences-link {
    margin-top: 8px;
    background: #ffffff;
}

.consent-modal {
    position: fixed;
    z-index: 3100;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 20, 33, 0.72);
}

body.consent-modal-open {
    overflow: hidden;
}

.consent-modal__panel {
    position: relative;
    width: min(640px, 100%);
    max-height: min(760px, 92vh);
    overflow-y: auto;
    padding: clamp(24px, 4vw, 36px);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(34, 43, 70, 0.24);
}

.consent-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(55, 68, 106, 0.18);
    border-radius: 50%;
    color: #222b46;
    background: #fffaf4;
    font-size: 26px;
    line-height: 1;
}

.consent-modal__eyebrow {
    margin-bottom: 10px;
    color: #f16536;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.consent-modal h2 {
    margin: 0 42px 12px 0;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1;
}

.consent-options {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}

.consent-option {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(55, 68, 106, 0.18);
    border-radius: 8px;
    background: #fffaf4;
}

.consent-option input {
    margin-top: 4px;
}

.consent-option strong,
.consent-option small {
    display: block;
}

.map-consent-placeholder {
    display: grid;
    gap: 14px;
    min-height: 230px;
    padding: clamp(20px, 4vw, 30px);
    color: #25242a;
    background: linear-gradient(135deg, #fffaf4, #ffffff);
}

.map-consent-placeholder--loaded {
    display: block;
    min-height: 0;
    padding: 0;
    background: transparent;
}

.map-consent-placeholder iframe {
    display: block;
}

.map-consent-placeholder strong {
    display: block;
    margin-bottom: 8px;
    color: #222b46;
    font-size: 18px;
}

@media (max-width: 760px) {
    .consent-banner {
        grid-template-columns: 1fr;
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .consent-banner__actions,
    .consent-modal__actions,
    .map-consent-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .consent-button,
    .privacy-preferences-link,
    .inline-privacy-button,
    .map-fallback-link {
        width: 100%;
    }
}
