/* Only selected states change; unchecked controls retain their existing styling. */
input[type="checkbox"]:checked,
input[type="checkbox"]:indeterminate {
  appearance: none !important;
  display: inline-grid !important;
  place-content: center !important;
  border: 1px solid var(--fd-brand-blue-dark) !important;
  border-radius: 2px !important;
  background: var(--fd-brand-blue) !important;
  color: var(--fd-accent-ink) !important;
}

input[type="checkbox"]:checked::before,
input[type="checkbox"]:indeterminate::before {
  content: "\2713" !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  background: transparent !important;
  color: currentColor !important;
  transform: none !important;
  font-size: 0.78em !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

input[type="checkbox"]:indeterminate::before {
  content: "" !important;
  width: 0.55em !important;
  height: 2px !important;
  background: currentColor !important;
}

@media (forced-colors: active) {
  input[type="checkbox"]:checked,
  input[type="checkbox"]:indeterminate {
    forced-color-adjust: none !important;
    border-color: Highlight !important;
    background: Highlight !important;
    color: HighlightText !important;
  }
}
