.nst-reviews {
	background: #fff;
	color: #17171d;
	font-family: var(--nst-font-sans, Arial, Helvetica, sans-serif);
	padding: 0 32px 72px;
	scroll-margin-top: 150px;
}

.nst-reviews *,
.nst-reviews *::before,
.nst-reviews *::after {
	box-sizing: border-box;
}

.nst-reviews [hidden] {
	display: none !important;
}

.nst-reviews__inner {
	border-top: 1px solid #d8d9de;
	margin: 0 auto;
	max-width: 1376px;
	padding-top: 48px;
}

.nst-reviews__header {
	align-items: flex-end;
	display: flex;
	flex-wrap: wrap;
	gap: 24px 32px;
	justify-content: space-between;
}

.nst-reviews__summary {
	max-width: 44rem;
}

.nst-reviews__eyebrow {
	color: #5252c7;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	line-height: 1.2;
	margin: 0 0 14px;
	text-transform: uppercase;
}

.nst-reviews__title {
	font-size: clamp(28px, 3vw, 42px);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.06;
	margin: 0;
}

.nst-reviews__title span {
	background: linear-gradient(transparent 79%, #dcff59 79%, #dcff59 94%, transparent 94%);
}

.nst-reviews__aggregate {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	margin-top: 16px;
}

.nst-reviews__aggregate-text {
	color: #17171d;
	font-size: 14px;
	font-weight: 700;
}

.nst-reviews__aggregate-count {
	color: #60616a;
	font-size: 14px;
}

.nst-reviews__note {
	color: #60616a;
	font-size: 14px;
	line-height: 1.6;
	margin: 14px 0 0;
	max-width: 38rem;
}

.nst-reviews__stars {
	align-items: center;
	display: inline-flex;
	gap: 3px;
}

.nst-reviews__star {
	display: block;
	height: 16px;
	width: 16px;
}

.nst-reviews__star-outline {
	fill: none;
	stroke: #17171d;
	stroke-width: 1.5;
}

.nst-reviews__star-fill {
	fill: #dcff59;
	stroke: #17171d;
	stroke-width: 1.5;
}

/* Collapsible Write a Review disclosure */
.nst-reviews__disclosure {
	margin-top: 28px;
	scroll-margin-top: 150px;
}

.nst-reviews__toggle {
	align-items: center;
	background: #dcff59;
	border: 1px solid #17171d;
	border-radius: 0;
	color: #17171d;
	cursor: pointer;
	display: inline-flex;
	font-size: 12px;
	font-weight: 800;
	gap: 14px;
	justify-content: center;
	letter-spacing: 0.08em;
	list-style: none;
	min-height: 48px;
	padding: 12px 22px;
	text-transform: uppercase;
	transition: background-color 220ms ease, color 220ms ease;
	user-select: none;
}

.nst-reviews__toggle::-webkit-details-marker {
	display: none;
}

.nst-reviews__toggle:hover,
.nst-reviews__toggle:focus-visible {
	background: #17171d;
	color: #dcff59;
}

.nst-reviews__toggle:focus-visible,
.nst-reviews a:focus-visible,
.nst-review-form input:focus-visible,
.nst-review-form textarea:focus-visible,
.nst-review-submit:focus-visible {
	outline: 3px solid #5252c7;
	outline-offset: 3px;
}

.nst-reviews__toggle-icon {
	display: inline-block;
	height: 12px;
	position: relative;
	width: 12px;
}

.nst-reviews__toggle-icon::before,
.nst-reviews__toggle-icon::after {
	background: currentColor;
	content: "";
	left: 0;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	transition: transform 200ms ease, opacity 200ms ease;
}

.nst-reviews__toggle-icon::before {
	height: 2px;
	width: 12px;
}

.nst-reviews__toggle-icon::after {
	height: 12px;
	left: 5px;
	top: 0;
	transform: none;
	width: 2px;
}

.nst-reviews__disclosure[open] > .nst-reviews__toggle .nst-reviews__toggle-icon::after {
	opacity: 0;
	transform: scaleY(0);
}

@supports (selector(::details-content)) {
	.nst-reviews__disclosure::details-content {
		contain: layout;
		overflow: clip;
	}
	@media (prefers-reduced-motion: no-preference) {
		.nst-reviews__disclosure::details-content {
			transition: content-visibility 240ms allow-discrete, opacity 240ms ease;
		}
		.nst-reviews__disclosure:not([open])::details-content {
			opacity: 0;
		}
		.nst-reviews__disclosure[open]::details-content {
			opacity: 1;
		}
	}
}

.nst-review-panel {
	background: #f5f5f7;
	border: 1px solid #d8d9de;
	margin-top: 20px;
	padding: clamp(24px, 3vw, 40px);
}

.nst-review-panel__head {
	border-bottom: 1px solid #d8d9de;
	margin-bottom: 24px;
	padding-bottom: 18px;
}

.nst-review-panel__title {
	font-size: clamp(20px, 2vw, 26px);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.15;
	margin: 0 0 8px;
}

.nst-review-panel__sub {
	color: #60616a;
	font-size: 14px;
	line-height: 1.55;
	margin: 0;
	max-width: 44rem;
}

.nst-review-error-summary {
	background: #fff1ef;
	border-left: 4px solid #b42318;
	margin-bottom: 20px;
	padding: 14px 18px;
}

.nst-review-error-summary h4 {
	font-size: 15px;
	font-weight: 800;
	margin: 0;
}

.nst-review-error-summary ul {
	font-size: 13px;
	line-height: 1.5;
	margin: 8px 0 0;
	padding-left: 18px;
}

.nst-review-error-summary a {
	color: #b42318;
	font-weight: 700;
}

.nst-review-status {
	border-left: 4px solid #5252c7;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	margin-bottom: 20px;
	padding: 14px 18px;
}

.nst-review-status[data-state="success"] {
	background: #dcff59;
	border-color: #17171d;
	color: #17171d;
}

.nst-review-status[data-state="error"] {
	background: #fff1ef;
	border-color: #b42318;
	color: #b42318;
}

.nst-review-form {
	display: grid;
	gap: 20px 24px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nst-review-field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.nst-review-field--full {
	border: 0;
	grid-column: 1 / -1;
	margin: 0;
	min-inline-size: 0;
	padding: 0;
}

.nst-review-field > label,
.nst-review-field > legend {
	color: #17171d;
	display: block;
	float: none;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	line-height: 1.3;
	margin: 0 0 6px;
	padding: 0;
	text-transform: uppercase;
}

.nst-review-field__hint {
	color: #60616a;
	display: block;
	font-size: 12px;
	line-height: 1.45;
	margin-bottom: 8px;
}

.nst-review-field input[type="text"],
.nst-review-field input[type="email"],
.nst-review-field textarea {
	appearance: none;
	background: #fff;
	border: 1px solid #767676;
	border-radius: 0;
	color: #17171d;
	display: block;
	font: inherit;
	font-size: max(1rem, 1em);
	line-height: 1.5;
	min-height: 48px;
	padding: 12px 14px;
	transition: border-color 180ms ease, background-color 180ms ease;
	width: 100%;
}

.nst-review-field textarea {
	min-height: 132px;
	resize: vertical;
}

@media (pointer: coarse) {
	.nst-review-field input[type="text"],
	.nst-review-field input[type="email"] {
		min-height: 52px;
	}
}

.nst-review-field :is(:user-invalid, .user-invalid-fallback),
.nst-review-field [aria-invalid="true"] {
	background-color: #fff8f7;
	border-color: #b42318;
}

.nst-review-field__error {
	color: #b42318;
	display: none;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	margin-top: 6px;
}

.nst-review-field__error.is-visible,
.nst-review-field :is(:user-invalid, .user-invalid-fallback) + .nst-review-field__error {
	display: block;
}

/* 1-5 Star Radio Picker in strict forward DOM order */
.nst-review-stars-wrap {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
}

.nst-review-stars {
	align-items: center;
	display: inline-flex;
	gap: 4px;
}

.nst-review-stars .nst-review-star {
	align-items: center;
	background: #fff;
	border: 1px solid #767676;
	cursor: pointer;
	display: inline-flex;
	height: 48px;
	justify-content: center;
	margin: 0;
	padding: 0;
	position: relative;
	transition: border-color 160ms ease, background-color 160ms ease;
	width: 48px;
}

.nst-review-star:has(:focus-visible) {
	outline: 3px solid #5252c7;
	outline-offset: 2px;
}

.nst-review-star__svg {
	fill: none;
	height: 22px;
	pointer-events: none;
	stroke: #17171d;
	stroke-linejoin: miter;
	stroke-width: 1.75;
	transition: fill 160ms ease, transform 160ms ease;
	width: 22px;
}

.nst-review-star.is-active,
.nst-review-star.is-hover,
.nst-review-star:has(input:checked) {
	border-color: #17171d;
}

.nst-review-star.is-active .nst-review-star__svg,
.nst-review-star.is-hover .nst-review-star__svg,
.nst-review-star:has(input:checked) .nst-review-star__svg {
	fill: #dcff59;
	transform: scale(1.06);
}

/* Pure CSS progressive fill for forward radio order when JS is off */
.nst-review-stars:has(.nst-review-star:nth-child(5) input:checked) .nst-review-star:nth-child(-n+5) .nst-review-star__svg,
.nst-review-stars:has(.nst-review-star:nth-child(4) input:checked) .nst-review-star:nth-child(-n+4) .nst-review-star__svg,
.nst-review-stars:has(.nst-review-star:nth-child(3) input:checked) .nst-review-star:nth-child(-n+3) .nst-review-star__svg,
.nst-review-stars:has(.nst-review-star:nth-child(2) input:checked) .nst-review-star:nth-child(-n+2) .nst-review-star__svg,
.nst-review-stars:has(.nst-review-star:nth-child(1) input:checked) .nst-review-star:nth-child(1) .nst-review-star__svg {
	fill: #dcff59;
}

.nst-review-rating-text {
	color: #17171d;
	font-size: 13px;
	font-weight: 700;
}

.nst-review-guard {
	height: 1px;
	left: -10000px;
	overflow: hidden;
	position: absolute;
	top: auto;
	width: 1px;
}

.nst-review-form__footer {
	align-items: center;
	border-top: 1px solid #d8d9de;
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	grid-column: 1 / -1;
	justify-content: space-between;
	padding-top: 18px;
}

.nst-review-form__privacy {
	color: #60616a;
	font-size: 12px;
	line-height: 1.5;
	margin: 0;
	max-width: 28rem;
}

.nst-review-form__privacy a {
	color: #17171d;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.nst-review-submit {
	align-items: center;
	background: #17171d;
	border: 1px solid #17171d;
	border-radius: 0;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	gap: 14px;
	justify-content: center;
	letter-spacing: 0.08em;
	min-height: 48px;
	padding: 12px 24px;
	text-transform: uppercase;
	transition: background-color 220ms ease, color 220ms ease;
}

.nst-review-submit:hover:not(:disabled) {
	background: #dcff59;
	color: #17171d;
}

.nst-review-submit:disabled {
	cursor: wait;
	opacity: 0.65;
}

/* Approved WooCommerce Reviews Grid */
.nst-reviews__grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 32px;
}

.nst-reviews__card {
	background: #fff;
	border: 1px solid #d8d9de;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 24px;
}

.nst-reviews__card-top {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	justify-content: space-between;
	margin-bottom: 16px;
}

.nst-reviews__verified {
	background: #dcff59;
	color: #17171d;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
	padding: 4px 8px;
	text-transform: uppercase;
}

.nst-reviews__quote {
	font-size: 16px;
	line-height: 1.55;
	margin: 0 0 20px;
	overflow-wrap: anywhere;
	padding: 0;
}

.nst-reviews__meta {
	border-top: 1px solid #d8d9de;
	display: flex;
	flex-wrap: wrap;
	font-size: 13px;
	gap: 6px 12px;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 14px;
}

.nst-reviews__author {
	font-weight: 700;
	overflow-wrap: anywhere;
}

.nst-reviews__date {
	color: #60616a;
}

.nst-reviews .visually-hidden {
	border: 0 !important;
	clip-path: inset(50%) !important;
	height: 1px !important;
	margin: -1px !important;
	overflow: hidden !important;
	padding: 0 !important;
	position: absolute !important;
	white-space: nowrap !important;
	width: 1px !important;
}

@media (max-width: 1023px) {
	.nst-reviews__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.nst-reviews {
		padding: 0 20px 48px;
	}
	.nst-reviews__inner {
		padding-top: 36px;
	}
	.nst-review-form {
		grid-template-columns: 1fr;
	}
	.nst-reviews__grid {
		grid-template-columns: 1fr;
	}
	.nst-reviews__toggle,
	.nst-review-submit {
		width: 100%;
	}
}
