#analytics-consent, #cookie-preferences {
    box-sizing: border-box;
    padding: 28px;
    border: 1px solid #dce1e9;
    border-radius: 22px;
    background: #fff;
    color: #141b2e;
    box-shadow: 0 16px 60px #0003;
    font: 15px/1.5 system-ui, sans-serif;
    color-scheme: light;
}
#analytics-consent { position: fixed; z-index: 10000; inset: auto 16px 16px; width: calc(100% - 32px); max-width: 460px; margin: auto; max-height: calc(100dvh - 32px); overflow-y: auto; }
#analytics-consent[hidden], #cookie-preferences [hidden] { display: none; }
#cookie-preferences { position: fixed; inset: 0; width: min(680px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; overflow-y: auto; }
#cookie-preferences::backdrop { background: #101a30b3; backdrop-filter: blur(3px); }
#analytics-consent h2, #cookie-preferences h2 { margin: 0 0 12px; color: inherit; font-size: 26px; font-weight: 750; line-height: 1.2; }
#analytics-consent p, #cookie-preferences p { margin: 0 0 20px; }
.cookie-actions { display: flex; gap: 12px; }
#analytics-consent .cookie-actions { flex-direction: column; }
.cookie-actions button, .cookie-back { min-height: 46px; padding: 10px 18px; border: 1px solid #182230; border-radius: 12px; background: #fff; color: #141b2e; font: inherit; font-weight: 650; cursor: pointer; }
.cookie-actions button { flex: 1; }
.cookie-actions .cookie-primary { border-color: #c94708; background: #c94708; color: #fff; }
.cookie-actions button:hover { filter: brightness(.95); }
.cookie-policy { display: block; margin-top: 16px; color: #b43f08; text-align: center; text-decoration: underline; }
.cookie-purposes { margin: 20px 0; overflow: hidden; border: 1px solid #dce1e9; border-radius: 14px; }
.cookie-purpose { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px; }
.cookie-purpose + .cookie-purpose { border-top: 1px solid #dce1e9; }
.cookie-purpose strong, .cookie-purpose span span { display: block; }
.cookie-purpose strong { font-size: 16px; }
.cookie-purpose span span, .cookie-scope, #cookie-preferences-description { color: #535969; font-size: 14px; }
.cookie-purpose input { appearance: none; flex: 0 0 46px; width: 46px; height: 26px; margin: 0; border: 1px solid #9298a3; border-radius: 999px; background: #b6bbc4; cursor: pointer; position: relative; }
.cookie-purpose input::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.cookie-purpose input:checked { background: #c94708; border-color: #c94708; }
.cookie-purpose input:checked::after { transform: translateX(20px); }
.cookie-purpose input:disabled { cursor: default; opacity: .65; }
#analytics-consent :focus-visible, #cookie-preferences :focus-visible { outline: 3px solid #141b2e; outline-offset: 3px; }
#cookie-preferences .cookie-back { display: block; margin: 14px auto 0; min-height: 44px; border: 0; text-decoration: underline; }
#analytics-consent .cookie-error, #cookie-preferences .cookie-error { margin-top: 12px; color: #a21d16; }
@media (max-width: 480px) {
    #analytics-consent, #cookie-preferences { padding: 20px; border-radius: 18px; }
    #cookie-preferences .cookie-actions { flex-direction: column-reverse; }
    .cookie-purpose { padding: 14px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .cookie-purpose input::after { transition: none; } }
body.native-app #analytics-consent { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
