/**
 * W&H Reviews — front end
 *
 * Scoped under .whr / .whr-* so it cannot leak into the theme. Colours come
 * from two custom properties set per widget, so the accent follows the plugin
 * settings without a stylesheet rebuild.
 */

.whr,
.whr-rating,
.whr-store,
.whr-badge,
.whr-banner,
.whr-gallery,
.whr-carousel,
.whr-qa,
.whr-order-cta {
	--whr-accent: #c9a227;
	--whr-star: #c9a227;
	--whr-ink: #1c1c1c;
	--whr-muted: #6b6b6b;
	--whr-line: #e6e3dc;
	--whr-bg: #ffffff;
	--whr-soft: #faf9f6;
	--whr-radius: 14px;
	--whr-star-size: 16px;
	box-sizing: border-box;
	color: var(--whr-ink);
	font-family: inherit;
}

.whr *,
.whr-rating *,
.whr-store *,
.whr-badge *,
.whr-banner *,
.whr-gallery *,
.whr-carousel *,
.whr-qa * {
	box-sizing: border-box;
}

/* ---------- stars ---------- */
.whr-stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	line-height: 1;
	vertical-align: middle;
}
.whr-star {
	position: relative;
	display: inline-block;
	width: var(--whr-star-size);
	height: var(--whr-star-size);
}
.whr-star svg {
	width: var(--whr-star-size);
	height: var(--whr-star-size);
	display: block;
}
.whr-star__bg svg { fill: #dcd9d1; }
.whr-star__fg {
	position: absolute;
	inset: 0;
	overflow: hidden;
}
.whr-star__fg svg { fill: var(--whr-star); }

/* ---------- inline rating ---------- */
.whr-rating {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	text-decoration: none;
	color: inherit;
}
.whr-rating--link:hover .whr-rating__count { text-decoration: underline; }
.whr-rating__avg { font-weight: 700; }
.whr-rating__count { color: var(--whr-muted); }
.whr-rating--empty .whr-rating__count { font-size: 13px; }

/* ---------- summary ---------- */
.whr-summary {
	display: grid;
	grid-template-columns: minmax(180px, 220px) 1fr auto;
	gap: 28px;
	align-items: center;
	padding: 24px;
	border: 1px solid var(--whr-line);
	border-radius: var(--whr-radius);
	background: var(--whr-soft);
	margin-bottom: 24px;
}
.whr-summary__score { text-align: center; }
.whr-summary__avg {
	font-size: 44px;
	font-weight: 800;
	line-height: 1;
	margin-bottom: 8px;
}
.whr-summary__total { font-size: 13px; color: var(--whr-muted); margin-top: 8px; }
.whr-summary__group {
	display: inline-block;
	margin-top: 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--whr-accent);
	border: 1px solid color-mix(in srgb, var(--whr-accent) 40%, transparent);
	border-radius: 999px;
	padding: 3px 10px;
}
.whr-summary__bars { display: grid; gap: 6px; }
.whr-bar {
	display: grid;
	grid-template-columns: 42px 1fr 40px;
	align-items: center;
	gap: 10px;
	background: none;
	border: 0;
	padding: 2px 0;
	cursor: pointer;
	font: inherit;
	color: inherit;
	text-align: left;
}
.whr-bar[disabled] { cursor: default; opacity: .55; }
.whr-bar:not([disabled]):hover .whr-bar__fill { filter: brightness(1.08); }
.whr-bar__label {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 13px;
	color: var(--whr-muted);
}
.whr-bar__label svg { width: 11px; height: 11px; fill: var(--whr-star); }
.whr-bar__track {
	height: 9px;
	border-radius: 999px;
	background: #e9e6df;
	overflow: hidden;
}
.whr-bar__fill {
	display: block;
	height: 100%;
	background: var(--whr-star);
	border-radius: 999px;
	transition: width .4s ease;
}
.whr-bar__n { font-size: 12px; color: var(--whr-muted); text-align: right; }
.whr-summary__cta { text-align: center; }
.whr-summary__media-note { font-size: 12px; color: var(--whr-muted); margin-bottom: 10px; }

