/* Review summaries and full product reviews; no scripts or tracking required. */
.product-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.6;
}
.product-rating:hover,
.product-rating:focus-visible {
  text-decoration: underline;
}
.rating-stars {
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: transparent;
  background: linear-gradient(90deg, #ffd04b var(--rating-fill), #82909b var(--rating-fill));
  background-clip: text;
  -webkit-background-clip: text;
}
.sr-rating {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.product-review-spotlight {
  margin: 2.5rem 0;
  padding: 1.5rem;
  border-left: 4px solid #ffd04b;
  background: #20282c;
  border-radius: 0.4rem;
}
.product-review-spotlight blockquote {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  line-height: 1.65;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.product-reviews {
  margin-top: 3rem;
  border-top: 1px solid #66737d;
  padding-top: 2rem;
  scroll-margin-top: 8rem;
}
.product-review-summary {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(15rem, 2fr);
  gap: 2rem;
  max-width: 48rem;
  align-items: center;
}
.rating-average {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.rating-histogram-row {
  display: grid;
  grid-template-columns: 4rem minmax(6rem, 1fr) 2rem;
  gap: 0.75rem;
  align-items: center;
  margin: 0.35rem 0;
}
.rating-histogram-row meter {
  width: 100%;
  height: 1.1rem;
  accent-color: #ffd04b;
}
.product-review {
  padding: 1.5rem 0;
  border-top: 1px solid #56636c;
  scroll-margin-top: 8rem;
}
.review-byline {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  flex-wrap: wrap;
}
.individual-review-stars {
  color: #ffd04b;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}
.product-review-body {
  white-space: pre-line;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.review-source {
  font-size: 0.9rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.review-unrated {
  font-size: 0.9rem;
}
.product-review-admin select {
  max-width: 100%;
  width: 100%;
}
.product-review-admin .product-review {
  margin-top: 1rem;
}
@media (max-width: 600px) {
  .product-review-summary {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .product-review-spotlight {
    padding: 1rem;
  }
  .product-reviews {
    scroll-margin-top: 7rem;
  }
}
@media (forced-colors: active) {
  .rating-stars {
    background: none;
    color: CanvasText;
  }
}

/* Center wrapped flex rows as well as the surrounding text on stacked layouts. */
.rating-stars {
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 899px) {
  .product-overview .product-rating {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    text-align: center;
  }
}
@media (max-width: 599px) {
  .product-card .product-rating {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    text-align: center;
  }
}
