/* N14 reviews */
.n14-rev {
	--n14-star-color: #7a4b2f;
}
.n14-rev__top {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr) minmax(0, 1fr);
	gap: 2.5rem;
	align-items: start;
	margin-bottom: 2rem;
}
.n14-rev__kicker {
	margin: 0 0 0.5rem;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.n14-rev__title {
	margin: 0 0 0.75rem;
	font-size: clamp(2rem, 3.5vw, 3rem);
	font-weight: 300;
	line-height: 1.05;
}
.n14-rev__loved {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}
.n14-rev__loved li {
	padding: 0.375rem 0.875rem;
	border-radius: 999px;
	background: var(--wp--preset--color--blush);
	font-size: 0.875rem;
}
.n14-rev__loved small {
	color: var(--wp--preset--color--muted);
}
.n14-rev__loved-empty,
.n14-rev__lead {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
}
.n14-rev__loved-empty {
	margin-bottom: 0.75rem;
	color: var(--wp--preset--color--ink);
}
.n14-rev__avg {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(3rem, 5vw, 4.5rem);
	font-weight: 300;
	line-height: 1;
}
.n14-rev__avg small {
	font-size: 0.45em;
}
.n14-rev__count {
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
}
.n14-rev .n14-stars {
	background: linear-gradient(90deg, var(--n14-star-color) var(--n14-fill), #d9cbc4 var(--n14-fill));
}
.n14-rev__bars {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.8125rem;
}
.n14-rev__bars li {
	display: grid;
	grid-template-columns: 2.5rem 1fr 2rem;
	align-items: center;
	gap: 0.5rem;
}
.n14-rev__bar {
	height: 6px;
	background: var(--wp--preset--color--line);
}
.n14-rev__bar span {
	display: block;
	height: 100%;
	background: var(--wp--preset--color--ink);
}
.n14-rev__write {
	display: inline-flex;
	gap: 0.5rem;
	align-items: center;
	min-height: 48px;
	padding: 0 1.5rem;
	border: 0;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--surface);
	font: inherit;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
}
.n14-rev__cta p {
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
}
.n14-rev__photos {
	display: flex;
	gap: 6px;
	margin: 0 0 2rem;
	overflow-x: auto;
	scrollbar-width: none;
}
.n14-rev__photo {
	flex: 0 0 auto;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.n14-rev__photo img {
	display: block;
	width: 170px;
	max-width: none;
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
.n14-rev__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
}
.n14-rev__chip {
	min-height: 40px;
	padding: 0 1.125rem;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--blush);
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 0.8125rem;
	cursor: pointer;
}
.n14-rev__chip small {
	color: var(--wp--preset--color--muted);
}
.n14-rev__chip.is-active {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--surface);
}
.n14-rev__chip.is-active small {
	color: inherit;
	opacity: 0.7;
}
.n14-rev__carousel {
	position: relative;
}
.n14-rev__list {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin: 0;
	padding: 0 0 0.75rem;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: var(--wp--preset--color--line) transparent;
}
.n14-rev__card {
	flex: 0 0 min(320px, 82vw);
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.25rem;
	background: var(--wp--preset--color--blush);
	transition: box-shadow 0.4s ease;
}
.n14-rev__card[hidden] {
	display: none;
}
.n14-rev__card.is-highlight {
	box-shadow: 0 0 0 2px var(--wp--preset--color--rose);
}
.n14-rev__card-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.15;
}
.n14-rev__text {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
}
.n14-rev__card-photos {
	display: flex;
	gap: 6px;
}
.n14-rev__card-photos a {
	flex: 1;
}
.n14-rev__card-photos {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.n14-rev__card-photos img {
	display: block;
	width: 100%;
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
.n14-rev__meta {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin-top: 0.25rem;
}
.n14-rev__avatar {
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--wp--preset--color--blush-strong);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.875rem;
}
.n14-rev__who {
	flex: 1;
	display: flex;
	flex-direction: column;
	font-size: 0.8125rem;
	line-height: 1.3;
}
.n14-rev__who small,
.n14-rev__date {
	font-size: 0.6875rem;
	color: var(--wp--preset--color--muted);
}
.n14-rev__shade {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-size: 0.75rem;
}
.n14-rev__dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
}
.n14-rev__nav {
	position: absolute;
	top: 45%;
	z-index: 2;
	width: 44px;
	height: 44px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 50%;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 6px 16px -10px rgba(28, 24, 24, 0.5);
}
.n14-rev__nav.is-prev { left: -14px; }
.n14-rev__nav.is-next { right: -14px; }
.n14-rev__empty {
	margin: 0;
	padding: 1.5rem;
	background: var(--wp--preset--color--blush);
	text-align: center;
}