/* ---------- buttons ---------- */
.whr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 12px 22px;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.whr-btn:hover { transform: translateY(-1px); }
.whr-btn--primary { background: var(--whr-accent); color: #0b0b0b; }
.whr-btn--primary:hover { box-shadow: 0 8px 20px color-mix(in srgb, var(--whr-accent) 35%, transparent); }
.whr-btn--ghost { background: transparent; border-color: var(--whr-line); color: var(--whr-ink); }
.whr-btn--ghost:hover { border-color: var(--whr-ink); }
.whr-btn--text { background: none; border: 0; color: var(--whr-muted); padding: 12px 8px; }
.whr-btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- toolbar ---------- */
.whr-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}
.whr-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.whr-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border: 1px solid var(--whr-line);
	background: var(--whr-bg);
	border-radius: 999px;
	padding: 7px 14px;
	font: inherit;
	font-size: 13px;
	cursor: pointer;
	color: var(--whr-ink);
}
.whr-chip svg { width: 11px; height: 11px; fill: var(--whr-star); }
.whr-chip:hover { border-color: var(--whr-ink); }
.whr-chip.is-active {
	background: var(--whr-ink);
	border-color: var(--whr-ink);
	color: #fff;
}
.whr-chip.is-active svg { fill: var(--whr-accent); }
.whr-toolbar__right { display: flex; gap: 10px; align-items: center; }
.whr-search {
	position: relative;
	display: inline-flex;
	align-items: center;
}
.whr-search svg {
	position: absolute;
	left: 10px;
	width: 15px;
	height: 15px;
	fill: none;
	stroke: var(--whr-muted);
	stroke-width: 2;
	stroke-linecap: round;
}
.whr-search input,
.whr-sort select {
	border: 1px solid var(--whr-line);
	border-radius: 999px;
	padding: 8px 14px;
	font: inherit;
	font-size: 13px;
	background: var(--whr-bg);
	color: inherit;
}
.whr-search input { padding-left: 32px; min-width: 180px; }

