/* ============================================================
   WULING UK — COOKIE CONSENT BANNER
   ============================================================
   Sitewide, fixed to the bottom of the viewport on every page (see
   footer.php for the markup — it's included everywhere — and js/main.js
   section 9 for the show/hide + remember-the-visitor's-choice logic).
   Replaces the 2026-09-04 "not built yet" planning placeholder that used
   to sit in the same spot in footer.php — this is the real thing.
============================================================ */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 700;
    background: var(--white);
    border-top: 1px solid var(--border2);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08);
    padding: 22px 80px;
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.show { transform: translateY(0); }

.cookie-banner-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cookie-banner-text {
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--ink-mid);
    max-width: 760px;
}
.cookie-banner-text a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--border2);
    text-underline-offset: 2px;
}
.cookie-banner-text a:hover { color: var(--red); text-decoration-color: var(--red); }

.cookie-banner-ctas {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.cookie-banner-ctas .btn-outline,
.cookie-banner-ctas .btn-primary {
    padding: 13px 24px;
    font-size: 11px;
    white-space: nowrap;
}

@media (max-width: 1300px) { .cookie-banner { padding: 22px 40px; } }
@media (max-width: 1080px) { .cookie-banner { padding: 20px 32px; } }
@media (max-width: 900px) {
    .cookie-banner-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
    .cookie-banner-ctas { width: 100%; }
    .cookie-banner-ctas .btn-outline,
    .cookie-banner-ctas .btn-primary { flex: 1 1 auto; text-align: center; }
}
@media (max-width: 600px) { .cookie-banner { padding: 18px 24px; } }

/* Nudge the WhatsApp placeholder fab up above the banner while it's
   showing, so the two don't sit on top of each other in the bottom-right
   corner. --cookie-banner-h is set on :root by js/main.js once the banner
   has actually rendered — it wraps to a taller, stacked layout on narrow
   screens, so a single fixed number here would drift out of sync with
   that instead of tracking it. */
body.cookie-banner-open .whatsapp-fab {
    bottom: calc(24px + var(--cookie-banner-h, 96px));
    transition: bottom 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (max-width: 600px) {
    body.cookie-banner-open .whatsapp-fab { bottom: calc(16px + var(--cookie-banner-h, 96px)); }
}
