.cookie-banner, .cookie-dialog { box-sizing: border-box; color: #282333; background: #fff; font: 14px/1.55 Inter, system-ui, sans-serif; letter-spacing: 0; }
.cookie-banner *, .cookie-dialog * { box-sizing: border-box; }
.cookie-banner[hidden], .cookie-settings-link[hidden] { display: none !important; }
.cookie-banner { position: fixed; inset: auto 20px 20px; z-index: 10000; max-width: 1160px; margin: 0 auto; padding: 22px 24px; border: 1px solid #d9d5e0; border-radius: 8px; box-shadow: 0 8px 40px #25183d24; display: flex; gap: 24px; align-items: center; max-height: calc(100dvh - 40px); overflow-y: auto; }
.cookie-banner__copy { flex: 1; min-width: 0; }
.cookie-banner h2, .cookie-dialog h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; font-weight: 650; }
.cookie-banner p, .cookie-dialog p { margin: 0; color: #57515f; overflow-wrap: anywhere; }
.cookie-banner a, .cookie-dialog a { color: #594181; text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner > .cookie-actions { flex: 0 1 420px; }
.cookie-button { appearance: none; flex: 1 1 150px; min-height: 44px; padding: 10px 14px; border: 1px solid #74559c; border-radius: 6px; background: #fff; color: #503670; font: inherit; font-weight: 600; line-height: 1.4; cursor: pointer; overflow-wrap: anywhere; text-align: center; }
.cookie-button:hover { background: #f4eff9; }
.cookie-button--quiet { flex-basis: 100%; border-color: #d9d5e0; color: #57515f; }
.cookie-settings-link { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner :focus-visible, .cookie-dialog :focus-visible, .cookie-settings-link:focus-visible { outline: 3px solid #087d88; outline-offset: 3px; }
.cookie-dialog { width: min(600px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 24px; border: 1px solid #d9d5e0; border-radius: 8px; overflow-y: auto; }
.cookie-dialog::backdrop { background: #17101f80; }
.cookie-dialog__header { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.cookie-close { flex: 0 0 36px; width: 36px; height: 36px; border: 0; border-radius: 6px; background: #f2f0f5; color: #282333; font: 24px/1 system-ui, sans-serif; cursor: pointer; }
.cookie-category { padding: 18px 0; border-bottom: 1px solid #e6e2eb; }
.cookie-category__title { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 8px; font-weight: 650; }
.cookie-category__title h3 { margin: 0; font: inherit; }
.cookie-category__title > span:last-child { color: #35675d; font-size: 13px; }
.cookie-category input { flex: 0 0 22px; width: 22px; height: 22px; margin: 0; accent-color: #74559c; cursor: pointer; }
.cookie-dialog > p, .cookie-dialog > .cookie-actions { margin-top: 16px; }
@media (max-width: 760px) {
    .cookie-banner { inset: auto 12px max(12px, env(safe-area-inset-bottom)); padding: 16px; display: block; max-height: calc(100dvh - 24px); }
    .cookie-banner > .cookie-actions { margin-top: 16px; }
    .cookie-banner h2, .cookie-dialog h2 { font-size: 18px; }
    .cookie-button { flex-basis: 110px; }
    .cookie-button--quiet { flex-basis: 100%; }
    .cookie-dialog { padding: 20px; }
}
