/* ============================================================
   COOKIE CONSENT — GDPR banner (blocks GA + Meta Pixel until consent)
   Brand-styled (Jost, near-black card). Injected by
   scripts/cookie-consent.js. Works on light + dark pages.
   ============================================================ */
.cc-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 2000;
  width: min(430px, calc(100vw - 48px));
  background: #16161a;
  color: #f5f5f2;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  font-family: var(--font-display, "Jost", system-ui, sans-serif);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.cc-banner.is-visible { opacity: 1; transform: none; pointer-events: auto; }

.cc-banner__title { font-size: 21px; font-weight: 600; letter-spacing: -0.4px; margin: 0 0 10px; }
.cc-banner__text { font-size: 13.5px; line-height: 1.55; color: #a0a0a8; margin: 0 0 20px; }
.cc-banner__text a { color: #f5f5f2; text-decoration: underline; }

.cc-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cc-btn {
  font: inherit; font-size: 14px; font-weight: 500;
  padding: 12px 22px; border-radius: 100px; cursor: pointer;
  border: 1px solid transparent; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.cc-btn--accept { background: #f5f5f2; color: #14141a; flex: 1; min-width: 120px; }
.cc-btn--accept:hover { background: #ffffff; }
.cc-btn--reject { background: transparent; color: #f5f5f2; border-color: rgba(255, 255, 255, 0.22); }
.cc-btn--reject:hover { border-color: rgba(255, 255, 255, 0.5); }
.cc-btn--link { background: transparent; color: #a0a0a8; border: none; text-decoration: underline; padding: 12px 6px; }
.cc-btn--link:hover { color: #f5f5f2; }

/* ---- Customize panel ---- */
.cc-prefs { display: none; margin: 2px 0 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 8px; }
.cc-banner.is-prefs .cc-prefs { display: block; }
.cc-pref { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.cc-pref:last-child { border-bottom: none; }
.cc-pref__label { font-size: 14px; font-weight: 500; }
.cc-pref__desc { font-size: 12px; line-height: 1.45; color: #8a8a92; margin-top: 3px; max-width: 280px; }

/* toggle switch */
.cc-switch { position: relative; flex-shrink: 0; width: 42px; height: 24px; }
.cc-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.cc-switch__track { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.18); border-radius: 100px; transition: background 0.2s ease; }
.cc-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #f5f5f2; border-radius: 50%; transition: transform 0.2s ease; }
.cc-switch input:checked + .cc-switch__track { background: #4a8cff; }
.cc-switch input:checked + .cc-switch__track::after { transform: translateX(18px); }
.cc-switch input:disabled + .cc-switch__track { background: rgba(255, 255, 255, 0.28); cursor: not-allowed; }

/* footer "Cookie settings" link (injected) */
/* sits as its own centered line BELOW the footer row (never inside the
   space-between flex, so it can't shift the logo/social/copy) */
.cc-foot-link {
  display: block; width: -moz-fit-content; width: fit-content;
  margin: 0 auto; padding: 0 0 18px;
  background: none; border: none; cursor: pointer;
  color: #ffffff; font: inherit; font-size: 12.5px; text-decoration: underline;
  opacity: 0.55;
}
.cc-foot-link:hover { opacity: 1; }

@media (max-width: 520px) {
  .cc-banner { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 22px; }
  .cc-banner__actions { gap: 8px; }
  .cc-btn--accept { flex: 1 1 100%; }
}
