/* Strator cookie-consent banner — obsidiaan-pill, IVECO-blauw accent.
   Gebruikt de site-tokens (tokens.css) met veilige fallbacks zodat de banner
   ook werkt vóór de hoofd-CSS geladen is. Huisstijl: donker, strak, terughoudend. */

/* Rechtsonder op desktop: de hero-CTA staat linksonder, die mag de banner niet
   verbergen (en andersom). Op smalle schermen blijft de banner volle breedte. */
.strator-consent {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    width: 420px;
    max-width: calc(100vw - 40px);
    background: #0b0d11;
    color: var(--ink, #F4F0E8);
    border: 1px solid rgba(244, 240, 232, 0.12);
    border-radius: 18px;
    box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.4);
    padding: 24px 24px 22px;
    font-family: var(--sans, "Barlow", system-ui, sans-serif);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 240ms ease, transform 240ms ease;
}
.strator-consent--in { opacity: 1; transform: translateY(0); }
.strator-consent--out { opacity: 0; transform: translateY(16px); pointer-events: none; }

.strator-consent__inner { display: flex; flex-direction: column; gap: 14px; }

.strator-consent__eyebrow {
    font-family: var(--cond, "Barlow Condensed", sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 11px;
    font-weight: 600;
    color: var(--acc, #1554FF);
    display: inline-flex; align-items: center; gap: 8px;
}
.strator-consent__eyebrow::before {
    content: ""; width: 18px; height: 1.5px; background: var(--acc, #1554FF);
}
.strator-consent__title {
    font-family: var(--cond, "Barlow Condensed", sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    font-size: 22px;
    font-weight: 700;
    margin: 6px 0 0;
    line-height: 1;
}
.strator-consent__text {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ink-dim, #B8B0A2);
    margin: 0;
}
.strator-consent__text a {
    color: var(--ink, #F4F0E8);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(244, 240, 232, 0.4);
}
.strator-consent__text a:hover { text-decoration-color: var(--acc, #1554FF); }

.strator-consent__actions {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 2px;
}
.strator-consent__btn {
    appearance: none;
    border: 1px solid rgba(244, 240, 232, 0.2);
    background: transparent;
    color: var(--ink, #F4F0E8);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
    white-space: nowrap;
}
.strator-consent__btn:hover { border-color: rgba(244, 240, 232, 0.45); }
.strator-consent__btn:focus-visible { outline: 2px solid var(--acc, #1554FF); outline-offset: 2px; }
.strator-consent__btn--ghost { color: var(--ink-dim, #B8B0A2); border-color: transparent; }
.strator-consent__btn--ghost:hover { color: var(--ink, #F4F0E8); border-color: rgba(244, 240, 232, 0.2); }
.strator-consent__btn--primary {
    background: var(--acc, #1554FF);
    border-color: var(--acc, #1554FF);
    color: #fff;
    flex: 1 1 auto;
}
.strator-consent__btn--primary:hover { background: #0f44d6; border-color: #0f44d6; }

/* Voorkeuren-paneel — verborgen tot "Voorkeuren" geklikt is.
   Expliciete [hidden]-regel want .strator-consent__custom zet display, wat
   het UA-default [hidden]{display:none} anders overschrijft. */
.strator-consent__custom[hidden] { display: none; }
.strator-consent__custom {
    display: flex; flex-direction: column; gap: 2px;
    border-top: 1px solid rgba(244, 240, 232, 0.1);
    padding-top: 14px;
    animation: stratorConsentExpand 220ms ease;
}
@keyframes stratorConsentExpand {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.strator-consent__opt {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 11px 2px;
    cursor: pointer;
    border-bottom: 1px solid rgba(244, 240, 232, 0.06);
}
.strator-consent__opt:last-of-type { border-bottom: 0; }
.strator-consent__opt span { display: flex; flex-direction: column; gap: 2px; }
.strator-consent__opt b { font-size: 13.5px; font-weight: 600; color: var(--ink, #F4F0E8); }
.strator-consent__opt small { font-size: 12px; color: var(--ink-dim, #B8B0A2); line-height: 1.4; }
.strator-consent__opt input[type="checkbox"] {
    appearance: none; -webkit-appearance: none;
    flex: 0 0 42px; width: 42px; height: 24px; border-radius: 999px;
    background: rgba(244, 240, 232, 0.16);
    position: relative; cursor: pointer; transition: background 150ms ease;
}
.strator-consent__opt input[type="checkbox"]::after {
    content: ""; position: absolute; top: 3px; left: 3px;
    width: 18px; height: 18px; border-radius: 50%; background: #F4F0E8;
    transition: left 150ms ease;
}
.strator-consent__opt input[type="checkbox"]:checked { background: var(--acc, #1554FF); }
.strator-consent__opt input[type="checkbox"]:checked::after { left: 21px; }
.strator-consent__opt input[type="checkbox"]:disabled { opacity: 0.55; cursor: not-allowed; }
.strator-consent__opt--locked { cursor: default; }

.strator-consent__custom-actions { margin-top: 14px; }
.strator-consent__custom-actions .strator-consent__btn { width: 100%; }

@media (max-width: 520px) {
    .strator-consent { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 20px; }
    .strator-consent__actions { flex-direction: column-reverse; }
    .strator-consent__btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .strator-consent, .strator-consent__custom { transition: none; animation: none; }
}
