/* Isolated public consent UI; native dialogs stay above the fixed banner. */
html { scroll-padding-bottom: var(--cookie-consent-space, 0px); }
.cookie-consent-banner, .cookie-consent-dialog, .cookie-policy { color: #fff; font-family: Arial, Helvetica, sans-serif; }
.cookie-consent-banner *, .cookie-consent-dialog * { box-sizing: border-box; }
.cookie-consent-banner[hidden] { display: none !important; }
.cookie-consent-banner[data-cookie-motion] { will-change: opacity, transform; }
.cookie-consent-banner {
  position: fixed; z-index: 1035; bottom: max(28px, env(safe-area-inset-bottom));
  left: max(40px, env(safe-area-inset-left)); right: max(40px, env(safe-area-inset-right));
  display: grid; grid-template-columns: 110px minmax(0, 1fr) auto 48px; align-items: center; gap: 24px;
  min-height: 136px; padding: 20px 26px; border: 2px solid #00a8ff; border-radius: 20px;
  background: radial-gradient(ellipse at 0 0, #07539a70, transparent 48%), linear-gradient(110deg, #06264f, #061f43);
  box-shadow: 0 14px 40px #0008, 0 0 26px #008cff50, inset 0 1px 0 #64baff40;
  max-height: 52vh; max-height: 52svh; overflow-y: auto; overscroll-behavior: contain;
}
.cookie-consent-icon { display: grid; place-items: center; width: 110px; min-height: 88px; border-right: 2px solid #00a8ff90; color: #54ceff; font-size: 60px; text-shadow: 0 0 20px #009dff90; padding-right: 24px; }
.cookie-consent-icon > i { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: radial-gradient(circle, #006eb866, #032b5355 70%); box-shadow: 0 0 16px #00a8ff40, inset 0 0 8px #00a8ff30; }
.cookie-consent-copy { min-width: 0; }
.cookie-consent-copy h2 { margin: 0 0 5px; font-size: 28px; font-weight: 750; line-height: 1.2; letter-spacing: 0; }
.cookie-consent-copy p { margin: 0; color: #dce9fa; font-size: 16px; line-height: 1.55; }
.cookie-consent-copy .cookie-consent-hint { margin-top: 6px; color: #a9c8e9; font-size: 12px; }
.cookie-consent-banner a, .cookie-consent-dialog a, .cookie-policy a { color: #49caff; text-underline-offset: 4px; }
.cookie-consent-banner a { white-space: nowrap; font-weight: 700; }
.cookie-consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.cookie-consent-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; margin: 0; padding: 12px 26px; border: 1px solid transparent; border-radius: 10px; color: #fff; font: 700 16px/1.3 Arial, Helvetica, sans-serif; cursor: pointer; white-space: nowrap; transition: background-color .15s, box-shadow .15s; }
.cookie-consent-actions .cookie-consent-outline { min-width: 206px; }
.cookie-consent-actions .cookie-consent-secondary { min-width: 132px; }
.cookie-consent-actions .cookie-consent-primary { min-width: 148px; }
.cookie-consent-outline { border-color: #00a8ff; background: #022549; box-shadow: inset 0 0 10px #00a8ff12; }
.cookie-consent-secondary { border-color: #7198c0; background: #244b74; }
.cookie-consent-primary { border-color: #159eff; background: linear-gradient(115deg, #009dff, #0061ff); }
.cookie-consent-button:hover { background: #0865a7; box-shadow: 0 0 14px #00a8ff30; }
.cookie-consent-primary:hover { background: #087bff; }
.cookie-consent-button:active, .cookie-consent-close:active { box-shadow: inset 0 2px 6px #0005; }
.cookie-consent-button:disabled, .cookie-consent-button:disabled:hover { cursor: not-allowed; color: #c2cfe0; border-color: #536d89; background: #294460; box-shadow: none; opacity: .65; }
.cookie-consent-close { display: inline-grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; color: #fff; background: transparent; font-size: 25px; cursor: pointer; }
.cookie-consent-banner > .cookie-consent-close { border-left: 1px solid #168bca90; border-radius: 0; }
.cookie-consent-close:hover { color: #66d2ff; background: #194b754d; }
.cookie-consent-banner :focus-visible, .cookie-consent-dialog :focus-visible, .cookie-preferences-link:focus-visible, .cookie-policy-link:focus-visible, .cookie-policy a:focus-visible { outline: 3px solid #a0e7ff; outline-offset: 4px; }
.cookie-policy-link { display: inline-flex; align-items: center; min-height: 44px; color: #91cfff; font-size: 13px; text-underline-offset: 4px; }
.cookie-preferences-link { position: fixed; z-index: 1034; left: max(40px, env(safe-area-inset-left)); bottom: max(28px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 1px solid #00a8ff; border-radius: 12px; padding: 12px 18px; color: #b8e4ff; background: #06264f; box-shadow: 0 8px 26px #0006, 0 0 14px #008cff30; font: 600 14px/1.3 Arial, Helvetica, sans-serif; cursor: pointer; }
.cookie-preferences-link[hidden] { display: none !important; }
.cookie-preferences-link:hover { color: #fff; border-color: #00a8ff; background: #0b355e; }
.cookie-consent-status { display: block; color: #b8cce5; font-size: 12px; line-height: 1.5; }
.cookie-consent-status:empty { display: none; }
.cookie-consent-dialog { width: min(620px, calc(100% - 32px)); max-width: 620px; max-height: calc(100vh - 40px); max-height: calc(100svh - 40px); margin: auto; padding: 0; overflow-y: auto; border: 1px solid #00a8ff; border-radius: 16px; background: #061f43; box-shadow: 0 24px 80px #0009, 0 0 30px #007bff30; color-scheme: dark; overscroll-behavior: contain; }
.cookie-consent-dialog::backdrop { background: #010d23ba; }
.cookie-consent-dialog-header { position: relative; padding: 26px 28px 18px; border-bottom: 1px solid #28517a; }
.cookie-consent-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #73d5ff; font-size: 12px; font-weight: 700; }
.cookie-consent-dialog-header h2 { margin: 10px 44px 10px 0; font-size: 26px; line-height: 1.2; }
.cookie-consent-dialog-header > .cookie-consent-close { position: absolute; right: 16px; top: 16px; }
.cookie-consent-dialog p { color: #b8cce5; font-size: 14px; line-height: 1.55; }
.cookie-consent-dialog-header p { margin: 0; }
.cookie-consent-categories { padding: 4px 28px 14px; }
.cookie-consent-category { display: flex; align-items: center; gap: 22px; padding: 20px 0; border-bottom: 1px solid #28517a; }
.cookie-consent-category > div:first-child { flex: 1; min-width: 0; }
.cookie-consent-category h3, .cookie-consent-category label { display: block; margin: 0; font-size: 16px; font-weight: 700; line-height: 1.4; }
.cookie-consent-category label { cursor: pointer; }
.cookie-consent-category p { margin: 6px 0 0; font-size: 13px; }
.cookie-consent-category input[role=switch] { appearance: none; flex: 0 0 46px; position: relative; width: 46px; height: 26px; margin: 0; border: 1px solid #829dbd; border-radius: 20px; background: #294663; cursor: pointer; }
.cookie-consent-category input[role=switch]::before { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.cookie-consent-category input[role=switch]:checked { border-color: #24bfff; background: #007bdf; }
.cookie-consent-category input[role=switch]:checked::before { left: 23px; }
.cookie-consent-category input[role=switch]:disabled { opacity: .75; cursor: default; }
.cookie-consent-essential { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cookie-consent-essential input[role=switch] { flex-basis: auto; }
.cookie-consent-essential span { white-space: nowrap; color: #88d9ff; font-size: 11px; }
.cookie-consent-note { margin: 14px 0 0; }
.cookie-consent-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 28px 24px; border-top: 1px solid #28517a; }
.cookie-consent-dialog-actions .cookie-consent-button { flex: 1 1 auto; min-height: 44px; padding: 11px 16px; font-size: 13px; }
.cookie-policy { max-width: 900px; margin: 0 auto; padding: 52px 24px; }
.cookie-policy h1 { margin-top: 0; font-size: clamp(30px, 5vw, 44px); }
.cookie-policy h2 { margin-top: 30px; font-size: 21px; }
.cookie-policy p, .cookie-policy li { color: #b8cce5; font-size: 16px; line-height: 1.75; }
.cookie-policy code { overflow-wrap: anywhere; color: #dce9fa; }
@media (max-width: 1400px) {
  .cookie-consent-banner { grid-template-columns: 70px minmax(0, 1fr) 44px; gap: 12px 20px; padding: 18px 22px; }
  .cookie-consent-icon { grid-row: 1 / 3; width: 70px; font-size: 42px; min-height: 90px; padding-right: 18px; }
  .cookie-consent-icon > i { width: 54px; height: 54px; }
  .cookie-consent-actions { grid-column: 2; gap: 12px; }
  .cookie-consent-actions .cookie-consent-button { min-width: 0; }
  .cookie-consent-banner > .cookie-consent-close { grid-column: 3; grid-row: 1; align-self: start; }
  .cookie-consent-copy h2 { font-size: 22px; }
  .cookie-consent-button { min-height: 44px; padding: 10px 20px; font-size: 14px; }
}
@media (max-width: 600px) {
  .cookie-preferences-link { left: max(12px, env(safe-area-inset-left)); bottom: max(12px, env(safe-area-inset-bottom)); }
  .cookie-consent-banner { left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 8px 10px; padding: 14px; }
  .cookie-consent-icon { grid-row: 1; align-self: start; width: 36px; min-height: 36px; border: 0; padding: 0; font-size: 32px; }
  .cookie-consent-icon > i { width: 36px; height: 36px; }
  .cookie-consent-copy { grid-column: 2 / 4; padding-top: 4px; }
  .cookie-consent-copy h2 { margin-right: 30px; font-size: 19px; }
  .cookie-consent-copy p { margin-left: -46px; padding-top: 6px; font-size: 13px; line-height: 1.5; }
  .cookie-consent-banner > .cookie-consent-close { position: absolute; top: 6px; right: 6px; border: 0; }
  .cookie-consent-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 8px; margin-top: 4px; }
  .cookie-consent-actions .cookie-consent-button { min-width: 0; gap: 6px; padding: 9px 7px; font-size: 12px; }
  .cookie-consent-actions .cookie-consent-outline { font-size: 11px; }
  .cookie-consent-dialog-header { padding: 22px 20px 16px; }
  .cookie-consent-categories { padding-inline: 20px; }
  .cookie-consent-dialog-actions { padding: 16px 20px 20px; }
  .cookie-consent-dialog-actions .cookie-consent-button { flex-basis: 100%; }
  .cookie-consent-category { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-consent-button { transition: none; }
}
