
.answer-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.answer-option label {
  display: flex;
  flex-grow: 1;
  align-items: center;
  margin-bottom: $spacing-xxs;
  border: 1px solid $primary;
  border-radius: 6px;
  color: $primary;
  font-size: $font-size-h5;
  cursor: pointer;
}

.answer-option .answer-letter {
  user-select: none;
  display: flex;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  border-right: 1px solid $primary;
}

.answer-option .answer-text {
  line-height: 1.2;
  user-select: none;
  flex-grow: 1;
  padding: $spacing-xs $spacing-sm;
}

.answer-option input:checked + label {
  background-color: $primary;
  color: #fff;
}

.answer-option input:checked + label .answer-letter {
  border-right-color: #fff;
}

.answer-option.is-correct label,
.answer-option.is-incorrect label {
  color: #fff;
  cursor: default;
  pointer-events: none;
}

.answer-option.is-correct label .answer-letter,
.answer-option.is-incorrect label .answer-letter {
  border-right-color: #fff;
}

.answer-option.is-correct label,
.answer-option.is-correct input:checked + label {
  background-color: $success;
  border-color: $success;
}

.answer-option.is-incorrect label,
.answer-option.is-incorrect input:checked + label {
  background-color: $danger;
  border-color: $danger;
}

.answer-option input:focus-visible + label {
  outline: 2px solid $primary;
  outline-offset: 2px;
}
