/**
 * Reviews popup for the classic design (Red Kimchi): the same dialog, summary header,
 * review cards and form as the Sauerkraut popup. Copied from ucx.css so the two stay
 * visually identical; loaded only on classic products, together with reviews-modal.js.
 */

/* --------------------------------------------------------- reviews dialog */

body.hlc-modal-open {
	overflow: hidden;
}
.hlc-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	transition: opacity 0.2s ease;
}
.hlc-modal.is-open {
	opacity: 1;
}
.hlc-modal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 880px;
	max-height: min(880px, calc(100vh - 48px));
	background: #fff;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
	transform: translateY(12px);
	transition: transform 0.2s ease;
}
.hlc-modal.is-open .hlc-modal__dialog {
	transform: none;
}
.hlc-modal__body {
	overflow-y: auto;
	overflow-x: hidden;
	padding: 40px;
	box-sizing: border-box;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}
.hlc-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 3;
	width: 40px;
	height: 40px;
	min-width: 0;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
}
.hlc-modal__close::before,
.hlc-modal__close::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 16px;
	height: 2px;
	border-radius: 2px;
	background: #1a1a1a;
	transform: translate(-50%, -50%) rotate(45deg);
}
.hlc-modal__close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}
.hlc-modal__close:hover,
.hlc-modal__close:focus,
.hlc-modal__close:active {
	background: #f2f2f2;
	border-color: rgba(0, 0, 0, 0.15);
	color: inherit;
}
.hlc-modal__close:focus-visible,
.hlc-rp__write:focus-visible {
	outline: 3px solid #1b1b1b;
	outline-offset: 2px;
}

/* Panel inside the dialog */
.hlc-reviews--ucx {
	padding: 0;
	background: transparent;
	font-family: 'DM Sans', sans-serif;
	color: #111;
}
.hlc-reviews--ucx *,
.hlc-reviews--ucx *::before,
.hlc-reviews--ucx *::after {
	box-sizing: border-box;
}
.hlc-reviews--ucx .hlc-reviews__inner {
	max-width: none;
}

.hlc-rp__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 24px 40px;
	align-items: center;
	padding-bottom: 28px;
	margin-bottom: 28px;
	border-bottom: 1px solid #ececec;
}
.hlc-reviews--ucx .hlc-rp__title {
	grid-column: 1 / -1;
	margin: 0 56px 0 0;
	font: 800 28px/1.2 Montserrat, sans-serif;
	color: #000;
}
.hlc-rp__score {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 14px;
}
.hlc-reviews--ucx .hlc-rp__number {
	font: 800 56px/1 Montserrat, sans-serif;
	color: #000;
}
.hlc-reviews--ucx .hlc-rp__score .star-rating {
	float: none;
	margin: 0;
	font-size: 20px;
}
.hlc-reviews--ucx .hlc-rp__count {
	flex-basis: 100%;
	font: 400 14px/1.4 'DM Sans', sans-serif;
	color: #6b6b6b;
}
.hlc-rp__bars {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hlc-reviews--ucx .hlc-rp__bars li {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) 28px;
	gap: 10px;
	align-items: center;
	margin: 0;
	padding: 0;
	font: 500 13px/1.2 'DM Sans', sans-serif;
	color: #444;
}
.hlc-rp__bar {
	display: block;
	height: 8px;
	border-radius: 99px;
	background: #ececec;
	overflow: hidden;
}
.hlc-rp__bar i {
	display: block;
	height: 100%;
	border-radius: 99px;
	background: #1e1e1e;
}
.hlc-rp__bar-n {
	text-align: right;
}
.hlc-reviews--ucx a.hlc-rp__write {
	grid-column: 1 / -1;
	justify-self: start;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	padding: 0 28px;
	border-radius: 999px;
	background: #000;
	color: #fff;
	font: 700 14px/1 'DM Sans', sans-serif;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	text-decoration: none;
}
.hlc-reviews--ucx a.hlc-rp__write:hover {
	background: #1e1e1e;
	color: #fff;
}

/* WooCommerce stars: design orange on a light track */
.hlc-reviews--ucx .star-rating::before {
	color: #e3e3e3;
}
.hlc-reviews--ucx .star-rating span::before {
	color: #f7931e;
}

/* The header already names the section. */
.hlc-reviews--ucx .woocommerce-Reviews-title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Review cards */
#hlc-reviews #reviews #comments ol.commentlist {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}
#hlc-reviews #reviews #comments ol.commentlist li.review {
	margin: 0;
	padding: 0;
	border: 1px solid #ececec;
	border-radius: 20px;
	background: #fafafa;
	list-style: none;
}
#hlc-reviews #reviews #comments ol.commentlist li .comment_container {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px 24px;
}
#hlc-reviews #reviews #comments ol.commentlist li img.avatar {
	position: static;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #e8e8e8;
}
#hlc-reviews #reviews #comments ol.commentlist li img.avatar-default {
	display: none;
}
.hlc-reviews--ucx .hlc-rp__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #1e1e1e;
	color: #fff;
	font: 700 17px/1 Montserrat, sans-serif;
}
#hlc-reviews #reviews #comments ol.commentlist li .comment-text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}
#hlc-reviews #reviews #comments .comment-text .meta {
	order: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 10px;
	margin: 0 0 6px;
	font: 400 13px/1.4 'DM Sans', sans-serif;
	color: #6b6b6b;
}
#hlc-reviews #reviews #comments .comment-text .review-rating {
	order: 2;
	margin: 0 0 10px;
}
#hlc-reviews #reviews #comments .comment-text .star-rating {
	float: none;
	margin: 0;
	font-size: 14px;
}
#hlc-reviews #reviews #comments .comment-text .description {
	order: 3;
}
#hlc-reviews #reviews #comments .woocommerce-review__author {
	font: 700 16px/1.3 Montserrat, sans-serif;
	color: #000;
}
#hlc-reviews #reviews #comments .woocommerce-review__dash {
	display: none;
}
#hlc-reviews #reviews #comments .woocommerce-review__published-date {
	font: 400 13px/1.4 'DM Sans', sans-serif;
}
#hlc-reviews #reviews #comments .woocommerce-review__verified {
	padding: 2px 8px;
	border-radius: 99px;
	background: #e7f5ec;
	color: #1b6b3a;
	font: 700 11px/1.4 'DM Sans', sans-serif;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}
