.cookie-preferences-footer { display: flex; justify-content: center; padding: 4px 12px max(12px, env(safe-area-inset-bottom)); }
.cookie-preferences-footer[hidden] { display: none; }
.cookie-preferences { border: 0; padding: 8px 4px; min-height: 44px; background: transparent; color: #64748b;
    font: 500 12px/1.4 system-ui, sans-serif; cursor: pointer; text-underline-offset: 3px; }
.cookie-preferences:hover { color: #334155; text-decoration: underline; }
.cookie-dialog {
    position: fixed; inset: auto 0 12px; margin: 0 auto; padding: 0; width: min(820px, calc(100% - 24px));
    max-width: none; max-height: calc(100dvh - 24px); border: 1px solid #e2e8f0; border-radius: 14px;
    background: #fff; color: #0f172a; box-shadow: 0 18px 60px #0b122059; font: 14px/1.55 system-ui, sans-serif;
}
.cookie-dialog[open] { display: flex; flex-direction: column; }
.cookie-dialog::backdrop { background: #0b12208c; }
.cookie-dialog header { padding: 16px 18px; border-bottom: 1px solid #e2e8f0; background: linear-gradient(#f8fafc, #fff); flex: 0 0 auto; }
.cookie-dialog h2 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.4; }
.cookie-dialog-body { overflow: auto; overscroll-behavior: contain; padding: 18px; min-height: 0; }
.cookie-dialog p { margin: 0 0 12px; }
.cookie-dialog a { color: #1d4ed8; text-decoration: underline; }
.cookie-dialog h3 { margin: 20px 0 10px; font-size: 16px; font-weight: 750; }
.cookie-category { padding: 14px; border: 1px solid #e2e8f0; border-radius: 12px; margin-top: 10px; }
.cookie-category:first-of-type { background: #f8fafc; }
.cookie-category label { display: flex; align-items: start; gap: 10px; cursor: pointer; }
.cookie-category input { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 3px; accent-color: #2563eb; }
.cookie-category p { margin: 8px 0 0 26px; color: #334155; font-size: 13px; }
.cookie-dialog footer { display: flex; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-top: 1px solid #e2e8f0; flex: 0 0 auto; }
.cookie-dialog button { border-radius: 10px; padding: 11px 12px; min-height: 44px; font: 600 13px/1.35 system-ui, sans-serif; cursor: pointer; }
.cookie-choice { flex: 1 1 200px; background: #2563eb; color: #fff; border: 1px solid #2563eb; }
.cookie-customize { flex: 1 1 140px; color: #0f172a; background: #f1f5f9; border: 1px solid #cbd5e1; }
.cookie-dialog [hidden] { display: none !important; }
.cookie-dialog button:focus-visible, .cookie-preferences:focus-visible { outline: 3px solid #0f172a; outline-offset: 3px; }
.cookie-policy { max-width: 900px; padding-bottom: 70px; }
.cookie-policy section { margin-top: 28px; }
.cookie-policy table { font-size: 14px; }
.cookie-policy td, .cookie-policy th { vertical-align: top; }
.cookie-policy code { overflow-wrap: anywhere; }
.cover-cookie-notice { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; color: #fff; background: #102534; }
.cover-cookie-notice p { max-width: 520px; margin: 0; text-shadow: none; }
.cover-cookie-notice[hidden] { display: none; }
.cover-cookie-notice button { border: 1px solid #fff; background: #fff; color: #102534; border-radius: 10px; padding: 10px 16px; font-weight: 650; }
@media (max-width: 540px) {
    .cookie-dialog { bottom: max(8px, env(safe-area-inset-bottom)); max-height: calc(100dvh - 24px - env(safe-area-inset-bottom)); }
    .cookie-dialog header, .cookie-dialog-body { padding: 14px; }
    .cookie-dialog footer { gap: 8px; padding: 10px; }
    .cookie-dialog footer button { flex-basis: 100%; }
}
@media print { [data-cookie-consent], .cover-cookie-notice { display: none !important; } }
