/* Cookie banner and preferences. Light, calm and on brand: white card, dark grey type, hot pink for the one thing we hope you press. */
.cc-root {
  --cc-ink: #2e2e2e;
  --cc-soft: #6b6b70;
  --cc-line: rgba(46, 46, 46, 0.1);
  --cc-pink: #ff0099;
  position: fixed;
  z-index: 2147483000;
  bottom: 1.25rem;
  left: 1.25rem;
  width: min(25rem, calc(100vw - 2.5rem));
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  border: 1px solid rgba(46, 46, 46, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  color: var(--cc-ink);
  box-shadow: 0 24px 60px -12px rgba(46, 46, 46, 0.28), 0 2px 8px rgba(46, 46, 46, 0.06);
  font-family: var(--font-body, "Sequel Sans", system-ui, sans-serif);
  font-size: 0.8125rem;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.cc-root[hidden] {
  display: none;
}

.cc-root.is-in {
  opacity: 1;
  transform: none;
}

.cc-inner {
  display: grid;
  gap: 0.95rem;
  padding: 1.2rem 1.25rem 1.1rem;
}

.cc-inner[hidden] {
  display: none;
}

.cc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cc-title,
.cc-lead {
  font-family: var(--font-display, "Gilroy", system-ui, sans-serif);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.cc-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1;
}

.cc-title span,
.cc-lead span {
  color: var(--cc-pink);
}

.cc-lead {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 1.15rem;
  line-height: 1.1;
}

.cc-text {
  margin: 0;
  color: var(--cc-soft);
}

.cc-text a {
  font: inherit;
  color: var(--cc-ink);
  text-decoration: underline;
  text-decoration-color: rgba(46, 46, 46, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.cc-text a:hover {
  text-decoration-color: var(--cc-pink);
}

.cc-actions {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 0.45rem;
  align-items: center;
}

.cc-btn {
  min-height: 2.6rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-display, "Gilroy", system-ui, sans-serif);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.cc-btn:active {
  transform: scale(0.98);
}

.cc-btn:focus-visible,
.cc-link:focus-visible,
.cc-text a:focus-visible,
.cc-switch input:focus-visible + .cc-track {
  outline: 2px solid var(--cc-ink);
  outline-offset: 2px;
}

/* Reject and Accept are the same size and weight: refusing is as easy as agreeing. */
.cc-btn-accept {
  background: var(--cc-pink);
  color: #fff;
}

.cc-btn-accept:hover {
  background: #e6008a;
}

.cc-btn-reject {
  background: #ececef;
  color: var(--cc-ink);
}

.cc-btn-reject:hover {
  background: #e0e0e5;
}

.cc-btn-ghost {
  padding: 0 0.6rem;
  background: transparent;
  color: var(--cc-soft);
  text-decoration: underline;
  text-decoration-color: rgba(46, 46, 46, 0.25);
  text-underline-offset: 3px;
}

.cc-btn-ghost:hover {
  color: var(--cc-ink);
  text-decoration-color: var(--cc-pink);
}

.cc-btn-save {
  grid-column: 1 / -1;
  background: var(--cc-ink);
  color: #fff;
}

.cc-btn-save:hover {
  background: #1f1f1f;
}

.cc-link {
  padding: 0.15rem 0.25rem;
  border: 0;
  background: none;
  color: var(--cc-soft);
  font: inherit;
  font-size: 0.8125rem;
  text-decoration: underline;
  text-decoration-color: rgba(46, 46, 46, 0.25);
  text-underline-offset: 3px;
  cursor: pointer;
}

.cc-link:hover {
  color: var(--cc-ink);
  text-decoration-color: var(--cc-pink);
}

.cc-prefs {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc-prefs .cc-row:first-child {
  border-top: 0;
}

.cc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.1rem 1rem;
  align-items: center;
  padding: 0.8rem 0;
  border-top: 1px solid var(--cc-line);
}

.cc-row h3 {
  margin: 0;
  font-family: var(--font-display, "Gilroy", system-ui, sans-serif);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.cc-row p {
  grid-column: 1;
  margin: 0;
  color: var(--cc-soft);
  font-size: 0.78rem;
  line-height: 1.45;
}

.cc-switch {
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
}

.cc-switch input {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.cc-switch input:disabled {
  cursor: not-allowed;
}

.cc-track {
  display: block;
  width: 2.6rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #d9d9de;
  transition: background-color 0.25s ease;
}

.cc-track::after {
  content: "";
  position: absolute;
  top: 0.19rem;
  left: 0.19rem;
  width: 1.12rem;
  height: 1.12rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.cc-switch input:checked + .cc-track {
  background: var(--cc-pink);
}

.cc-switch input:checked + .cc-track::after {
  transform: translateX(1.1rem);
}

.cc-switch input:disabled + .cc-track {
  opacity: 0.45;
}

/* Phones: a slim sheet along the bottom edge, so it covers as little of the page as it can. */
@media (max-width: 600px) {
  .cc-root {
    right: 0.6rem;
    bottom: 0.6rem;
    left: 0.6rem;
    width: auto;
    max-height: calc(100vh - 1.2rem);
    border-radius: 20px;
  }

  .cc-inner {
    gap: 0.8rem;
    padding: 1.05rem 1.05rem 0.95rem;
  }

  .cc-lead {
    font-size: 1.05rem;
  }

  .cc-text {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .cc-btn {
    min-height: 2.5rem;
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-root,
  .cc-btn,
  .cc-track,
  .cc-track::after {
    transition: none;
  }
}

/* Button on the Cookie Policy page that reopens the preferences. */
.lg-doc .lg-consent-open {
  min-height: 2.75rem;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 999px;
  background: #2e2e2e;
  color: #fff;
  font-family: var(--font-display, "Gilroy", system-ui, sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.lg-doc .lg-consent-open:hover {
  background: #ff0099;
}

/* Desktop: a smaller, quieter card. */
@media (min-width: 601px) {
  .cc-root {
    width: min(21rem, calc(100vw - 2.5rem));
    border-radius: 18px;
  }

  .cc-inner {
    gap: 0.75rem;
    padding: 1rem 1.05rem 0.9rem;
  }

  .cc-lead {
    font-size: 1rem;
  }

  .cc-text {
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .cc-btn {
    min-height: 2.2rem;
    padding: 0 0.8rem;
    font-size: 0.76rem;
  }

  .cc-btn-ghost {
    padding: 0 0.4rem;
  }
}

/* Your choices panel: Reject and Accept share the full width, with Save underneath. */
.cc-inner[data-cc-view="prefs"] .cc-actions {
  grid-template-columns: 1fr 1fr;
}

/* Dark grey card. */
.cc-root {
  --cc-ink: #f4f4f4;
  --cc-soft: rgba(244, 244, 244, 0.72);
  --cc-line: rgba(244, 244, 244, 0.14);
  border-color: rgba(244, 244, 244, 0.08);
  background: rgba(46, 46, 46, 0.97);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cc-text a {
  text-decoration-color: rgba(244, 244, 244, 0.4);
}

.cc-btn-reject {
  background: #f4f4f4;
  color: #2e2e2e;
}

.cc-btn-reject:hover {
  background: #fff;
}

.cc-btn-ghost,
.cc-link {
  text-decoration-color: rgba(244, 244, 244, 0.35);
}

.cc-btn-save {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(244, 244, 244, 0.4);
  color: #f4f4f4;
}

.cc-btn-save:hover {
  background: rgba(244, 244, 244, 0.1);
}

.cc-track {
  background: rgba(244, 244, 244, 0.22);
}

.cc-switch input:disabled + .cc-track {
  opacity: 0.55;
}

.cc-lead,
.cc-title {
  color: #fff;
}

.cc-lead span,
.cc-title span {
  color: var(--cc-pink);
}
