.npr-reviews,
.npr-reviews * {
	box-sizing: border-box;
}

.npr-reviews {
	--npr-card-gap: 14px;
	--npr-cards-per-view: 3.1;
	--npr-text: #20232b;
	--npr-muted: #7a828e;
	--npr-border: #e2e5e9;
	--npr-surface-soft: #f7f8fa;
	--npr-accent: #315c4d;
	--npr-star: #f4b740;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
	color: var(--npr-text);
	font-family: inherit;
	text-align: right;
	isolation: isolate;
}

.npr-heading-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 18px;
}

.npr-title {
	margin: 0;
	color: var(--npr-text);
	font-size: clamp(21px, 2.3vw, 29px);
	font-weight: 750;
	line-height: 1.45;
}

.npr-view-all {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 3px;
	color: #4d5561;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.6;
	text-decoration: none;
}

.npr-view-all:hover,
.npr-view-all:focus-visible {
	color: var(--npr-accent);
}

.npr-view-all .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 18px;
}

.npr-summary {
	display: flex;
	align-items: baseline;
	gap: 7px;
	margin-bottom: 20px;
	min-height: 28px;
}

.npr-average-number {
	font-size: 28px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.npr-summary-star {
	color: var(--npr-star);
	font-size: 27px;
	line-height: 1;
}

.npr-review-count {
	color: var(--npr-muted);
	font-size: 14px;
	line-height: 1.7;
}

.npr-reviews-track {
	display: flex;
	align-items: flex-start;
	gap: var(--npr-card-gap);
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: 1px 1px 12px;
	overflow-x: scroll;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 1px;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-inline: contain;
	touch-action: pan-x pan-y;
	cursor: grab;
	scrollbar-width: none;
}

.npr-reviews-track::-webkit-scrollbar {
	display: none;
}

.npr-reviews-track:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--npr-accent) 65%, transparent);
	outline-offset: 3px;
}

.npr-reviews-track.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	user-select: none;
}

.npr-review-card {
	display: flex;
	align-self: flex-start;
	flex: 0 0 calc((100% - (var(--npr-card-gap) * (var(--npr-cards-per-view) - 1))) / var(--npr-cards-per-view));
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	padding: 18px;
	border: 1px solid var(--npr-border);
	border-radius: 12px;
	background: #fff;
	scroll-snap-align: start;
	scroll-snap-stop: normal;
}

.npr-card-header {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	min-width: 0;
}

.npr-avatar {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--npr-surface-soft) url("default-avatar.png") center / cover no-repeat;
}

.npr-avatar img {
	display: block;
	width: 44px;
	height: 44px;
	margin: 0;
	border: 0;
	border-radius: 50%;
	object-fit: cover;
}

.npr-author-wrap {
	min-width: 0;
	padding-top: 1px;
}

.npr-author-line {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	min-width: 0;
}

.npr-author-name {
	overflow: hidden;
	color: #262a32;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.7;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.npr-buyer-badge {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 2px 9px;
	border-radius: 999px;
	background: #eaf7ed;
	color: #287d3c;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.5;
}

.npr-stars {
	display: inline-flex;
	direction: ltr;
	gap: 1px;
	margin-top: 4px;
	font-size: 18px;
	line-height: 1;
}

.npr-star {
	color: #dfe3e8;
}

.npr-star.is-active {
	color: var(--npr-star);
}

.npr-review-copy {
	margin-top: 17px;
}

.npr-review-text {
	--npr-review-lines: 5;
	display: -webkit-box;
	overflow: hidden;
	color: #3f4652;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.9em;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--npr-review-lines);
}

.npr-review-text p {
	margin: 0;
}

.npr-review-text.is-expanded {
	display: block;
	overflow: visible;
	-webkit-line-clamp: unset;
}

.npr-expand-button {
	margin: 5px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--npr-accent);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.8;
	cursor: pointer;
}

.npr-expand-button[hidden] {
	display: none;
}

.npr-review-date {
	display: block;
	margin-top: auto;
	padding-top: 17px;
	color: #8b929e;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.6;
}

.npr-write-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	margin-top: 14px;
	padding: 17px 18px;
	border: 1px solid #eceef1;
	border-radius: 12px;
	background: var(--npr-surface-soft);
	color: #252a32;
	font: inherit;
	font-size: 15px;
	font-weight: 650;
	line-height: 1.7;
	text-align: right;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease;
}

.npr-write-cta:hover,
.npr-write-cta:focus-visible {
	border-color: #d9dde2;
	background: #f1f3f5;
}

.npr-cta-main {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.npr-cta-icon {
	width: 25px;
	height: 25px;
	font-size: 25px;
	line-height: 25px;
}

.npr-empty-state {
	padding: 32px 20px;
	border: 1px solid var(--npr-border);
	border-radius: 12px;
	background: #fff;
	color: var(--npr-muted);
	text-align: center;
}

.npr-empty-state p {
	margin: 4px 0;
	line-height: 1.8;
}

.npr-empty-state .npr-empty-title {
	margin-bottom: 2px;
	color: var(--npr-text);
	font-size: 17px;
	font-weight: 750;
}

.npr-empty-button,
.npr-submit-button,
.npr-login-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-top: 18px;
	padding: 10px 24px;
	border: 1px solid var(--npr-accent);
	border-radius: 10px;
	background: var(--npr-accent);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
	text-decoration: none;
	cursor: pointer;
}