/* ---------- list ---------- */
.whr-list { display: grid; gap: 20px; }
.whr-list.is-loading { opacity: .5; pointer-events: none; }
.whr-review {
	border: 1px solid var(--whr-line);
	border-radius: var(--whr-radius);
	padding: 20px;
	background: var(--whr-bg);
}
.whr-review__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 12px;
}
.whr-review__who { display: flex; gap: 12px; align-items: center; }
.whr-review__avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--whr-soft);
	border: 1px solid var(--whr-line);
	display: grid;
	place-items: center;
	font-weight: 700;
	font-size: 15px;
	color: var(--whr-muted);
	flex-shrink: 0;
}
.whr-review__name {
	font-weight: 700;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.whr-verified {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 11px;
	font-weight: 600;
	color: #1f8a4c;
}
.whr-verified svg { width: 13px; height: 13px; fill: #1f8a4c; }
.whr-verified__tick { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.whr-review__meta { font-size: 12px; color: var(--whr-muted); margin-top: 2px; }
.whr-dot { margin: 0 5px; }
.whr-source { font-weight: 600; }
.whr-review__title { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.whr-review__body { font-size: 14px; line-height: 1.6; }
.whr-review__product {
	display: inline-block;
	margin-top: 10px;
	font-size: 12px;
	color: var(--whr-muted);
	text-decoration: none;
	border-bottom: 1px solid var(--whr-line);
}
.whr-review__media { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.whr-thumb {
	position: relative;
	width: 72px;
	height: 72px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--whr-line);
	padding: 0;
	background: var(--whr-soft);
	cursor: pointer;
}
.whr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.whr-thumb:hover { border-color: var(--whr-accent); }
.whr-thumb__play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(0,0,0,.35);
}
.whr-thumb__play svg { width: 26px; height: 26px; fill: #fff; }
.whr-reply {
	margin-top: 14px;
	padding: 12px 14px;
	background: var(--whr-soft);
	border-left: 3px solid var(--whr-accent);
	border-radius: 0 10px 10px 0;
}
.whr-reply__head { font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.whr-reply__head span { font-weight: 400; color: var(--whr-muted); }
.whr-reply__body { font-size: 13px; line-height: 1.55; }
.whr-review__foot {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--whr-line);
}
.whr-helpful__label { font-size: 12px; color: var(--whr-muted); margin-right: 4px; }
.whr-helpful {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	border: 1px solid var(--whr-line);
	background: none;
	border-radius: 999px;
	padding: 5px 11px;
	font: inherit;
	font-size: 12px;
	cursor: pointer;
	color: var(--whr-muted);
}
.whr-helpful svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.whr-helpful:hover { border-color: var(--whr-ink); color: var(--whr-ink); }
.whr-helpful.is-voted { border-color: var(--whr-accent); color: var(--whr-ink); background: color-mix(in srgb, var(--whr-accent) 12%, transparent); }
.whr-empty { text-align: center; padding: 40px 20px; color: var(--whr-muted); }
.whr-more { text-align: center; margin-top: 22px; }

/* ---------- form ---------- */
.whr-form-wrap {
	display: none;
	margin-top: 24px;
}
.whr-form-wrap.is-open { display: block; }
.whr-form {
	border: 1px solid var(--whr-line);
	border-radius: var(--whr-radius);
	padding: 22px;
	background: var(--whr-bg);
	display: grid;
	gap: 16px;
}
.whr-form__title { margin: 0; font-size: 18px; }
.whr-field { display: grid; gap: 6px; }
.whr-label { font-size: 13px; font-weight: 600; }
.whr-req { color: #c2382b; }
.whr-hint { font-size: 11px; color: var(--whr-muted); }
.whr-form input[type="text"],
.whr-form input[type="email"],
.whr-form textarea {
	width: 100%;
	border: 1px solid var(--whr-line);
	border-radius: 10px;
	padding: 11px 13px;
	font: inherit;
	font-size: 14px;
	background: var(--whr-bg);
	color: inherit;
}
.whr-form input:focus,
.whr-form textarea:focus {
	outline: none;
	border-color: var(--whr-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--whr-accent) 22%, transparent);
}
.whr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.whr-rate { display: flex; align-items: center; gap: 4px; }
.whr-rate__star {
	background: none;
	border: 0;
	padding: 2px;
	cursor: pointer;
	line-height: 0;
}
.whr-rate__star svg { width: 30px; height: 30px; fill: #dcd9d1; transition: fill .12s ease, transform .12s ease; }
.whr-rate__star:hover svg { transform: scale(1.12); }
.whr-rate__star.is-on svg { fill: var(--whr-star); }
.whr-rate__hint { font-size: 13px; color: var(--whr-muted); margin-left: 10px; }
.whr-drop {
	border: 2px dashed var(--whr-line);
	border-radius: 12px;
	padding: 22px;
	text-align: center;
	cursor: pointer;
	color: var(--whr-muted);
	font-size: 13px;
	display: grid;
	gap: 8px;
	justify-items: center;
	transition: border-color .2s ease, background .2s ease;
}
.whr-drop svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.whr-drop:hover,
.whr-drop.is-over { border-color: var(--whr-accent); background: color-mix(in srgb, var(--whr-accent) 6%, transparent); }
.whr-previews { display: flex; gap: 8px; flex-wrap: wrap; }
.whr-preview {
	position: relative;
	width: 68px;
	height: 68px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--whr-line);
}
.whr-preview img,
.whr-preview video { width: 100%; height: 100%; object-fit: cover; }
.whr-preview__x {
	position: absolute;
	top: 3px;
	right: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 0;
	background: rgba(0,0,0,.65);
	color: #fff;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}
.whr-form__foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.whr-form__perk {
	font-size: 12px;
	font-weight: 600;
	color: var(--whr-accent);
	margin-left: auto;
}
.whr-form__msg { font-size: 13px; }
.whr-form__msg.is-error { color: #c2382b; }
.whr-form__msg.is-ok { color: #1f8a4c; }
.whr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- gallery ---------- */
.whr-gallery { margin-bottom: 24px; }
.whr-gallery__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 12px;
}
.whr-gallery__title { margin: 0; font-size: 16px; }
.whr-gallery__count { font-size: 12px; color: var(--whr-muted); }
.whr-gallery__grid {
	display: grid;
	grid-template-columns: repeat(var(--whr-cols, 6), 1fr);
	gap: 8px;
}
.whr-gallery__item {
	position: relative;
	aspect-ratio: 1;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--whr-line);
	padding: 0;
	cursor: pointer;
	background: var(--whr-soft);
}
.whr-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.whr-gallery__item:hover img { transform: scale(1.06); }

/* ---------- store rating / banner / badge ---------- */
.whr-store {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	text-decoration: none;
	color: inherit;
}
.whr-store__avg { font-weight: 800; }
.whr-store__count { color: var(--whr-muted); font-size: 13px; }
.whr-store--stacked { flex-direction: column; gap: 4px; text-align: center; }
.whr-store--banner { gap: 12px; font-size: 16px; }

.whr-banner {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 22px 26px;
	border: 1px solid var(--whr-line);
	border-radius: var(--whr-radius);
	background: var(--whr-soft);
}
.whr-banner__score { text-align: center; flex-shrink: 0; }
.whr-banner__avg { font-size: 38px; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.whr-banner__copy h3 { margin: 0 0 4px; font-size: 18px; }
.whr-banner__copy p { margin: 0; color: var(--whr-muted); font-size: 14px; }

.whr-badge {
	position: fixed;
	bottom: 18px;
	z-index: 9998;
	display: flex;
	align-items: center;
	background: var(--whr-bg);
	border: 1px solid var(--whr-line);
	border-radius: 999px;
	box-shadow: 0 8px 26px rgba(0,0,0,.12);
	padding: 8px 12px;
}
.whr-badge--bottom-left { left: 18px; }
.whr-badge--bottom-right { right: 18px; }
.whr-badge.is-hidden { display: none; }
.whr-badge__inner { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.whr-badge__avg { font-size: 20px; font-weight: 800; }
.whr-badge__stack { display: grid; gap: 2px; }
.whr-badge__count { font-size: 11px; color: var(--whr-muted); }
.whr-badge__close {
	background: none;
	border: 0;
	color: var(--whr-muted);
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	padding: 0 2px 0 8px;
}

/* ---------- carousel ---------- */
.whr-carousel__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
}
.whr-carousel__title { margin: 0; font-size: 18px; }
.whr-carousel__nav { display: flex; gap: 6px; }
.whr-carousel__btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--whr-line);
	background: var(--whr-bg);
	cursor: pointer;
	display: grid;
	place-items: center;
}
.whr-carousel__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.whr-carousel__btn:hover { border-color: var(--whr-ink); }
.whr-carousel__track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 8px;
	-ms-overflow-style: none;
	scrollbar-width: none;
}
.whr-carousel__track::-webkit-scrollbar { display: none; }
.whr-carousel__slide {
	flex: 0 0 min(340px, 82%);
	scroll-snap-align: start;
}
.whr-review--compact { height: 100%; }
.whr-review--compact .whr-review__body {
	display: -webkit-box;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------- Q&A ---------- */
.whr-qa { margin-top: 32px; }
.whr-qa__head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; }
.whr-qa__title { margin: 0; font-size: 18px; }
.whr-qa__list { display: grid; gap: 10px; }
.whr-qa__item {
	border: 1px solid var(--whr-line);
	border-radius: 12px;
	background: var(--whr-bg);
}
.whr-qa__item summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	list-style: none;
}
.whr-qa__item summary::-webkit-details-marker { display: none; }
.whr-qa__chev { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; transition: transform .2s ease; }
.whr-qa__item[open] .whr-qa__chev { transform: rotate(180deg); }
.whr-qa__a { padding: 0 16px 16px; font-size: 14px; line-height: 1.6; color: var(--whr-ink); }
.whr-qa__by { margin-top: 8px; font-size: 12px; color: var(--whr-muted); }
.whr-qa__empty { color: var(--whr-muted); font-size: 14px; }
.whr-qa__form-wrap { display: none; margin-top: 16px; }
.whr-qa__form-wrap.is-open { display: block; }

/* ---------- lightbox ---------- */
.whr-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(12,12,12,.92);
	display: grid;
	place-items: center;
	padding: 24px;
}
.whr-lightbox img,
.whr-lightbox video {
	max-width: min(92vw, 1100px);
	max-height: 86vh;
	border-radius: 10px;
	display: block;
}
.whr-lightbox__close,
.whr-lightbox__nav {
	position: absolute;
	background: rgba(255,255,255,.12);
	border: 0;
	color: #fff;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 22px;
	cursor: pointer;
	display: grid;
	place-items: center;
}
.whr-lightbox__close { top: 20px; right: 20px; }
.whr-lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.whr-lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }
.whr-lightbox__close:hover,
.whr-lightbox__nav:hover { background: rgba(255,255,255,.24); }
.whr-lightbox__cap {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 13px;
	opacity: .85;
}

