/* Half Skull: product review section (prefix hs-rvw). Product pages only. */
:root { --hsr-ink: #131316; --hsr-mute: #6f6b75; --hsr-red: #ff0225; --hsr-ok: #0b6b36; --hsr-okbg: #e6f5ec; --hsr-soft: #f4f1ee; --hsr-line: rgba(19, 19, 22, .08); }

/* ---------------------------------------------------------------- summary */
html body .hs-revsum { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px; align-items: end; }
html body .hs-revsum__title { grid-column: 1; margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 900; letter-spacing: -.02em; color: var(--hsr-ink); }
html body .hs-revsum__title::after { content: ""; display: block; width: 46px; height: 5px; margin-top: 8px; border-radius: 5px; background: var(--hsr-red); }
html body .hs-revsum__cta { grid-column: 2; grid-row: 1; justify-self: end; }
html body .hs-revsum__body, html body .hs-revsum__empty { grid-column: 1 / -1; }
html body .hs-revsum__body { gap: 36px; padding: 22px 26px; border-radius: 26px; background: #fff; box-shadow: 0 0 0 1px var(--hsr-line), 0 12px 30px rgba(19, 19, 22, .08); }
html body .hs-revsum__avg b { font-size: 56px; font-weight: 900; letter-spacing: -.03em; }
html body .hs-revsum__stars { font-size: 18px; }
html body .hs-revsum__bars { max-width: none; min-width: 260px; flex: 1 1 320px; }
html body .hs-revsum__row { grid-template-columns: 34px 1fr 42px 40px; font-size: 13px; }
html body .hs-revsum__bar { height: 9px; background: #ece7e1; }
html body .hs-revsum__bar i { background: linear-gradient(90deg, var(--hsr-red), #ff6a3d); border-radius: 9px; }

/* ----------------------------------------------- layout of the review list */
html body #reviews, html body .woocommerce-Tabs-panel--reviews #reviews { width: 100% !important; max-width: none !important; float: none !important; margin: 0 !important; }
html body #reviews #comments, html body .woocommerce #reviews #comments { width: 100% !important; max-width: none !important; float: none !important; }
html body .woocommerce-Tabs-panel--reviews { padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
html body #reviews .woocommerce-Reviews-title { display: none; }

html body #reviews ol.commentlist {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 4px 0 8px;
	list-style: none;
	border: 0;
}
/* theme clearfix pseudo-elements would otherwise take the first grid cells */
html body #reviews #comments ol.commentlist::before,
html body #reviews #comments ol.commentlist::after { content: none !important; display: none !important; }
html body #reviews #comments ol.commentlist li.review,
html body #reviews #comments ol.commentlist li.comment {
	display: flex !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	list-style: none !important;
}
html body #reviews #comments ol.commentlist li.review::before,
html body #reviews #comments ol.commentlist li.review::after { content: none !important; display: none !important; }
html body #reviews #comments ol.commentlist li .comment_container { flex: 1 1 auto; width: 100%; }
html body #reviews #comments ol.commentlist li .comment_container {
	position: relative;
	display: grid !important;
	grid-template-columns: 56px minmax(0, 1fr);
	column-gap: 14px;
	align-items: start;
	height: 100%;
	padding: 18px 18px 16px !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--hsr-line), 0 8px 24px rgba(19, 19, 22, .07);
	transition: transform .2s, box-shadow .2s;
}
html body #reviews ol.commentlist li .comment_container:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 2, 37, .25), 0 14px 30px rgba(19, 19, 22, .12); }
html body #reviews #comments ol.commentlist li img.avatar {
	grid-column: 1 !important;
	grid-row: 1 !important;
	position: static !important;
	float: none !important;
	width: 56px !important;
	height: 56px !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #fff;
	object-fit: cover;
	box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--hsr-line);
}
html body #reviews #comments ol.commentlist li .comment-text {
	grid-column: 2 !important;
	grid-row: 1 !important;
	display: flex !important;
	flex-direction: column;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}
