/* ============================================================================
   consent.css: styling for the preferences control on /your-privacy-choices.
   Loaded only by templates/legal/privacy-choices.html, so it adds nothing to
   any other page's critical path.

   Design-system tokens only (brand.css). No hard-coded colors, spacing or
   radii, so a brand change carries through here without an edit.
   ========================================================================== */

.consent-choice {
  margin: var(--space-8) 0;
  padding: var(--space-6);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
}

.consent-choice > legend {
  padding: 0 var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--c-ink);
}

.consent-choice__current {
  margin: 0 0 var(--space-5);
  color: var(--c-muted);
}

.consent-choice__current strong {
  color: var(--c-ink);
}

/* The saved state is the one thing a visitor reads to decide whether the
   control worked, so it gets the accent rather than body color. */
.consent-choice__current strong[data-consent-state="denied"] {
  color: var(--c-primary);
}

.consent-choice__option {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  cursor: pointer;
  line-height: var(--leading-body);
}

.consent-choice__option:hover,
.consent-choice__option:focus-within {
  border-color: var(--c-primary);
}

/* Radios are left as native controls on purpose: a custom-drawn radio is one
   more thing that can break keyboard and screen-reader access on a page whose
   entire job is to let somebody exercise a right. */
.consent-choice__option input[type="radio"] {
  margin-top: 0.25rem;
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--c-primary);
}

.consent-choice__saved {
  margin: var(--space-4) 0 0;
  color: var(--c-primary);
  font-weight: 600;
}

.consent-choice__saved[hidden] {
  display: none;
}
