/* Ferrum Analytics Consent: retains the fleet's bottom, wide consent layout,
   now themed through semantic site tokens with light-palette fallbacks so it
   stays self-contained across sites whose tokens differ. */
/* The Wasm controls dismiss these surfaces through the native hidden attribute.
   This must outrank the explicit display modes below for both the notice and
   the preferences modal. */
html .ferrum-consent__notice[hidden],html .ferrum-consent__modal[hidden]{display:none!important}
.ferrum-consent{font:14px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--foreground,#0F172A)}
.ferrum-consent__notice{position:fixed;z-index:2147483000;left:1rem;right:1rem;bottom:1rem;max-width:960px;margin:auto;padding:1rem 1.25rem;background:var(--card,#FFFFFF);color:var(--card-foreground,var(--foreground,#0F172A));border:1px solid var(--border,#E2E8F0);border-radius:8px;box-shadow:0 12px 42px rgba(20,35,60,.24);display:flex;gap:1rem;align-items:center;justify-content:space-between}
.ferrum-consent p{margin:.3rem 0;color:var(--muted-foreground,#64748B)}
#fac-notice-title,#fac-modal-title,.ferrum-consent__panel h2{color:var(--foreground,#0F172A)}
.ferrum-consent a{color:var(--primary,#10B981)}
.ferrum-consent__actions{display:flex;flex-wrap:wrap;gap:.5rem}
.ferrum-consent button{border:1px solid var(--border,#E2E8F0);border-radius:5px;background:var(--muted,#F1F5F9);color:var(--foreground,#0F172A);padding:.55rem .8rem;cursor:pointer}
.ferrum-consent .ferrum-consent__primary{background:var(--primary,#10B981);color:var(--primary-foreground,#022C22);border:1px solid var(--primary,#10B981);font-weight:600}
.ferrum-consent .ferrum-consent__primary:hover{filter:brightness(.92)}
.ferrum-consent__modal{position:fixed;z-index:2147483001;inset:0;background:rgba(12,20,34,.54);display:grid;place-items:center;padding:1rem}
.ferrum-consent__panel{position:relative;width:min(560px,100%);padding:1.5rem;background:var(--card,#FFFFFF);color:var(--card-foreground,var(--foreground,#0F172A));border:1px solid var(--border,#E2E8F0);border-radius:9px;box-shadow:0 12px 42px rgba(0,0,0,.3)}
.ferrum-consent__panel h2{margin-top:0}
.ferrum-consent__service{display:block;padding:.7rem 0;border-top:1px solid var(--border,#E2E8F0)}
.ferrum-consent__service--required{color:var(--muted-foreground,#64748B)}
.ferrum-consent input[type="checkbox"],.ferrum-consent input[type="radio"]{accent-color:var(--primary,#10B981)}
.ferrum-consent [role="switch"],.ferrum-consent__toggle{background:var(--muted,#F1F5F9);border:1px solid var(--border,#E2E8F0)}
.ferrum-consent [role="switch"][aria-checked="true"],.ferrum-consent__toggle[aria-checked="true"],.ferrum-consent__toggle--on{background:var(--primary,#10B981);border-color:var(--primary,#10B981)}
.ferrum-consent__close{position:absolute;right:.8rem;top:.6rem;border:0!important;font-size:1.5rem;padding:.15rem!important}
@media(max-width:700px){.ferrum-consent__notice{display:block}.ferrum-consent__actions{margin-top:.8rem}}
