/* U4I Cookie Consent 1.1 — CSS LEGEND
   01 Variables & shared typography | 02 Compact first-visit notice
   03 Preferences dialog | 04 Category rows & switches
   05 Action buttons | 06 Round cookie launcher | 07 Mobile & accessibility
   All overrides should start with #u4i-consent-root to avoid theme conflicts. */

/* 01 — VARIABLES: sizes, colors and radius */
#u4i-consent-root {
 --u4i-consent-text:#253443; --u4i-consent-muted:#536271;
 --u4i-consent-radius:18px; --u4i-banner-width:420px; --u4i-panel-width:560px;
 --u4i-cookie-bg:#dcefff; --u4i-cookie-ink:#24679a;
 font:14px/1.55 Arial,Helvetica,sans-serif; color:var(--u4i-consent-text);
}
#u4i-consent-root *,#u4i-consent-root *::before,#u4i-consent-root *::after { box-sizing:border-box; }
#u4i-consent-root [hidden] { display:none!important; }
#u4i-consent-root h2,#u4i-consent-root h3 { font-family:inherit; color:inherit; text-transform:none; letter-spacing:normal; font-weight:600; padding:0; margin:0; line-height:1.35; }
#u4i-consent-root h2 { font-size:18px; } #u4i-consent-root h3 { font-size:15px; }
#u4i-consent-root p { margin:8px 0; padding:0; font-size:14px; line-height:1.6; }
#u4i-consent-root a { color:#165996; text-decoration:underline; font-size:13px; }
#u4i-consent-root button { appearance:none; font:inherit; cursor:pointer; text-transform:none; letter-spacing:normal; margin:0; }

/* 02 — FIRST-VISIT NOTICE: bottom corner, no backdrop, page stays interactive */
#u4i-consent-root .u4i-banner { position:fixed; inset-inline-start:20px; bottom:20px; z-index:2147483000; width:min(var(--u4i-banner-width),calc(100vw - 40px)); max-height:60dvh; overflow:auto; background:#fff; border:1px solid #dce5ed; border-radius:var(--u4i-consent-radius); box-shadow:0 10px 38px #16344926; }
#u4i-consent-root .u4i-header { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 18px 8px; flex-shrink:0; }
#u4i-consent-root .u4i-brief { padding:0 18px 12px; }
#u4i-consent-root .u4i-brief p { margin:0 0 8px; }
#u4i-consent-root .u4i-close { display:inline-flex; align-items:center; justify-content:center; background:transparent; border:0; border-radius:50%; color:#617385; padding:0; min-width:44px; width:44px; min-height:44px; font-size:24px; line-height:1; }
#u4i-consent-root .u4i-close:hover { background:#edf4f9; }

/* 03 — PREFERENCES PANEL: only opened when requested; internal scroll */
#u4i-consent-root .u4i-dialog { position:fixed; inset:0; margin:auto; padding:0; border:1px solid #dce5ed; border-radius:var(--u4i-consent-radius); background:#fff; color:var(--u4i-consent-text); width:min(var(--u4i-panel-width),calc(100% - 32px)); max-width:none; max-height:min(680px,76dvh); box-shadow:0 20px 70px #15354730; font:inherit; overflow:hidden; }
#u4i-consent-root .u4i-dialog[open] { display:flex; flex-direction:column; }
#u4i-consent-root .u4i-dialog::backdrop { background:rgba(13,32,48,.22); }
#u4i-consent-root .u4i-dialog .u4i-header { padding:12px 20px; border-bottom:1px solid #e8edf2; }
#u4i-consent-root .u4i-body { padding:12px 20px 18px; overflow-y:auto; overscroll-behavior:contain; min-height:0; scrollbar-width:thin; }

/* 04 — PURPOSE CATEGORIES, COOKIE DETAILS AND SWITCHES */
#u4i-consent-root .u4i-category { padding:14px 0 0; border-top:1px solid #e8edf2; margin-top:16px; }
#u4i-consent-root .u4i-row { display:flex; align-items:center; justify-content:space-between; gap:14px; }
#u4i-consent-root .u4i-always { font-size:12px; color:#286044; font-weight:600; }
#u4i-consent-root summary { cursor:pointer; font-size:12px; font-weight:600; padding:5px 0; }
#u4i-consent-root details p { color:var(--u4i-consent-muted); font-size:12px; }
#u4i-consent-root .u4i-switch { position:relative; display:inline-flex; flex-shrink:0; align-items:center; width:48px; height:44px; cursor:pointer; }
#u4i-consent-root .u4i-switch input { position:absolute; width:100%; height:100%; inset:0; opacity:0; cursor:pointer; margin:0; }
#u4i-consent-root .u4i-switch span { width:48px; height:28px; background:#6d7c8b; border-radius:20px; pointer-events:none; }
#u4i-consent-root .u4i-switch span::after { content:''; display:block; width:22px; height:22px; border-radius:50%; background:white; margin:3px; transform:translateX(0); }
#u4i-consent-root .u4i-switch input:checked+span { background:var(--u4i-consent-accent,#1860e8); }
#u4i-consent-root .u4i-switch input:checked+span::after { transform:translateX(20px); }
#u4i-consent-root[dir=rtl] .u4i-switch input:checked+span::after { transform:translateX(-20px); }