/* Write panel: side panel on desktop, from the bottom on smartphone */
.n14-rev__dialog {
	overflow-y: auto;
	overscroll-behavior: contain;
	width: min(460px, 100vw);
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0 0 0 auto;
	padding: 0;
	border: 0;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	box-shadow: -24px 0 60px -30px rgba(28, 24, 24, 0.45);
	animation: n14-rev-in-side 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.n14-rev__dialog.is-closing {
	animation: n14-rev-out-side 0.25s ease forwards;
}
.n14-rev__dialog::backdrop {
	background: rgba(28, 24, 24, 0.42);
}
@keyframes n14-rev-in-side { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes n14-rev-out-side { to { transform: translateX(32px); opacity: 0; } }
.n14-rev__form {
	display: flex;
	flex-direction: column;
	gap: 1.125rem;
	padding: 1.5rem 1.75rem 2rem;
}
.n14-rev__form-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}
.n14-rev__form-head h2 {
	margin: 0;
	font-size: 2rem;
	font-weight: 300;
	line-height: 1.1;
}
.n14-rev__close {
	width: 44px;
	height: 44px;
	margin: -0.5rem -0.75rem 0 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}
.n14-rev__form fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}
.n14-rev__form legend,
.n14-rev__field {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	font-size: 0.8125rem;
	font-weight: 500;
}
.n14-rev__form legend {
	margin-bottom: 0.5rem;
}
.n14-rev__field input[type="text"],
.n14-rev__field input[type="email"],
.n14-rev__field textarea,
.n14-rev__field select {
	width: 100%;
	box-sizing: border-box;
	padding: 0.75rem 0.875rem;
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--base);
	color: inherit;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 400;
}
.n14-rev__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}
.n14-rev__stars-input {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 0.25rem;
}
.n14-rev__stars-input legend {
	width: 100%;
	flex: 0 0 100%;
}
.n14-rev__stars-input input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.n14-rev__stars-input label {
	width: 36px;
	height: 36px;
	cursor: pointer;
	background: #d9cbc4;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") center / 30px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") center / 30px no-repeat;
	transition: background-color 0.15s ease, transform 0.15s ease;
}
.n14-rev__stars-input input:checked ~ label,
.n14-rev__stars-input label:hover,
.n14-rev__stars-input label:hover ~ label {
	background: var(--n14-star-color);
}
.n14-rev__stars-input input:focus-visible + label {
	outline: 2px solid var(--wp--preset--color--rose);
	outline-offset: 2px;
}
.n14-rev__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.n14-rev__tags legend {
	width: 100%;
}
.n14-rev__tag input {
	position: absolute;
	opacity: 0;
}
.n14-rev__tag span {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 0.875rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 400;
	cursor: pointer;
}
.n14-rev__tag input:checked + span {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--surface);
}
.n14-rev__tag input:focus-visible + span {
	outline: 2px solid var(--wp--preset--color--rose);
}
.n14-rev__upload {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 84px;
	border: 1px dashed var(--wp--preset--color--line);
	text-align: center;
	cursor: pointer;
}
.n14-rev__upload input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}
.n14-rev__upload span {
	display: flex;
	flex-direction: column;
	font-size: 0.8125rem;
}
.n14-rev__upload small {
	color: var(--wp--preset--color--muted);
	font-weight: 400;
}
.n14-rev__previews {
	display: flex;
	gap: 6px;
}
.n14-rev__previews img {
	width: 72px;
	height: 72px !important;
	object-fit: cover;
}
.n14-rev__thanks {
	margin: 0 0 1.25rem;
	padding: 0.875rem 1.125rem;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--surface);
	font-size: 0.875rem;
	animation: n14-rev-thanks 0.4s ease;
}
.n14-rev__thanks[hidden] {
	display: none;
}
@keyframes n14-rev-thanks { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.n14-rev__consent {
	display: flex;
	gap: 0.625rem;
	align-items: flex-start;
	font-size: 0.8125rem;
	line-height: 1.5;
}
.n14-rev__consent input {
	margin-top: 3px;
	accent-color: var(--wp--preset--color--ink);
}
.n14-rev__hp {
	position: absolute !important;
	left: -9999px;
}
.n14-rev__msg {
	margin: 0;
	padding: 0.75rem 1rem;
	background: var(--wp--preset--color--blush);
	font-size: 0.875rem;
}
.n14-rev__msg.is-ok {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--surface);
}
.n14-rev__submit {
	min-height: 50px;
	border: 0;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--surface);
	font: inherit;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
}
.n14-rev__submit.is-busy {
	opacity: 0.6;
}
.n14-rev__small {
	margin: -0.5rem 0 0;
	font-size: 0.75rem;
	color: var(--wp--preset--color--muted);
}

