.baby-reviews-widget {
  max-width: 760px;
  color: #2d2050;
  font-size: 15px;
  line-height: 1.65;
}

.baby-reviews-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.baby-reviews-title.alt-header {
  margin: 0;
  color: #2d2050;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.22;
}

.baby-reviews-write-button,
.baby-reviews-policy-link,
.baby-reviews-rating-filter {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.baby-reviews-write-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid #e2d8ee;
  border-radius: 999px;
  padding: 0 16px;
  color: #2d2050;
  background: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.baby-reviews-write-button:hover,
.baby-reviews-write-button:focus {
  border-color: #8a62c2;
  color: #2d2050;
}

.baby-reviews-average {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.baby-reviews-summary {
  display: grid;
  gap: 18px;
  border: 1px solid #eadff5;
  border-radius: 20px;
  margin: 0 0 8px;
  padding: 20px;
  background: #fff;
}

.baby-reviews-average-score {
  color: #2d2050;
  font-size: 18px;
  line-height: 1.2;
}

.baby-reviews-average-count {
  color: #6f6382;
  font-size: 13px;
}

.baby-reviews-rating-bars {
  display: grid;
  gap: 8px;
}

.baby-reviews-rating-filter {
  display: grid;
  grid-template-columns: 78px minmax(110px, 1fr) 34px;
  align-items: center;
  gap: 10px;
  width: 100%;
  color: #2d2050;
  font-size: 13px;
  text-align: left;
}

.baby-reviews-rating-filter:disabled {
  cursor: default;
  opacity: .55;
}

.baby-reviews-rating-filter.is-active .baby-reviews-rating-bar,
.baby-reviews-rating-filter:focus-visible .baby-reviews-rating-bar {
  outline: 2px solid #8a62c2;
  outline-offset: 2px;
}

.baby-reviews-rating-bar {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #efe8f7;
}

.baby-reviews-rating-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #ffd35a;
}

.baby-reviews-rating-filter-label {
  white-space: nowrap;
}

.baby-reviews-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #eadff5;
  padding-top: 14px;
}

.baby-reviews-sort {
  display: inline-block;
  min-width: 170px;
}

.baby-reviews-policy-link {
  color: #7a58af;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.baby-review-card {
  position: relative;
  border-bottom: 1px solid #ddd7e6;
  padding: 28px 118px 26px 0;
}

.baby-review-rating-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.baby-review-stars {
  display: inline-flex;
}

.baby-review-score-text {
  color: #2d2050;
  font-size: 13px;
}

.baby-review-title {
  margin: 0 0 7px;
  color: #2d2050;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.32;
}

.baby-review-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: #4f4563;
  font-size: 13px;
  line-height: 1.4;
}

.baby-review-meta strong {
  color: #2d2050;
}

.baby-review-text {
  margin: 0;
  color: #2d2050;
}