/* 05 — ACTIONS: accept and reject deliberately have equal styling */
#u4i-consent-root .u4i-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:12px 18px 16px; border-top:1px solid #e8edf2; flex-shrink:0; }
#u4i-consent-root .u4i-actions button { min-height:44px; min-width:0; border:1px solid var(--u4i-consent-accent,#1860e8); border-radius:8px; padding:8px 10px; background:var(--u4i-consent-accent,#1860e8); color:#fff; font-size:13px; line-height:1.4; box-shadow:none; }
#u4i-consent-root .u4i-actions .u4i-reject { grid-column:1; grid-row:1; }
#u4i-consent-root .u4i-actions .u4i-accept { grid-column:2; grid-row:1; }
#u4i-consent-root .u4i-actions .u4i-save,#u4i-consent-root .u4i-actions .u4i-customize { grid-column:1 / -1; grid-row:2; background:#f4f8fb; border-color:#d6e1eb; color:#29465f; }
#u4i-consent-root .u4i-actions button:hover { filter:brightness(.94); }

/* 06 — MINIMIZED COOKIE BUTTON: light-blue circle and local SVG cookie */
#u4i-consent-root .u4i-reopen { position:fixed; inset-inline-start:18px; bottom:calc(18px + env(safe-area-inset-bottom,0px)); z-index:2147483000; display:flex; align-items:center; justify-content:center; width:48px; height:48px; min-height:48px; padding:10px; border:1px solid #b7d5eb; border-radius:50%; background:var(--u4i-cookie-bg); color:var(--u4i-cookie-ink); box-shadow:0 3px 14px #1a4c6c26; }
#u4i-consent-root .u4i-reopen:hover { box-shadow:0 4px 18px #1a4c6c40; }
#u4i-consent-root .u4i-cookie-icon { display:block; width:28px; height:28px; }

/* 07 — MOBILE AND ACCESSIBILITY: compact bottom card, constrained details panel */
#u4i-consent-root :focus-visible,#u4i-consent-root .u4i-switch input:focus-visible+span { outline:3px solid #9b4a00; outline-offset:3px; }
#u4i-consent-root .u4i-gpc { border-inline-start:3px solid #286044; padding-inline-start:12px; font-size:12px; }
#u4i-consent-root .u4i-status { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
@media(max-width:600px) {
 #u4i-consent-root .u4i-banner { inset-inline-start:12px; bottom:calc(12px + env(safe-area-inset-bottom,0px)); width:calc(100% - 24px); max-height:60dvh; border-radius:16px; }
 #u4i-consent-root .u4i-dialog { width:calc(100% - 24px); max-height:72dvh; }
 #u4i-consent-root .u4i-header { padding:8px 14px 4px; }
 #u4i-consent-root .u4i-dialog .u4i-header { padding:8px 14px; }
 #u4i-consent-root .u4i-brief { padding:0 14px 10px; }
 #u4i-consent-root .u4i-body { padding:8px 14px 14px; }
 #u4i-consent-root .u4i-actions { padding:10px 14px 12px; gap:6px; }
 #u4i-consent-root h2 { font-size:16px; }
 #u4i-consent-root .u4i-brief p { font-size:13px; line-height:1.5; }
}
@media (forced-colors:active) { #u4i-consent-root .u4i-switch span { border:1px solid ButtonText; } #u4i-consent-root .u4i-switch span::after { background:ButtonText; } }
/* Managed optional video placeholders (not part of the consent popup). */
.u4i-video { background:#f4f5f7; padding:20px; border:1px solid #ddd; text-align:center; }
.u4i-video:has(iframe) { padding:0; border:0; } .u4i-video iframe { display:block; width:100%; aspect-ratio:16/9; height:auto; border:0; }
