/* Verified buyer reviews */
.product-reviews {
  margin:36px 0 18px;
  padding-top:34px;
  border-top:1px solid var(--line);
}

.review-section-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  margin-bottom:22px;
}

.review-section-heading h2 {
  margin:7px 0 8px;
  font-size:clamp(28px, 4vw, 40px);
  line-height:1.08;
  letter-spacing:-1.2px;
}

.review-section-heading p {
  max-width:650px;
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

.review-average {
  display:grid;
  min-width:156px;
  padding:16px 18px;
  border:1px solid rgba(245,158,11,.28);
  border-radius:18px;
  background:rgba(245,158,11,.07);
  text-align:center;
}

.review-average strong {
  color:#f8fafc;
  font-size:32px;
  line-height:1;
}

.review-average small {
  margin-top:5px;
  color:var(--muted);
  font-size:12px;
}

.review-stars {
  color:#fbbf24;
  font-size:18px;
  letter-spacing:2px;
}

.verified-review-form {
  display:grid;
  gap:18px;
  margin-bottom:20px;
  padding:clamp(22px, 4vw, 30px);
  border-color:rgba(245,158,11,.24);
}

.review-form-heading h3 {
  margin:7px 0 8px;
  font-size:24px;
}

.review-form-heading p {
  margin:0;
  color:var(--muted);
  line-height:1.55;
}

.review-rating-fieldset {
  margin:0;
  padding:0;
  border:0;
}

.review-rating-fieldset legend,
.review-comment-field > span {
  display:block;
  margin-bottom:9px;
  color:#f8fafc;
  font-size:14px;
  font-weight:800;
}

.review-rating-options {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.review-rating-option {
  cursor:pointer;
}

.review-rating-option input {
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

.review-rating-option span {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:54px;
  padding:9px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  color:var(--muted);
  background:rgba(255,255,255,.025);
  font-weight:800;
  transition:border-color .16s ease, color .16s ease, background .16s ease;
}

.review-rating-option:hover span,
.review-rating-option input:focus-visible + span {
  border-color:rgba(245,158,11,.6);
  color:#fde68a;
}

.review-rating-option input:checked + span {
  border-color:var(--brand);
  color:#111827;
  background:var(--brand);
}

.review-comment-field {
  display:grid;
}

.review-comment-field textarea {
  min-height:124px;
  line-height:1.6;
  resize:vertical;
}

.review-submit {
  width:max-content;
}

.review-submit:disabled {
  opacity:.6;
  cursor:wait;
}

.review-feedback {
  margin:0;
}

.review-list {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
}

.review-card {
  padding:21px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.035);
}

.review-card-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.review-verified {
  color:#bbf7d0;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}

.review-comment {
  margin:16px 0 14px;
  color:#e5e7eb;
  line-height:1.65;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

.review-date {
  color:var(--muted);
  font-size:12px;
}

.review-empty {
  grid-column:1 / -1;
  padding:24px;
  border:1px dashed var(--line);
  border-radius:18px;
  color:var(--muted);
  text-align:center;
}

@media (max-width: 760px) {
  .review-section-heading {
    align-items:stretch;
    flex-direction:column;
  }

  .review-average {
    width:max-content;
    min-width:150px;
    text-align:left;
  }

  .review-list {
    grid-template-columns:1fr;
  }
}

@media (max-width: 520px) {
  .product-reviews {
    margin-top:28px;
    padding-top:28px;
  }

  .review-rating-options {
    display:grid;
    grid-template-columns:repeat(5, minmax(0, 1fr));
  }

  .review-rating-option span {
    min-width:0;
    width:100%;
    padding:9px 6px;
  }

  .review-card-top {
    align-items:flex-start;
    flex-direction:column;
  }

  .review-submit {
    width:100%;
  }
}
