/* The Oak Fam · product reviews tab (2026-11-30, Claude): compact, in the look of cart/checkout (ck2). Scope: product pages only. */
body.single-product #reviews {
	--rv-ink: #1f1f1f; --rv-muted: #6b6b6b; --rv-label: #5c5c5c; --rv-line: #e4e4e4; --rv-field: #d9d9d9;
	--rv-green: #3e5842; --rv-green-d: #2f4a34; --rv-pale: #e6efe3; --rv-off: #d6dad0; --rv-note: #f3f6f0;
	max-width: 760px; margin: 0 auto; padding: 4px 0 8px; color: var(--rv-ink); font-size: 15px; line-height: 1.55;
}
body.single-product #reviews *, body.single-product #reviews *::before, body.single-product #reviews *::after { box-sizing: border-box; }

/* ---------- header with average ---------- */
body.single-product #reviews #comments { margin: 0 0 18px; padding: 0; }
body.single-product #reviews #comments:has(.woocommerce-noreviews) { display: none; }
body.single-product #reviews .woocommerce-Reviews-title {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
	margin: 0 0 14px; padding: 0; border: 0; font-family: inherit; font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--rv-ink); text-align: left;
}
body.single-product #reviews .oak-rv-avg { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; color: var(--rv-muted); }
body.single-product #reviews .oak-rv-avg b { font-size: 16px; font-weight: 700; color: var(--rv-ink); }
body.single-product #reviews .oak-rv-write {
	margin-left: auto; padding: 8px 15px; border: 1px solid var(--rv-field); border-radius: 999px; background: #fff;
	color: var(--rv-green); font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
}
body.single-product #reviews .oak-rv-write:hover, body.single-product #reviews .oak-rv-write:focus-visible { border-color: var(--rv-green); color: var(--rv-green-d); }

/* ---------- stars (average + each review) ---------- */
body.single-product #reviews .oak-rv-stars { position: relative; display: inline-block; font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1; letter-spacing: 2px; white-space: nowrap; }
body.single-product #reviews .oak-rv-stars::before { content: "★★★★★"; color: var(--rv-off); }
body.single-product #reviews .oak-rv-stars::after { content: "★★★★★"; position: absolute; top: 0; left: 0; width: var(--p, 100%); overflow: hidden; color: var(--rv-green); }
body.single-product #reviews .comment-text .star-rating {
	position: relative !important; display: inline-block !important; float: none !important; width: auto !important; height: auto !important;
	margin: 0 0 6px !important; overflow: hidden; font-family: Arial, Helvetica, sans-serif !important; font-size: 14px !important; line-height: 1 !important; letter-spacing: 2px; color: transparent;
}
body.single-product #reviews .comment-text .star-rating::before {
	content: "★★★★★" !important; position: static !important; float: none !important; font-family: Arial, Helvetica, sans-serif !important; color: var(--rv-off) !important; opacity: 1 !important;
}
body.single-product #reviews .comment-text .star-rating span { position: absolute !important; top: 0; left: 0; height: 100%; padding: 0 !important; overflow: hidden; font-size: 0 !important; }
body.single-product #reviews .comment-text .star-rating span::before {
	content: "★★★★★" !important; position: absolute !important; top: 0; left: 0; font-family: Arial, Helvetica, sans-serif !important; font-size: 14px; letter-spacing: 2px; color: var(--rv-green) !important;
}

/* ---------- review cards ---------- */
body.single-product #reviews ol.commentlist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 !important; padding: 0 !important; list-style: none; border: 0; }
body.single-product #reviews ol.commentlist::before, body.single-product #reviews ol.commentlist::after { content: none !important; display: none !important; }
body.single-product #reviews ol.commentlist > li { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; list-style: none; }
body.single-product #reviews ol.commentlist:not(.is-all) > li:nth-child(n+7) { display: none; }
body.single-product #reviews ol.commentlist .children { display: none; }
body.single-product #reviews .comment_container { height: 100%; margin: 0; padding: 14px 16px; border: 1px solid var(--rv-line); border-radius: 14px; background: #fff; }
body.single-product #reviews .comment_container img.avatar { display: none; }
body.single-product #reviews .comment-text { margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; }
body.single-product #reviews .oak-rv-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 6px !important; font-size: 13px; line-height: 1.4; color: var(--rv-muted); }
body.single-product #reviews .oak-rv-meta .woocommerce-review__author { font-size: 14px; font-weight: 700; color: var(--rv-ink); }
body.single-product #reviews .oak-rv-verified { color: var(--rv-green); font-size: 12px; font-weight: 600; }
body.single-product #reviews .oak-rv-meta time { margin-left: auto; font-size: 12.5px; }
body.single-product #reviews .comment-text .description { margin: 0; }
body.single-product #reviews .comment-text .description p { margin: 0 0 6px; font-size: 14.5px; line-height: 1.55; color: #333; }
body.single-product #reviews .comment-text .description p:last-child { margin-bottom: 0; }
body.single-product #reviews .oak-rv-more {
	display: block; margin: 14px auto 0; padding: 10px 20px; border: 1px solid var(--rv-field); border-radius: 999px; background: #fff;
	color: var(--rv-ink); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
body.single-product #reviews .oak-rv-more:hover { border-color: var(--rv-green); color: var(--rv-green-d); }

