/* Compact first layer; full settings reuse the existing consent form. */
.cookie-dialog{position:fixed;inset:auto auto max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));margin:0;width:480px;max-width:calc(100vw - 36px);max-height:calc(100vh - 36px);max-height:calc(100dvh - 36px);padding:0;border:1px solid #d5dce3;border-radius:14px;background:#fff;color:#202832;z-index:10000;box-shadow:0 8px 36px #18222d26;overflow:auto;overscroll-behavior:contain;box-sizing:border-box;text-align:left}
.cookie-dialog:not([open]){display:none}
.cookie-dialog:not(.cookie-expanded) .cookie-details-only,.cookie-dialog .cookie-close{display:none}
.cookie-dialog.cookie-expanded .cookie-compact-only{display:none}
.cookie-dialog.cookie-expanded .cookie-details-only{display:block}
.cookie-dialog.cookie-expanded .cookie-buttons.cookie-details-only{display:flex}
.cookie-dialog.cookie-expanded .cookie-close{display:inline-flex}
.cookie-dialog.cookie-expanded{inset:0;margin:auto;width:640px;max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);border-radius:14px}
.cookie-dialog::backdrop{background:#17212b59}
.cookie-dialog.cookie-expanded[open]:not(:modal){box-shadow:0 0 0 100vmax #17212b59,0 12px 48px #0003}
.cookie-dialog .cookie-form{display:block;max-width:none;width:100%;margin:0;padding:20px;box-sizing:border-box}
.cookie-dialog .cookie-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 8px}
.cookie-dialog .cookie-heading h2{flex:1;min-width:0;font-size:19px;line-height:1.3;letter-spacing:-.015em;margin:0;color:#202832;overflow-wrap:anywhere}
.cookie-dialog .cookie-heading h2:focus{outline:none}
.cookie-dialog .cookie-close{align-items:center;justify-content:center;flex:none;width:40px;min-height:40px;margin:0;padding:0;border:1px solid #d5dce3;border-radius:8px;background:#fff;color:#344454;font:400 26px/1 system-ui;text-decoration:none;cursor:pointer}
.cookie-dialog p{font-size:14px;line-height:1.5;margin:0 0 10px;overflow-wrap:anywhere}
.cookie-dialog .cookie-inline-links{display:flex;flex-wrap:wrap;align-items:center;gap:4px 18px;margin:0 0 6px}.cookie-dialog .cookie-privacy,.cookie-dialog .cookie-settings-toggle{display:inline-flex;align-items:center;min-height:32px;font-size:13px;line-height:1.4;color:#455565;text-decoration:underline;text-underline-offset:3px;margin:0;padding:0;border:0;background:transparent;font-weight:500;max-width:100%;overflow-wrap:anywhere}
.cookie-dialog .cookie-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;border:0}
.cookie-dialog .cookie-buttons button{display:flex;align-items:center;justify-content:center;box-sizing:border-box;flex:1 1 0;min-width:0;min-height:44px;margin:0;padding:10px 8px;border:1px solid #aab6c1;border-radius:8px;background:#fff;color:#263442;font:600 14px/1.3 system-ui,-apple-system,Segoe UI,sans-serif;text-align:center;text-decoration:none;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
/* Accept and reject deliberately have the same weight, size and contrast. */
.cookie-dialog .cookie-buttons button:hover{background:#f2f5f7;color:#202832;border-color:#718393}
.cookie-dialog .cookie-settings-toggle:hover{color:#202832;text-decoration-thickness:2px}
.cookie-dialog .cookie-category{margin:0;border-top:1px solid #e0e5eb;padding:12px 0}
.cookie-dialog .cookie-category summary{font-weight:650;cursor:pointer;font-size:14px;line-height:1.5;min-height:32px}
.cookie-dialog .cookie-category summary span{float:right;font-size:12px;color:#536575;font-weight:400}
.cookie-dialog .cookie-choice{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;margin:0;font-size:14px;line-height:1.4;font-weight:650;cursor:pointer}
.cookie-dialog .cookie-choice input{width:22px;height:22px;margin:0;flex:none;padding:0;accent-color:#ed641e}
.cookie-dialog .cookie-category strong{display:block;font-size:14px;line-height:1.5;padding:8px 0}
.cookie-dialog .cookie-category p{color:#536575;margin:4px 0 0}
.cookie-dialog.cookie-expanded .cookie-buttons{position:sticky;bottom:-20px;background:#fff;border-top:1px solid #e0e5eb;padding:12px 0 0;box-shadow:0 -8px 12px #fff}
.cookie-dialog button:focus-visible,.cookie-dialog a:focus-visible,.cookie-dialog input:focus-visible,.cookie-dialog summary:focus-visible{outline:2px solid #b34409;outline-offset:3px}
@media(max-width:560px){
 .cookie-dialog{inset:auto auto max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);border-radius:12px}
 .cookie-dialog .cookie-form{padding:12px}
 .cookie-dialog:not(.cookie-expanded) .cookie-heading{margin-bottom:5px}
 .cookie-dialog:not(.cookie-expanded) p{font-size:13px;line-height:1.4;margin-bottom:3px}
 .cookie-dialog:not(.cookie-expanded) .cookie-buttons button{font-size:13px;padding:9px 5px;min-height:44px}
 .cookie-dialog .cookie-heading h2{font-size:16px}
 .cookie-dialog.cookie-expanded{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px)}
 .cookie-dialog.cookie-expanded .cookie-buttons{bottom:-12px}
 .cookie-dialog.cookie-expanded .cookie-buttons button[value="save"]{flex:1 1 100%;order:1}
 .cookie-dialog .cookie-category summary span{float:none;display:block;margin-top:2px}
}
@media(max-height:400px){.cookie-dialog .cookie-form{padding:12px}.cookie-dialog.cookie-expanded .cookie-buttons{position:static}}
@media(prefers-reduced-motion:no-preference){.cookie-dialog button,.cookie-dialog .cookie-settings-toggle{transition:background-color .12s,border-color .12s}}

.cookie-dialog input[type="hidden"]{display:none}

.cookie-dialog:not(.cookie-expanded) .cookie-form{padding:14px}
.cookie-dialog:not(.cookie-expanded) .cookie-heading h2{font-size:16px}
.cookie-dialog:not(.cookie-expanded) p{font-size:13px;line-height:1.4;margin-bottom:4px}
@media(max-width:560px){.cookie-dialog:not(.cookie-expanded) .cookie-form{padding:12px}.cookie-dialog:not(.cookie-expanded) .cookie-heading h2{font-size:15px}}
