/* Consent banner and Your Privacy Choices panel. Uses the live tokens from site-next.css. */
.cc-root { font-family: var(--sans); color: var(--ink); }
.cc-banner {
  position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px;
  max-width: 560px; margin-left: auto; padding: 18px 20px;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-surface);
}
.cc-banner[hidden], .cc-panel [hidden] { display: none; }
.cc-banner p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.cc-banner a, .cc-panel a { color: var(--teal); }
.cc-banner a { white-space: nowrap; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-btn {
  flex: 1 1 0; min-width: 0; min-height: 40px; padding: 0 14px;
  background: transparent; color: var(--ink); border: 1px solid var(--teal);
  border-radius: var(--r); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.cc-btn:hover { background: var(--teal-deep); }
.cc-btn:focus-visible, .cc-switch input:focus-visible + span, .cc-close:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.cc-panel {
  width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  padding: 22px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: var(--r-surface);
}
.cc-panel h2 { margin: 0 0 8px; font-size: 20px; }
.cc-panel > p { margin: 0 0 14px; font-size: 14px; color: var(--ink-2); }
.cc-row { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 14px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; }
.cc-row strong { display: block; font-size: 15px; }
.cc-row small { display: block; font-size: 13px; color: var(--ink-2); }
.cc-switch { position: relative; flex: none; width: 44px; height: 26px; }
.cc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cc-switch span { pointer-events: none; display: block; width: 100%; height: 100%; border-radius: var(--r); background: var(--line-2); transition: background-color .2s; }
.cc-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); transition: transform .2s; }
.cc-switch input:checked + span { background: var(--teal); }
.cc-switch input:checked + span::after { transform: translateX(18px); }
.cc-switch input:disabled { cursor: not-allowed; }
.cc-switch input:disabled + span { opacity: .5; }
.cc-gpc { margin: 0 0 12px; font-size: 13px; color: var(--teal); }
.cc-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; color: var(--ink); font-size: 20px; cursor: pointer; }
.cc-close:hover { border-color: var(--teal); }
.cc-panel::backdrop { background: var(--bg); opacity: .72; }
@media (max-width: 480px) {
  .cc-banner { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; }
  /* Reserve the banner's height under the first-screen hero so its actions stay clear. */
  .cc-showing .hero { padding-bottom: calc(var(--cc-h) + 44px); }
  .cc-banner p { margin-bottom: 8px; font-size: 13px; line-height: 1.4; }
  .cc-banner .cc-actions { flex-wrap: nowrap; gap: 6px; }
  .cc-banner .cc-btn { min-height: 36px; padding: 0 8px; font-size: 13px; white-space: nowrap; }
  .cc-panel .cc-actions .cc-btn { flex: 1 1 auto; white-space: nowrap; }
}
