/* consent.css - styles for the cookie banner and preference centre built by consent.js.
   Why: keeps the consent UI on the site's own colour tokens (styles.css custom properties, dark and
   light). Ported from the CAMSPay site's .cookie-* rules.
   Connects to: consent.js (markup), styles.css (tokens, .button), linked from every page head.
   Input: none. Output: banner pinned to the bottom, centred dialog with switches. */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--glass); backdrop-filter: blur(12px); border-top: 1px solid var(--border); transform: translateY(110%); transition: transform .35s var(--ease); }
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner-inner { max-width: 1160px; margin: 0 auto; padding: 16px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.cookie-banner-text { flex: 1 1 420px; min-width: 0; margin: 0; color: var(--stone); font-size: 0.9rem; line-height: 1.6; }
.cookie-banner-text a, .cookie-modal-intro a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-modal-overlay { display: none; position: fixed; inset: 0; z-index: 100; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, 0.6); }
.cookie-modal-overlay.is-open { display: flex; }
.cookie-modal { width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; padding: 26px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.cookie-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.cookie-modal h3 { margin: 0; font-size: 1.25rem; }
.cookie-modal-close { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--stone); font-size: 1.2rem; cursor: pointer; }
.cookie-modal-close:hover { color: var(--ink); }
.cookie-modal-intro { color: var(--stone); font-size: 0.9rem; line-height: 1.65; margin: 0 0 18px; }
.cookie-cat { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 16px 0; border-top: 1px solid var(--border); }
.cookie-cat-info p { margin: 4px 0 0; color: var(--stone); font-size: 0.85rem; line-height: 1.55; }
.cookie-cat-status { color: var(--ok); font-size: 0.8rem; white-space: nowrap; }
.cookie-switch { position: relative; flex: 0 0 auto; width: 46px; height: 26px; }
.cookie-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cookie-switch .track { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border); transition: background-color .2s; pointer-events: none; }
.cookie-switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); transition: transform .2s var(--ease); }
.cookie-switch input:checked + .track { background: var(--hanko); }
.cookie-switch input:checked + .track::after { transform: translateX(20px); background: var(--on-hanko); }
.cookie-switch input:focus-visible + .track { outline: 2px solid var(--ink); outline-offset: 2px; }
.cookie-modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.foot-link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .cookie-banner, .cookie-switch .track::after { transition: none; } }
