/* ============================================
   COMPONENT: Cookie consent banner
   Fixed bottom card, on-brand. Also styles the placeholders
   shown where consent-gated embeds (Google Maps) would load.
   ============================================ */

.cookie-consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 900;   /* above content, below modals/lightboxes (1000) */
    display: flex;
    justify-content: center;
    pointer-events: none;   /* the card itself re-enables */
}
.cookie-consent[hidden] {
    display: none;
}

.cookie-consent__inner {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 920px;
    padding: 18px 24px;
    background: var(--color-white);
    border: 2px solid var(--color-primary-light);   /* #ffebf0 */
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(12, 39, 51, 0.16);
}

.cookie-consent__text {
    font-size: 14px;
    line-height: 22px;
    color: var(--color-text-body);
    margin: 0;
}
.cookie-consent__text strong {
    color: var(--color-text-heading);
    font-weight: var(--font-weight-semibold);
}
.cookie-consent__text a {
    color: var(--color-primary);
    text-decoration: none;
    white-space: nowrap;
}
.cookie-consent__text a:hover {
    text-decoration: underline;
}

.cookie-consent__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-consent__actions .btn {
    white-space: nowrap;
}

/* ----- Consent-gated embeds -----
   Gated iframes ship without src (data-consent-src holds the URL),
   stay hidden until consent, and show a placeholder instead. */
iframe[data-consent-src]:not([src]) {
    display: none;
}

.consent-placeholder {
    height: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 32px;
    text-align: center;
}
.consent-placeholder[hidden] {
    display: none;
}
.consent-placeholder img {
    width: 32px;
    height: 32px;
}
.consent-placeholder p {
    max-width: 360px;
    font-size: 14px;
    line-height: 22px;
    color: var(--color-text-body);
    margin: 0;
}

/* ----- Responsive ----- */
@media (max-width: 700px) {
    .cookie-consent__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        text-align: center;
    }
    .cookie-consent__actions {
        justify-content: center;
    }
}
