/* Cookie consent banner (public pages only). Tokens come from member.css; theme follows html[data-theme]. */
.ml-consent {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483000;
    display: flex; align-items: center; justify-content: center; gap: var(--sp-4, 16px); flex-wrap: wrap;
    margin: 0 auto; max-width: 880px;
    padding: var(--sp-3, 12px) var(--sp-4, 16px);
    padding-bottom: calc(var(--sp-3, 12px) + env(safe-area-inset-bottom, 0px));
    padding-left: calc(var(--sp-4, 16px) + env(safe-area-inset-left, 0px));
    padding-right: calc(var(--sp-4, 16px) + env(safe-area-inset-right, 0px));
    background: var(--bg-elevated, #25292E); color: var(--text-primary, #F2F4F6);
    border: 1px solid var(--border-strong, #4A5058); border-bottom: 0;
    border-radius: var(--r-md, 10px) var(--r-md, 10px) 0 0;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, .28);
    font-family: var(--ml-font-sans, system-ui, sans-serif); font-size: 14px; line-height: 1.45;
}
.ml-consent[hidden] { display: none; }
.ml-consent-text { margin: 0; flex: 1 1 360px; color: var(--text-secondary, #B9BFC6); }
.ml-consent-text a { color: var(--text-primary, #F2F4F6); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.ml-consent-actions { display: flex; gap: var(--sp-2, 8px); flex: 0 0 auto; }
.ml-consent-btn {
    box-sizing: border-box; min-width: 96px; height: 40px; padding: 0 var(--sp-4, 16px);
    border-radius: var(--r-md, 10px); border: 1px solid var(--border-strong, #4A5058);
    background: transparent; color: var(--text-primary, #F2F4F6);
    font: 600 14px/1 var(--ml-font-sans, system-ui, sans-serif); cursor: pointer;
    transition: background var(--dur-1, 120ms) var(--ease, ease), border-color var(--dur-1, 120ms) var(--ease, ease);
}
.ml-consent-btn:hover { background: var(--bg-surface, #1D2024); border-color: var(--text-muted, #8A919A); }
.ml-consent-btn--primary { background: var(--ml-cta-bg, #D33814); border-color: var(--ml-cta-bg, #D33814); color: var(--ml-cta-text, #fff); }
.ml-consent-btn--primary:hover { background: var(--accent-hover, #E2431D); border-color: var(--accent-hover, #E2431D); }
.ml-consent-btn:focus-visible, .ml-consent-text a:focus-visible, .ml-consent-link:focus-visible { outline: 2px solid var(--accent, #D33814); outline-offset: 2px; }
.ml-consent-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

@media (max-width: 600px) {
    .ml-consent { gap: var(--sp-2, 8px); padding-top: var(--sp-2, 8px); font-size: 13px; line-height: 1.4; }
    .ml-consent-text { flex-basis: 100%; }
    .ml-consent-actions { width: 100%; }
    .ml-consent-btn { flex: 1 1 0; height: 36px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .ml-consent-btn { transition: none; } }
