/* Отзывы на карточке товара */
.reviews {
  width: 100%;
  padding: 40px 0 0;
  font-family: 'Inter', sans-serif;
  color: #001233;
}

.reviews .container {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
}

.reviews__title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 500;
  line-height: 120%;
}

.reviews__empty {
  margin: 0 0 24px;
  font-size: 16px;
  color: #5A5C7E;
}

.reviews__form {
  max-width: 640px;
}

.reviews__row {
  margin-bottom: 16px;
}

.reviews__label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 500;
}

.reviews__label sup {
  color: #DF7A30;
}

.reviews__input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #C8CADB;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  color: #001233;
}

.reviews__input:focus {
  outline: none;
  border-color: #1E4995;
}

.reviews__textarea {
  height: auto;
  min-height: 120px;
  padding: 10px 14px;
  resize: vertical;
}

.reviews__input--short {
  width: 80px;
}

/* Звёзды идут в разметке от 5 к 1 и разворачиваются, чтобы закрашивать выбранную и все левее */
.reviews__stars {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
  padding: 2px 4px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.reviews__star-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.reviews__star {
  font-size: 30px;
  line-height: 1;
  color: #D5D7E5;
  cursor: pointer;
  transition: .15s color;
}

.reviews__star:hover,
.reviews__star:hover ~ .reviews__star,
.reviews__star-input:checked ~ .reviews__star {
  color: #DF7A30;
}

.reviews__star-input:focus-visible + .reviews__star {
  outline: 2px solid #1E4995;
  border-radius: 4px;
}

.reviews__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.reviews__button {
  height: 48px;
  padding: 0 32px;
  border: none;
  border-radius: 8px;
  background: #DF7A30;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s background;
}

.reviews__button:hover {
  background: #FF994F;
}

.reviews__button:disabled {
  opacity: .7;
  cursor: default;
}

.reviews__note {
  margin: 12px 0 0;
  font-size: 13px;
  color: #9A9BBE;
}

.reviews__result {
  margin-top: 12px;
  font-size: 15px;
  color: #DF7A30;
}

.reviews__result:empty {
  display: none;
}

.reviews__result--ok {
  color: #0DC143;
  font-weight: 500;
}

@media (max-width: 767px) {
  .reviews {
    padding-top: 24px;
  }

  .reviews .container {
    border-radius: 16px;
    padding: 20px 16px;
  }

  .reviews__title {
    font-size: 24px;
  }

  .reviews__button {
    width: 100%;
  }
}
