/* Cookie consent. Uses tokens from site.css. */
.cc-banner {
  position: fixed; z-index: 200; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin: 0 auto;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 20px; box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
}
.cc-title { font: 800 18px/1.2 var(--font-display); font-stretch: 112%; margin: 0 0 8px; }
.cc-text { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0 0 12px; }
.cc-text a { color: var(--text); }
.cc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.cc-actions .btn { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 12px; font-size: 14px; border-color: var(--text); }
.cc-dialog {
  width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.cc-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.cc-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.cc-row .cc-text { margin: 4px 0 0; }
.cc-switch { position: relative; flex: none; width: 48px; height: 28px; margin-top: 2px; }
.cc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.cc-switch input:disabled { cursor: not-allowed; }
.cc-track { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); transition: background .15s; }
.cc-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text); transition: transform .15s; }
.cc-switch input:checked + .cc-track { background: var(--accent); border-color: var(--accent); }
.cc-switch input:checked + .cc-track::after { transform: translateX(20px); background: var(--on-accent); }
.cc-switch input:disabled + .cc-track { opacity: .6; }
.cc-switch input:focus-visible + .cc-track { outline: 3px solid var(--text); outline-offset: 3px; }
@media (max-width: 640px) {
  .cc-banner { left: 0; right: 0; bottom: 0; max-width: none; border-radius: var(--radius-card) var(--radius-card) 0 0; border-bottom: 0; padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); }
  .cc-actions { flex-direction: column; }
  .cc-actions .btn { flex: none; width: 100%; }
}