#hlc-reviews #reviews #comments .comment-text .description p {
	margin: 0;
	font: 400 15px/1.65 'DM Sans', sans-serif;
	color: #222;
}
#hlc-reviews #reviews #comments .woocommerce-review__awaiting-approval {
	font: italic 400 13px/1.5 'DM Sans', sans-serif;
	color: #6b6b6b;
}
.hlc-reviews--ucx .woocommerce-noreviews {
	margin: 0;
	font: 400 15px/1.6 'DM Sans', sans-serif;
	color: #444;
}

/* Review form */
#hlc-reviews #review_form_wrapper {
	margin-top: 32px;
	padding: 28px;
	border-radius: 24px;
	background: #f5f5f5;
}
#hlc-reviews #review_form_wrapper #review_form #respond {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}
#hlc-reviews #respond #reply-title {
	display: block;
	margin: 0 0 6px;
	font: 800 20px/1.3 Montserrat, sans-serif;
	color: #000;
}
#hlc-reviews #respond .comment-notes {
	margin: 0 0 16px;
	font: 400 13px/1.5 'DM Sans', sans-serif;
	color: #666;
}
#hlc-reviews #respond #commentform {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 16px;
}
#hlc-reviews #respond #commentform > * {
	grid-column: 1 / -1;
	margin: 0;
}
#hlc-reviews #respond #commentform > .comment-form-author,
#hlc-reviews #respond #commentform > .comment-form-email {
	grid-column: auto;
}
#hlc-reviews #respond #commentform label {
	display: block;
	margin: 0 0 6px;
	font: 700 14px/1.3 Montserrat, sans-serif;
	color: #000;
}
#hlc-reviews #respond #commentform input[type=text],
#hlc-reviews #respond #commentform input[type=email],
#hlc-reviews #respond #commentform textarea,
#hlc-reviews #respond #commentform select {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #d6d6d6;
	border-radius: 14px;
	background: #fff;
	box-shadow: none;
	font: 400 15px/1.5 'DM Sans', sans-serif;
	color: #111;
}
#hlc-reviews #respond #commentform textarea {
	min-height: 140px;
	resize: vertical;
}
#hlc-reviews #respond #commentform input:focus,
#hlc-reviews #respond #commentform textarea:focus,
#hlc-reviews #respond #commentform select:focus {
	border-color: #000;
	outline: 2px solid rgba(0, 0, 0, 0.12);
}
#hlc-reviews #respond #commentform p.stars a {
	color: #f7931e;
}
#hlc-reviews #respond #commentform #submit {
	height: 50px;
	padding: 0 32px;
	border: 0;
	border-radius: 999px;
	background: #000;
	color: #fff;
	font: 700 14px/1 'DM Sans', sans-serif;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	cursor: pointer;
}
#hlc-reviews #respond #commentform #submit:hover {
	background: #1e1e1e;
}

@media (max-width: 700px) {
	.hlc-modal {
		padding: 12px;
	}
	.hlc-modal__dialog {
		max-height: calc(100vh - 24px);
		border-radius: 20px;
	}
	.hlc-modal__body {
		padding: 24px 16px;
	}
	.hlc-rp__head {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}
	.hlc-reviews--ucx .hlc-rp__title {
		font-size: 22px;
	}
	.hlc-reviews--ucx .hlc-rp__number {
		font-size: 44px;
	}
	#hlc-reviews #reviews #comments ol.commentlist li .comment_container {
		padding: 16px;
		gap: 12px;
	}
	#hlc-reviews #review_form_wrapper {
		padding: 20px 16px;
	}
	#hlc-reviews #respond #commentform {
		grid-template-columns: minmax(0, 1fr);
	}
	#hlc-reviews #respond #commentform > .comment-form-author,
	#hlc-reviews #respond #commentform > .comment-form-email {
		grid-column: 1 / -1;
	}
}
/* Rating row: label and stars side by side, stars a readable size */
#hlc-reviews #respond #commentform .comment-form-rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
}
#hlc-reviews #respond #commentform .comment-form-rating label {
	margin: 0;
}
#hlc-reviews #respond #commentform p.stars {
	margin: 0;
	font-size: 22px;
	line-height: 1;
}
#hlc-reviews #respond #commentform p.stars a {
	color: #f7931e;
}
/* The theme frames the form wrapper itself; the grey card already does that. */
#hlc-reviews #review_form_wrapper #review_form {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

/* The design's own script used to hide WooCommerce's View cart link; it no longer runs here. */
.added_to_cart.wc-forward { display: none !important; }
