/* Cookie consent (consent.js), patterned on orestbida/cookieconsent: a non-blocking box and a preferences center.
   Self-contained so the website and Help Center share it. */
.cc-root {
  --cc-ink:#14152b; --cc-text:#4b4d63; --cc-muted:#6b6d82; --cc-line:#e6e6ef; --cc-bg:#fff; --cc-soft:#f5f6fa; --cc-soft-2:#eceef5;
  --cc-primary:#0f1235; --cc-primary-hover:#232766; --cc-accent:#365add; --cc-on:#365add; --cc-off:#a3a6b8; --cc-ok:#1d7a4a;
  --cc-radius:18px; --cc-shadow:0 30px 70px -20px rgba(15,18,53,.38), 0 4px 14px -4px rgba(15,18,53,.12);
  color:var(--cc-ink); font-family:inherit; font-size:15px; line-height:1.55; letter-spacing:normal; -webkit-font-smoothing:antialiased; text-align:left;
}
.cc-root *, .cc-root *::before, .cc-root *::after { box-sizing:border-box; }
.cc-root :focus-visible { outline:3px solid var(--cc-accent); outline-offset:2px; }
.cc-icon { width:18px; height:18px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.cc-mark { display:grid; place-items:center; width:38px; height:38px; flex:none; border-radius:12px; background:linear-gradient(135deg,#eef1ff,#f3ecff); color:var(--cc-accent); }
.cc-mark .cc-icon { width:20px; height:20px; }
.cc-title { margin:0; color:var(--cc-ink); font-size:17px; font-weight:700; line-height:1.3; letter-spacing:-.015em; }
.cc-desc { margin:0; color:var(--cc-text); font-size:14.5px; }
.cc-link { color:var(--cc-accent); font-weight:600; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; }
.cc-link:hover { color:#2847bd; }

/* Buttons: Accept all and Reject all are both primary, so neither choice is nudged. */
.cc-btn { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 18px; border:1px solid transparent; border-radius:12px; font:inherit; font-size:14.5px; font-weight:650; line-height:1.2; white-space:nowrap; cursor:pointer; transition:background-color .15s, border-color .15s, color .15s, transform .1s; }
.cc-btn:active { transform:translateY(1px); }
.cc-btn-primary { background:var(--cc-primary); color:#fff; }
.cc-btn-primary:hover { background:var(--cc-primary-hover); }
.cc-btn-secondary { border-color:var(--cc-line); background:var(--cc-soft); color:var(--cc-ink); }
.cc-btn-secondary:hover { border-color:#d3d4e2; background:var(--cc-soft-2); }
.cc-pair { display:grid; grid-template-columns:1fr 1fr; gap:8px; }

/* ---- First layer ---- */
.cc-banner { position:fixed; left:24px; bottom:24px; z-index:2147483000; width:min(26rem, calc(100% - 32px)); overflow:hidden; border:1px solid rgba(15,18,53,.08); border-radius:var(--cc-radius); background:var(--cc-bg); box-shadow:var(--cc-shadow);
  opacity:0; transform:translateY(16px) scale(.985); transition:opacity .22s ease, transform .32s cubic-bezier(.2,.8,.2,1); }
.cc-banner.is-in { opacity:1; transform:none; }
.cc-banner-body { display:grid; gap:10px; padding:22px 22px 16px; }
.cc-banner-head { display:flex; align-items:center; gap:12px; }
.cc-banner-actions { display:grid; gap:8px; padding:0 22px 20px; }
.cc-banner-foot { display:flex; flex-wrap:wrap; gap:6px 18px; padding:12px 22px; border-top:1px solid var(--cc-line); background:var(--cc-soft); }
.cc-banner-foot .cc-link { color:var(--cc-muted); font-size:13px; font-weight:500; text-decoration-color:rgba(107,109,130,.45); }
.cc-banner-foot .cc-link:hover { color:var(--cc-ink); }

/* ---- Second layer ---- */
.cc-modal { width:min(42rem, calc(100% - 32px)); max-width:none; max-height:min(46rem, calc(100svh - 32px)); padding:0; border:0; border-radius:22px; background:var(--cc-bg); box-shadow:var(--cc-shadow); overflow:hidden; }
.cc-modal[open] { display:flex; flex-direction:column; animation:cc-pop .26s cubic-bezier(.2,.8,.2,1) both; }
.cc-modal::backdrop { background:rgba(12,14,40,.5); backdrop-filter:blur(3px); animation:cc-fade .2s ease both; }
.cc-modal-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px 18px 18px 24px; border-bottom:1px solid var(--cc-line); }
.cc-modal-heading { display:flex; align-items:center; gap:12px; min-width:0; }
.cc-modal .cc-title { font-size:19px; }
.cc-close { display:grid; place-items:center; width:40px; height:40px; flex:none; border:0; border-radius:12px; background:none; color:var(--cc-muted); cursor:pointer; }
.cc-close:hover { background:var(--cc-soft); color:var(--cc-ink); }
.cc-close .cc-icon { width:20px; height:20px; }
.cc-modal-body { display:grid; gap:16px; padding:20px 24px 24px; overflow:auto; overscroll-behavior:contain; }
.cc-gpc { margin:0; padding:12px 14px; border-radius:12px; background:#eef2ff; color:#25408f; font-size:13.5px; }
.cc-cats { display:grid; gap:10px; }
.cc-cat { border:1px solid var(--cc-line); border-radius:14px; background:var(--cc-soft); transition:background-color .15s, border-color .15s; }
.cc-cat.is-open { border-color:#d9dbe8; background:#fff; }
.cc-cat-head { display:flex; align-items:center; gap:10px; padding:6px 14px 6px 6px; }
.cc-cat-toggle { display:flex; align-items:center; gap:10px; flex:1; min-width:0; min-height:48px; padding:0 10px; border:0; border-radius:10px; background:none; color:var(--cc-ink); font:inherit; font-size:15px; font-weight:650; text-align:left; cursor:pointer; }
@media (hover:hover) { .cc-cat-toggle:hover { background:rgba(15,18,53,.04); } }
.cc-chevron { color:var(--cc-muted); transition:transform .2s; }
.cc-cat-toggle[aria-expanded="true"] .cc-chevron { transform:rotate(180deg); }
.cc-cat-title { min-width:0; }
.cc-badge { flex:none; padding:3px 9px; border-radius:99px; background:var(--cc-soft-2); color:var(--cc-muted); font-size:12px; font-weight:650; white-space:nowrap; }
.cc-cat-panel { display:grid; gap:12px; padding:0 18px 18px 46px; color:var(--cc-text); font-size:14px; }
.cc-cat-panel p { margin:0; }
.cc-none { padding:10px 12px; border:1px dashed var(--cc-line); border-radius:10px; color:var(--cc-muted); font-size:13.5px; }
.cc-cookies { display:grid; border:1px solid var(--cc-line); border-radius:12px; overflow:hidden; }
.cc-cookie { padding:10px 12px; background:#fff; }
.cc-cookie + .cc-cookie { border-top:1px solid var(--cc-line); }
.cc-cookie-top { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:4px 12px; }
.cc-cookie code { color:var(--cc-ink); font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:12.5px; font-weight:650; overflow-wrap:anywhere; }
.cc-cookie-duration { color:var(--cc-muted); font-size:12.5px; white-space:nowrap; }
.cc-cookie p { margin:2px 0 0; color:var(--cc-muted); font-size:13px; }

/* Switch with an icon in the knob, as in the reference design. */
.cc-switch { position:relative; display:inline-flex; align-items:center; gap:8px; flex:none; cursor:pointer; }
.cc-switch input { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:inherit; z-index:1; }
.cc-switch-track { position:relative; width:50px; height:28px; flex:none; border-radius:99px; background:var(--cc-off); transition:background-color .2s; }
.cc-switch-knob { position:absolute; top:3px; left:3px; display:grid; place-items:center; width:22px; height:22px; border-radius:50%; background:#fff; color:var(--cc-off); box-shadow:0 1px 3px rgba(15,18,53,.3); transition:transform .22s cubic-bezier(.2,.8,.2,1), color .2s; }
.cc-switch-knob .cc-icon { position:absolute; width:13px; height:13px; stroke-width:2.4; transition:opacity .15s; }
.cc-switch .cc-on { opacity:0; }
.cc-switch input:checked + .cc-switch-track { background:var(--cc-on); }
.cc-switch input:checked + .cc-switch-track .cc-switch-knob { transform:translateX(22px); color:var(--cc-on); }
.cc-switch input:checked + .cc-switch-track .cc-on { opacity:1; }
.cc-switch input:checked + .cc-switch-track .cc-off { opacity:0; }
.cc-switch input:focus-visible + .cc-switch-track { outline:3px solid var(--cc-accent); outline-offset:2px; }
.cc-switch input:disabled { cursor:not-allowed; }
.cc-switch input:disabled:not(:checked) + .cc-switch-track { opacity:.5; }
.cc-switch.is-locked input + .cc-switch-track { background:#8b9bd9; }
.cc-switch.is-locked .cc-switch-knob { color:#6f80c9; }
.cc-switch-text { color:var(--cc-ok); font-size:12.5px; font-weight:650; white-space:nowrap; }

.cc-more { display:grid; gap:4px; padding-top:4px; }
.cc-more h3 { margin:0; color:var(--cc-ink); font-size:15px; }
.cc-more p { margin:0; color:var(--cc-text); font-size:14px; }
.cc-meta { color:var(--cc-muted)!important; font-size:12.5px!important; font-variant-numeric:tabular-nums; }
.cc-modal-foot { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; padding:16px 24px; border-top:1px solid var(--cc-line); background:var(--cc-soft); }
.cc-modal-foot .cc-pair { flex:1 1 280px; max-width:340px; }
.cc-modal-foot > .cc-btn:only-child { margin-left:auto; min-width:140px; }

@keyframes cc-pop { from { opacity:0; transform:translateY(10px) scale(.98); } }
@keyframes cc-fade { from { opacity:0; } }
@media (max-width:560px) {
  .cc-banner { left:12px; right:12px; bottom:12px; width:auto; }
  .cc-banner-body { padding:18px 18px 14px; }
  .cc-banner-actions { padding:0 18px 16px; }
  .cc-banner-foot { padding:10px 18px; }
  .cc-modal { width:100%; max-height:calc(100svh - 24px); margin:auto 0 0; border-radius:22px 22px 0 0; }
  .cc-modal-head { padding:14px 12px 14px 18px; }
  .cc-modal-body { padding:16px 18px 20px; }
  .cc-cat-panel { padding:0 14px 16px; }
  .cc-modal-foot { flex-direction:column; align-items:stretch; padding:14px 18px; }
  .cc-modal-foot .cc-pair { max-width:none; flex:none; }
  .cc-modal-foot > .cc-btn:only-child { margin-left:0; }
}
@media (prefers-reduced-motion:reduce) {
  .cc-banner, .cc-switch-track, .cc-switch-knob, .cc-chevron { transition:none; }
  .cc-modal[open], .cc-modal::backdrop { animation:none; }
}

/* Footer trigger: a button that reads like the footer's links. */
.footer-link-button, .docs-footer-button { padding:0; border:0; background:none; font:inherit; text-align:left; cursor:pointer; }
.footer nav .footer-link-button { color:#c9cbe8; font-size:14.5px; }
.footer nav .footer-link-button:hover { color:#fff; }
.docs-footer-button { color:var(--muted); font-size:inherit; text-decoration:underline; }
