/* Cookie banner + Maps click-to-load placeholder. Theme-aware via the same
   [data-theme] attribute themeToggle.js manages. */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)); /* clear the iOS home indicator / toolbar (UAT #141) */
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    max-width: 980px;
    margin: 0 auto;
    padding: 16px 20px;
    border-radius: 12px;
    background: #0d1526;
    color: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.cookie-banner-text {
    flex: 1 1 380px;
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
}
.cookie-banner-text strong { color: #fff; display: block; margin-bottom: 2px; }
.cookie-banner-text a { color: #93b4f8; text-decoration: underline; }
.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.cookie-btn {
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
}
.cookie-btn--primary { background: #1d4ed8; border-color: #1d4ed8; }
.cookie-btn--primary:hover { background: #1a44be; }
.cookie-btn:hover { border-color: rgba(255, 255, 255, 0.7); }
.cookie-btn--link { border: none; text-decoration: underline; padding: 9px 4px; font-weight: 600; }
.cookie-btn:focus-visible { outline: 2px solid #93b4f8; outline-offset: 2px; }

@media (max-width: 560px) {
    .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 14px; }
    .cookie-banner-actions { width: 100%; }
    .cookie-btn { flex: 1 1 auto; text-align: center; }
}

/* Placeholder shown instead of the Google Maps iframe until embeds are
   allowed (settings) or the visitor loads this one map deliberately. */
.map-consent-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 220px;
    height: 100%;
    padding: 20px;
    text-align: center;
    border: 1.5px dashed #9aa5b8;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.12);
    color: inherit;
    font-size: 13.5px;
    line-height: 1.5;
}
.map-consent-box .cookie-btn {
    border-color: #1d4ed8;
    color: #1d4ed8;
}
[data-theme="dark"] .map-consent-box .cookie-btn { color: #93b4f8; border-color: #93b4f8; }
.map-consent-note { opacity: 0.75; font-size: 12px; }

/* ── The preference form (views/partials/cookiePreferencesForm.ejs), on
   /cookies/settings and inside the account settings page ── */
.cookie-cat { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid rgba(128,128,128,0.25); }
.cookie-cat:last-of-type { border-bottom: none; }
.cookie-cat input[type="checkbox"] { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 auto; }
.cookie-cat-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.cookie-cat-desc { font-size: 13.5px; line-height: 1.6; opacity: 0.85; }
.cookie-cat-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; border-radius: 999px; padding: 2px 10px; background: rgba(29,78,216,0.12); color: #1d4ed8; margin-left: 8px; vertical-align: 1px; }
.cookie-save-row { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cookie-scope-note { font-size: 12.5px; opacity: 0.7; }
