/* VENEIVA Product Page – reviews ([vnpd_reviews], [vnpd_rating]).
   Only what the page CSS (pdp-full-page-desktop.html) does not already style: partial stars, empty
   state, owner replies, the two buttons under the list and the review form. Uses the page tokens
   (--text, --line, --accent, …) with fallbacks. One rule per element and property. */
/* Inside the "vnpd" layer like the page design, so Greenshift and Additional CSS win and the shield works. */
@layer vnpd {
/* ---------- stars filled to the average (grey row + coloured row cut to width) ---------- */
.vnpd-rv-rate { position: relative; display: inline-flex; vertical-align: middle; }
.vnpd-rv-rate > span { display: flex; gap: inherit; }
.vnpd-rv-rate svg { flex: 0 0 auto; }
.vnpd-rv-s0 { color: rgba(58, 32, 8, .16); }
.vnpd-rv-s1 { position: absolute; top: 0; bottom: 0; left: 0; overflow: hidden; color: var(--accent, #BE7E30); }
/* inside a review the page rule ".vnpd-rv .vnpd-who span" (block, muted colour, margin) would reach the star rows */
.vnpd-rv .vnpd-who .vnpd-rv-rate { display: inline-flex; margin: 0; }
.vnpd-rv .vnpd-who .vnpd-rv-s0 { display: flex; margin: 0; color: rgba(58, 32, 8, .16); }
.vnpd-rv .vnpd-who .vnpd-rv-s1 { display: flex; margin: 0; color: var(--accent, #BE7E30); }

/* ---------- summary card without reviews ---------- */
.vnpd-rv-card .vnpd-rv-none { margin: 0 0 10px; font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--text, #3A2008); }
.vnpd-rv-empty { margin: 0; padding: 28px 22px; font-size: 15px; color: var(--text-muted, #6B4A2B); }

/* ---------- reply from the shop under a review ---------- */
.vnpd-rv-reply { margin-top: 14px; padding: 12px 16px; border-left: 3px solid var(--accent, #BE7E30); background: var(--surface-1, #FFFBF2); border-radius: 0 8px 8px 0; }
.vnpd-rv-reply b { display: block; margin-bottom: 4px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-text, #8A5A22); }
.vnpd-rv p + p { margin-top: 8px; }

/* ---------- "Load more" + "Write a review" ---------- */
.vnpd-rv-more { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px; }
.vnpd-rv-write { cursor: pointer; border: 0; }
.vnpd-rv-sec [hidden] { display: none !important; }
.vnpd-rv-list[aria-busy="true"] { opacity: .55; transition: opacity .2s; }

/* ---------- the form ---------- */
.vnpd-rv-form { margin-top: 28px; padding: 32px; background: #FFFFFF; border-radius: var(--r-card, 16px); scroll-margin-top: 90px; }
.vnpd-rv-form:focus { outline: none; }
.vnpd-rv-notice:last-child { margin-bottom: 0; }
.vnpd-rv-notice { margin: 0 0 20px; padding: 14px 18px; border-radius: 10px; background: var(--surface-honey, #FBEBC4); font-size: 15px; font-weight: 600; color: var(--text, #3A2008); }
.vnpd-rv-ftitle { margin: 0 0 6px; font-size: 26px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; color: var(--text, #3A2008); }
.vnpd-rv-fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px; margin: 0; }
.vnpd-rv-wide { grid-column: 1 / -1; }
.vnpd-rv-fnote { margin: 0; font-size: 13px; color: var(--text-muted, #6B4A2B); }
.vnpd-rv-field { margin: 0; min-width: 0; border: 0; padding: 0; }
.vnpd-rv-field label,
.vnpd-rv-stars-field legend { display: block; margin: 0 0 7px; padding: 0; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--text, #3A2008); }
.vnpd-rv-req { color: var(--accent-text, #8A5A22); }
.vnpd-rv-field input[type="text"],
.vnpd-rv-field input[type="email"],
.vnpd-rv-field select,
.vnpd-rv-field textarea { box-sizing: border-box; width: 100%; min-height: 48px; margin: 0; padding: 12px 14px; border: 1px solid rgba(58, 32, 8, .22); border-radius: var(--r-btn, 10px); background: #FFFFFF; font: 400 15px / 1.4 Archivo, system-ui, sans-serif; color: var(--text, #3A2008); }
.vnpd-rv-field textarea { min-height: 140px; resize: vertical; }
.vnpd-rv-field input::placeholder,
.vnpd-rv-field textarea::placeholder { color: rgba(107, 74, 43, .75); }
.vnpd-rv-field input:focus,
.vnpd-rv-field select:focus,
.vnpd-rv-field textarea:focus { border-color: var(--text, #3A2008); outline: 2px solid var(--text, #3A2008); outline-offset: 0; }
.vnpd-rv-help { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: var(--text-muted, #6B4A2B); }
.vnpd-rv-check { display: flex; align-items: flex-start; gap: 10px; }
.vnpd-rv-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--text, #3A2008); flex: 0 0 auto; }
.vnpd-rv-check label { margin: 0; font-weight: 400; font-size: 14px; }
.vnpd-rv-send { margin-top: 4px; }
.vnpd-rv-submit { cursor: pointer; border: 0; min-width: 240px; }
.vnpd-rv-submit:disabled { opacity: .6; cursor: default; }
.vnpd-rv-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vnpd-rv-respond .comment-reply-title small,
.vnpd-rv-respond #cancel-comment-reply-link { display: none; }

/* star picker: inputs are in 5..1 order and shown 1..5, so "checked ~ label" colours the chosen star and all below it */
.vnpd-rv-pick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; }
.vnpd-rv-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.vnpd-rv-pick label { display: block; margin: 0; padding: 2px; cursor: pointer; color: rgba(58, 32, 8, .18); border-radius: 6px; }
.vnpd-rv-pick svg { display: block; width: 34px; height: 34px; }
.vnpd-rv-pick input:checked ~ label,
.vnpd-rv-pick label:hover,
.vnpd-rv-pick label:hover ~ label { color: var(--accent, #BE7E30); }
.vnpd-rv-pick input:focus-visible + label { outline: 3px solid var(--text, #3A2008); outline-offset: 2px; }

@media (max-width: 900px) {
	.vnpd-rv-more { flex-direction: column; align-items: stretch; }
	.vnpd-rv-more .vnpd-vp-btn { width: 100%; min-width: 0; }
	.vnpd-rv-form { padding: 22px 16px; margin-top: 20px; }
	.vnpd-rv-ftitle { font-size: 22px; }
	.vnpd-rv-fgrid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.vnpd-rv-submit { width: 100%; min-width: 0; }
	.vnpd-rv-field input[type="text"],
	.vnpd-rv-field input[type="email"],
	.vnpd-rv-field select,
	.vnpd-rv-field textarea { font-size: 16px; } /* 16 px stops iPhone zooming into the field */
}

@media (prefers-reduced-motion: reduce) {
	.vnpd-rv-list[aria-busy="true"] { transition: none; }
}

}
