/* GRZ Reviews Suite — storefront. Colors, radii, shadows and font come from
 * the GRZ Gaming theme tokens so customizer overrides apply automatically;
 * fallbacks keep the panel intact on any other theme. */

.grz-rv {
	margin: 28px auto 0;
	max-width: var(--grz-product-max-width, 1392px);
	font-family: var(--grz-font, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.grz-rv__card {
	background: var(--grz-surface, #ffffff);
	border: 1px solid var(--grz-line, #dde6f2);
	border-radius: var(--grz-radius-lg, 12px);
	box-shadow: var(--grz-shadow-sm, 0 8px 24px rgba(16, 36, 71, 0.08));
	padding: 26px 28px 24px;
}

.grz-rv__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--grz-line, #dde6f2);
	margin-bottom: 20px;
}

.grz-rv__eyebrow {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--grz-blue, #0868f2);
	margin-bottom: 6px;
}

.grz-rv__title {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 800;
	color: var(--grz-ink, #111827);
	line-height: 1.2;
}

.grz-rv__sub {
	margin: 0;
	font-size: 13.5px;
	color: var(--grz-muted, #667085);
}

.grz-rv__score {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 3px;
	min-width: 110px;
}

.grz-rv__score strong {
	font-size: 28px;
	font-weight: 800;
	color: var(--grz-ink, #111827);
	line-height: 1;
}

.grz-rv__score small {
	font-size: 11.5px;
	color: var(--grz-muted, #667085);
}

/* Star meter (read-only display) */
.grz-rv-stars {
	position: relative;
	display: inline-block;
	font-size: 14px;
	line-height: 1;
	letter-spacing: 2px;
	color: var(--grz-line-strong, #cbd8e8);
	vertical-align: middle;
}

.grz-rv-stars::before {
	content: "★★★★★";
}

.grz-rv-stars__fill {
	position: absolute;
	inset: 0 auto 0 0;
	overflow: hidden;
	white-space: nowrap;
	color: #f5a623;
}

.grz-rv-stars__fill::before {
	content: "★★★★★";
}

/* Star input */
.grz-rv-rate {
	border: 0;
	padding: 0;
	margin: 0 0 18px;
}

.grz-rv__label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--grz-ink-soft, #26324a);
	margin-bottom: 8px;
}

.grz-rv__req {
	color: var(--grz-red, #f23d4f);
}

.grz-rv-rate__stars {
	display: inline-flex;
	flex-direction: row-reverse;
	gap: 4px;
}

.grz-rv-rate__stars input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.grz-rv-rate__stars label {
	position: relative;
	width: 34px;
	height: 34px;
	cursor: pointer;
	margin: 0;
	border-radius: var(--grz-radius-sm, 6px);
	transition: transform var(--grz-transition, 180ms cubic-bezier(0.2, 0.7, 0.2, 1));
}

.grz-rv-rate__stars label::before {
	content: "★";
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 30px;
	line-height: 1;
	color: var(--grz-line-strong, #cbd8e8);
	transition: color var(--grz-transition, 180ms cubic-bezier(0.2, 0.7, 0.2, 1)), transform var(--grz-transition, 180ms cubic-bezier(0.2, 0.7, 0.2, 1));
}

.grz-rv-rate__stars label:hover::before,
.grz-rv-rate__stars label:hover ~ label::before,
.grz-rv-rate__stars input:checked ~ label::before {
	color: #f5a623;
}

.grz-rv-rate__stars label:hover {
	transform: scale(1.08);
}

.grz-rv-rate__stars input:focus-visible + label {
	outline: 2px solid var(--grz-blue, #0868f2);
	outline-offset: 2px;
}

/* Fields */
.grz-rv__field {
	margin-bottom: 16px;
}

.grz-rv__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.grz-rv__form textarea,
.grz-rv__form input[type="text"],
.grz-rv__form input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--grz-line-strong, #cbd8e8);
	border-radius: var(--grz-radius-sm, 6px);
	background: var(--grz-surface, #ffffff);
	color: var(--grz-ink, #111827);
	font: inherit;
	font-size: 14px;
	padding: 10px 12px;
	transition: border-color var(--grz-transition, 180ms cubic-bezier(0.2, 0.7, 0.2, 1)), box-shadow var(--grz-transition, 180ms cubic-bezier(0.2, 0.7, 0.2, 1));
}

.grz-rv__form textarea:focus,
.grz-rv__form input[type="text"]:focus,
.grz-rv__form input[type="email"]:focus {
	outline: none;
	border-color: var(--grz-blue, #0868f2);
	box-shadow: 0 0 0 3px rgba(8, 104, 242, 0.14);
}

.grz-rv__form textarea {
	resize: vertical;
	min-height: 104px;
}

.grz-rv__hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
	visibility: hidden;
	height: 0;
	overflow: hidden;
}

.grz-rv__foot {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.grz-rv__submit {
	appearance: none;
	border: 0;
	border-radius: var(--grz-radius-md, 8px);
	background: var(--grz-blue, #0868f2);
	color: #ffffff;
	font: inherit;
	font-size: 14.5px;
	font-weight: 700;
	padding: 12px 26px;
	cursor: pointer;
	box-shadow: var(--grz-shadow-blue, 0 12px 30px rgba(8, 104, 242, 0.22));
	transition: background var(--grz-transition, 180ms cubic-bezier(0.2, 0.7, 0.2, 1)), transform var(--grz-transition, 180ms cubic-bezier(0.2, 0.7, 0.2, 1));
}

.grz-rv__submit:hover {
	background: var(--grz-blue-dark, #064ec4);
	transform: translateY(-1px);
}

.grz-rv__submit:disabled {
	opacity: 0.6;
	cursor: default;
	transform: none;
}

.grz-rv__hint {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 12.5px;
	color: var(--grz-muted, #667085);
}

.grz-rv__hint-icon,
.grz-rv__notice-icon {
	font-size: 15px;
	color: var(--grz-blue, #0868f2);
	flex: none;
}

.grz-rv__status {
	margin-top: 14px;
	border-radius: var(--grz-radius-sm, 6px);
	font-size: 13.5px;
	font-weight: 600;
	padding: 10px 14px;
}

.grz-rv__status--success {
	background: var(--grz-blue-soft, #eaf3ff);
	color: var(--grz-blue-deep, #05388e);
	border: 1px solid rgba(8, 104, 242, 0.25);
}

.grz-rv__status--error {
	background: #fdeef0;
	color: #a12333;
	border: 1px solid rgba(242, 61, 79, 0.3);
}

/* Notices inside the panel */
.grz-rv__notice {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	border-radius: var(--grz-radius-sm, 6px);
	padding: 12px 16px;
}

.grz-rv__notice a {
	color: var(--grz-blue, #0868f2);
	font-weight: 600;
}

.grz-rv__notice--info {
	background: var(--grz-blue-mist, #f2f7ff);
	border: 1px solid var(--grz-line, #dde6f2);
	color: var(--grz-ink-soft, #26324a);
}

.grz-rv__notice--success {
	background: var(--grz-blue-soft, #eaf3ff);
	border: 1px solid rgba(8, 104, 242, 0.25);
	color: var(--grz-blue-deep, #05388e);
}

/* Helpful vote — rendered in the review-card foot (self-contained) */
.grz-rv-helpful {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.grz-rv-helpful__btn {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--grz-line-strong, #cbd8e8);
	border-radius: 8px;
	background: var(--grz-surface, #ffffff);
	color: var(--grz-muted, #667085);
	font-size: 11.5px;
	font-weight: 650;
	line-height: 1;
	padding: 7px 12px 7px 10px;
	cursor: pointer;
	transition: border-color var(--grz-transition, 180ms cubic-bezier(0.2, 0.7, 0.2, 1)),
		color var(--grz-transition, 180ms cubic-bezier(0.2, 0.7, 0.2, 1)),
		background var(--grz-transition, 180ms cubic-bezier(0.2, 0.7, 0.2, 1)),
		box-shadow var(--grz-transition, 180ms cubic-bezier(0.2, 0.7, 0.2, 1));
}

.grz-rv-helpful__btn::before {
	content: "";
	width: 13px;
	height: 13px;
	margin-right: 6px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10v11H4a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1h3zm0 0l4.2-7.4a1.6 1.6 0 0 1 3 1l-.8 4.4H20a2 2 0 0 1 2 2.4l-1.2 6A2 2 0 0 1 18.8 21H7z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10v11H4a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1h3zm0 0l4.2-7.4a1.6 1.6 0 0 1 3 1l-.8 4.4H20a2 2 0 0 1 2 2.4l-1.2 6A2 2 0 0 1 18.8 21H7z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.grz-rv-helpful__btn:hover {
	border-color: var(--grz-blue, #0868f2);
	color: var(--grz-blue, #0868f2);
	background: var(--grz-blue-soft, #eaf3ff);
	box-shadow: 0 3px 10px -6px rgba(8, 104, 242, 0.5);
}

.grz-rv-helpful.is-voted .grz-rv-helpful__btn {
	background: var(--grz-blue-soft, #eaf3ff);
	border-color: rgba(8, 104, 242, 0.35);
	color: var(--grz-blue-dark, #064ec4);
	cursor: default;
	box-shadow: none;
}

.grz-rv-helpful__count {
	font-size: 11.5px;
	color: var(--grz-muted, #667085);
}

/* Store reply — a connected response panel beneath the review body.
 * Rendered as a sibling of the text (not appended to it), with a left
 * accent rule tying it to the review it answers. */
.grz-rv-reply {
	margin-top: 12px;
	padding: 11px 14px 12px 15px;
	background: var(--grz-blue-mist, #f2f7ff);
	border: 1px solid var(--grz-line, #dde6f2);
	border-left: 2px solid var(--grz-blue, #0868f2);
	border-radius: 3px 8px 8px 3px;
}

.grz-rv-reply__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	margin-bottom: 5px;
}

.grz-rv-reply__store {
	font-size: 11.5px;
	font-weight: 750;
	color: var(--grz-ink, #111827);
}

.grz-rv-reply__badge {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--grz-blue-dark, #064ec4);
	background: rgba(8, 104, 242, 0.1);
	padding: 2px 7px;
	border-radius: 999px;
}

.grz-rv-reply__date {
	margin-left: auto;
	font-size: 11px;
	color: var(--grz-muted-light, #98a2b3);
}

.grz-rv-reply__text {
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--grz-ink-soft, #26324a);
}

/* [grz_recent_reviews] feed */
.grz-rv-feed {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
	font-family: var(--grz-font, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.grz-rv-feed__item {
	background: var(--grz-surface, #ffffff);
	border: 1px solid var(--grz-line, #dde6f2);
	border-radius: var(--grz-radius-lg, 12px);
	box-shadow: var(--grz-shadow-xs, 0 1px 2px rgba(16, 36, 71, 0.05));
	padding: 16px 18px;
}

.grz-rv-feed__top {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.grz-rv-feed__avatar {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	flex: none;
	border-radius: 50%;
	background: var(--grz-blue-soft, #eaf3ff);
	color: var(--grz-blue-dark, #064ec4);
	font-size: 14px;
	font-weight: 800;
}

.grz-rv-feed__who {
	font-size: 13.5px;
	color: var(--grz-ink, #111827);
	margin-right: auto;
}

.grz-rv-feed__on {
	color: var(--grz-muted, #667085);
	font-size: 12.5px;
}

.grz-rv-feed__on a {
	color: var(--grz-blue, #0868f2);
	text-decoration: none;
	font-weight: 600;
}

.grz-rv-feed__text {
	font-size: 14px;
	line-height: 1.6;
	color: var(--grz-ink-soft, #26324a);
}

.grz-rv-feed__text p {
	margin: 0 0 8px;
}

.grz-rv-feed__text p:last-child {
	margin-bottom: 0;
}

@media (max-width: 720px) {
	.grz-rv__card {
		padding: 20px 18px;
	}

	.grz-rv__head {
		flex-direction: column;
	}

	.grz-rv__score {
		align-items: flex-start;
	}

	.grz-rv__row {
		grid-template-columns: 1fr;
	}

	.grz-rv__foot {
		flex-direction: column;
		align-items: stretch;
	}

	.grz-rv__submit {
		width: 100%;
	}
}

/* =====================================================================
 * Product-page review LIST (plugin-owned; theme only marks placement).
 * Reproduces the GRZ reference design: one bordered container, header
 * bar with a bordered See-all button, a muted stats strip, and flat
 * two-column rows with hairline dividers.
 * ===================================================================== */
.grz-rvl {
	margin: 30px auto 0;
	max-width: var(--grz-product-max-width, 1392px);
	font-family: var(--grz-font, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	background: var(--grz-surface, #ffffff);
	border: 1px solid var(--grz-line, #dde6f2);
	border-radius: 6px;
	box-shadow: 0 9px 28px rgba(23, 47, 82, 0.055);
	overflow: hidden;
}

/* Header bar: title left, bordered See-all button right */
.grz-rvl__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 20px;
	border-bottom: 1px solid var(--grz-line, #dde6f2);
}

.grz-rvl__title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--grz-ink, #111827);
}

.grz-rvl__all {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 600;
	color: var(--grz-ink, #111827);
	background: var(--grz-surface, #ffffff);
	border: 1px solid var(--grz-line-strong, #cbd8e8);
	border-radius: 6px;
	padding: 6px 12px;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color var(--grz-transition, 180ms cubic-bezier(0.2, 0.7, 0.2, 1)),
		color var(--grz-transition, 180ms cubic-bezier(0.2, 0.7, 0.2, 1)),
		background var(--grz-transition, 180ms cubic-bezier(0.2, 0.7, 0.2, 1));
}

.grz-rvl__all:hover {
	border-color: rgba(8, 104, 242, 0.4);
	color: var(--grz-blue, #0868f2);
	background: var(--grz-blue-mist, #f2f7ff);
}

.grz-rvl__all-icon {
	width: 12px;
	height: 12px;
	transform: rotate(-90deg); /* chevron points down by default; face it right */
}

/* Stats strip: "3 reviews · 5.0 · ★★★★★" on a muted band */
.grz-rvl__stats {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 20px;
	border-bottom: 1px solid var(--grz-line, #dde6f2);
	background: var(--grz-canvas, #f6f9fd);
}

.grz-rvl__count {
	font-size: 12px;
	color: var(--grz-muted, #667085);
}

.grz-rvl__score {
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--grz-ink, #111827);
}

.grz-rvl__stats .grz-rv-stars {
	font-size: 13px;
}

/* Flat two-column rows with hairline dividers */
.grz-rvl__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 32px;
	margin: 0;
	padding: 6px 20px 12px;
	list-style: none;
}

.grz-rvl-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 0;
	border-bottom: 1px solid var(--grz-line, #dde6f2);
}

.grz-rvl-item:nth-last-child(-n + 2) {
	border-bottom: 0;
}

.grz-rvl-item__avatar {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid rgba(8, 104, 242, 0.15);
	background: var(--grz-blue-soft, #eaf3ff);
	color: var(--grz-blue-dark, #064ec4);
	font-size: 11px;
	font-weight: 700;
}

.grz-rvl-item__main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.grz-rvl-item__line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
}

.grz-rvl-item__author {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--grz-ink, #111827);
}

.grz-rvl-item__verified {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 600;
	color: #047857;
}

.grz-rvl-item__verified-icon {
	width: 11px;
	height: 11px;
}

.grz-rvl-item__date {
	margin-left: auto;
	font-size: 11px;
	color: var(--grz-muted, #667085);
	white-space: nowrap;
}

.grz-rvl-item__stars {
	font-size: 13px;
}

.grz-rvl-item__text {
	font-size: 13px;
	line-height: 1.55;
	color: #2b3546;
}

.grz-rvl-item__text p {
	margin: 0 0 6px;
}

.grz-rvl-item__text p:last-child {
	margin-bottom: 0;
}

.grz-rvl-item__foot {
	margin-top: 8px;
}

.grz-rvl__more,
.grz-rvl__more-note {
	margin: 0;
	padding: 0 20px 16px;
	font-size: 12px;
	color: var(--grz-muted, #667085);
}

.grz-rvl__more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 600;
	color: var(--grz-blue, #0868f2);
	text-decoration: none;
	padding-top: 2px;
	transition: gap var(--grz-transition, 180ms cubic-bezier(0.2, 0.7, 0.2, 1));
}

.grz-rvl__more:hover {
	gap: 7px;
}

.grz-rvl__more-icon {
	width: 12px;
	height: 12px;
	transform: rotate(-90deg);
}

@media (max-width: 720px) {
	.grz-rvl__list {
		grid-template-columns: 1fr;
		padding: 4px 16px 10px;
	}

	.grz-rvl-item:nth-last-child(-n + 2) {
		border-bottom: 1px solid var(--grz-line, #dde6f2);
	}

	.grz-rvl-item:last-child {
		border-bottom: 0;
	}

	.grz-rvl__bar,
	.grz-rvl__stats,
	.grz-rvl__more,
	.grz-rvl__more-note {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* =====================================================================
 * Order review card (thank-you + view-order) — "Rate your purchase".
 * Ported from the approved design. Defensively scoped under
 * .grz-rv-orders so the theme's `.grz-ty *` reset (margin/padding:0)
 * can't flatten the spacing or recolour the controls.
 * ===================================================================== */
.grz-rv-orders {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	margin: 20px 0 !important;
	font-family: var(--grz-font, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.grz-rv-orders button,
.grz-rv-orders textarea {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	font-family: inherit;
	margin: 0;
	min-height: 0;
	width: auto;
	box-shadow: none;
	letter-spacing: normal;
	text-transform: none;
}

.grz-rv-orders input[type="hidden"] {
	display: none !important;
}

/* Card shell */
.grz-rv-order {
	background: var(--grz-surface, #ffffff);
	border: 1px solid var(--grz-line, #dde6f2);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 16px -10px rgba(16, 36, 71, 0.16), 0 1px 2px rgba(16, 36, 71, 0.04);
}

/* Header: spark badge + label + optional reward pill */
.grz-rv-order__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 16px !important;
	border-bottom: 1px solid var(--grz-line, #dde6f2);
}

.grz-rv-order__title {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.grz-rv-order__icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 6px;
	background: var(--grz-blue-soft, #eaf3ff);
	color: var(--grz-blue, #0868f2);
	font-size: 14px;
}

.grz-rv-order__title span {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--grz-muted, #667085);
}

.grz-rv-order__reward {
	flex: none;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 6px;
	background: #fef0c7;
	color: #b54708;
}

/* Body */
.grz-rv-form {
	padding: 16px !important;
}

/* Rating row: ask + stars/label */
.grz-rv-form__rating {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.grz-rv-form__ask strong {
	display: block;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--grz-ink, #111827);
}

.grz-rv-form__ask span {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: var(--grz-muted, #667085);
}

.grz-rv-form__rate {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.grz-rv-form__stars {
	display: flex;
	align-items: center;
	gap: 2px;
}

.grz-rv-orders .grz-rv-form__stars button {
	display: flex;
	padding: 2px;
	border: 0;
	background: none;
	cursor: pointer;
	border-radius: 3px;
	color: inherit;
	transition: transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.grz-rv-orders .grz-rv-form__stars button:hover {
	transform: translateY(-2px);
}

.grz-rv-orders .grz-rv-form__stars button svg {
	width: 20px;
	height: 20px;
	display: block;
	fill: var(--grz-star-off, #e4e7ec) !important;
	color: var(--grz-line, #dde6f2);
	stroke: none;
	transition: fill 200ms ease, filter 200ms ease;
}

.grz-rv-orders .grz-rv-form__stars button.is-on svg {
	fill: var(--grz-star, #f79009) !important;
	filter: drop-shadow(0 2px 6px rgba(247, 144, 9, 0.45));
}

.grz-rv-form__ratinglabel {
	margin: 0;
	font-size: 11px;
	font-weight: 500;
	color: var(--grz-muted, #667085);
	opacity: 0.6;
	transition: opacity 200ms ease, color 200ms ease;
}

.grz-rv-form__ratinglabel.is-active {
	color: var(--grz-star, #f79009);
	opacity: 1;
}

/* Expanding detail (tags + textarea + footer) */
.grz-rv-form__detail {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	transition: grid-template-rows 450ms ease, opacity 450ms ease, margin-top 450ms ease;
}

.grz-rv-form__form.is-open .grz-rv-form__detail {
	grid-template-rows: 1fr;
	opacity: 1;
	margin-top: 16px;
}

.grz-rv-form__detail-inner {
	overflow: hidden;
	min-height: 0;
}

/* Tags */
.grz-rv-tags {
	padding-top: 16px;
	border-top: 1px solid var(--grz-line, #dde6f2);
}

.grz-rv-tags__label {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--grz-muted, #667085);
}

.grz-rv-chips {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
}

.grz-rv-orders .grz-rv-chip {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 1px solid var(--grz-line, #dde6f2);
	background: var(--grz-surface, #ffffff) !important;
	color: var(--grz-muted, #667085) !important;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	padding: 8px;
	border-radius: 6px;
	cursor: pointer;
	transition: border-color 200ms ease, color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.grz-rv-orders .grz-rv-chip:hover {
	border-color: rgba(8, 104, 242, 0.4);
	color: var(--grz-ink, #111827) !important;
}

.grz-rv-orders .grz-rv-chip.is-on {
	border-color: var(--grz-blue, #0868f2) !important;
	background: var(--grz-blue-soft, #eaf3ff) !important;
	color: var(--grz-blue, #0868f2) !important;
	box-shadow: inset 0 0 0 1px var(--grz-blue, #0868f2);
}

.grz-rv-orders .grz-rv-chip__check {
	flex: none;
	width: 13px;
	height: 13px;
	display: none !important;
}

.grz-rv-orders .grz-rv-chip__check svg {
	width: 13px;
	height: 13px;
	display: block;
}

.grz-rv-orders .grz-rv-chip.is-on .grz-rv-chip__check {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
}

.grz-rv-chip__text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Textarea field */
.grz-rv-form__field {
	position: relative;
	margin-top: 16px;
}

.grz-rv-form__field-icon {
	position: absolute;
	left: 12px;
	top: 12px;
	width: 14px;
	height: 14px;
	color: var(--grz-muted, #667085);
	pointer-events: none;
}

.grz-rv-orders .grz-rv-form__field textarea {
	width: 100%;
	min-height: 80px;
	resize: none;
	border: 1px solid var(--grz-line, #dde6f2);
	border-radius: 6px;
	padding: 10px 12px 10px 34px;
	font: inherit;
	font-size: 12px;
	line-height: 1.5;
	color: var(--grz-ink, #111827);
	background: var(--grz-surface, #ffffff);
	transition: border-color 200ms ease, box-shadow 200ms ease;
}

.grz-rv-form__field textarea::placeholder {
	color: var(--grz-muted-light, #98a2b3);
}

.grz-rv-orders .grz-rv-form__field textarea:focus {
	outline: none;
	border-color: var(--grz-blue, #0868f2);
	box-shadow: 0 0 0 3px rgba(8, 104, 242, 0.14);
}

.grz-rv-form__count {
	position: absolute;
	right: 12px;
	bottom: 8px;
	font-size: 10px;
	font-variant-numeric: tabular-nums;
	color: var(--grz-muted, #667085);
}

/* Footer */
.grz-rv-form__foot {
	display: flex;
	flex-direction: column-reverse;
	align-items: stretch;
	gap: 8px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--grz-line, #dde6f2);
}

.grz-rv-form__hint {
	margin: 0;
	font-size: 11px;
	color: var(--grz-muted, #667085);
}

.grz-rv-orders .grz-rv-form__submit {
	border: 0;
	border-radius: 8px;
	background: var(--grz-blue, #0868f2) !important;
	color: #ffffff !important;
	font-size: 13px;
	font-weight: 600;
	padding: 10px 16px;
	cursor: pointer;
	transition: background 200ms ease, box-shadow 200ms ease, transform 120ms ease;
}

.grz-rv-orders .grz-rv-form__submit:hover {
	background: var(--grz-blue-dark, #064ec4) !important;
	box-shadow: 0 8px 20px -10px rgba(8, 104, 242, 0.7);
}

.grz-rv-orders .grz-rv-form__submit:active {
	transform: translateY(1px);
}

/* Submitted "thanks for the review" state */
.grz-rv-thanks {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 32px 16px !important;
	text-align: center;
}

.grz-rv-thanks__badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: var(--grz-success-soft, #ecfdf3);
	color: var(--grz-green, #12b76a);
	font-size: 20px;
}

.grz-rv-orders .grz-rv-thanks__icon {
	display: inline-flex;
}

.grz-rv-orders .grz-rv-thanks__icon svg {
	width: 20px;
	height: 20px;
	display: block;
}

.grz-rv-thanks strong {
	font-size: 16px;
	font-weight: 600;
	color: var(--grz-ink, #111827);
}

.grz-rv-thanks p {
	margin: 0;
	max-width: 20rem;
	font-size: 12px;
	color: var(--grz-muted, #667085);
}

/* "Already reviewed" receipt (view-order) */
.grz-rv-done {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 18px !important;
}

.grz-rv-done__icon {
	flex: none;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	color: var(--grz-green, #12b76a);
}

.grz-rv-done__main {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.grz-rv-done__main strong {
	font-size: 13px;
	font-weight: 700;
	color: var(--grz-ink, #111827);
}

.grz-rv-done__main span {
	font-size: 11.5px;
	color: var(--grz-muted, #667085);
}

.grz-rv-done__stars {
	margin-top: 3px;
	font-size: 13px;
	letter-spacing: 1px;
	color: var(--grz-star, #f79009);
}

/* Desktop refinements */
@media (min-width: 640px) {
	.grz-rv-form {
		padding: 20px !important;
	}

	.grz-rv-form__rating {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.grz-rv-form__rate {
		align-items: flex-end;
	}

	.grz-rv-chips {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.grz-rv-form__foot {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}
