/* Osae Reviews. Palette matches the PDP buy box: ink #282828, amber #DC9814, line #e6e6e6. */

.osae-rv-stars {
	position: relative;
	display: inline-block;
	font-size: 15px;
	line-height: 1;
	letter-spacing: 1px;
	white-space: nowrap;
	vertical-align: -1px;
}
.osae-rv-stars::before {
	content: "★★★★★";
	color: #dcdcdc;
}
.osae-rv-stars-fill {
	position: absolute;
	top: 0;
	left: 0;
	width: var(--osae-rv-pct, 100%);
	overflow: hidden;
}
.osae-rv-stars-fill::before {
	content: "★★★★★";
	color: #DC9814;
}
.osae-rv-stars.is-sm { font-size: 13px; }
.osae-rv-stars.is-lg { font-size: 22px; letter-spacing: 2px; }

/* Stars line under the H1 (everyone) */
.osae-rv-line {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 2px 0 10px;
	font-size: 14px;
	color: #6b7280 !important;
	text-decoration: none !important;
}
.osae-rv-line-avg { color: #282828; font-weight: 600; }
.osae-rv-line:hover .osae-rv-line-count { text-decoration: underline; }

/* Shop grid: score on its own line under the title. Title and price stay on the row above. */
.nm-shop-loop-title-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	column-gap: 12px;
}
.nm-shop-loop-title-price .woocommerce-loop-product__title {
	flex: 1 1 auto;
	margin-bottom: 0;
}
.nm-shop-loop-title-price .price {
	float: none;
	margin-left: auto;
}
.osae-rv-loop {
	display: flex;
	align-items: center;
	gap: 5px;
	flex: 1 0 100%;
	order: 3;
	margin: 6px 0 10px;
	font-size: 13px;
	line-height: 1;
	color: #777777 !important;
	text-decoration: none !important;
	background: #fff;
}
.osae-rv-loop:hover,
.osae-rv-loop:focus {
	text-decoration: none !important;
}
/* Hover links are pinned to the bottom of the card details. Drop them below the score
   so their underline does not cut through the stars. */
ul.products li.product .nm-shop-loop-details:has(.osae-rv-loop) .nm-shop-loop-actions {
	top: calc(100% + 2px);
	bottom: auto;
}

