/**
 * @file
 * Selectify Radio & Checkbox: "Glide" motion.
 *
 * All style combinations come from body classes and PHP-emitted variables:
 * 2 styles (toggle, checkbox) x 2 shapes x 3 sizes, for both input types.
 *
 * Glide: the knob is one solid color and moves by `translate` only, on a
 * settling curve with no overshoot. The accent floods into the track as an
 * inset shadow (gradients cannot cross-fade). The check mark rides the knob
 * and draws in after the knob lands. Nothing scales on hover.
 *
 * Declarations carry !important because core's off-canvas reset
 * (#drupal-off-canvas-wrapper *, ::before, ::after { all: revert }) wins on
 * ID specificity otherwise.
 *
 * Filename: selectify-radio-checkbox.css
 * Website: https://www.flashwebcenter.com
 * Developer: Alaa Haddad https://www.alaahaddad.com
 */

/* Force pseudo-elements to exist in off-canvas */
#drupal-off-canvas input.selectify-checkbox[type="checkbox"]::before,
#drupal-off-canvas input.selectify-checkbox[type="checkbox"]::after,
#drupal-off-canvas input.selectify-radio[type="radio"]::before,
#drupal-off-canvas input.selectify-radio[type="radio"]::after {
  position: absolute !important;
  display: block !important;
  visibility: visible !important;
  content: "" !important;
}

/* ============================================
   Track
   ============================================ */
input.selectify-radio[type="radio"],
input.selectify-checkbox[type="checkbox"] {
  all: unset;
  position: relative !important;
  display: inline-block !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: inset 0 0 0 0 color-mix(in srgb, var(--selectify-checkbox-checked-border-color) 16%, transparent) !important;
  box-sizing: border-box !important;
  background: var(--selectify-checkbox-bg) !important;
  vertical-align: middle;
  cursor: pointer;
  transition:
    border-color 200ms ease,
    box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1),
    scale 120ms ease,
    opacity 200ms ease !important;
  flex: none !important;
  appearance: none !important;
  margin-inline-end: 8px !important;
  -webkit-tap-highlight-color: transparent;
}

