/* The privacy panel uses the site's palette, with its own compact layout. */
#cookieBanner,.cookie-preferences,.cookie-toast{font-family:inherit;color:var(--ink);background:var(--panel);border:1px solid var(--line-strong);box-shadow:var(--shadow-lg,0 16px 64px #0006);box-sizing:border-box}
#cookieBanner[hidden],.cookie-preferences [hidden],.cookie-toast[hidden]{display:none!important}
#cookieBanner{position:fixed;inset:auto 20px 20px;z-index:1000;max-width:1060px;margin:auto;padding:24px 28px;clip-path:none;border-radius:16px;border-top:3px solid var(--mint,var(--primary));max-height:calc(100dvh - 40px);overflow:auto}
.cookie-intro{display:flex;gap:18px;align-items:flex-start}
.cookie-mark{display:grid;place-items:center;width:46px;height:46px;flex:0 0 46px;border:1px solid var(--line-strong);border-radius:12px;color:var(--mint,var(--primary));font-size:30px;background:var(--bg-2)}
.cookie-eyebrow{display:block;color:var(--mint,var(--primary));font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;margin-bottom:7px}
#cookieBanner h2,.cookie-preferences h2{font-size:clamp(21px,2.5vw,27px);line-height:1.2;margin:0 0 10px;letter-spacing:-.02em;color:var(--ink)}
#cookieBanner p,.cookie-preferences p{font-size:14px;line-height:1.65;color:var(--muted);margin:0}
.cookie-banner-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
#cookieBanner a,.cookie-policy-link{font-size:13px;color:var(--muted);text-underline-offset:4px}
.cookie-actions,.cookie-dialog-actions{display:flex;gap:10px}
.cookie-button{font:inherit;font-size:13px;font-weight:750;line-height:1.3;padding:13px 17px;min-height:44px;border:1px solid var(--line-strong);border-radius:9px;color:var(--ink);background:var(--panel-2,var(--bg-2));cursor:pointer;transition:background .15s,border-color .15s}
.cookie-button:hover{border-color:var(--mint,var(--primary));background:var(--bg-2)}
.cookie-button-settings{background:transparent}
.cookie-button-save{color:var(--bg);background:var(--mint,#25f4c8);border-color:var(--mint,#25f4c8)}
.cookie-button-save:hover{background:var(--mint,#25f4c8);filter:brightness(1.08)}
#cookieBanner :focus-visible,.cookie-preferences :focus-visible{outline:3px solid var(--mint,var(--primary));outline-offset:4px}
.cookie-preferences{padding:0;border-radius:18px;width:min(720px,calc(100% - 32px));max-height:calc(100dvh - 40px);margin:auto;overflow:auto;overscroll-behavior:contain}
.cookie-preferences::backdrop{background:rgba(3,5,15,.78);backdrop-filter:blur(5px)}
.cookie-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:26px 28px 16px;border-bottom:1px solid var(--line)}
.cookie-dialog-head h2{margin:0}
.cookie-close{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;background:var(--bg-2);color:var(--ink);border:1px solid var(--line-strong);border-radius:50%;font:inherit;font-size:25px;cursor:pointer}
.cookie-dialog-body{padding:20px 28px 24px}
.cookie-category{margin-top:14px;border:1px solid var(--line);border-radius:12px;padding:18px;background:var(--bg-2)}
.cookie-category-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px;flex-wrap:wrap}
.cookie-category h3,.cookie-receipt h3,.cookie-category-title{font-size:16px;line-height:1.4;margin:0;font-weight:750;color:var(--ink)}
.cookie-badge{font-size:11px;font-weight:650;line-height:1.4;padding:5px 8px;border:1px solid var(--line-strong);border-radius:6px;color:var(--muted)}
.cookie-category details{margin-top:12px;font-size:12px;color:var(--muted)}
.cookie-category summary{cursor:pointer;color:var(--ink);width:fit-content}
.cookie-category details p{font-size:12px;margin-top:8px}
.cookie-category-inactive{background:transparent}
.cookie-switch{display:block;position:relative;width:46px;height:28px;flex:0 0 46px;cursor:pointer}
.cookie-switch input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;z-index:1;cursor:pointer}
.cookie-switch span{display:block;position:absolute;inset:0;border-radius:20px;border:1px solid var(--muted-2);background:var(--panel-2)}
.cookie-switch span:after{content:'';position:absolute;width:18px;height:18px;left:4px;top:4px;border-radius:50%;background:var(--muted);transition:transform .15s}
.cookie-switch input:checked+span{background:var(--mint,#25f4c8);border-color:var(--mint,#25f4c8)}
.cookie-switch input:checked+span:after{transform:translateX(18px);background:var(--bg)}
.cookie-switch input:focus-visible+span{outline:3px solid var(--mint,var(--primary));outline-offset:4px}
.cookie-switch input:disabled+span{opacity:.4}
.cookie-receipt{margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}
.cookie-receipt dl{margin:14px 0;font-size:12px;line-height:1.6}
.cookie-receipt dl>div{display:grid;grid-template-columns:140px minmax(0,1fr);gap:12px;padding:5px 0}
.cookie-receipt dt{color:var(--muted)}
.cookie-receipt dd{margin:0;color:var(--ink);overflow-wrap:anywhere}
.cookie-receipt-id{font-family:ui-monospace,monospace}
.cookie-text-button{font:inherit;font-size:12px;color:var(--mint,var(--primary));border:0;border-bottom:1px solid currentColor;background:none;padding:5px 0;cursor:pointer}
.cookie-preferences .cookie-note{font-size:12px;margin-top:12px}
.cookie-preferences .cookie-feedback{color:var(--ink);margin:14px 0}
.cookie-feedback:empty{display:none}
.cookie-policy-link{display:inline-block;margin-top:14px}
.cookie-dialog-actions{padding:16px 28px;background:var(--panel);border-top:1px solid var(--line);position:sticky;bottom:0}
.cookie-dialog-actions .cookie-button{flex:1}
.cookie-toast{position:fixed;z-index:1100;bottom:24px;left:50%;transform:translateX(-50%);padding:14px 20px;border-radius:12px;font-size:13px;width:max-content;max-width:calc(100% - 32px);line-height:1.6}
@media(max-width:700px){#cookieBanner{inset:auto 12px 84px;padding:18px;max-height:calc(100dvh - 108px)}.cookie-mark{display:none}.cookie-banner-bottom{align-items:stretch;flex-direction:column;gap:14px}.cookie-actions{display:grid;grid-template-columns:1fr 1fr}.cookie-button-settings{grid-column:1/-1;grid-row:2}#cookieBanner h2{font-size:21px}#cookieBanner p{font-size:13px}.cookie-dialog-head{padding:20px}.cookie-dialog-body{padding:18px 20px}.cookie-dialog-actions{padding:14px 20px;flex-wrap:wrap}.cookie-dialog-actions .cookie-button{flex:1 1 40%}.cookie-dialog-actions .cookie-button-save{order:1;flex-basis:100%}.cookie-category{padding:14px}.cookie-preferences{max-height:calc(100dvh - 24px)}.cookie-receipt dl>div{grid-template-columns:1fr;gap:0}.cookie-toast{bottom:84px}}
@media(prefers-reduced-motion:reduce){.cookie-button,.cookie-switch span:after{transition:none}}

@media print{#cookieBanner,.cookie-preferences,.cookie-toast{display:none!important}}