/* Organic row: collapsed, one line, under the buy box */
.osae-rv-organic {
	margin: 18px 0 0;
	border: 1px solid #e6e6e6;
	border-radius: 10px;
	background: #fff;
}
.osae-rv-organic > summary {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 14px;
	list-style: none;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: #282828;
}
.osae-rv-organic > summary::-webkit-details-marker { display: none; }
.osae-rv-organic-avg { font-weight: 500; color: #6b7280; }
.osae-rv-chevron {
	margin-left: auto;
	width: 8px;
	height: 8px;
	border-right: 1.5px solid #6b7280;
	border-bottom: 1.5px solid #6b7280;
	transform: rotate(45deg);
	transition: transform .2s ease;
}
.osae-rv-organic[open] .osae-rv-chevron { transform: rotate(-135deg); }
.osae-rv-organic-body { padding: 0 14px 12px; }
.osae-rv-organic-list { list-style: none; margin: 0; padding: 0; }
.osae-rv-text { padding: 12px 0; border-top: 1px solid #f0f0f0; }
.osae-rv-text-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	font-size: 13px;
}
.osae-rv-author { font-weight: 600; color: #282828; }
.osae-rv-verified { color: #3f7f4f; font-size: 12px; }
.osae-rv-verified::before { content: "✓ "; }
.osae-rv-date { color: #6b7280; font-size: 12px; }
.osae-rv-text-head .osae-rv-date { margin-left: auto; }
.osae-rv-title { margin: 6px 0 2px; font-size: 14px; font-weight: 600; color: #282828; }
.osae-rv-body { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: #374151; }
.osae-rv-organic-more {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 10px;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	color: #282828;
	cursor: pointer;
}
.osae-rv-organic-empty { margin: 4px 0 0; font-size: 13px; color: #6b7280; }

/* Quiz visitors: organic row is replaced by the full module */
.osae-rv-on .osae-rv-organic { display: none !important; }
.osae-rv-full[hidden] { display: none !important; }

/* Full module */
.osae-rv-full {
	clear: both;
	max-width: 1200px;
	margin: 48px auto;
	padding: 0 20px;
	box-sizing: border-box;
	color: #282828;
}
.osae-rv-heading { margin: 0 0 16px; font-size: 24px; font-weight: 700; }
.osae-rv-head-row {
	display: grid;
	grid-template-columns: auto minmax(220px, 360px) 1fr;
	gap: 24px 40px;
	align-items: center;
	padding-bottom: 24px;
	border-bottom: 1px solid #e6e6e6;
}
.osae-rv-score { display: grid; justify-items: start; justify-content: start; gap: 6px; }
.osae-rv-avg { font-size: 44px; font-weight: 700; line-height: 1; }
.osae-rv-total { font-size: 14px; color: #6b7280; }
.osae-rv-hist { display: grid; gap: 6px; }
.osae-rv-hist-row {
	display: grid;
	grid-template-columns: 30px 1fr 40px;
	align-items: center;
	gap: 10px;
	padding: 2px 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 13px;
	color: #282828;
	text-align: left;
	cursor: pointer;
}
.osae-rv-hist-row[disabled] { cursor: default; opacity: .5; }
.osae-rv-hist-bar { height: 8px; border-radius: 4px; background: #eeeeee; overflow: hidden; }
.osae-rv-hist-bar span { display: block; height: 100%; background: #DC9814; border-radius: 4px; }
.osae-rv-hist-n { color: #6b7280; text-align: right; }
.osae-rv-hist-row.is-active { font-weight: 700; }
.osae-rv-hist-row.is-active .osae-rv-hist-bar { outline: 2px solid #282828; outline-offset: 1px; }
.osae-rv-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-self: end; }
.osae-rv-chip {
	padding: 8px 14px;
	border: 1px solid #e6e6e6;
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	color: #282828;
	cursor: pointer;
}
.osae-rv-chip.is-active { background: #282828; border-color: #282828; color: #fff; }

.osae-rv-grid { display: flex; gap: 16px; margin-top: 24px; align-items: flex-start; }
.osae-rv-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.osae-rv-list { display: flex; flex-direction: column; gap: 12px; }

.osae-rv-card {
	border: 1px solid #e6e6e6;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	cursor: pointer;
	transition: box-shadow .2s ease;
}
.osae-rv-card:hover,
.osae-rv-card:focus-visible { box-shadow: 0 6px 20px rgba(0, 0, 0, .08); outline: none; }
.osae-rv-media { position: relative; background: #f4f4f4; overflow: hidden; }
.osae-rv-media img,
.osae-rv-media video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}
.osae-rv-play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 52px;
	height: 52px;
	margin: -26px 0 0 -26px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55);
}
.osae-rv-play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 9px 0 9px 15px;
	border-color: transparent transparent transparent #fff;
}
.osae-rv-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .6);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
}
.osae-rv-card-body { padding: 12px 14px 14px; }
.osae-rv-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.osae-rv-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; font-size: 13px; }
.osae-rv-product { margin-top: 2px; font-size: 12px; color: #6b7280; }
.osae-rv-card .osae-rv-body {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.osae-rv-readmore { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; color: #282828; text-decoration: underline; }
.osae-rv-foot { margin-top: 24px; text-align: center; }
.osae-rv-loadmore {
	padding: 12px 22px;
	border: 1px solid #282828;
	border-radius: 10px;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	color: #282828;
	cursor: pointer;
}
.osae-rv-loadmore[disabled] { opacity: .5; cursor: default; }
.osae-rv-empty { margin: 24px 0 0; font-size: 14px; color: #6b7280; text-align: center; }

@media (max-width: 899px) {
	.osae-rv-head-row { grid-template-columns: auto 1fr; }
	.osae-rv-chips { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 599px) {
	.osae-rv-full { margin: 32px auto; padding: 0 14px; }
	.osae-rv-head-row { grid-template-columns: 1fr; gap: 16px; }
	.osae-rv-score { grid-template-columns: auto auto; align-items: center; column-gap: 10px; }
	.osae-rv-total { grid-column: 1 / -1; }
	.osae-rv-avg { font-size: 36px; }
	.osae-rv-grid, .osae-rv-col { gap: 10px; }
	.osae-rv-card-body { padding: 10px 10px 12px; }
	.osae-rv-card .osae-rv-body { -webkit-line-clamp: 5; font-size: 13px; }
}

/* Lightbox */
body.osae-rv-lock { overflow: hidden !important; }
.osae-rv-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .72);
}
.osae-rv-lb-dialog {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	width: min(980px, 92vw);
	max-height: 88vh;
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
}
.osae-rv-lb-dialog.is-text { grid-template-columns: 1fr; width: min(560px, 92vw); }
.osae-rv-lb-media { display: flex; flex-direction: column; justify-content: center; background: #111; min-height: 320px; }
.osae-rv-lb-media img,
.osae-rv-lb-media video { display: block; width: 100%; max-height: 80vh; object-fit: contain; }
.osae-rv-lb-thumbs { display: flex; gap: 6px; padding: 8px; background: #111; overflow-x: auto; }
.osae-rv-lb-thumbs button {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 6px;
	background: #333 center / cover no-repeat;
	color: #fff;
	font-size: 16px;
	cursor: pointer;
}
.osae-rv-lb-thumbs button.is-active { border-color: #DC9814; }
.osae-rv-lb-text { padding: 28px 24px; overflow-y: auto; color: #282828; }
.osae-rv-lb-text .osae-rv-body { font-size: 15px; }
.osae-rv-lb-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	font-size: 20px;
	line-height: 36px;
	color: #282828;
	cursor: pointer;
}
.osae-rv-lb-nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	font-size: 22px;
	color: #282828;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
	cursor: pointer;
}
.osae-rv-lb-prev { left: max(12px, calc(50% - min(980px, 92vw) / 2 - 60px)); }
.osae-rv-lb-next { right: max(12px, calc(50% - min(980px, 92vw) / 2 - 60px)); }
.osae-rv-lb-nav[hidden] { display: none; }

@media (max-width: 699px) {
	.osae-rv-lb { align-items: stretch; }
	.osae-rv-lb-dialog,
	.osae-rv-lb-dialog.is-text {
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr;
		width: 100vw;
		max-height: none;
		height: 100%;
		border-radius: 0;
	}
	.osae-rv-lb-media { min-height: 0; }
	.osae-rv-lb-media img,
	.osae-rv-lb-media video { max-height: 55vh; }
	.osae-rv-lb-nav { top: auto; bottom: 16px; margin-top: 0; }
	.osae-rv-lb-prev { left: 16px; }
	.osae-rv-lb-next { right: 16px; }
	.osae-rv-lb-text { padding: 20px 18px 80px; }
}

/* Floating tab + drawer (quiz visitors) */
.osae-rv-tab {
	position: fixed;
	top: 50%;
	right: 0;
	z-index: 9990;
	transform: translateY(-50%);
	writing-mode: vertical-rl;
	padding: 18px 13px;
	border: 0;
	border-radius: 10px 0 0 10px;
	background: #DC9814;
	color: #282828;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: .04em;
	line-height: 1;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
	cursor: pointer;
}
.osae-rv-tab-star { display: inline-block; margin-bottom: 8px; font-size: 22px; line-height: 1; }
.osae-rv-scrim {
	position: fixed;
	inset: 0;
	z-index: 99980;
	background: rgba(0, 0, 0, .35);
	opacity: 0;
	transition: opacity .25s ease;
}
.osae-rv-scrim.is-open { opacity: 1; }
.osae-rv-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 99990;
	display: flex;
	flex-direction: column;
	width: min(440px, 100vw);
	background: #fafafa;
	box-shadow: -8px 0 30px rgba(0, 0, 0, .12);
	transform: translateX(100%);
	transition: transform .28s ease;
	color: #282828;
}
.osae-rv-drawer.is-open { transform: translateX(0); }
.osae-rv-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	border-bottom: 1px solid #e6e6e6;
	background: #fff;
}
.osae-rv-drawer-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.osae-rv-drawer-close { width: 36px; height: 36px; border: 0; background: none; font-size: 22px; color: #282828; cursor: pointer; }
.osae-rv-drawer-body { flex: 1; overflow-y: auto; padding: 16px 18px 24px; }
.osae-rv-drawer .osae-rv-full { max-width: none; margin: 0; padding: 0; }
.osae-rv-drawer .osae-rv-head-row { grid-template-columns: 1fr; gap: 12px; padding-bottom: 16px; }
.osae-rv-drawer .osae-rv-score { grid-template-columns: auto auto; align-items: center; column-gap: 10px; }
.osae-rv-drawer .osae-rv-total { grid-column: 1 / -1; }
.osae-rv-drawer .osae-rv-avg { font-size: 32px; }
.osae-rv-drawer .osae-rv-chips { justify-self: start; }
.osae-rv-drawer .osae-rv-list { margin-top: 16px; }
.osae-rv-list .osae-rv-media { max-height: 260px; }

@media (max-width: 599px) {
	.osae-rv-tab { padding: 16px 12px; font-size: 17px; }
	.osae-rv-tab-star { font-size: 20px; }
	.osae-rv-drawer {
		top: auto;
		width: 100vw;
		height: 86vh;
		border-radius: 16px 16px 0 0;
		transform: translateY(100%);
	}
	.osae-rv-drawer.is-open { transform: translateY(0); }
}

/* Cart / checkout line items */
.osae-rv-cart { display: inline-block; margin-top: 2px; font-size: 12px; font-weight: 400; color: #6b7280; letter-spacing: 0; }
.osae-rv-cart-on { color: #DC9814; letter-spacing: 1px; }
.osae-rv-cart-off { color: #dcdcdc; letter-spacing: 1px; }
