/* Reviews page (reviews.html only). Everything is scoped to .rv- classes so no other page changes. */
.rv-wrap { --rv-ink: #150e3e; --rv-blue: #1351d8; --rv-line: #e3e7ef; --rv-muted: #5b6b8c; --rv-soft: #f5f8ff; --rv-star: #f7941d; --rv-bad: #b42318; --rv-ok: #1b7a45; }

/* product summary chips */
.rv-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 28px; }
.rv-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--rv-line); background: #fff; color: var(--rv-ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.rv-chip:hover { border-color: var(--rv-blue); }
.rv-chip[aria-pressed="true"] { background: var(--rv-blue); border-color: var(--rv-blue); color: #fff; }
.rv-chip .rv-chip-score { font-weight: 700; color: var(--rv-star); }
.rv-chip[aria-pressed="true"] .rv-chip-score { color: #ffd23f; }
.rv-chip:focus-visible, .rv-more:focus-visible, .rv-form :focus-visible { outline: 3px solid var(--rv-blue); outline-offset: 2px; }

/* summary for the chosen product */
.rv-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 20px 24px; margin-bottom: 24px; border-radius: 18px; background: var(--rv-soft); border: 1px solid var(--rv-line); }
.rv-summary-score { font-family: "Archivo", sans-serif; font-size: 44px; font-weight: 800; line-height: 1; color: var(--rv-ink); }
.rv-summary-text { color: var(--rv-muted); }
.rv-summary .rv-stars svg { width: 24px; height: 24px; }

/* stars (display only) */
.rv-stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.rv-stars span { position: relative; display: inline-block; line-height: 0; }
.rv-stars svg { width: 18px; height: 18px; display: block; fill: #e3e7ef; }
.rv-stars .rv-fg { position: absolute; inset: 0; overflow: hidden; width: var(--fill, 0%); }
.rv-stars .rv-fg svg { fill: var(--rv-star); }

/* review cards */
.rv-list { display: grid; gap: 16px; }
.rv-card { background: #fff; border: 1px solid var(--rv-line); border-radius: 18px; padding: 22px 24px; box-shadow: 0 18px 40px -32px rgba(21, 14, 62, .35); }
.rv-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.rv-product { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #e8f0fd; color: var(--rv-blue); font-size: 13px; font-weight: 700; }
.rv-title { margin: 12px 0 6px; font-size: 19px; font-weight: 700; color: var(--rv-ink); }
.rv-text { margin: 0; color: #3d4a5c; white-space: pre-line; overflow-wrap: anywhere; }
.rv-by { margin-top: 12px; font-size: 14px; color: var(--rv-muted); }
.rv-reply { margin-top: 14px; padding: 12px 16px; border-left: 3px solid var(--rv-blue); background: var(--rv-soft); border-radius: 0 10px 10px 0; font-size: 15px; color: #3d4a5c; white-space: pre-line; }
.rv-reply strong { color: var(--rv-ink); }
.rv-empty { padding: 32px 24px; text-align: center; border: 1px dashed var(--rv-line); border-radius: 18px; color: var(--rv-muted); background: #fff; }
.rv-more { display: block; margin: 22px auto 0; padding: 12px 26px; border-radius: 999px; border: 1px solid var(--rv-line); background: #fff; color: var(--rv-ink); font: inherit; font-weight: 600; cursor: pointer; }
.rv-more:hover { border-color: var(--rv-blue); }

/* form */
.rv-form { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--rv-line); border-radius: 22px; padding: clamp(20px, 4vw, 36px); box-shadow: 0 24px 48px -36px rgba(21, 14, 62, .4); }
.rv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 20px; }
.rv-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rv-field--full { grid-column: 1 / -1; }
.rv-field label, .rv-field legend { font-weight: 600; color: var(--rv-ink); font-size: 15px; padding: 0; }
.rv-field .rv-hint { font-size: 13px; color: var(--rv-muted); font-weight: 400; }
.rv-field input, .rv-field select, .rv-field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--rv-ink); padding: 12px 14px; border: 1px solid #cfd6e3; border-radius: 10px; background: #fff; }
.rv-field textarea { min-height: 150px; resize: vertical; }
.rv-field input:focus, .rv-field select:focus, .rv-field textarea:focus { border-color: var(--rv-blue); }
.rv-field [aria-invalid="true"] { border-color: var(--rv-bad); }
.rv-err { color: var(--rv-bad); font-size: 14px; min-height: 0; }
.rv-count { align-self: flex-end; font-size: 13px; color: var(--rv-muted); }
fieldset.rv-field { border: 0; margin: 0; padding: 0; }
.rv-pick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rv-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv-pick label { cursor: pointer; line-height: 0; padding: 2px; border-radius: 6px; }
.rv-pick svg { width: 36px; height: 36px; fill: #e3e7ef; transition: fill .12s ease, transform .12s ease; }
.rv-pick label:hover svg, .rv-pick label:hover ~ label svg, .rv-pick input:checked ~ label svg { fill: var(--rv-star); }
.rv-pick label:hover svg { transform: scale(1.1); }
.rv-pick input:focus-visible + label { outline: 3px solid var(--rv-blue); outline-offset: 2px; }
.rv-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.rv-note { margin: 18px 0 0; font-size: 14px; color: var(--rv-muted); }
.rv-submit { margin-top: 22px; }
.rv-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.rv-status--ok { background: #e4f4ea; color: var(--rv-ok); }
.rv-status--bad { background: #fdecec; color: var(--rv-bad); }
.rv-status:empty { display: none; }

@media (max-width: 640px) {
  .rv-grid { grid-template-columns: minmax(0, 1fr); }
  .rv-card { padding: 18px; }
  .rv-summary-score { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .rv-chip, .rv-pick svg { transition: none; }
  .rv-pick label:hover svg { transform: none; }
}
.rv-wrap .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
