.reviews-section {
  margin-top: 88px;
  padding: 72px 0 24px;
  border-top: 1px solid #e7e7e7;
  color: #191919;
  background: #fff;
}
.reviews-loading,
.reviews-error,
.reviews-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 22px;
}
.reviews-loading span {
  width: 28px;
  height: 28px;
  border: 2px solid #dedede;
  border-top-color: #292826;
  border-radius: 50%;
  animation: review-spin .8s linear infinite;
}
@keyframes review-spin { to { transform: rotate(360deg); } }
.reviews-section__header {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
}
.reviews-section__header h2 {
  margin: 7px 0 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: .98;
  letter-spacing: -.045em;
}
.reviews-section__headline {
  display: flex;
  gap: 16px;
  align-items: center;
}
.reviews-section__headline > strong {
  font-size: 54px;
  line-height: 1;
  letter-spacing: -.06em;
}
.reviews-section__headline > div { display: grid; gap: 5px; }
.reviews-section__headline span { color: #686868; font-size: 14px; }
.review-stars { display: flex; gap: 2px; color: #c9c9c9; }
.review-star.is-active,
.review-star-input.is-active { color: #292826; }
.review-star-input {
  appearance: none;
  border: 0;
  background: transparent;
  color: #c9c9c9;
  font-size: 36px;
  padding: 0 2px;
  cursor: pointer;
  line-height: 1;
}
.review-star-input:focus-visible { outline: 2px solid #292826; outline-offset: 4px; border-radius: 4px; }
.reviews-overview {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr);
  gap: 20px;
}
.review-distribution,
.reviews-reward-message,
.review-access-card,
.review-form {
  border: 1px solid #e7e7e7;
  border-radius: 22px;
  background: #fff;
}
.review-distribution { padding: 24px; display: grid; gap: 10px; }
.review-distribution-row { display: grid; grid-template-columns: 38px 1fr 28px; gap: 12px; align-items: center; font-size: 13px; }
.review-distribution-row i { display: block; height: 6px; background: #f1f1f1; border-radius: 999px; overflow: hidden; }
.review-distribution-row b { display: block; height: 100%; background: #292826; border-radius: inherit; }
.review-distribution-row small { text-align: right; color: #757575; }
.reviews-reward-message { padding: 30px; display: grid; align-content: center; }
.reviews-reward-message strong { font-size: 22px; }
.reviews-reward-message p { margin: 9px 0 0; color: #5f5f5f; max-width: 680px; line-height: 1.55; }
.review-access-card { margin-top: 20px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.review-access-card strong { font-size: 18px; }
.review-access-card p { margin: 6px 0 0; color: #666; }
.review-form { margin-top: 20px; padding: 30px; }
.review-form__heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.review-form__heading h3 { margin: 6px 0 0; font-size: 28px; }
.review-form__heading > strong { padding: 10px 14px; border-radius: 999px; background: #292826; color: #fff; white-space: nowrap; }
.review-form fieldset { border: 0; padding: 0; margin: 28px 0 0; }
.review-form legend,
.review-form__field > span { display: flex; justify-content: space-between; gap: 12px; font-weight: 650; margin-bottom: 10px; }
.review-form__field > span small { color: #777; font-weight: 450; }
.review-form__field { display: grid; margin-top: 26px; }
.review-form textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #dcdcdc;
  border-radius: 14px;
  background: #fff;
  color: #191919;
  padding: 15px 16px;
  font: inherit;
  line-height: 1.55;
}
.review-form textarea:focus { outline: 2px solid #292826; outline-offset: 2px; }
.review-form__field > small { justify-self: end; margin-top: 7px; color: #777; }
.review-file-drop { margin-top: 24px; padding: 22px; border: 1px dashed #bdbdbd; border-radius: 16px; display: grid; gap: 6px; cursor: pointer; background: #fff; }
.review-file-drop input { width: 100%; }
.review-file-drop span { font-weight: 650; }
.review-file-drop small { color: #6c6c6c; }
.review-file-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.review-file-preview span { padding: 8px 10px; border: 1px solid #e3e3e3; border-radius: 10px; font-size: 13px; }
.review-existing-media { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.review-existing-media label { width: 110px; display: grid; gap: 6px; font-size: 12px; }
.review-existing-media img { width: 110px; height: 90px; object-fit: cover; border-radius: 10px; border: 1px solid #e7e7e7; }
.review-consent { margin-top: 18px; display: flex; gap: 10px; align-items: flex-start; color: #555; font-size: 14px; line-height: 1.45; }
.review-reward-ladder { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #e7e7e7; border-radius: 16px; overflow: hidden; }
.review-reward-ladder > div { min-height: 116px; display: grid; place-items: center; align-content: center; gap: 3px; border-right: 1px solid #e7e7e7; color: #9a9a9a; background: #fff; }
.review-reward-ladder > div:last-child { border-right: 0; }
.review-reward-ladder > div.is-earned { color: #191919; background: #f5f5f5; }
.review-reward-ladder strong { font-size: 22px; }
.review-reward-ladder small { text-align: center; }
.review-form__actions { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.review-form__actions p { margin: 0; color: #666; font-size: 14px; }
.reviews-list-toolbar { margin-top: 56px; padding-bottom: 16px; border-bottom: 1px solid #e7e7e7; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.reviews-list-toolbar label { display: flex; gap: 10px; align-items: center; color: #686868; font-size: 14px; }
.reviews-list-toolbar select { border: 1px solid #dcdcdc; border-radius: 10px; padding: 9px 34px 9px 12px; background: #fff; color: #191919; }
.reviews-list { display: grid; }
.review-card { padding: 30px 0; border-bottom: 1px solid #e7e7e7; }
.review-card__head { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.review-card__head > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-card__head time { color: #767676; font-size: 13px; }
.verified-purchase-badge { font-size: 11px; padding: 5px 8px; border-radius: 999px; border: 1px solid #d7d7d7; color: #4f4f4f; }
.review-card .review-stars { margin-top: 13px; }
.review-card p { max-width: 780px; margin: 15px 0 0; line-height: 1.65; color: #414141; }
.review-card__media { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.review-card__media button { border: 0; padding: 0; background: none; cursor: zoom-in; }
.review-card__media img { width: 132px; height: 108px; object-fit: cover; border-radius: 12px; border: 1px solid #e7e7e7; }
.review-photo-dialog { width: min(900px, 92vw); max-height: 90vh; padding: 0; border: 0; background: #fff; border-radius: 18px; }
.review-photo-dialog::backdrop { background: rgba(0,0,0,.64); }
.review-photo-dialog img { width: 100%; max-height: 86vh; object-fit: contain; display: block; }
.review-photo-dialog button { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; color: #191919; font-size: 24px; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.16); }

@media (max-width: 760px) {
  .reviews-section { margin-top: 56px; padding-top: 48px; }
  .reviews-section__header { align-items: start; }
  .reviews-section__headline > strong { font-size: 42px; }
  .reviews-overview { grid-template-columns: 1fr; }
  .review-form { padding: 22px; }
  .review-reward-ladder { grid-template-columns: 1fr; }
  .review-reward-ladder > div { min-height: 86px; border-right: 0; border-bottom: 1px solid #e7e7e7; }
  .review-reward-ladder > div:last-child { border-bottom: 0; }
  .review-form__actions,
  .review-access-card { align-items: stretch; flex-direction: column; }
}

/* Patch M3.1.1 — product title review anchor */
.product-review-summary {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #292826;
  font: inherit;
  cursor: pointer;
}

.product-review-summary:hover .product-review-summary__count,
.product-review-summary:focus-visible [data-product-review-count] {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-review-summary:focus-visible {
  outline: 2px solid #292826;
  outline-offset: 5px;
  border-radius: 6px;
}

.product-review-summary__stars {
  color: #292826;
  font-size: 15px;
  letter-spacing: .08em;
  white-space: nowrap;
}

.product-review-summary > strong {
  font-size: 14px;
  line-height: 1;
}

.product-review-summary [data-product-review-count] {
  color: #656565;
  font-size: 13px;
}

.product-review-summary__arrow {
  color: #6a6a6a;
  font-size: 13px;
  transition: transform 160ms ease;
}

.product-review-summary:hover .product-review-summary__arrow {
  transform: translateY(2px);
}

.reviews-section {
  scroll-margin-top: calc(var(--header-height) + 28px);
}