input.selectify-radio[type="radio"] {
  border: var(--selectify-radio-border-width, 2px) solid color-mix(in srgb, var(--selectify-checkbox-border-color, #555) 45%, currentColor) !important;
  block-size: var(--selectify-radio-height) !important;
  inline-size: var(--selectify-radio-width) !important;
  min-block-size: var(--selectify-radio-height) !important;
  min-inline-size: var(--selectify-radio-width) !important;
  max-block-size: var(--selectify-radio-height) !important;
  max-inline-size: var(--selectify-radio-width) !important;
  border-radius: var(--selectify-radio-border-radius) !important;
}

input.selectify-checkbox[type="checkbox"] {
  border: var(--selectify-radio-border-width, 2px) solid color-mix(in srgb, var(--selectify-checkbox-border-color, #555) 45%, currentColor) !important;
  block-size: var(--selectify-checkbox-height) !important;
  inline-size: var(--selectify-checkbox-width) !important;
  min-block-size: var(--selectify-checkbox-height) !important;
  min-inline-size: var(--selectify-checkbox-width) !important;
  max-block-size: var(--selectify-checkbox-height) !important;
  max-inline-size: var(--selectify-checkbox-width) !important;
  border-radius: var(--selectify-checkbox-border-radius) !important;
}

/* Checked: the accent floods in from the edges. */
input.selectify-radio[type="radio"]:checked,
input.selectify-checkbox[type="checkbox"]:checked {
  border-color: color-mix(in srgb, var(--selectify-checkbox-checked-border-color) 70%, currentcolor) !important;
  box-shadow: inset 0 0 0 2rem color-mix(in srgb, var(--selectify-checkbox-checked-border-color) 16%, transparent) !important;
  background: var(--selectify-checkbox-checked-bg) !important;
}

/* Hover: the line firms up. No movement. */
input.selectify-radio[type="radio"]:hover:not(:checked, :disabled, [aria-invalid="true"]),
input.selectify-checkbox[type="checkbox"]:hover:not(:checked, :disabled, [aria-invalid="true"]) {
  border-color: color-mix(in srgb, var(--selectify-checkbox-hover-border-color) 60%, currentcolor) !important;
  background: var(--selectify-checkbox-hover-bg) !important;
}

/* Pressed while unchecked. */
input.selectify-radio[type="radio"]:active:not(:checked, :disabled, [aria-invalid="true"]),
input.selectify-checkbox[type="checkbox"]:active:not(:checked, :disabled, [aria-invalid="true"]) {
  border-color: color-mix(in srgb, var(--selectify-checkbox-active-border-color) 70%, currentcolor) !important;
  background: var(--selectify-checkbox-active-bg) !important;
}

/* ============================================
   Knob (toggle style): solid, glides by translate only
   ============================================ */
input.selectify-radio[type="radio"]::before,
input.selectify-checkbox[type="checkbox"]::before {
  position: absolute !important;
  z-index: 1;
  display: block !important;
  border: none !important;
  box-shadow: 0 1px 2px color-mix(in srgb, currentcolor 30%, transparent) !important;
  background: color-mix(in srgb, var(--selectify-checkbox-border-color) 45%, currentcolor) !important;
  transform: none !important;
  clip-path: none !important;
  content: "" !important;
  mask-image: none !important;
  inset-block: 0 auto !important;
  inset-inline: 0 auto !important;
  transform-origin: left center !important;
  scale: 1 1 !important;
  will-change: translate, scale;
}

input.selectify-radio[type="radio"]::before {
  margin: var(--selectify-radio-circle-margin) !important;
  inline-size: var(--selectify-radio-circle-size) !important;
  block-size: var(--selectify-radio-circle-size) !important;
  border-radius: var(--selectify-radio-circle-radius) !important;
  translate: var(--selectify-radio-circle-translate-unchecked) 0 !important;
  transition:
    translate var(--selectify-radio-transition-speed) cubic-bezier(0.22, 1, 0.36, 1),
    scale var(--selectify-radio-transition-speed) cubic-bezier(0.22, 1, 0.36, 1),
    background-color 200ms ease !important;
}

input.selectify-checkbox[type="checkbox"]::before {
  margin: var(--selectify-checkbox-circle-margin) !important;
  inline-size: var(--selectify-checkbox-circle-size) !important;
  block-size: var(--selectify-checkbox-circle-size) !important;
  border-radius: var(--selectify-checkbox-circle-radius) !important;
  translate: var(--selectify-checkbox-circle-translate-unchecked) 0 !important;
  transition:
    translate var(--selectify-checkbox-transition-speed) cubic-bezier(0.22, 1, 0.36, 1),
    scale var(--selectify-checkbox-transition-speed) cubic-bezier(0.22, 1, 0.36, 1),
    background-color 200ms ease !important;
}

input.selectify-radio[type="radio"]:checked::before,
input.selectify-checkbox[type="checkbox"]:checked::before {
  background: color-mix(in srgb, var(--selectify-checkbox-checked-border-color) 70%, currentcolor) !important;
  transform-origin: right center !important;
}

input.selectify-radio[type="radio"]:checked::before {
  translate: var(--selectify-radio-circle-translate-checked) 0 !important;
}

input.selectify-checkbox[type="checkbox"]:checked::before {
  translate: var(--selectify-checkbox-circle-translate-checked) 0 !important;
}

/* Stretch that settles: the knob widens toward its travel while pressed. */
input.selectify-radio[type="radio"]:active::before {
  scale: 1.22 1 !important;
  transition-duration: var(--selectify-radio-transition-speed), 120ms, 200ms !important;
}

input.selectify-checkbox[type="checkbox"]:active::before {
  scale: 1.22 1 !important;
  transition-duration: var(--selectify-checkbox-transition-speed), 120ms, 200ms !important;
}

html[dir="rtl"] input.selectify-radio[type="radio"]::before,
html[dir="rtl"] input.selectify-checkbox[type="checkbox"]::before {
  transform-origin: right center !important;
}

html[dir="rtl"] input.selectify-radio[type="radio"]:checked::before,
html[dir="rtl"] input.selectify-checkbox[type="checkbox"]:checked::before {
  transform-origin: left center !important;
}

html[dir="rtl"] input.selectify-radio[type="radio"]::before {
  translate: calc(-1 * var(--selectify-radio-circle-translate-unchecked)) 0 !important;
}

html[dir="rtl"] input.selectify-checkbox[type="checkbox"]::before {
  translate: calc(-1 * var(--selectify-checkbox-circle-translate-unchecked)) 0 !important;
}

html[dir="rtl"] input.selectify-radio[type="radio"]:checked::before {
  translate: calc(-1 * var(--selectify-radio-circle-translate-checked)) 0 !important;
}

html[dir="rtl"] input.selectify-checkbox[type="checkbox"]:checked::before {
  translate: calc(-1 * var(--selectify-checkbox-circle-translate-checked)) 0 !important;
}

/* ============================================
   Check mark (toggle style): rides the knob, draws in after it lands
   ============================================ */
input.selectify-radio[type="radio"]::after,
input.selectify-checkbox[type="checkbox"]::after {
  position: absolute !important;
  z-index: 2;
  display: block !important;
  background: var(--selectify-checkbox-bg) !important;
  opacity: 0 !important;
  transform: none !important;
  pointer-events: none;
  content: "" !important;
  inset-block-start: 50% !important;
  inset-inline-end: auto !important;
  scale: 1 !important;
}

input.selectify-radio[type="radio"]::after {
  inline-size: var(--selectify-radio-icon-size) !important;
  block-size: var(--selectify-radio-icon-size) !important;
  inset-inline-start: calc(var(--selectify-radio-circle-margin) + (var(--selectify-radio-circle-size) - var(--selectify-radio-icon-size)) / 2) !important;
  translate: var(--selectify-radio-circle-translate-unchecked) -50% !important;
  transition:
    translate var(--selectify-radio-transition-speed) cubic-bezier(0.22, 1, 0.36, 1),
    opacity 90ms ease,
    clip-path 0s linear 90ms !important;
}

input.selectify-checkbox[type="checkbox"]::after {
  inline-size: var(--selectify-checkbox-icon-size) !important;
  block-size: var(--selectify-checkbox-icon-size) !important;
  inset-inline-start: calc(var(--selectify-checkbox-circle-margin) + (var(--selectify-checkbox-circle-size) - var(--selectify-checkbox-icon-size)) / 2) !important;
  translate: var(--selectify-checkbox-circle-translate-unchecked) -50% !important;
  transition:
    translate var(--selectify-checkbox-transition-speed) cubic-bezier(0.22, 1, 0.36, 1),
    opacity 90ms ease,
    clip-path 0s linear 90ms !important;
}

input.selectify-radio[type="radio"]:checked::after,
input.selectify-checkbox[type="checkbox"]:checked::after {
  opacity: 1 !important;
}

input.selectify-radio[type="radio"]:checked::after {
  translate: var(--selectify-radio-circle-translate-checked) -50% !important;
  transition:
    translate var(--selectify-radio-transition-speed) cubic-bezier(0.22, 1, 0.36, 1),
    opacity 120ms ease 150ms,
    clip-path 200ms cubic-bezier(0.65, 0, 0.35, 1) 150ms !important;
}

input.selectify-checkbox[type="checkbox"]:checked::after {
  translate: var(--selectify-checkbox-circle-translate-checked) -50% !important;
  transition:
    translate var(--selectify-checkbox-transition-speed) cubic-bezier(0.22, 1, 0.36, 1),
    opacity 120ms ease 150ms,
    clip-path 200ms cubic-bezier(0.65, 0, 0.35, 1) 150ms !important;
}

html[dir="rtl"] input.selectify-radio[type="radio"]::after {
  translate: calc(-1 * var(--selectify-radio-circle-translate-unchecked)) -50% !important;
}

html[dir="rtl"] input.selectify-checkbox[type="checkbox"]::after {
  translate: calc(-1 * var(--selectify-checkbox-circle-translate-unchecked)) -50% !important;
}

html[dir="rtl"] input.selectify-radio[type="radio"]:checked::after {
  translate: calc(-1 * var(--selectify-radio-circle-translate-checked)) -50% !important;
}

html[dir="rtl"] input.selectify-checkbox[type="checkbox"]:checked::after {
  translate: calc(-1 * var(--selectify-checkbox-circle-translate-checked)) -50% !important;
}

/*
 * Mark shape and draw-in. The class is repeated twice on purpose: the Claro
 * and Gin companion files (css/claro/selectify-claro.css:66,
 * css/gin/selectify-gin-base.css:28) reset the mark's mask and clip-path with
 * !important at two classes plus .form-boolean, and load later; at equal
 * weight they won and a checked control drew a plain square over its knob.
 */
input.selectify-radio.selectify-radio.selectify-radio[type="radio"]::after,
input.selectify-checkbox.selectify-checkbox.selectify-checkbox[type="checkbox"]::after {
  clip-path: inset(0 100% 0 0) !important;
  mask: url("../icons/check.svg") center / contain no-repeat !important;
}

html[dir="rtl"] input.selectify-radio.selectify-radio.selectify-radio[type="radio"]::after,
html[dir="rtl"] input.selectify-checkbox.selectify-checkbox.selectify-checkbox[type="checkbox"]::after {
  clip-path: inset(0 0 0 100%) !important;
}

input.selectify-radio.selectify-radio.selectify-radio[type="radio"]:checked::after,
input.selectify-checkbox.selectify-checkbox.selectify-checkbox[type="checkbox"]:checked::after {
  clip-path: inset(0) !important;
}

/* ============================================
   Focus: ring plus soft halo, flood kept
   ============================================ */
input.selectify-radio[type="radio"]:focus,
input.selectify-checkbox[type="checkbox"]:focus {
  outline: none !important;
}

input.selectify-radio[type="radio"]:focus-visible,
input.selectify-checkbox[type="checkbox"]:focus-visible {
  outline: 2px solid var(--selectify-checkbox-focus, color-mix(in srgb, var(--selectify-checkbox-checked-border-color) 65%, currentColor)) !important;
  outline-offset: 2px !important;
  box-shadow:
    inset 0 0 0 0 color-mix(in srgb, var(--selectify-checkbox-checked-border-color) 16%, transparent),
    0 0 0 6px color-mix(in srgb, var(--selectify-checkbox-focus, color-mix(in srgb, var(--selectify-checkbox-checked-border-color) 65%, currentColor)) 22%, transparent) !important;
}

input.selectify-radio[type="radio"]:checked:focus-visible,
input.selectify-checkbox[type="checkbox"]:checked:focus-visible {
  box-shadow:
    inset 0 0 0 2rem color-mix(in srgb, var(--selectify-checkbox-checked-border-color) 16%, transparent),
    0 0 0 6px color-mix(in srgb, var(--selectify-checkbox-focus, color-mix(in srgb, var(--selectify-checkbox-checked-border-color) 65%, currentColor)) 22%, transparent) !important;
}

/* ============================================
   Disabled, indeterminate, invalid
   ============================================ */
input.selectify-radio[type="radio"]:disabled,
input.selectify-checkbox[type="checkbox"]:disabled {
  border-style: dashed !important;
  border-color: var(--selectify-checkbox-disabled-border-color) !important;
  background: var(--selectify-checkbox-disabled-bg) !important;
  cursor: not-allowed;
  opacity: 0.5 !important;
}

input.selectify-radio[type="radio"]:disabled::before,
input.selectify-checkbox[type="checkbox"]:disabled::before {
  box-shadow: none !important;
  background: var(--selectify-checkbox-disabled-circle) !important;
}

input.selectify-radio[type="radio"]:disabled:active::before,
input.selectify-checkbox[type="checkbox"]:disabled:active::before {
  scale: 1 1 !important;
}

input.selectify-checkbox[type="checkbox"]:indeterminate {
  border-color: var(--selectify-checkbox-indeterminate-border-color) !important;
  background: var(--selectify-checkbox-indeterminate-bg) !important;
}

input.selectify-checkbox[type="checkbox"]:indeterminate::before {
  opacity: 0 !important;
}

input.selectify-checkbox.selectify-checkbox.selectify-checkbox[type="checkbox"]:indeterminate::after {
  inline-size: 50% !important;
  block-size: 2px !important;
  border-radius: 2px !important;
  background: color-mix(in srgb, var(--selectify-checkbox-indeterminate-bar) 60%, currentcolor) !important;
  opacity: 1 !important;
  clip-path: none !important;
  mask: none !important;
  inset-inline-start: 50% !important;
  translate: -50% -50% !important;
}

html[dir="rtl"] input.selectify-checkbox.selectify-checkbox.selectify-checkbox[type="checkbox"]:indeterminate::after {
  translate: 50% -50% !important;
}

input.selectify-radio[type="radio"][aria-invalid="true"],
input.selectify-checkbox[type="checkbox"][aria-invalid="true"] {
  border-color: var(--selectify-checkbox-invalid-border-color) !important;
  background: var(--selectify-checkbox-invalid-bg) !important;
}

/* The focus ring replaces the invalid outline while focused. */
input.selectify-radio[type="radio"][aria-invalid="true"]:not(:focus-visible),
input.selectify-checkbox[type="checkbox"][aria-invalid="true"]:not(:focus-visible) {
  outline: 1px solid var(--selectify-checkbox-invalid-border-color) !important;
  outline-offset: 0 !important;
}

/* ============================================
   Traditional checkbox style (body classes from SelectifyStyleService).
   The style prefix is written on EVERY selector of each list.
   ============================================ */

/* No knob. */
.selectify-radio-checkbox-circle-small input.selectify-radio[type="radio"]::before,
.selectify-radio-checkbox-circle-medium input.selectify-radio[type="radio"]::before,
.selectify-radio-checkbox-circle-large input.selectify-radio[type="radio"]::before,
.selectify-radio-checkbox-square-small input.selectify-radio[type="radio"]::before,
.selectify-radio-checkbox-square-medium input.selectify-radio[type="radio"]::before,
.selectify-radio-checkbox-square-large input.selectify-radio[type="radio"]::before,
.selectify-checkbox-checkbox-circle-small input.selectify-checkbox[type="checkbox"]::before,
.selectify-checkbox-checkbox-circle-medium input.selectify-checkbox[type="checkbox"]::before,
.selectify-checkbox-checkbox-circle-large input.selectify-checkbox[type="checkbox"]::before,
.selectify-checkbox-checkbox-square-small input.selectify-checkbox[type="checkbox"]::before,
.selectify-checkbox-checkbox-square-medium input.selectify-checkbox[type="checkbox"]::before,
.selectify-checkbox-checkbox-square-large input.selectify-checkbox[type="checkbox"]::before {
  display: none !important;
}

/* Mark centered in the box, in the derived check-mark color. */
.selectify-radio-checkbox-circle-small input.selectify-radio[type="radio"]::after,
.selectify-radio-checkbox-circle-medium input.selectify-radio[type="radio"]::after,
.selectify-radio-checkbox-circle-large input.selectify-radio[type="radio"]::after,
.selectify-radio-checkbox-square-small input.selectify-radio[type="radio"]::after,
.selectify-radio-checkbox-square-medium input.selectify-radio[type="radio"]::after,
.selectify-radio-checkbox-square-large input.selectify-radio[type="radio"]::after,
.selectify-checkbox-checkbox-circle-small input.selectify-checkbox[type="checkbox"]::after,
.selectify-checkbox-checkbox-circle-medium input.selectify-checkbox[type="checkbox"]::after,
.selectify-checkbox-checkbox-circle-large input.selectify-checkbox[type="checkbox"]::after,
.selectify-checkbox-checkbox-square-small input.selectify-checkbox[type="checkbox"]::after,
.selectify-checkbox-checkbox-square-medium input.selectify-checkbox[type="checkbox"]::after,
.selectify-checkbox-checkbox-square-large input.selectify-checkbox[type="checkbox"]::after {
  background: color-mix(in srgb, var(--selectify-checkbox-checked-border-color) 30%, currentcolor) !important;
  inset-inline-start: 50% !important;
  translate: -50% -50% !important;
  transition:
    opacity 90ms ease,
    clip-path 0s linear 90ms !important;
}

.selectify-radio-checkbox-circle-small input.selectify-radio[type="radio"]:checked::after,
.selectify-radio-checkbox-circle-medium input.selectify-radio[type="radio"]:checked::after,
.selectify-radio-checkbox-circle-large input.selectify-radio[type="radio"]:checked::after,
.selectify-radio-checkbox-square-small input.selectify-radio[type="radio"]:checked::after,
.selectify-radio-checkbox-square-medium input.selectify-radio[type="radio"]:checked::after,
.selectify-radio-checkbox-square-large input.selectify-radio[type="radio"]:checked::after,
.selectify-checkbox-checkbox-circle-small input.selectify-checkbox[type="checkbox"]:checked::after,
.selectify-checkbox-checkbox-circle-medium input.selectify-checkbox[type="checkbox"]:checked::after,
.selectify-checkbox-checkbox-circle-large input.selectify-checkbox[type="checkbox"]:checked::after,
.selectify-checkbox-checkbox-square-small input.selectify-checkbox[type="checkbox"]:checked::after,
.selectify-checkbox-checkbox-square-medium input.selectify-checkbox[type="checkbox"]:checked::after,
.selectify-checkbox-checkbox-square-large input.selectify-checkbox[type="checkbox"]:checked::after {
  translate: -50% -50% !important;
  transition:
    opacity 100ms ease 60ms,
    clip-path 220ms cubic-bezier(0.65, 0, 0.35, 1) 60ms !important;
}

html[dir="rtl"] .selectify-radio-checkbox-circle-small input.selectify-radio[type="radio"]::after,
html[dir="rtl"] .selectify-radio-checkbox-circle-medium input.selectify-radio[type="radio"]::after,
html[dir="rtl"] .selectify-radio-checkbox-circle-large input.selectify-radio[type="radio"]::after,
html[dir="rtl"] .selectify-radio-checkbox-square-small input.selectify-radio[type="radio"]::after,
html[dir="rtl"] .selectify-radio-checkbox-square-medium input.selectify-radio[type="radio"]::after,
html[dir="rtl"] .selectify-radio-checkbox-square-large input.selectify-radio[type="radio"]::after,
html[dir="rtl"] .selectify-checkbox-checkbox-circle-small input.selectify-checkbox[type="checkbox"]::after,
html[dir="rtl"] .selectify-checkbox-checkbox-circle-medium input.selectify-checkbox[type="checkbox"]::after,
html[dir="rtl"] .selectify-checkbox-checkbox-circle-large input.selectify-checkbox[type="checkbox"]::after,
html[dir="rtl"] .selectify-checkbox-checkbox-square-small input.selectify-checkbox[type="checkbox"]::after,
html[dir="rtl"] .selectify-checkbox-checkbox-square-medium input.selectify-checkbox[type="checkbox"]::after,
html[dir="rtl"] .selectify-checkbox-checkbox-square-large input.selectify-checkbox[type="checkbox"]::after {
  translate: 50% -50% !important;
}

/* Press: the whole box gives a little. */
.selectify-radio-checkbox-circle-small input.selectify-radio[type="radio"]:active:not(:disabled),
.selectify-radio-checkbox-circle-medium input.selectify-radio[type="radio"]:active:not(:disabled),
.selectify-radio-checkbox-circle-large input.selectify-radio[type="radio"]:active:not(:disabled),
.selectify-radio-checkbox-square-small input.selectify-radio[type="radio"]:active:not(:disabled),
.selectify-radio-checkbox-square-medium input.selectify-radio[type="radio"]:active:not(:disabled),
.selectify-radio-checkbox-square-large input.selectify-radio[type="radio"]:active:not(:disabled),
.selectify-checkbox-checkbox-circle-small input.selectify-checkbox[type="checkbox"]:active:not(:disabled),
.selectify-checkbox-checkbox-circle-medium input.selectify-checkbox[type="checkbox"]:active:not(:disabled),
.selectify-checkbox-checkbox-circle-large input.selectify-checkbox[type="checkbox"]:active:not(:disabled),
.selectify-checkbox-checkbox-square-small input.selectify-checkbox[type="checkbox"]:active:not(:disabled),
.selectify-checkbox-checkbox-square-medium input.selectify-checkbox[type="checkbox"]:active:not(:disabled),
.selectify-checkbox-checkbox-square-large input.selectify-checkbox[type="checkbox"]:active:not(:disabled) {
  scale: 0.92 !important;
}

/* ============================================
   24px target: the label is part of the row.
   ============================================ */
.form-item:has(> input.selectify-radio[type="radio"]),
.form-item:has(> input.selectify-checkbox[type="checkbox"]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-block-size: 1.5rem;
}

.form-item:has(> input.selectify-radio[type="radio"]) > .description,
.form-item:has(> input.selectify-checkbox[type="checkbox"]) > .description {
  flex-basis: 100%;
}

/* ============================================
   Accessibility layers
   ============================================ */
@media (forced-colors: active) {
  input.selectify-radio[type="radio"],
  input.selectify-checkbox[type="checkbox"] {
    border-color: CanvasText !important;
    box-shadow: none !important;
    background: Canvas !important;
    forced-color-adjust: none;
  }

  input.selectify-radio[type="radio"]:hover:not(:checked, :disabled, [aria-invalid="true"]),
  input.selectify-checkbox[type="checkbox"]:hover:not(:checked, :disabled, [aria-invalid="true"]),
  input.selectify-radio[type="radio"]:active:not(:checked, :disabled, [aria-invalid="true"]),
  input.selectify-checkbox[type="checkbox"]:active:not(:checked, :disabled, [aria-invalid="true"]) {
    border-color: Highlight !important;
    background: Canvas !important;
  }

  input.selectify-radio[type="radio"]:checked,
  input.selectify-checkbox[type="checkbox"]:checked {
    border-color: Highlight !important;
    background: Highlight !important;
  }

  input.selectify-radio[type="radio"]:disabled,
  input.selectify-checkbox[type="checkbox"]:disabled {
    border-color: GrayText !important;
    background: Canvas !important;
  }

  input.selectify-checkbox[type="checkbox"]:indeterminate,
  input.selectify-radio[type="radio"][aria-invalid="true"],
  input.selectify-checkbox[type="checkbox"][aria-invalid="true"] {
    border-color: CanvasText !important;
    background: Canvas !important;
  }

  input.selectify-radio[type="radio"][aria-invalid="true"]:not(:focus-visible),
  input.selectify-checkbox[type="checkbox"][aria-invalid="true"]:not(:focus-visible) {
    outline-color: CanvasText !important;
  }

  input.selectify-radio[type="radio"]::before,
  input.selectify-checkbox[type="checkbox"]::before,
  input.selectify-radio[type="radio"]:checked::before,
  input.selectify-checkbox[type="checkbox"]:checked::before,
  input.selectify-radio[type="radio"]:disabled::before,
  input.selectify-checkbox[type="checkbox"]:disabled::before {
    box-shadow: none !important;
    background: CanvasText !important;
  }

  input.selectify-radio.selectify-radio[type="radio"]:checked::after,
  input.selectify-checkbox.selectify-checkbox[type="checkbox"]:checked::after {
    background: HighlightText !important;
  }

  input.selectify-checkbox.selectify-checkbox[type="checkbox"]:indeterminate::after {
    background: CanvasText !important;
  }

  input.selectify-radio[type="radio"]:focus-visible,
  input.selectify-checkbox[type="checkbox"]:focus-visible,
  input.selectify-radio[type="radio"]:checked:focus-visible,
  input.selectify-checkbox[type="checkbox"]:checked:focus-visible {
    outline: 2px solid Highlight !important;
    box-shadow: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  input.selectify-radio[type="radio"],
  input.selectify-checkbox[type="checkbox"],
  input.selectify-radio[type="radio"]::before,
  input.selectify-checkbox[type="checkbox"]::before,
  input.selectify-radio[type="radio"]::after,
  input.selectify-checkbox[type="checkbox"]::after,
  input.selectify-radio[type="radio"]:checked::after,
  input.selectify-checkbox[type="checkbox"]:checked::after,
  .selectify-radio-checkbox-circle-small input.selectify-radio[type="radio"]::after,
  .selectify-radio-checkbox-circle-medium input.selectify-radio[type="radio"]::after,
  .selectify-radio-checkbox-circle-large input.selectify-radio[type="radio"]::after,
  .selectify-radio-checkbox-square-small input.selectify-radio[type="radio"]::after,
  .selectify-radio-checkbox-square-medium input.selectify-radio[type="radio"]::after,
  .selectify-radio-checkbox-square-large input.selectify-radio[type="radio"]::after,
  .selectify-checkbox-checkbox-circle-small input.selectify-checkbox[type="checkbox"]::after,
  .selectify-checkbox-checkbox-circle-medium input.selectify-checkbox[type="checkbox"]::after,
  .selectify-checkbox-checkbox-circle-large input.selectify-checkbox[type="checkbox"]::after,
  .selectify-checkbox-checkbox-square-small input.selectify-checkbox[type="checkbox"]::after,
  .selectify-checkbox-checkbox-square-medium input.selectify-checkbox[type="checkbox"]::after,
  .selectify-checkbox-checkbox-square-large input.selectify-checkbox[type="checkbox"]::after,
  .selectify-radio-checkbox-circle-small input.selectify-radio[type="radio"]:checked::after,
  .selectify-radio-checkbox-circle-medium input.selectify-radio[type="radio"]:checked::after,
  .selectify-radio-checkbox-circle-large input.selectify-radio[type="radio"]:checked::after,
  .selectify-radio-checkbox-square-small input.selectify-radio[type="radio"]:checked::after,
  .selectify-radio-checkbox-square-medium input.selectify-radio[type="radio"]:checked::after,
  .selectify-radio-checkbox-square-large input.selectify-radio[type="radio"]:checked::after,
  .selectify-checkbox-checkbox-circle-small input.selectify-checkbox[type="checkbox"]:checked::after,
  .selectify-checkbox-checkbox-circle-medium input.selectify-checkbox[type="checkbox"]:checked::after,
  .selectify-checkbox-checkbox-circle-large input.selectify-checkbox[type="checkbox"]:checked::after,
  .selectify-checkbox-checkbox-square-small input.selectify-checkbox[type="checkbox"]:checked::after,
  .selectify-checkbox-checkbox-square-medium input.selectify-checkbox[type="checkbox"]:checked::after,
  .selectify-checkbox-checkbox-square-large input.selectify-checkbox[type="checkbox"]:checked::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  input.selectify-radio[type="radio"]:active::before,
  input.selectify-checkbox[type="checkbox"]:active::before {
    scale: 1 1 !important;
    transition-duration: 0.01ms !important;
  }

  .selectify-radio-checkbox-circle-small input.selectify-radio[type="radio"]:active:not(:disabled),
  .selectify-radio-checkbox-circle-medium input.selectify-radio[type="radio"]:active:not(:disabled),
  .selectify-radio-checkbox-circle-large input.selectify-radio[type="radio"]:active:not(:disabled),
  .selectify-radio-checkbox-square-small input.selectify-radio[type="radio"]:active:not(:disabled),
  .selectify-radio-checkbox-square-medium input.selectify-radio[type="radio"]:active:not(:disabled),
  .selectify-radio-checkbox-square-large input.selectify-radio[type="radio"]:active:not(:disabled),
  .selectify-checkbox-checkbox-circle-small input.selectify-checkbox[type="checkbox"]:active:not(:disabled),
  .selectify-checkbox-checkbox-circle-medium input.selectify-checkbox[type="checkbox"]:active:not(:disabled),
  .selectify-checkbox-checkbox-circle-large input.selectify-checkbox[type="checkbox"]:active:not(:disabled),
  .selectify-checkbox-checkbox-square-small input.selectify-checkbox[type="checkbox"]:active:not(:disabled),
  .selectify-checkbox-checkbox-square-medium input.selectify-checkbox[type="checkbox"]:active:not(:disabled),
  .selectify-checkbox-checkbox-square-large input.selectify-checkbox[type="checkbox"]:active:not(:disabled) {
    scale: 1 !important;
  }
}
