/* ==========================================================================
   Product page reviews — redesign
   ========================================================================== */
#reviews {
	--hrv-bg: #FBF1EC;
	--hrv-bar-track: #F3D9D1;
	--hrv-bar-fill: #BE9260;
	--hrv-ink: #221E1B;
	--hrv-sub: #948A80;
	--hrv-verified-bg: #DCEEDF;
	--hrv-verified-text: #2E6B45;
	--hrv-divider: #EADAD1;
	--hrv-star: #BE9260;

	width: 100%;
	float: none;
	clear: both;
	color: var(--hrv-ink);
	font-family: 'Heebo', sans-serif;
	line-height: 1.5;
}

#reviews svg { display: block; }

.hrv-panel {
	background: var(--hrv-bg);
	border-radius: 4px;
	padding: 44px 48px 8px;
	margin: 30px 0;
}

/* ---------- header: score / bars / cta ---------- */
.hrv-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
	padding-bottom: 36px;
}

.hrv-header--empty {
	justify-content: center;
	text-align: center;
	flex-direction: column;
	gap: 16px;
}

.hrv-empty-msg {
	margin: 0;
	color: var(--hrv-sub);
	font-size: .95rem;
}

.hrv-score { text-align: center; flex: 0 0 auto; }
.hrv-score .num { font-size: 3.4rem; font-weight: 800; line-height: 1; display: block; color: var(--hrv-ink); }
.hrv-score .stars { display: flex; gap: 4px; justify-content: center; margin: 10px 0 8px; }
.hrv-score .stars svg { width: 20px; height: 20px; color: var(--hrv-star); }
.hrv-score .total { font-size: .85rem; color: var(--hrv-sub); white-space: nowrap; }