/* ---------- order page CTA ---------- */
.whr-order-cta {
	margin: 20px 0;
	padding: 18px 20px;
	border: 1px solid var(--whr-line);
	border-radius: var(--whr-radius);
	background: var(--whr-soft);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.whr-order-cta p { margin: 0; font-size: 14px; }

/* ---------- standalone request page ---------- */
body.whr-standalone {
	margin: 0;
	background: #f6f5f1;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
	color: #1c1c1c;
}
.whr-standalone__wrap {
	max-width: 620px;
	margin: 0 auto;
	padding: 36px 18px 60px;
}
.whr-standalone__head { text-align: center; margin-bottom: 24px; }
.whr-standalone__brand {
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
	font-size: 12px;
	color: #8a8a8a;
	margin-bottom: 14px;
}
.whr-standalone__head h1 { margin: 0 0 8px; font-size: 26px; line-height: 1.25; }
.whr-standalone__sub { margin: 0; color: #6b6b6b; font-size: 14px; }
.whr-standalone__product {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #fff;
	border: 1px solid #e6e3dc;
	border-radius: 14px;
	padding: 12px 16px;
	margin-bottom: 18px;
	font-weight: 600;
	font-size: 14px;
}
.whr-standalone__product img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.whr-picker { margin-bottom: 18px; }
.whr-picker__label { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.whr-picker__items { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.whr-picker__item {
	flex: 0 0 auto;
	width: 124px;
	background: #fff;
	border: 2px solid #e6e3dc;
	border-radius: 12px;
	padding: 10px;
	cursor: pointer;
	font: inherit;
	font-size: 12px;
	text-align: center;
	display: grid;
	gap: 6px;
	justify-items: center;
}
.whr-picker__item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.whr-picker__item.is-active { border-color: var(--whr-accent, #c9a227); }
.whr-standalone__foot {
	margin-top: 22px;
	text-align: center;
	font-size: 12px;
	color: #8a8a8a;
	display: grid;
	gap: 6px;
}
.whr-standalone__foot a { color: inherit; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
	.whr-summary { grid-template-columns: 1fr; gap: 20px; text-align: center; }
	.whr-summary__bars { max-width: 420px; margin: 0 auto; width: 100%; }
	.whr-gallery__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
	.whr-summary { padding: 18px; }
	.whr-summary__avg { font-size: 36px; }
	.whr-toolbar { flex-direction: column; align-items: stretch; }
	.whr-toolbar__right { justify-content: space-between; }
	.whr-search input { min-width: 0; width: 100%; }
	.whr-row { grid-template-columns: 1fr; }
	.whr-gallery__grid { grid-template-columns: repeat(3, 1fr); }
	.whr-review { padding: 16px; }
	.whr-review__head { flex-direction: column; gap: 8px; }
	.whr-banner { flex-direction: column; text-align: center; gap: 14px; }
	.whr-badge { bottom: 12px; }
	.whr-badge--bottom-left { left: 12px; }
	.whr-badge--bottom-right { right: 12px; }
	.whr-form__perk { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.whr-btn, .whr-gallery__item img, .whr-bar__fill, .whr-rate__star svg { transition: none; }
	.whr-carousel__track { scroll-behavior: auto; }
}

/* Lightbox: the photo and the review that came with it, side by side */
.whr-lightbox__panel { display: flex; align-items: center; justify-content: center; gap: 0; max-width: min(1180px, 94vw); max-height: 88vh; }
.whr-lightbox--withreview .whr-lightbox__panel { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.whr-lightbox--withreview .whr-lightbox__stage { flex: 1 1 60%; min-width: 0; display: flex; align-items: center; justify-content: center; background: #0e0e10; }
.whr-lightbox--withreview .whr-lightbox__stage img,
.whr-lightbox--withreview .whr-lightbox__stage video { max-height: 88vh; width: 100%; height: auto; object-fit: contain; display: block; }
.whr-lightbox__review { flex: 0 0 340px; align-self: stretch; overflow-y: auto; padding: 26px 24px; color: #1d1d1f; background: #fff; text-align: left; }
.whr-lightbox__review[hidden] { display: none; }
.whr-lightbox__who { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.whr-lightbox__author { font-weight: 700; font-size: 15px; }
.whr-lightbox__review .whr-verified-tag { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #1f8a4c; background: #e6f6ec; padding: 3px 8px; border-radius: 999px; }
.whr-lightbox__date { font-size: 12.5px; color: #6b6b70; margin-top: 3px; }
.whr-lightbox__title { margin: 14px 0 6px; font-size: 16px; line-height: 1.35; }
.whr-lightbox__text { margin: 8px 0 0; font-size: 14.5px; line-height: 1.65; color: #2c2c30; }
.whr-lightbox__reply { margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: #f6f4ef; font-size: 13.5px; line-height: 1.6; }
.whr-lightbox__reply strong { display: block; margin-bottom: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #7a6a33; }
.whr-lightbox__reply p { margin: 0; }
.whr-lightbox__product { display: inline-block; margin-top: 18px; font-size: 13.5px; font-weight: 600; color: #7a6a33; }
@media (max-width: 860px) {
	.whr-lightbox__panel { flex-direction: column; max-height: 92vh; overflow-y: auto; }
	.whr-lightbox--withreview .whr-lightbox__stage { flex: 0 0 auto; width: 100%; }
	.whr-lightbox--withreview .whr-lightbox__stage img { max-height: 52vh; }
	.whr-lightbox__review { flex: 1 1 auto; width: 100%; padding: 20px; }
}

/* Carousel: arrows always present, and a version for a dark band */
.whr-carousel__head--bare { justify-content: flex-end; margin-bottom: 12px; }
.whr-carousel__btn[disabled] { opacity: .35; cursor: default; }
.whr-carousel--static .whr-carousel__nav { display: none; }

.whr-carousel--dark .whr-carousel__title { color: #fff; }
.whr-carousel--dark .whr-carousel__btn { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06); }
.whr-carousel--dark .whr-carousel__btn:hover:not([disabled]) { border-color: #b8912a; color: #b8912a; }
.whr-carousel--dark .whr-review { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.92); }
.whr-carousel--dark .whr-review__name,
.whr-carousel--dark .whr-review__title,
.whr-carousel--dark .whr-review__body { color: #fff; }
.whr-carousel--dark .whr-review__meta,
.whr-carousel--dark .whr-source,
.whr-carousel--dark .whr-dot { color: rgba(255,255,255,.62); }
.whr-carousel--dark .whr-review__avatar { background: rgba(255,255,255,.12); color: #fff; }
.whr-carousel--dark .whr-review__product { color: #d9b44a; }
.whr-carousel--dark .whr-verified { color: #7fd8a0; }
.whr-carousel--dark .whr-reply { background: rgba(255,255,255,.07); }
