/* UI125: native checkbox state/validation; one visual tick, no click handlers. */
body.sv-check-ui input[type="checkbox"]:not([role="switch"]):not([hidden]) {
  --sv-check-ink: #24182e;
  --sv-check-on: #e5c78e;
  --sv-check-off: #21182e;
  --sv-check-border: #a38d6d;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  display: inline-grid !important;
  place-content: center !important;
  position: relative;
  vertical-align: middle;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  flex: 0 0 22px !important;
  padding: 0 !important;
  margin: 2px 0 0 !important;
  border: 1.5px solid var(--sv-check-border) !important;
  border-radius: 6px !important;
  background: var(--sv-check-off) !important;
  color: var(--sv-check-ink) !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color .12s ease, border-color .12s ease;
}
body.sv-check-ui input[type="checkbox"]:not([role="switch"]):not([hidden])::before {
  content: '' !important;
  display: block !important;
  box-sizing: border-box !important;
  position: static !important;
  width: 7px !important;
  height: 12px !important;
  margin: 0 !important;
  border: solid var(--sv-check-ink) !important;
  border-width: 0 2px 2px 0 !important;
  border-radius: 0 !important;
  background: none !important;
  clip-path: none !important;
  opacity: 0 !important;
  transform: translateY(-1px) rotate(45deg) !important;
  transition: none !important;
}
/* Old promo/quiz styles used ::after in addition to the shared ::before. */
body.sv-check-ui input[type="checkbox"]:not([role="switch"]):not([hidden])::after {
  content: none !important;
  display: none !important;
}
body.sv-check-ui input[type="checkbox"]:not([role="switch"]):not([hidden]):is(:checked,:indeterminate) {
  background: var(--sv-check-on) !important;
  border-color: var(--sv-check-on) !important;
}
body.sv-check-ui input[type="checkbox"]:not([role="switch"]):not([hidden]):checked::before {
  opacity: 1 !important;
}
body.sv-check-ui input[type="checkbox"]:not([role="switch"]):not([hidden]):indeterminate::before {
  width: 10px !important;
  height: 2px !important;
  border: 0 !important;
  background: var(--sv-check-ink) !important;
  transform: none !important;
  opacity: 1 !important;
}
body.sv-check-ui input[type="checkbox"]:not([role="switch"]):not([hidden]):focus-visible {
  outline: 2px solid var(--sv-check-on) !important;
  outline-offset: 3px !important;
}
body.sv-check-ui input[type="checkbox"]:not([role="switch"]):not([hidden]):disabled {
  opacity: .5 !important;
  cursor: not-allowed;
}
body.sv-check-ui input[type="checkbox"]:not([role="switch"]):not([hidden]):is(:user-invalid,[aria-invalid="true"]) {
  border-color: #f0a49c !important;
}
body.sv-check-ui input[type="checkbox"][hidden] { display: none !important; }

/* Labels remain native: clicking text or pressing Space toggles once. */
body.sv-check-ui label:has(> input[type="checkbox"]:not([hidden]):not([role="switch"])) {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 10px !important;
  box-sizing: border-box;
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  line-height: 1.55;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  touch-action: manipulation;
}
body.sv-check-ui label:has(> input[type="checkbox"]) > :is(span,div) { min-width: 0; }
body.sv-check-ui label:has(> input[type="checkbox"]:disabled) { cursor: not-allowed; }
body.sv-check-ui :is(.complex-checkbox-item,.sp-days label):has(> input[type="checkbox"]:checked) {
  border-color: #b89b65;
  background: #e5c78e12;
}
body.sv-check-ui .sp-days label:has(> input[type="checkbox"]) {
  border: 1px solid #594365;
  border-radius: 9px;
  padding: 9px 11px;
  align-items: center !important;
}
body.sv-check-ui .sp-days label:has(> input[type="checkbox"]:checked) { border-color: #b89b65; }
@media (hover: hover) {
  body.sv-check-ui input[type="checkbox"]:not([role="switch"]):not([hidden]):hover:not(:disabled) {
    border-color: var(--sv-check-on) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.sv-check-ui input[type="checkbox"] { transition: none !important; }
}
@media (forced-colors: active) {
  body.sv-check-ui input[type="checkbox"]:not([role="switch"]):not([hidden]) {
    --sv-check-off: Canvas;
    --sv-check-border: ButtonText;
    --sv-check-on: Highlight;
    --sv-check-ink: HighlightText;
    forced-color-adjust: none;
  }
  body.sv-check-ui input[type="checkbox"]:not([role="switch"]):not([hidden]):is(:user-invalid,[aria-invalid="true"]) {
    border-color: Mark !important;
  }
}