.npr-empty-button:hover,
.npr-empty-button:focus-visible,
.npr-submit-button:hover,
.npr-submit-button:focus-visible,
.npr-login-button:hover,
.npr-login-button:focus-visible {
	border-color: #234a3d;
	background: #234a3d;
	color: #fff;
}

.npr-modal[hidden] {
	display: none;
}

.npr-modal {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 20px;
}

.npr-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(18, 23, 28, 0.48);
	backdrop-filter: blur(2px);
}

.npr-modal-panel {
	position: relative;
	z-index: 1;
	width: min(100%, 520px);
	max-height: min(90vh, 720px);
	overflow: auto;
	padding: 22px;
	border: 1px solid var(--npr-border);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 18px 55px rgba(21, 27, 31, 0.18);
}

.npr-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.npr-modal-header h3 {
	margin: 0;
	color: var(--npr-text);
	font-size: 20px;
	font-weight: 750;
	line-height: 1.5;
}

.npr-modal-close {
	display: inline-grid;
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--npr-surface-soft);
	color: #4d5561;
	cursor: pointer;
}

.npr-modal-close .dashicons {
	width: 22px;
	height: 22px;
	font-size: 22px;
	line-height: 22px;
}

.npr-rating-group {
	margin: 0 0 20px;
	padding: 0;
	border: 0;
}

.npr-rating-group legend,
.npr-comment-label {
	display: block;
	margin-bottom: 9px;
	color: #303640;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.7;
}

.npr-rating-input {
	display: inline-flex;
	direction: ltr;
	gap: 4px;
}

.npr-rating-input label {
	display: inline-grid;
	place-items: center;
	color: #dfe3e8;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
}

.npr-rating-input label.is-active {
	color: var(--npr-star);
}

.npr-rating-input input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.npr-rating-input input:focus-visible + span {
	border-radius: 4px;
	outline: 2px solid var(--npr-accent);
	outline-offset: 3px;
}

.npr-review-form textarea {
	display: block;
	width: 100%;
	min-height: 142px;
	resize: vertical;
	padding: 12px 14px;
	border: 1px solid #d7dbe0;
	border-radius: 10px;
	background: #fff;
	color: var(--npr-text);
	font: inherit;
	font-size: 15px;
	line-height: 1.8;
	text-align: right;
}

.npr-review-form textarea:focus {
	border-color: var(--npr-accent);
	outline: 2px solid color-mix(in srgb, var(--npr-accent) 18%, transparent);
}

.npr-submit-button {
	width: 100%;
}

.npr-login-required {
	padding: 8px 4px 4px;
	color: #414852;
	font-size: 15px;
	line-height: 1.9;
	text-align: center;
}

.npr-login-required p {
	margin: 0;
}

.npr-login-button {
	min-width: 170px;
}

.npr-submission-note {
	margin: 14px 0 0;
	padding: 12px 14px;
	border: 1px solid #cce8d3;
	border-radius: 10px;
	background: #eef9f1;
	color: #246e36;
	font-size: 14px;
	line-height: 1.7;
}

.npr-editor-notice {
	padding: 16px;
	border: 1px dashed #c5cad1;
	border-radius: 8px;
	background: #f7f8fa;
	color: #4d5561;
	font-size: 13px;
	line-height: 1.8;
	text-align: center;
}

body.npr-modal-open {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.npr-reviews {
		--npr-cards-per-view: 2.1;
	}
}

@media (max-width: 767px) {
	.npr-reviews {
		--npr-card-gap: 12px;
		--npr-cards-per-view: 1.15;
	}

	.npr-heading-row {
		align-items: flex-start;
		margin-bottom: 14px;
	}

	.npr-title {
		font-size: 21px;
	}

	.npr-view-all {
		padding-top: 3px;
		font-size: 13px;
	}

	.npr-summary {
		margin-bottom: 17px;
	}

	.npr-average-number {
		font-size: 25px;
	}

	.npr-summary-star {
		font-size: 24px;
	}

	.npr-review-card {
		padding: 16px;
	}

	.npr-author-name,
	.npr-review-text,
	.npr-write-cta {
		font-size: 14px;
	}

	.npr-modal {
		align-items: end;
		padding: 0;
	}

	.npr-modal-panel {
		width: 100%;
		max-height: 92dvh;
		padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
		border-width: 1px 0 0;
		border-radius: 18px 18px 0 0;
		box-shadow: 0 -10px 45px rgba(21, 27, 31, 0.16);
	}
}

@media (prefers-reduced-motion: reduce) {
	.npr-reviews-track {
		scroll-behavior: auto;
	}

	.npr-write-cta {
		transition: none;
	}
}