html body #reviews .comment-text .meta { order: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 2px 0 6px; font-size: 13px; color: var(--hsr-mute); }
html body #reviews .comment-text .woocommerce-review__author { font-size: 16px; font-weight: 800; color: var(--hsr-ink); }
html body #reviews .comment-text .woocommerce-review__dash { display: none; }
html body #reviews .comment-text .woocommerce-review__published-date { font-size: 12px; color: var(--hsr-mute); }
html body #reviews .comment-text .star-rating { order: 2; float: none; margin: 0 0 8px; font-size: 14px; }
html body #reviews .comment-text .star-rating span::before { color: #f58a1f; }
html body #reviews .comment-text .description { order: 3; }
html body #reviews .comment-text .description p { margin: 0 0 6px; font-size: 15px; line-height: 1.6; color: #2c2830; }
html body #reviews .comment-text .hs-rv-extra { order: 4; }
html body #reviews .comment-text .hs-rvw-foot { order: 5; }

/* Verified Buyer pill (Woo's "(verified owner)" text) */
html body .woocommerce-review__verified { font-size: 0 !important; font-style: normal !important; display: inline-flex; vertical-align: middle; margin: 0; }
html body .woocommerce-review__verified::before {
	content: "\2713  Verified Buyer"; font-size: 11px; font-weight: 800; letter-spacing: .02em; line-height: 1;
	color: var(--hsr-ok); background: var(--hsr-okbg); padding: 4px 9px; border-radius: 999px;
}

html body .hs-rvw-tag { display: inline-block; margin: 0 0 8px; padding: 4px 10px; border-radius: 999px; background: var(--hsr-ink); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .03em; }
html body .hs-rvw-vb { display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 999px; background: var(--hsr-okbg); color: var(--hsr-ok); font-size: 11px; font-weight: 800; }
html body #reviews ol.commentlist li.hs-rvw-feat .comment_container { box-shadow: 0 0 0 2px var(--hsr-red), 0 12px 30px rgba(255, 2, 37, .14); }

/* --------------------------------------------------------- highlights row */
.hs-rvw-top { max-width: 1320px; margin: 18px auto 0; padding: 0 15px; }
.hs-rvw-top__h { font-size: 15px; font-weight: 800; margin: 18px 0 10px; color: var(--hsr-ink); }
.hs-rvw-top__h span { color: var(--hsr-mute); font-weight: 600; }
.hs-rvw-hl { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.hs-rvw-card { margin: 0; padding: 16px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 2px var(--hsr-ink) inset; }
.hs-rvw-card__stars { color: #f58a1f; letter-spacing: 2px; font-size: 14px; }
.hs-rvw-card blockquote { margin: 8px 0 10px; padding: 0; border: 0; font-size: 14px; line-height: 1.5; color: #2a2730; }
.hs-rvw-card figcaption { font-size: 12px; color: var(--hsr-mute); }
.hs-rvw-card figcaption b { color: var(--hsr-ink); }
.hs-rvw-photos { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.hs-rvw-ph { flex: 0 0 auto; display: block; }
.hs-rvw-ph img { display: block; width: 84px; height: 84px; object-fit: cover; border-radius: 14px; }

/* ---------------------------------------------- filter chips and sort (fix) */
html body #reviews .hs-rvw-bar { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin: 18px 0 14px; }
html body #reviews .hs-rvw-chips { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 8px; }
html body #reviews button.hs-rvw-chip {
	appearance: none;
	margin: 0;
	padding: 9px 15px;
	border: 0 !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: var(--hsr-ink) !important;
	box-shadow: 0 0 0 1.5px var(--hsr-line) !important;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background .18s, color .18s, box-shadow .18s, transform .18s;
}
html body #reviews button.hs-rvw-chip:hover { background: #fff !important; color: var(--hsr-red) !important; box-shadow: 0 0 0 1.5px var(--hsr-red) !important; }
html body #reviews button.hs-rvw-chip:focus, html body #reviews button.hs-rvw-chip:active { background: #fff !important; color: var(--hsr-ink) !important; outline: 0; box-shadow: 0 0 0 1.5px var(--hsr-red) !important; }
html body #reviews button.hs-rvw-chip.is-on,
html body #reviews button.hs-rvw-chip.is-on:hover,
html body #reviews button.hs-rvw-chip.is-on:focus,
html body #reviews button.hs-rvw-chip.is-on:active {
	background: var(--hsr-ink) !important;
	color: #fff !important;
	box-shadow: 0 6px 16px rgba(19, 19, 22, .28) !important;
}
html body #reviews select.hs-rvw-sort {
	height: auto;
	padding: 9px 36px 9px 14px;
	border: 0;
	border-radius: 999px;
	background-color: #fff;
	color: var(--hsr-ink);
	box-shadow: 0 0 0 1.5px var(--hsr-line);
	font-size: 13px;
	font-weight: 700;
}
html body #reviews select.hs-rvw-sort:focus { outline: 0; box-shadow: 0 0 0 1.5px var(--hsr-red); }

/* ----------------------------------------- show more, size, helpful (fix) */
html body #reviews .hs-rvw-off { display: none !important; }
html body #reviews .hs-rvw-empty { margin: 8px 0; padding: 16px; border-radius: 16px; background: var(--hsr-soft); color: #4d4952; }
html body #reviews button.hs-rvw-more {
	display: block;
	margin: 18px auto 0;
	padding: 13px 30px;
	border: 2px solid var(--hsr-ink) !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: var(--hsr-ink) !important;
	font-family: inherit;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}
