/* Preserve the established rating boxes; native radios own selection/validation. */
.add-comment .comment-rating-group {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.add-comment .comment-rating-group legend {
  display: block;
  width: auto;
  padding: 0;
  margin: 0;
  border: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.add-comment .rating-choice {
  position: relative;
}

/* Unlike visibility:hidden, this remains focusable and accessible. */
.add-comment .rating-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.add-comment label.rating {
  display: block;
  margin: 0;
  font-weight: 400;
}

.add-comment .rating-input:checked + .rating {
  border-color: #E1AE00;
}

.add-comment .rating-input:focus-visible + .rating {
  outline: 2px solid #1A4F7A;
  outline-offset: 2px;
}

@media (forced-colors: active) {
  .add-comment .rating-input:checked + .rating {
    border-color: Highlight;
  }
}
