.rating-choice {
  min-inline-size: 0;
  max-inline-size: 100%;
  border: 0;
  padding: 0;
  margin: 0;
}
.rating-choice > legend {
  max-width: 100%;
  padding: 0;
  margin: 0 0 7px;
  color: #283f3c;
  font-size: .88rem;
  font-weight: 650;
}
.rating-group-label, .rating-description {
  margin: 0 0 5px;
  color: #526762;
  font-size: .8rem;
}
.rating-options + .rating-group-label { margin-top: 12px; }
.rating-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.6rem), 1fr));
  gap: 6px;
}
.rating-option {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  gap: 7px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #b9cac5;
  border-radius: 8px;
  background: #fff;
  color: #324b44;
  font-size: .84rem;
  line-height: 1.35;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.rating-option input[type=radio] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #087364;
}
.rating-option:has(:checked) {
  background: #e4f3eb;
  border-color: #237969;
  box-shadow: inset 0 0 0 1px #237969;
  color: #164d43;
}
.rating-option:hover:has(input:enabled) { border-color: #367e70; }
.rating-option:has(:focus-visible) { outline: 3px solid #235f9a; outline-offset: 1px; }
.rating-option:has(:disabled) { cursor: default; }
.rating-mark {
  flex: none;
  color: #245c51;
  font-size: .92rem;
}
.rating-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.rating-clear {
  display: none;
  margin: 5px 0 0;
  padding: 4px 0;
  color: #365e54;
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  font: inherit;
  font-size: .8rem;
}
.rating-choice:has(input:checked) > .rating-clear { display:inline-block; }
