.analytics-choice,.cookie-preferences{box-sizing:border-box;background:#fff;color:#162122;border:1px solid #d0d5d3;border-radius:14px;padding:24px;font:15px/1.5 system-ui,sans-serif;box-shadow:0 6px 32px #0003}
.analytics-choice{position:fixed;z-index:1000;bottom:16px;left:16px;right:16px;max-width:540px;max-height:calc(100dvh - 32px);overflow:auto}
.analytics-choice h2,.cookie-preferences h2{font:700 20px/1.25 system-ui,sans-serif;letter-spacing:-.3px;margin:0 0 12px;color:#162122}
.analytics-choice p,.cookie-preferences p{margin:0 0 18px}
.cookie-actions{display:flex;gap:12px;flex-wrap:wrap}
.analytics-choice button,.cookie-preferences button,.analytics-settings{cursor:pointer;border:1px solid #52605e;border-radius:8px;padding:11px 18px;font:600 14px/1.5 system-ui,sans-serif;background:#fff;color:#162122;min-height:44px}
.analytics-choice .cookie-primary,.cookie-preferences .cookie-primary{background:#162122;color:#fff;border-color:#162122}
.analytics-choice button:hover,.cookie-preferences button:hover{filter:brightness(.92)}
.analytics-choice button:focus-visible,.cookie-preferences :focus-visible,.analytics-settings:focus-visible{outline:3px solid #298477;outline-offset:3px}
.analytics-settings{margin:12px 0;font-size:13px;background:transparent;color:inherit}
.cookie-preferences{width:calc(100% - 32px);max-width:520px;max-height:calc(100dvh - 32px);overflow:auto;margin:auto}
.cookie-preferences::backdrop{background:#10201dcc}
.cookie-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px}
.cookie-panel-head h2{margin:7px 0 0}
.cookie-preferences .cookie-close{font-size:25px;line-height:1;padding:8px;min-width:44px;border:0}
.cookie-category{padding:18px 0;border-top:1px solid #dce1df}
.cookie-category-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;font-weight:700;line-height:1.4}
.cookie-category h3{font:inherit;margin:0}
.cookie-category p{margin:9px 0 0;font-size:14px;color:#44514e}
.cookie-always{font-size:13px;color:#246a50;white-space:nowrap}
.cookie-category input{appearance:none;flex:0 0 48px;width:48px;height:28px;border:1px solid #667570;border-radius:18px;background:#75817d;cursor:pointer;position:relative;margin:0}
.cookie-category input::before{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:white;transition:transform .15s}
.cookie-category input:checked{background:#246a50;border-color:#246a50}
.cookie-category input:checked::before{transform:translateX(20px)}
.cookie-policy{display:inline-block;color:#245c4d;text-decoration:underline;margin:0 0 20px}
@media(max-width:380px){.analytics-choice,.cookie-preferences{padding:18px}.cookie-category-heading{gap:10px}.cookie-always{font-size:12px}.cookie-category h3{max-width:180px}}
@media(prefers-reduced-motion:reduce){.cookie-category input::before{transition:none}}

.analytics-choice{
 bottom:0;left:0;right:0;max-width:none;max-height:45dvh;
 display:flex;align-items:center;justify-content:space-between;gap:16px 24px;
 padding:16px clamp(16px,4vw,48px) max(16px,env(safe-area-inset-bottom));
 background:#292d2d;color:#fff;border:0;border-radius:0;
 font-size:14px;
}
.analytics-choice h2{margin:0 0 6px;color:inherit;font-size:17px}
.analytics-choice p{margin:0}
.analytics-choice a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.analytics-choice .cookie-primary{flex:none;background:#fff;color:#162122;border-color:#fff}
.analytics-choice :focus-visible{outline:3px solid #80ded1;outline-offset:3px}
#cookies{scroll-margin-top:120px}
@media(max-width:640px){
 .analytics-choice{
  display:block;max-height:70dvh;padding:20px 24px max(24px,env(safe-area-inset-bottom));
  background:#363636;text-align:left;font-size:15px;line-height:1.65;
 }
 .analytics-choice h2{margin:0 0 14px;font-size:18px}
 .analytics-choice .cookie-primary{
  display:block;width:100%;min-height:46px;margin-top:22px;border-radius:999px;
  color:#333;text-align:center;
 }
}