.baby-review-report-link {
  position: absolute;
  top: 30px;
  right: 0;
  color: #7a58af;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.baby-reviews-load-more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid #d8cfdf;
  border-radius: 999px;
  margin-top: 28px;
  padding: 0 18px;
  background: #fff;
  color: #2d2050;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.baby-reviews-load-more:hover,
.baby-reviews-load-more:focus {
  border-color: #8a62c2;
  color: #2d2050;
}

.baby-reviews-load-more span {
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.baby-reviews-rating-field {
  border: 0;
  margin: 0 0 15px;
  padding: 0;
}

.baby-reviews-rating-field legend {
  border: 0;
  margin-bottom: 10px;
}

.baby-reviews-rating-input:checked + .baby-reviews-rating-label,
.baby-reviews-rating-input:focus + .baby-reviews-rating-label {
  outline: 2px solid #ff9d00;
  outline-offset: 2px;
}

.baby-reviews-rating-label {
  color: #d98900;
}

.baby-reviews-modal {
  background: rgba(0, 0, 0, .45);
  overflow-x: hidden;
  overflow-y: auto;
}

.baby-reviews-modal.in {
  display: block;
}

.baby-reviews-modal-dialog-form {
  width: min(720px, calc(100% - 20px));
}

.baby-reviews-modal-open {
  overflow: hidden;
}

.baby-review-product-picker {
  border-top: 1px solid #ddd;
  padding-top: 25px;
}

.baby-review-product-picker-search label {
  display: block;
}

.baby-review-product-picker-search input[type="search"] {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
}

.baby-review-product-picker-help {
  margin-top: 8px;
  color: #666;
}

.baby-review-product-loader {
  display: flex;
  align-items: center;
  gap: 8px;
}

.baby-review-product-loader-icon {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: baby-review-product-loader-spin .8s linear infinite;
}

.baby-review-product-loader[hidden],
.baby-review-product-alert[hidden] {
  display: none;
}

@keyframes baby-review-product-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

.baby-review-product-results {
  border: 1px solid #ddd;
  margin: -5px 0 20px;
  padding: 0;
  background: #fff;
}

.baby-review-product-results li {
  border-bottom: 1px solid #eee;
  margin: 0;
}

.baby-review-product-results li:last-child {
  border-bottom: 0;
}

.baby-review-product-result {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 0;
  padding: 11px 14px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.baby-review-product-result:hover,
.baby-review-product-result:focus {
  background: #f6f6f6;
}

.baby-review-product-result span {
  color: #666;
  font-size: 13px;
}

.baby-review-product-selected {
  border: 1px solid #ddd;
  margin-bottom: 20px;
  padding: 12px 14px;
  background: #f7f7f7;
}

.baby-review-product-form {
  border-top: 1px solid #ddd;
  padding-top: 20px;
}

.baby-review-product-picker-form {
  max-width: 560px;
  margin: 0 auto;
}

.baby-review-picker-field {
  margin-bottom: 18px;
}

.baby-review-picker-label {
  display: block;
  margin-bottom: 6px;
}

.baby-review-product-rating-field {
  border: 0;
  margin: 0 0 16px;
  padding: 0;
}

.baby-review-product-rating-field legend {
  border: 0;
  margin-bottom: 8px;
}

.baby-review-picker-placeholder,
.baby-review-picker-help,
.baby-review-product-submit-help {
  color: #666;
  font-size: 13px;
}

.baby-review-picker-placeholder {
  margin: -2px 0 8px;
}

.baby-review-product-stars {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 5px;
}

.baby-review-product-star-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.baby-review-product-star-label {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0;
  background: url('../images/vtr-star-rounded-grey.svg') center / contain no-repeat;
  font-size: 0;
  cursor: pointer;
  transition: transform .15s ease;
}

.baby-review-product-star-label .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.baby-review-product-star-input:checked ~ .baby-review-product-star-label,
.baby-review-product-star-label:hover,
.baby-review-product-star-label:hover ~ .baby-review-product-star-label {
  background-image: url('../images/vtr-star-rounded-yellow.svg');
}

.baby-review-product-star-label:hover {
  transform: scale(1.06);
}

.baby-review-picker-control {
  width: 100%;
  min-height: 42px;
  border: 1px solid #777;
  border-radius: 5px;
  padding: 10px 14px;
  box-shadow: none;
}

.baby-review-picker-textarea {
  min-height: 136px;
  resize: vertical;
}

.baby-review-picker-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 5px;
  color: #666;
  font-size: 13px;
  line-height: 1.35;
}

.baby-review-picker-help {
  margin: 4px 0 0;
}

.baby-review-product-submit-help {
  margin: 22px 0 10px;
}

.baby-review-product-submit {
  width: 100%;
  border: 0;
  border-radius: 5px;
  padding: 13px 18px;
  background: #e4e4e4;
  color: #999;
  font-weight: 700;
  cursor: not-allowed;
  opacity: 1;
}

.baby-review-product-submit.is-active,
.baby-review-product-submit:not(:disabled) {
  background: #111;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 767px) {
  .baby-reviews-heading,
  .baby-reviews-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .baby-reviews-rating-filter {
    grid-template-columns: 72px minmax(90px, 1fr) 28px;
  }

  .baby-review-card {
    padding-right: 0;
  }

  .baby-review-report-link {
    position: static;
    float: right;
    margin-left: 15px;
  }
}