/* ---------- form ---------- */
body.single-product #reviews #review_form_wrapper { margin: 0; padding: 0; scroll-margin-top: 80px; }
body.single-product #reviews #review_form { padding: 22px 24px 20px; border: 1px solid var(--rv-line); border-radius: 16px; background: #fff; }
body.single-product #reviews #respond { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
body.single-product #reviews #respond .comment-reply-title { display: block; margin: 0 0 4px; padding: 0; font-family: inherit; font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--rv-ink); }
body.single-product #reviews #respond .comment-reply-title small { display: none; }
body.single-product #reviews #respond .comment-notes,
body.single-product #reviews #respond .logged-in-as { margin: 0 0 16px; font-size: 13px; color: var(--rv-muted); }
body.single-product #reviews #respond .logged-in-as a { color: var(--rv-muted); }
body.single-product #reviews #respond form.comment-form { display: flex; flex-wrap: wrap; gap: 0 12px; margin: 0; padding: 0; }
body.single-product #reviews #respond form.comment-form > p,
body.single-product #reviews #respond form.comment-form > div { flex: 1 1 100%; width: auto; float: none; margin: 0 0 14px; padding: 0; }
body.single-product #reviews #respond form.comment-form > p.comment-form-author,
body.single-product #reviews #respond form.comment-form > p.comment-form-email { flex: 1 1 calc(50% - 6px); }
body.single-product #reviews #respond label { display: block; float: none; width: auto; margin: 0 0 6px; padding: 0; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--rv-label); }
body.single-product #reviews #respond .required { color: var(--rv-muted); font-weight: 400; }
body.single-product #reviews #respond :is(input[type="text"], input[type="email"], textarea) {
	display: block; width: 100%; max-width: 100%; height: 48px; margin: 0; padding: 0 14px;
	border: 1px solid var(--rv-field) !important; border-radius: 10px !important; background: #fff; box-shadow: none;
	color: var(--rv-ink); font-family: inherit; font-size: 16px; line-height: 22px;
}
body.single-product #reviews #respond textarea { height: auto; min-height: 104px; padding: 12px 14px 10px; resize: vertical; }
body.single-product #reviews #respond textarea::placeholder { color: #9a9a9a; }
body.single-product #reviews #respond :is(input[type="text"], input[type="email"], textarea):focus { border-color: var(--rv-green) !important; outline: 2px solid var(--rv-pale); outline-offset: 0; }

/* rating stars in the form */
body.single-product #reviews #respond .comment-form-rating { margin-bottom: 12px; }
body.single-product #reviews #respond p.stars { margin: 0 !important; padding: 0; line-height: 1; }
body.single-product #reviews #respond p.stars span { display: inline-flex; gap: 2px; }
body.single-product #reviews #respond p.stars a {
	position: relative; display: inline-block; width: 36px; height: 36px; margin: 0 !important; overflow: hidden;
	font-size: 0 !important; line-height: 36px; text-indent: 0 !important; text-decoration: none; color: transparent !important; border: 0; box-shadow: none;
}
body.single-product #reviews #respond p.stars a::before {
	content: "★" !important; position: absolute !important; top: 0; left: 0; width: 36px; height: 36px; text-indent: 0 !important;
	font-family: Arial, Helvetica, sans-serif !important; font-size: 32px !important; line-height: 36px !important; text-align: center; color: var(--rv-off) !important; transition: color .12s;
}
body.single-product #reviews #respond p.stars.selected a::before { color: var(--rv-green) !important; }
body.single-product #reviews #respond p.stars.selected a.active ~ a::before { color: var(--rv-off) !important; }
body.single-product #reviews #respond p.stars:hover a::before { color: var(--rv-green) !important; }
body.single-product #reviews #respond p.stars a:hover ~ a::before { color: var(--rv-off) !important; }
body.single-product #reviews #respond p.stars a:focus-visible { outline: 2px solid var(--rv-pale); outline-offset: 1px; border-radius: 6px; }

/* consent, note, button */
body.single-product #reviews #respond .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; }
body.single-product #reviews #respond .comment-form-cookies-consent input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--rv-green); }
body.single-product #reviews #respond .comment-form-cookies-consent label { margin: 0; font-size: 12.5px; font-weight: 400; line-height: 1.45; color: var(--rv-muted); }
body.single-product #reviews #respond form.comment-form > p.oak-rr-note,
body.single-product #reviews #respond .oak-rr-note { margin: 0 0 14px !important; padding: 9px 12px; border-radius: 10px; background: var(--rv-note); color: #4c5742; font-size: 13px; line-height: 1.45; }
body.single-product #reviews #respond .form-submit { margin: 0 !important; }
body.single-product #reviews #respond input#submit {
	height: 48px; min-width: 0; margin: 0; padding: 0 26px; border: 0 !important; border-radius: 12px !important;
	background: var(--rv-green) !important; box-shadow: none; color: #fff !important; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 48px; text-transform: none; letter-spacing: 0; cursor: pointer;
}
body.single-product #reviews #respond input#submit:hover,
body.single-product #reviews #respond input#submit:focus-visible { background: var(--rv-green-d) !important; }

@media (max-width: 767px) {
	body.single-product #reviews { padding: 0; }
	body.single-product #reviews .woocommerce-Reviews-title { font-size: 18px; }
	body.single-product #reviews .oak-rv-write { margin-left: 0; }
	body.single-product #reviews ol.commentlist { grid-template-columns: 1fr; gap: 10px; }
	body.single-product #reviews ol.commentlist:not(.is-all) > li:nth-child(n+5) { display: none; }
	body.single-product #reviews #review_form { padding: 18px 16px 16px; border-radius: 14px; }
	body.single-product #reviews #respond form.comment-form > p.comment-form-author,
	body.single-product #reviews #respond form.comment-form > p.comment-form-email { flex-basis: 100%; }
	body.single-product #reviews #respond input#submit { width: 100%; }
}
