/* ============================================================
   ADAMI CMS - Cookie / Consent Banner
   Light, modern look consistent with frontend.css tokens.
   ============================================================ */

.adami-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    /* Below modals/lightbox (9999) but above everything else. */
    z-index: 9998;
    background: #ffffff;
    border-top: 1px solid #1d1d1f;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
    color: #1d1d1f;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    /* Start hidden until the JS-driven reveal frame runs. The `hidden`
       HTML attribute handles the pre-boot case; the class handles the
       transition state. */
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 200ms ease, transform 200ms ease;
}

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

.adami-consent-banner--visible {
    opacity: 1;
    transform: translateY(0);
    animation: adamiConsentSlideUp 250ms ease;
}

.adami-consent-banner--hiding {
    opacity: 0;
    transform: translateY(8px);
}

@keyframes adamiConsentSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.adami-consent-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 80px;
}

.adami-consent-banner__text {
    flex: 1;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

.adami-consent-banner__link {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
    white-space: nowrap;
}

.adami-consent-banner__link:hover,
.adami-consent-banner__link:focus-visible {
    color: #1d4ed8;
}

.adami-consent-banner__link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 2px;
}

.adami-consent-banner__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.adami-consent-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    border-radius: 10px;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
    border: 1px solid transparent;
}

.adami-consent-banner__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

.adami-consent-banner__btn--primary {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.adami-consent-banner__btn--primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.adami-consent-banner__btn--secondary {
    background: transparent;
    color: #374151;
    border-color: #d1d5db;
}

.adami-consent-banner__btn--secondary:hover {
    background: #f3f4f6;
    color: #1d1d1f;
    border-color: #9ca3af;
}

/* Respect the visitor's reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
    .adami-consent-banner,
    .adami-consent-banner--visible,
    .adami-consent-banner--hiding {
        transition: none;
        animation: none;
    }
}

/* Mobile: stack text above actions, stretch buttons to full width. */
@media (max-width: 640px) {
    .adami-consent-banner__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }

    .adami-consent-banner__text {
        font-size: 13px;
    }

    .adami-consent-banner__actions {
        flex-direction: row;
        justify-content: stretch;
        gap: 8px;
    }

    .adami-consent-banner__btn {
        flex: 1;
        padding: 12px 16px;
    }
}
