/* ==========================================================
   Cookie consent dialog (public/consent.js). Self-contained,
   so it also works on remit-assessment.html, which does not
   link base.css. Accept and reject carry equal weight.
   ========================================================== */

.cc-root {
  --cc-bg: #0d0f11;
  --cc-ink: #efefe8;
  --cc-ink-2: rgba(239, 239, 232, 0.72);
  --cc-ink-3: rgba(239, 239, 232, 0.55);
  --cc-line: rgba(239, 239, 232, 0.14);
  --cc-accent: #a9dbe6;
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
.cc-root.cc-open {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}
.cc-root.cc-blocking {
  pointer-events: auto;
}
.cc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
}
.cc-blocking .cc-backdrop {
  display: block;
}

.cc {
  position: relative;
  pointer-events: auto;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  margin-bottom: 8px;
  padding: 26px 26px 22px;
  background: var(--cc-bg);
  color: var(--cc-ink);
  border: 1px solid var(--cc-line);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: cc-in 0.28s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.cc:focus {
  outline: none;
}
@keyframes cc-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cc {
    animation: none;
  }
}

.cc-kicker {
  margin: 0 0 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cc-accent);
}
.cc-title {
  margin: 0 0 10px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 300;
  font-size: 24px;
  line-height: 1.2;
  color: var(--cc-ink);
}
.cc-desc {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--cc-ink-2);
}
.cc-desc a {
  color: var(--cc-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-prefs {
  margin: 0 0 18px;
  border-top: 1px solid var(--cc-line);
}
.cc-prefs[hidden] {
  display: none;
}
.cc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--cc-line);
  cursor: pointer;
}
.cc-row-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--cc-ink-3);
}
.cc-row-text b {
  font-weight: 500;
  font-size: 14px;
  color: var(--cc-ink);
}

.cc-switch {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  position: relative;
  width: 40px;
  height: 22px;
  margin: 0;
  border-radius: 999px;
  border: 1px solid var(--cc-line);
  background: rgba(239, 239, 232, 0.08);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.cc-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cc-ink-2);
  transition: transform 0.2s, background 0.2s;
}
.cc-switch:checked {
  background: var(--cc-accent);
  border-color: var(--cc-accent);
}
.cc-switch:checked::after {
  transform: translateX(18px);
  background: #0a1518;
}
.cc-switch:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.cc-switch:focus-visible,
.cc-btn:focus-visible,
.cc-link:focus-visible,
.cc-desc a:focus-visible {
  outline: 2px solid var(--cc-accent);
  outline-offset: 2px;
}

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.cc-btn {
  flex: 1 1 140px;
  padding: 12px 20px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #0a1518;
  background: var(--cc-accent);
  border: 1px solid var(--cc-accent);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.cc-btn:hover {
  background: #d6ecf2;
  border-color: #d6ecf2;
}
.cc-link {
  flex: 0 0 auto;
  padding: 12px 8px;
  font: inherit;
  font-size: 13px;
  color: var(--cc-ink-2);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cc-link:hover {
  color: var(--cc-ink);
}

@media (max-width: 520px) {
  .cc-root.cc-open {
    padding: 0;
  }
  .cc {
    margin: 0;
    max-height: 100vh;
    border-radius: 14px 14px 0 0;
    padding: 22px 16px 18px;
  }
  .cc-btn {
    flex-basis: 100%;
  }
  .cc-link {
    width: 100%;
  }
}
