/* Compact privacy card. Keep its layout independent of page-level form styles. */
.cookie-notice{position:fixed;inset:auto 20px 20px auto;z-index:80;box-sizing:border-box;width:360px;max-width:calc(100% - 40px);max-height:calc(100dvh - 40px);overflow:auto;margin:0;padding:16px;border:1px solid #dfe3e8;border-radius:16px;background:#fff;box-shadow:0 8px 28px #17233320;color:#1d1d1f;font:12px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.cookie-notice[hidden],.cookie-notice-spacer[hidden]{display:none!important}
.cookie-notice .cookie-notice-heading{display:flex;align-items:center;gap:8px;margin:0 0 8px;padding:0}
.cookie-notice .cookie-privacy-mark{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border-radius:8px;background:#edf5ff;color:#0064c8}
.cookie-privacy-mark svg{width:17px;height:17px}
.cookie-notice h2{margin:0;padding:0;font-size:16px;font-weight:650;line-height:1.3;letter-spacing:-.25px}
.cookie-notice h2:focus{outline:none}
.cookie-notice .cookie-notice-copy{margin:0 0 12px;padding:0;font-size:12px;line-height:1.5;color:#59616c}
.cookie-notice .cookie-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 0 12px;padding:0}
.cookie-notice .cookie-category{position:relative;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:66px;margin:0;padding:8px 4px;border:1px solid #e6e9ee;border-radius:10px;background:#f8f9fb;color:#3d4652;font-size:11px;font-weight:500;line-height:16px;cursor:pointer}
.cookie-notice .cookie-category:has(input:checked){border-color:#cbdff5;background:#f1f7ff}
.cookie-notice .cookie-category-name{display:block;margin:0;padding:0;font-size:11px;line-height:16px}
.cookie-category-name small{display:none}
.cookie-notice .cookie-category>input{position:absolute;inset:0;z-index:1;display:block;width:100%;height:100%;min-height:0;margin:0;padding:0;border:0;opacity:0;cursor:pointer}
.cookie-essential,.cookie-essential>input{cursor:default!important}
.cookie-notice .cookie-switch-track{position:relative;display:block;flex-shrink:0;width:38px;height:22px;border-radius:20px;background:#737b85;transition:background .15s}
.cookie-switch-track::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .15s}
.cookie-switch-track::before{content:"×";position:absolute;right:5px;top:1px;font-size:13px;line-height:20px;font-weight:600;color:#fff}
.cookie-category>input:checked+.cookie-switch-track{background:#0064c8}
.cookie-category>input:checked+.cookie-switch-track::after{transform:translateX(16px)}
.cookie-category>input:checked+.cookie-switch-track::before{content:"✓";left:5px;right:auto;font-size:10px}
.cookie-category:has(input:focus-visible){outline:3px solid #0863bd;outline-offset:2px}
.cookie-notice .cookie-notice-footer{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:0;padding:0;border:0}
.cookie-notice .cookie-notice-actions{order:0;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0;padding:0}
.cookie-notice .cookie-notice-actions>button{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;margin:0;padding:10px 8px;border:1px solid #0064c8;border-radius:9px;background:#0064c8;color:#fff;font:600 12px/1.35 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer;text-decoration:none}
.cookie-notice .cookie-notice-actions>button:hover{background:#0055ab;border-color:#0055ab}
.cookie-notice .cookie-notice-links{order:1;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 8px;margin:0;padding:0}
.cookie-notice .cookie-notice-links a{display:inline-flex;align-items:center;min-height:24px;margin:0;padding:0;color:#5c6572;font-size:10px;line-height:16px;text-decoration:underline;text-underline-offset:3px}
.cookie-notice .cookie-notice-links a:hover{color:#0064c8}
.cookie-notice :focus-visible{outline:3px solid #0863bd;outline-offset:3px}
.cookie-notice-spacer{pointer-events:none;flex-shrink:0}
.cookie-preferences-link{display:inline-flex;align-items:center;min-height:44px;border:0;background:transparent;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:0;border-radius:0}
@media(max-width:780px){.cookie-notice{right:12px;bottom:calc(12px + env(safe-area-inset-bottom));max-width:calc(100% - 24px);max-height:calc(100dvh - 110px);padding:14px;border-radius:15px}body:has(.header-tabs) .cookie-notice{bottom:calc(76px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.cookie-switch-track,.cookie-switch-track::after{transition:none}}
