/* Product reviews.
 *
 * Inherits the --cart-* tokens install.py already puts on every page, so this
 * matches the shop rather than arriving as unstyled WordPress defaults — which
 * is exactly what the block it replaces looked like.
 */

#shop-reviews {
  max-width: 820px;
  margin: 0 auto;
  padding: 8px 0 48px;
  color: var(--cart-fg, #F5F0EB);
  font: 400 15px/1.65 inherit;
}

#shop-reviews .rv-title {
  margin: 0 0 18px;
  font-size: 22px;
  letter-spacing: .02em;
}

/* ---- summary ---- */

.rv-summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--cart-line, #232323);
  margin: 0 0 22px;
}
.rv-avg { font-size: 26px; font-weight: 700; }
.rv-count { color: var(--cart-dim, #8a8a8a); font-size: 14px; }

/* ---- stars ---- */

.rv-stars { white-space: nowrap; letter-spacing: 1px; }
.rv-star { color: var(--cart-line, #3a3a3a); }
.rv-star.on { color: var(--cart-accent, #F5F0EB); }
.rv-big .rv-star { font-size: 22px; }

/* ---- the list ---- */

.rv-list { list-style: none; margin: 0; padding: 0; }
.rv-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--cart-line, #232323);
}
.rv-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 8px;
}
.rv-who { font-weight: 600; }
.rv-when { color: var(--cart-dim, #8a8a8a); font-size: 13px; }
.rv-badge {
  font: 700 10px/1 inherit;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 7px;
  border: 1px solid var(--cart-accent, #F5F0EB);
  border-radius: 2px;
}
.rv-body { margin: 0; white-space: pre-wrap; }
.rv-none { color: var(--cart-dim, #8a8a8a); margin: 0 0 26px; }

/* ---- the form ---- */

.rv-form {
  margin: 30px 0 0;
  padding: 22px;
  border: 1px solid var(--cart-line, #232323);
  border-radius: 4px;
}
.rv-formtitle { margin: 0 0 16px; font-size: 17px; }

.rv-rate { border: 0; margin: 0 0 16px; padding: 0; }
.rv-rate legend {
  padding: 0 0 8px;
  font: 700 11px/1 inherit;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cart-dim, #8a8a8a);
}
.rv-radio { display: inline-flex; align-items: center; margin: 0 14px 0 0; cursor: pointer; }
.rv-radio input { margin: 0 6px 0 0; }

.rv-label {
  display: block;
  margin: 0 0 6px;
  font: 700 11px/1 inherit;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cart-dim, #8a8a8a);
}

#shop-reviews textarea,
#shop-reviews input[type="text"],
#shop-reviews input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  background: transparent;
  color: var(--cart-fg, #F5F0EB);
  border: 1px solid var(--cart-line, #3a3a3a);
  border-radius: 3px;
  font: inherit;
}
#shop-reviews textarea { margin: 0 0 16px; resize: vertical; }
#shop-reviews textarea:focus,
#shop-reviews input:focus {
  outline: 2px solid var(--cart-accent, #F5F0EB);
  outline-offset: 1px;
}

.rv-row { display: flex; gap: 14px; margin: 0 0 14px; flex-wrap: wrap; }
.rv-row > span { flex: 1 1 220px; }

/* The honeypot. Hidden from people, reachable by a bot that fills every
   field it finds. Not display:none — some bots skip those. */
.rv-hp {
  position: absolute !important;
  left: -9999px !important;
  height: 1px; width: 1px; overflow: hidden;
}

.rv-note { color: var(--cart-dim, #8a8a8a); font-size: 13px; margin: 0 0 16px; }

.rv-submit {
  padding: 11px 20px;
  background: var(--cart-accent, #F5F0EB);
  color: var(--cart-bg, #0A0A0A);
  border: 1px solid var(--cart-accent, #F5F0EB);
  border-radius: 3px;
  font: 600 14px/1 inherit;
  cursor: pointer;
}
.rv-submit:disabled { opacity: .55; cursor: default; }

.rv-msg { margin: 12px 0 0; font-size: 14px; }
.rv-msg.bad { color: #e08585; }
.rv-msg.good { color: #7fc79a; }
.rv-thanks { margin: 0; }

@media (max-width: 600px) {
  .rv-row { display: block; }
  .rv-row > span { display: block; margin: 0 0 14px; }
}

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

.rv-pick-lede { margin: 0 0 14px; }
.rv-pick { display: flex; flex-direction: column; gap: 10px; max-width: 480px; }
.rv-pick-btn {
  text-align: left;
  padding: 14px 16px;
  background: transparent;
  color: var(--cart-fg, #F5F0EB);
  border: 1px solid var(--cart-line, #3a3a3a);
  border-radius: 3px;
  font: 500 15px/1.4 inherit;
  cursor: pointer;
}
.rv-pick-btn:hover,
.rv-pick-btn:focus {
  border-color: var(--cart-accent, #F5F0EB);
  outline: none;
}

/* The standalone page sits in a shell whose wrapper does not carry a side
   gutter at this width, so the page supplies its own rather than running
   the text into the edge of the screen. */
.rv-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 34px 20px 10px;
}
.rv-page > p { margin: 0 0 6px; }