@media (max-width: 1023.98px) {
	.n14-rev__top {
		grid-template-columns: 1fr 1fr;
		gap: 1.75rem;
	}
	.n14-rev__intro,
	.n14-rev__cta {
		grid-column: 1 / -1;
	}
	.n14-rev__nav {
		display: none;
	}
	.n14-rev__photo img {
		width: 120px;
	}
	.n14-rev__dialog {
		width: 100vw;
		height: auto;
		max-height: 92dvh;
		margin: auto 0 0;
		border-radius: 16px 16px 0 0;
		animation-name: n14-rev-in-bottom;
	}
	.n14-rev__dialog.is-closing {
		animation-name: n14-rev-out-bottom;
	}
	@keyframes n14-rev-in-bottom { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
	@keyframes n14-rev-out-bottom { to { transform: translateY(40px); opacity: 0; } }
}
@media (max-width: 599.98px) {
	.n14-rev__top {
		grid-template-columns: 1fr;
	}
	.n14-rev__row {
		grid-template-columns: 1fr;
	}
}
@media (prefers-reduced-motion: reduce) {
	.n14-rev__dialog,
	.n14-rev__dialog.is-closing {
		animation: none;
	}
}

/* 16px fields on phones: the browser does not zoom the page while typing */
@media (max-width: 1023.98px) {
	.n14-rev__field input[type="text"],
	.n14-rev__field input[type="email"],
	.n14-rev__field textarea,
	.n14-rev__field select {
		font-size: 16px;
	}
}

/* Review photos: no selection, no drag, no "save image" on long press */
.n14-rev__card-photos,
.n14-rev__photos,
.n14-rev__viewer {
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}
.n14-rev__card-photos img,
.n14-rev__photos img {
	-webkit-user-drag: none;
	pointer-events: none;
}
.n14-rev__pic {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}
.n14-rev__card-photos .n14-rev__pic:only-child {
	grid-column: 1 / span 2;
}
.n14-rev__viewer {
	width: min(92vw, 720px);
	max-width: none;
	height: min(86vh, 720px);
	padding: 0;
	border: 0;
	background: var(--wp--preset--color--surface);
}
.n14-rev__viewer::backdrop {
	background: rgba(28, 24, 24, 0.7);
}
.n14-rev__viewer-img {
	width: 100%;
	height: 100%;
	background: center / contain no-repeat;
}
.n14-rev__viewer-close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 1;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: var(--wp--preset--color--ink);
	cursor: pointer;
}
