.cookie-dialog{box-sizing:border-box;position:fixed;z-index:1900;inset:auto 24px max(24px,env(safe-area-inset-bottom)) auto;width:min(560px,calc(100% - 48px));max-height:calc(100dvh - 100px);margin:0;padding:0;border:1px solid var(--line,#b49b625c);border-radius:12px;background:#171c18;color:var(--text,#e8e8df);box-shadow:0 12px 48px #0006;font-family:var(--font-body,system-ui,sans-serif);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.cookie-dialog[open]{animation:cookie-arrive .3s ease-out both}
.cookie-dialog::backdrop{background:transparent}
.cookie-panel{padding:20px 22px;margin:0}
.cookie-heading,.cookie-title{display:flex;align-items:center;gap:11px}
.cookie-heading{justify-content:space-between;gap:16px;margin-bottom:9px}
.cookie-title>svg{flex-shrink:0;width:23px;height:23px;fill:none;stroke:var(--gold,#c9ad75);stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.cookie-close{display:grid;flex-shrink:0;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:transparent;color:#b5b9ac;font:24px/1 system-ui;cursor:pointer}
.cookie-close:hover{background:#ffffff09;color:#f0dfb3}
.cookie-panel h2{margin:0;color:#f0dfb3;font-family:var(--font-title,Georgia,serif);font-size:22px;line-height:1.25}
.cookie-panel>p{margin:0 0 17px;color:#b6bbae;font-size:13px;line-height:1.65}
.cookie-policy-link{display:inline-block;color:#d3b77c;text-decoration:underline;text-underline-offset:3px}
.cookie-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.cookie-choice{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 12px;border:1px solid #bda46a50;border-radius:5px;background:transparent;color:#e7d7b2;font:500 12px/1.4 var(--font-body,system-ui,sans-serif);text-align:center;cursor:pointer;transition:background .15s,border-color .15s}
.cookie-choice-primary{background:#c9ad7514}
.cookie-choice:hover{background:#c9ad7526;border-color:#d4b87b}
.cookie-expand>svg{flex-shrink:0;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;transition:transform .15s}
.cookie-expand[aria-expanded="true"]>svg{transform:rotate(180deg)}
.cookie-preferences{margin-top:17px;padding-top:4px;border-top:1px solid var(--line,#ffffff12)}
.cookie-option{box-sizing:border-box;display:flex;position:relative;align-items:center;gap:18px;padding:13px 0;cursor:pointer}
.cookie-option+ .cookie-option{border-top:1px solid #ffffff0c}
.cookie-option>div{flex:1;min-width:0}
.cookie-option strong{color:#e9eae4;font-size:12px;font-weight:600}
.cookie-option p{margin:4px 0 0;color:#a5ad9e;font-size:11px;line-height:1.6}
.cookie-option-required{cursor:default}
.cookie-required-label{flex-shrink:0;max-width:88px;color:#99cdb1;font-size:10px;text-align:right}
.cookie-option input{position:absolute;right:0;width:42px;height:24px;margin:0;opacity:0;cursor:pointer}
.cookie-switch{box-sizing:border-box;flex-shrink:0;width:42px;height:24px;padding:3px;border:1px solid #ffffff30;border-radius:20px;background:#3a4340;transition:background .15s,border-color .15s;pointer-events:none}
.cookie-switch::after{content:"";display:block;width:16px;height:16px;border-radius:50%;background:#e4e8db;box-shadow:0 1px 4px #0005;transition:transform .15s}
.cookie-option input:checked+.cookie-switch{background:#9c8047;border-color:#ccb279}
.cookie-option input:checked+.cookie-switch::after{transform:translateX(18px);background:#fff2d1}
.cookie-option:has(input:focus-visible){outline:2px solid #d3b77c;outline-offset:3px}
.cookie-save{width:100%;margin-top:5px;background:#c9ad7514}
.cookie-dialog button:focus-visible,.cookie-dialog a:focus-visible,.cookie-settings-button:focus-visible{outline:2px solid #d3b77c;outline-offset:3px}
.cookie-panel .cookie-storage-warning{margin:14px 0 0;color:#ddbd83;font-size:11px}
.cookie-settings-button{padding:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;text-align:left}
.cookie-settings-button:hover{color:#eed4a0}
.cookie-noscript{padding:16px;text-align:center;font:13px/1.5 system-ui;color:#bdc3c8}
@keyframes cookie-arrive{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.cookie-dialog{inset:auto 12px max(12px,env(safe-area-inset-bottom)) 12px;width:auto;max-height:calc(100dvh - 100px)}.cookie-panel{padding:16px}.cookie-heading{margin-bottom:7px}.cookie-panel h2{font-size:20px}.cookie-panel>p{margin-bottom:13px;font-size:12px}.cookie-choice{padding:9px 8px}.cookie-option{gap:12px}}
@media(prefers-reduced-motion:reduce){.cookie-dialog[open]{animation:none}.cookie-choice,.cookie-expand>svg,.cookie-switch,.cookie-switch::after{transition:none}}
