/* REVIEWS AFTER EVERY ORDER (BUILD_BRIEF_2026-10-20 section 6): the review page (templates/
   review_write.liquid) and, on the product page, "Bought {variant}", a review's approved photos and
   videos and a buyer's "Write a review". Loaded only where needed (review_extras), so a product page
   without order reviews is byte-for-byte what it was. Colours come from the theme's own tokens. */

.review__bought {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  opacity: 0.7;
}

.review__media {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.review__media-item {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
}

video.review__media-item {
  width: 9rem;
}

.reviews-mine {
  margin-top: 1.5rem;
}

.reviews-mine .reviews-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ---- the review page ------------------------------------------------------------------------ */

.rvw {
  /* The account area's palette (account.css declares it on .acct only): the page reuses its
     buttons and upload list, which read these. */
  --acct-ink: #0f0c0b;
  --acct-muted: #595550;
  --acct-line: #dcdad8;
  --acct-soft: #f8f8f7;
  --rvw-ink: var(--text, #0f0c0b);
  --rvw-line: rgba(0, 0, 0, 0.14);
  --rvw-star: #f5a623;
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
  color: var(--rvw-ink);
}

.rvw__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading, inherit);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.15;
}

.rvw__intro {
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.rvw__muted {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  opacity: 0.7;
}

.rvw__notice {
  margin: 0 0 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(22, 121, 76, 0.35);
  border-radius: 10px;
  background: rgba(22, 121, 76, 0.08);
  color: #16794c;
}

.rvw__error {
  margin: 0.75rem 0 0;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(185, 28, 28, 0.35);
  border-radius: 10px;
  background: rgba(185, 28, 28, 0.06);
  color: #b91c1c;
  font-size: 0.92rem;
}

.rvw-item {
  margin-top: 1.5rem;
  padding: 1.1rem;
  border: 1px solid var(--rvw-line);
  border-radius: 14px;
  background: var(--bg, #fff);
}

.rvw-item__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.rvw-item__img {
  flex: none;
  width: 4rem;
  height: 4rem;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.06);
}

.rvw-item__title {
  margin: 0;
  font-weight: 600;
}

.rvw__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.rvw__field {
  display: block;
  margin-top: 1rem;
}

.rvw__field textarea,
.rvw__field input {
  box-sizing: border-box;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--rvw-line);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
}

.rvw-stars {
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
}

.rvw-stars__row {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 0.15rem;
}

/* Visually hidden radios; the label is the star. row-reverse lets "this star and every star before
   it" light up with the sibling selector. */
.rvw-stars__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.rvw-stars__star {
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  color: rgba(0, 0, 0, 0.2);
  padding: 0.1rem;
}

.rvw-stars__input:checked ~ .rvw-stars__star,
.rvw-stars__star:hover,
.rvw-stars__star:hover ~ .rvw-stars__star {
  color: var(--rvw-star);
}

.rvw-stars__input:focus-visible + .rvw-stars__star {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 4px;
}

.rvw-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.rvw-media {
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
}

.rvw__need {
  margin: 0 0 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.rvw__send {
  margin-top: 1.25rem;
  width: 100%;
}

.rvw__earn {
  margin: 0.6rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.75;
}

@media (prefers-color-scheme: dark) {
  .rvw {
    --rvw-line: rgba(255, 255, 255, 0.18);
  }
}