html body #reviews button.hs-rvw-more:hover, html body #reviews button.hs-rvw-more:focus { background: var(--hsr-ink) !important; color: #fff !important; outline: 0; }

html body .hs-rvw-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
html body .hs-rvw-size { padding: 4px 10px; border-radius: 999px; background: var(--hsr-soft); font-size: 12px; font-weight: 700; color: var(--hsr-mute); }
html body #reviews button.hs-rvw-help {
	appearance: none;
	margin: 0 0 0 auto;
	padding: 7px 14px;
	border: 0 !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: var(--hsr-ink) !important;
	box-shadow: 0 0 0 1.5px var(--hsr-line) !important;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background .18s, color .18s, box-shadow .18s;
}
html body #reviews button.hs-rvw-help:hover { color: var(--hsr-red) !important; box-shadow: 0 0 0 1.5px var(--hsr-red) !important; background: #fff !important; }
html body #reviews button.hs-rvw-help:focus, html body #reviews button.hs-rvw-help:active { background: #fff !important; color: var(--hsr-ink) !important; outline: 0; }
html body #reviews button.hs-rvw-help.is-done,
html body #reviews button.hs-rvw-help.is-done:hover,
html body #reviews button.hs-rvw-help.is-done:focus,
html body #reviews button.hs-rvw-help.is-done:active,
html body #reviews button.hs-rvw-help:disabled {
	background: #ffe9ec !important;
	color: var(--hsr-red) !important;
	box-shadow: 0 0 0 1.5px rgba(255, 2, 37, .35) !important;
	cursor: default;
	opacity: 1;
}

/* ------------------------------------------------------- write a review box */
html body #reviews #review_form_wrapper { width: 100% !important; max-width: none !important; margin-top: 26px; padding: 24px; border-radius: 26px; background: #fff; box-shadow: 0 0 0 1px var(--hsr-line), 0 12px 30px rgba(19, 19, 22, .08); }

/* --------------------------------------------------------------- lightbox */
.hs-rvw-lb { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(10, 10, 12, .88); padding: 16px; }
.hs-rvw-lb[hidden] { display: none; }
.hs-rvw-lb img { max-width: 100%; max-height: 92vh; border-radius: 14px; display: block; }
.hs-rvw-lb button { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: var(--hsr-ink); font-size: 24px; line-height: 1; cursor: pointer; }

/* ------------------------------------------------------------ small screens */
@media (max-width: 991px) {
	html body #reviews ol.commentlist { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	html body .hs-revsum { grid-template-columns: 1fr; }
	html body .hs-revsum__cta { grid-column: 1; grid-row: auto; justify-self: start; }
	html body .hs-revsum__body { padding: 18px 16px; gap: 18px; }
	html body #reviews #comments ol.commentlist li .comment_container { grid-template-columns: 46px minmax(0, 1fr); column-gap: 12px; padding: 14px 14px 12px !important; border-radius: 20px; }
	html body #reviews #comments ol.commentlist li img.avatar { width: 46px !important; height: 46px !important; }
	html body #reviews .hs-rvw-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
	html body #reviews .hs-rvw-chips::-webkit-scrollbar { display: none; }
	html body #reviews button.hs-rvw-chip { flex: 0 0 auto; }
	html body #reviews select.hs-rvw-sort { width: 100%; }
	html body #reviews #review_form_wrapper { padding: 18px 16px; border-radius: 22px; }
}