.hrv-bars {
	flex: 1 1 380px;
	max-width: 560px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.hrv-bar-row { display: flex; align-items: center; gap: 14px; font-size: .85rem; }
.hrv-bar-row .pct { width: 38px; color: var(--hrv-ink); font-weight: 500; flex: 0 0 auto; }
.hrv-bar-row .track {
	flex: 1;
	height: 6px;
	background: var(--hrv-bar-track);
	border-radius: 999px;
	overflow: hidden;
	position: relative;
}
.hrv-bar-row .fill { position: absolute; top: 0; right: 0; bottom: 0; background: var(--hrv-bar-fill); border-radius: 999px; }
.hrv-bar-row .label { width: 64px; color: var(--hrv-sub); flex: 0 0 auto; }

.hrv-btn-write {
	font-family: 'Heebo', sans-serif;
	font-size: .92rem;
	font-weight: 500;
	padding: 16px 34px;
	background: transparent;
	border: 1.5px solid var(--hrv-ink);
	border-radius: 999px;
	color: var(--hrv-ink);
	cursor: pointer;
	white-space: nowrap;
	transition: background .2s ease, color .2s ease;
}
.hrv-btn-write:hover { background: var(--hrv-ink); color: var(--hrv-bg); }

/* ---------- reviews grid ---------- */
.hrv-grid { display: grid; grid-template-columns: 1fr 1fr; }
.hrv-item { padding: 30px 34px; border-top: 1px solid var(--hrv-divider); }
.hrv-item:nth-child(odd) { border-left: 1px solid var(--hrv-divider); }
.hrv-item:nth-child(-n+2) { border-top: none; }

.hrv-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.hrv-who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hrv-name { font-weight: 700; font-size: .95rem; }
.hrv-verified {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: var(--hrv-verified-bg);
	color: var(--hrv-verified-text);
	font-size: .72rem;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
}
.hrv-verified svg { width: 10px; height: 10px; }
.hrv-date { color: var(--hrv-sub); font-size: .82rem; white-space: nowrap; }

.hrv-stars { display: flex; gap: 2px; margin-bottom: 14px; }
.hrv-stars svg { width: 15px; height: 15px; color: var(--hrv-star); }

.hrv-text { font-size: .92rem; color: #3B342E; margin-bottom: 12px; }

/* ---------- teaser blur row ---------- */
.hrv-teaser { position: relative; }
.hrv-teaser .hrv-grid { filter: blur(4.5px); user-select: none; pointer-events: none; opacity: .9; }
.hrv-fade {
	position: absolute; inset: 0;
	background: linear-gradient(to top, var(--hrv-bg) 25%, rgba(251,241,236,0) 100%);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 36px;
}

.hrv-btn-more {
	font-family: 'Heebo', sans-serif;
	font-size: .9rem;
	font-weight: 600;
	padding: 15px 32px;
	background: var(--hrv-ink);
	color: var(--hrv-bg);
	border: none;
	border-radius: 999px;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(34,30,27,.18);
	transition: transform .15s ease;
}
.hrv-btn-more:hover { transform: translateY(-2px); }

@media (max-width: 720px) {
	.hrv-panel { padding: 32px 20px 8px; }
	.hrv-header { flex-direction: column; align-items: stretch; text-align: center; }
	.hrv-grid { grid-template-columns: 1fr; }
	.hrv-item:nth-child(odd) { border-left: none; }
	.hrv-item:nth-child(-n+2) { border-top: 1px solid var(--hrv-divider); }
	.hrv-item:first-child { border-top: none; }
}

/* ============================= MODALS ============================= */
.hrv-modal-backdrop {
	position: fixed; inset: 0;
	background: rgba(20,17,14,.4);
	backdrop-filter: blur(4px);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 40px 20px;
}
.hrv-modal-backdrop.open { display: flex; }

/* Thin, elegant scrollbar used by every scrollable area inside the modals. */
.hrv-modal-scroll,
.hrv-modal-form-scroll {
	scrollbar-width: thin;
	scrollbar-color: var(--hrv-bar-fill) transparent;
}
.hrv-modal-scroll::-webkit-scrollbar,
.hrv-modal-form-scroll::-webkit-scrollbar { width: 6px; }
.hrv-modal-scroll::-webkit-scrollbar-track,
.hrv-modal-form-scroll::-webkit-scrollbar-track { background: transparent; }
.hrv-modal-scroll::-webkit-scrollbar-thumb,
.hrv-modal-form-scroll::-webkit-scrollbar-thumb {
	background-color: var(--hrv-bar-fill);
	border-radius: 999px;
}
.hrv-modal-scroll::-webkit-scrollbar-thumb:hover,
.hrv-modal-form-scroll::-webkit-scrollbar-thumb:hover { background-color: var(--hrv-ink); }

.hrv-modal-big {
	width: 100%;
	max-width: 1080px;
	max-height: calc(100vh - 80px);
	background: var(--hrv-bg);
	border-radius: 16px;
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: hrvModalIn .25s ease;
}
@keyframes hrvModalIn {
	from { opacity: 0; transform: translateY(14px) scale(.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

/* The close button lives outside the scrolling area so it always stays put. */
.hrv-modal-close {
	position: absolute;
	top: 20px; left: 20px;
	width: 36px; height: 36px;
	border-radius: 50%;
	background: #fff;
	border: none;
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 2px 8px rgba(0,0,0,.08);
	transition: background .15s ease;
	padding: 0;
	z-index: 1;
}
.hrv-modal-close:hover { background: #F0E6DF; }
.hrv-modal-close svg { width: 15px; height: 15px; }

.hrv-modal-head { flex: 0 0 auto; padding: 40px 44px 20px; }
.hrv-modal-title { font-size: 1.3rem; font-weight: 700; text-align: center; margin: 0; }

.hrv-modal-scroll { flex: 1 1 auto; overflow-y: auto; padding: 0 44px 30px; }

.hrv-modal-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.hrv-modal-grid .hrv-item:nth-child(3n+1),
.hrv-modal-grid .hrv-item:nth-child(3n+2) { border-left: 1px solid var(--hrv-divider); }
.hrv-modal-grid .hrv-item:nth-child(-n+3) { border-top: none; }

.hrv-modal-loading { grid-column: 1 / -1; text-align: center; padding: 30px 0; color: var(--hrv-sub); }

@media (max-width: 860px) {
	.hrv-modal-grid { grid-template-columns: 1fr 1fr; }
	.hrv-modal-grid .hrv-item:nth-child(3n+2) { border-left: 1px solid var(--hrv-divider); }
	.hrv-modal-grid .hrv-item:nth-child(-n+2) { border-top: none; }
	.hrv-modal-grid .hrv-item:nth-child(3) { border-top: 1px solid var(--hrv-divider); }
}
@media (max-width: 560px) {
	.hrv-modal-head { padding: 32px 20px 16px; }
	.hrv-modal-scroll { padding: 0 20px 20px; }
	.hrv-modal-grid { grid-template-columns: 1fr; }
	.hrv-modal-grid .hrv-item { border-left: none !important; }
	.hrv-modal-grid .hrv-item:nth-child(-n+3) { border-top: 1px solid var(--hrv-divider); }
	.hrv-modal-grid .hrv-item:first-child { border-top: none !important; }
}

/* ---------- add-review form modal ---------- */
.hrv-modal-form {
	width: 100%;
	max-width: 480px;
	max-height: calc(100vh - 80px);
	background: #fff;
	border-radius: 16px;
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: hrvModalIn .25s ease;
}
.hrv-modal-form-scroll { overflow-y: auto; padding: 36px 32px 28px; }

/* The theme hides #commentform by default (click-to-reveal pattern used on
   blog comments); the modal is already the reveal gesture, so force it open here. */
.hrv-modal-form-scroll #commentform { display: block; }

.hrv-modal-form #respond { display: block; }
.hrv-modal-form .comment-reply-title,
.hrv-modal-form h3 { font-size: 1.15rem; font-weight: 700; text-align: center; margin: 0 0 24px; display: block; }

.hrv-modal-form .woocommerce-noreviews,
.hrv-modal-form .woocommerce-verification-required,
.hrv-modal-form .must-log-in {
	text-align: center;
	color: var(--hrv-ink);
	font-size: .92rem;
	margin: 0;
}
.hrv-modal-form .must-log-in a { color: var(--hrv-bar-fill); }

.hrv-f-row { margin-bottom: 18px; }
.hrv-f-row label {
	display: block;
	font-size: .8rem;
	color: var(--hrv-sub);
	margin-bottom: 7px;
	font-weight: 500;
}
.hrv-f-row input,
.hrv-f-row select,
.hrv-f-row textarea {
	width: 100%;
	font-family: 'Heebo', sans-serif;
	font-size: .9rem;
	padding: 11px 14px;
	border: 1px solid #E4DAD1;
	border-radius: 10px;
	background: #FAF6F2;
	color: var(--hrv-ink);
	resize: vertical;
}
.hrv-f-row input:focus,
.hrv-f-row select:focus,
.hrv-f-row textarea:focus { outline: none; border-color: var(--hrv-bar-fill); }

.hrv-f-stars-pick { display: flex; gap: 8px; }
.hrv-f-stars-pick svg { width: 26px; height: 26px; cursor: pointer; color: var(--hrv-bar-fill); }
.hrv-f-stars-pick--error svg { color: #C0392B; }

/* Visually hide the real rating <select>. */
select.hrv-native-rating {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* The site auto-runs niceSelect() on every <select>, which clones ours into a
   visible fake dropdown right next to the custom star picker — hide the clone. */
div.hrv-native-rating.nice-select { display: none !important; }

.hrv-f-submit,
.hrv-modal-form input.hrv-f-submit[type="submit"] {
	width: 100%;
	margin-top: 6px;
	padding: 14px;
	background: var(--hrv-ink);
	color: #fff;
	border: none;
	border-radius: 999px;
	font-size: .92rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s ease;
}
.hrv-f-submit:hover { background: var(--hrv-bar-fill); }
