/* Cookie banner, shared by every page.
   Sits above the bottom bar where there is one. Essential only and Accept all are equally easy. */
.cc {
  position: fixed; z-index: 60;
  left: 50%; bottom: var(--cc-bottom, calc(16px + env(safe-area-inset-bottom, 0px)));
  transform: translateX(-50%);
  width: min(560px, calc(100% - 24px));
  border-radius: 24px; padding: 20px 20px 16px;
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #1a1a1a;
  background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 1px 0 #fff, 0 18px 48px rgba(14, 20, 28, 0.18);
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1), opacity 220ms ease;
}
.cc[hidden] { display: none; }
.cc.is-out { transform: translate(-50%, 18px); opacity: 0; }
.cc h2 { font-size: 19px; letter-spacing: -0.015em; line-height: 1.2; }
.cc h2 i { font-style: normal; color: #2b8af0; }
.cc p { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: #3c4247; }
.cc p a { color: #0b62c9; text-underline-offset: 3px; }

.cc-actions { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc-btn {
  height: 46px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 15px "Archivo", ui-sans-serif, system-ui, sans-serif;
  transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1), filter 160ms ease, background-color 160ms ease;
  touch-action: manipulation; -webkit-user-select: none; user-select: none;
}
.cc-btn:active { transform: scale(0.97); }
.cc-btn.light { color: #1a1a1a; background: #fff; box-shadow: inset 0 0 0 1px rgba(17, 24, 32, 0.16); }
.cc-btn.blue { color: #fff; background: linear-gradient(rgba(30, 125, 232, 0.97), rgba(9, 95, 196, 0.97)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.cc-more {
  margin-top: 10px; width: 100%; height: 36px; border: 0; background: none; cursor: pointer;
  font: 500 14px "Archivo", ui-sans-serif, system-ui, sans-serif; color: #3c4247;
  text-decoration: underline; text-underline-offset: 3px; border-radius: 10px;
}

/* Choose what to allow */
.cc-prefs { margin-top: 14px; display: grid; gap: 8px; }
.cc-prefs[hidden] { display: none; }
.cc-row {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 16px; background: rgba(17, 24, 32, 0.04);
}
.cc-row b { font-size: 15px; }
.cc-txt { display: block; }
.cc-row small { display: block; font-size: 13px; color: #3c4247; margin-top: 2px; line-height: 1.35; }
label.cc-row { cursor: pointer; }
.cc-row .always { font-size: 13px; font-weight: 600; color: #3c4247; }
.cc-switch { position: relative; width: 48px; height: 28px; flex-shrink: 0; }
.cc-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.cc-switch .track { position: absolute; inset: 0; border-radius: 999px; background: rgba(17, 24, 32, 0.22); transition: background-color 180ms ease; }
.cc-switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
.cc-switch input:checked + .track { background: #1670d9; }
.cc-switch input:checked + .track::after { transform: translateX(20px); }
.cc-switch input:focus-visible + .track { outline: 2px solid #2b8af0; outline-offset: 2px; }

.cc :focus-visible { outline: 2px solid #2b8af0; outline-offset: 2px; }

@media (hover: hover) and (pointer: fine) {
  .cc-btn.light:hover { background: #f4f7fb; }
  .cc-btn.blue:hover { filter: brightness(1.07); }
  .cc-more:hover { color: #1a1a1a; }
}
@media (max-width: 420px) {
  .cc { padding: 16px 16px 12px; border-radius: 22px; }
  .cc p { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .cc { transition: opacity 160ms ease; }
  .cc.is-out { transform: translateX(-50%); }
}
