/* ═══════════════════════════════════════════════════════════════════════
   Reviews (migration 034): the customer review page (review.php, body
   .page-review) and the review cards on the product page (.page-product)
   and homepage strip (.page-homepage). Every rule is scoped to its body
   class (style.css loads on every page). No style.css rule targets .rv-*
   or .rvc-*, so nothing here needs !important except the page padding.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Review page ─────────────────────────────────────────────────────── */
.page-inner.page-review main.page.rv-page { padding: 24px 16px 64px !important; }
.page-review .rv-wrap { max-width: 560px; margin: 0 auto; }
.page-review .rv-title { font-size: 26px; line-height: 1.2; margin: 0 0 6px; color: #1a1612; }
.page-review .rv-sub { color: #5c544c; margin: 0 0 20px; font-size: 15px; line-height: 1.5; }
.page-review .rv-msg { padding: 14px 16px; border-radius: 12px; background: #f6f1ec; color: #1a1612; font-size: 15px; line-height: 1.5; margin: 0 0 16px; }
.page-review .rv-msg.is-ok { background: #e9f7ef; color: #146c43; }
.page-review .rv-msg.is-bad { background: #fdecea; color: #b42318; }
.page-review .rv-form { background: #fff; border: 1px solid #ece4dc; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.page-review .rv-field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.page-review .rv-field legend, .page-review .rv-label { font-weight: 700; font-size: 14px; color: #1a1612; padding: 0; margin-bottom: 2px; }
.page-review .rv-field input:not([type=radio]):not([type=file]), .page-review .rv-field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #e2d9cf; border-radius: 10px; background: #fff; color: #1a1612;
}
.page-review .rv-field textarea { resize: vertical; min-height: 110px; }
.page-review .rv-field input:focus, .page-review .rv-field textarea:focus { outline: 2px solid #ff6b00; outline-offset: 1px; border-color: transparent; }
.page-review .rv-hint { font-size: 13px; color: #8a7f73; }
.page-review .rv-products { display: grid; gap: 10px; }
.page-review .rv-prod { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1.5px solid #ece4dc; border-radius: 12px; cursor: pointer; font-size: 15px; font-weight: 600; }
.page-review .rv-prod:has(input:checked) { border-color: #ff6b00; background: #fff7f1; }
.page-review .rv-prod input { accent-color: #ff6b00; width: 18px; height: 18px; flex: 0 0 auto; }
.page-review .rv-prod img, .page-review .rv-prod-noimg { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; background: #f5efe8; }
.page-review .rv-stars { display: flex; gap: 6px; }
.page-review .rv-star { font-size: 38px; line-height: 1; padding: 2px 4px; border: 0; background: none; color: #d9d2c9; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.page-review .rv-star.is-on { color: #f2a01b; }
.page-review .rv-star:focus-visible { outline: 2px solid #ff6b00; border-radius: 6px; }
.page-review .rv-previews { display: flex; gap: 8px; flex-wrap: wrap; }
.page-review .rv-previews img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.page-review .rv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.page-review .rv-btn { border: 0; border-radius: 8px; background: #ff6b00; color: #fff; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1; padding: 16px; cursor: pointer; }
.page-review .rv-btn:disabled { opacity: 0.6; cursor: wait; }

/* ── Review cards (product page + homepage strip) ────────────────────── */
.page-product .rvc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.page-product .rvc-title { font-size: 22px; line-height: 1.2; margin: 0; color: #1a1612; }
.page-product .rvc-avg { font-size: 14px; color: #5c544c; white-space: nowrap; }
.page-product .rvc-stars, .page-homepage .rvc-stars { color: #f2a01b; letter-spacing: 2px; font-size: 15px; }
.page-product .rvc-stars s, .page-homepage .rvc-stars s { color: #e3dbd1; text-decoration: none; }
/* Rating line under the product price */
.page-product .rv-line { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #5c544c; text-decoration: none; margin: 6px 0 0; }
.page-product .rv-line .rvc-stars { font-size: 15px; }
/* Screen-reader-only text (star count) */
.page-product .rvc-sr, .page-homepage .rvc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 640px) {
  .page-product .rvc-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .page-product .rvc-title { font-size: 20px; }
}
/* Photo picker button in the site style */
.page-review .rv-field input[type=file] { font: inherit; font-size: 14px; color: #5c544c; }
.page-review .rv-field input[type=file]::file-selector-button {
  font: inherit; font-weight: 600; font-size: 14px; color: #1a1612; background: #fff; border: 1.5px solid #e2d9cf; border-radius: 10px; padding: 10px 16px; margin-right: 12px; cursor: pointer;
}
.page-review .rv-field input[type=file]::-webkit-file-upload-button {
  font: inherit; font-weight: 600; font-size: 14px; color: #1a1612; background: #fff; border: 1.5px solid #e2d9cf; border-radius: 10px; padding: 10px 16px; margin-right: 12px; cursor: pointer;
}
/* Average rating stars: each star filled on its own (4.7 = 4 full + 70% of the 5th) */
.page-product .rvc-stars-avg, .page-homepage .rvc-stars-avg { display: inline-flex; gap: 2px; font-size: 15px; line-height: 1; white-space: nowrap; vertical-align: -1px; }
.page-product .rvc-s, .page-homepage .rvc-s { position: relative; display: inline-block; color: #e3dbd1; }
.page-product .rvc-s-fg, .page-homepage .rvc-s-fg { position: absolute; left: 0; top: 0; overflow: hidden; color: #f2a01b; }

/* ═══════════ REVIEW CARDS (.rvh-*): homepage "Loved by our customers" + product page ═══════════
   Compact, text first. A customer photo is a small thumbnail by the name. */
/* Same white page and spacing as the sections around it (Gifts by budget). */
.page-homepage .rvh-sec { padding: clamp(2rem, 4vw, 3rem) 0 0; }
.page-homepage .rvh-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.page-homepage .rvh-title { font-size: clamp(1.25rem, 2.4vw, 1.625rem); font-weight: 700; line-height: 1.2; margin: 0 0 2px; color: #1a1612; }
.page-homepage .rvh-sub { margin: 0; color: #5c544c; font-size: 14px; }
.page-homepage .rvh-wrap, .page-product .rvh-wrap { position: relative; }
.page-homepage .rvh-row, .page-product .rvh-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 6px; align-items: stretch; }
.page-homepage .rvh-row::-webkit-scrollbar, .page-product .rvh-row::-webkit-scrollbar { display: none; }
.page-homepage .rvh, .page-product .rvh { flex: 0 0 calc((100% - 36px) / 4); scroll-snap-align: start; background: #fff; border: 1px solid #f0e3d4; border-radius: 14px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.page-homepage .rvh-top, .page-product .rvh-top { display: flex; align-items: center; justify-content: space-between; }
.page-homepage .rvh .rvc-stars, .page-product .rvh .rvc-stars { color: #f2a01b; letter-spacing: 1px; font-size: 14px; }
.page-homepage .rvh .rvc-stars s, .page-product .rvh .rvc-stars s { color: #e3dbd1; text-decoration: none; }
.page-homepage .rvh-q, .page-product .rvh-q { font-family: Georgia, 'Times New Roman', serif; font-size: 34px; line-height: .5; color: #ff6b00; opacity: .3; height: 14px; }
.page-homepage .rvh-text, .page-product .rvh-text { margin: 0; font-size: 14.5px; line-height: 1.5; color: #1a1612; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.page-homepage .rvh-prod, .page-product .rvh-prod { font-size: 12.5px; font-weight: 600; color: #cc4d00; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-homepage .rvh-prod:hover, .page-product .rvh-prod:hover { text-decoration: underline; }
.page-homepage .rvh-who, .page-product .rvh-who { margin-top: auto; padding-top: 10px; border-top: 1px solid #f4ece3; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #5c544c; line-height: 1.3; }
.page-homepage .rvh-who b, .page-product .rvh-who b { color: #1a1612; }
.page-homepage .rvh-av, .page-product .rvh-av, .page-homepage .rvh-thumb, .page-product .rvh-thumb { width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto; }
.page-homepage .rvh-av, .page-product .rvh-av { background: #ffe3cc; color: #cc4d00; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.page-homepage .rvh-thumb, .page-product .rvh-thumb { object-fit: cover; border-radius: 10px; width: 44px; height: 44px; background: #f1e7dc; }
.page-homepage .rvh-sec .p-arr { top: 50%; transform: translateY(-50%); }
@media (max-width: 900px) { .page-homepage .rvh, .page-product .rvh { flex-basis: calc((100% - 24px) / 3); } }
@media (max-width: 640px) {
.page-homepage .rvh-sec { padding: var(--section) 0 0; }
.page-homepage .rvh-head { align-items: flex-end; margin-bottom: 12px; }
.page-homepage .rvh-sub { display: none; }
.page-homepage .rvh-row, .page-product .rvh-row { margin: 0 -16px; padding: 2px 16px 6px; scroll-padding: 0 16px; gap: 10px; }
.page-homepage .rvh, .page-product .rvh { flex: 0 0 72vw; max-width: 280px; }
.page-homepage .rvh-wrap .p-arr, .page-product .rvh-wrap .p-arr { display: none !important; }
}
.page-review .rv-count { text-align: center; color: #5c544c; font-size: 15px; margin: 4px 0 0; }
.page-review .rv-count b { color: #ff6b00; font-size: 18px; }
.page-review .rv-count a { color: #cc4d00; font-weight: 600; margin-left: 6px; }
