/* Web/Field/Radio (215:53), Web/Field/Checkbox (215:72) */

.aht-choice {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  column-gap: var(--aht-spacing-12);
}

.aht-choice__input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--aht-color-action-primary-default);
  border: 1px solid var(--aht-color-line-warm);
  cursor: pointer;
}

.aht-choice__input:focus-visible {
  outline: 2px solid var(--aht-color-border-focus);
  outline-offset: 2px;
}

.aht-choice__input:disabled {
  cursor: not-allowed;
}

/* The label is part of the target, not a caption beside it. The row's height
   comes from the label's own padding, so the whole row is clickable and the
   box stays where the box is — an overlay would take the click off the input
   and break assistive tooling that targets it directly. */
.aht-choice__label {
  padding-block: var(--aht-spacing-12);
  cursor: pointer;
}

.aht-choice__input:disabled + .aht-choice__label {
  color: var(--aht-color-text-secondary);
  cursor: not-allowed;
}

.aht-choice__hint {
  grid-column: 2;
  margin-top: var(--aht-spacing-4);
  color: var(--aht-color-text-secondary);
}
