/**
 * Single product page (Figma: Product Detail — Neela Jaal 450:9894), Bricks template 699.
 *
 * Only what Bricks element controls can't reach: WooCommerce markup inside the gallery,
 * reviews and attributes table, and the markup printed by inc/product-page.php shortcodes.
 */

/* Discount badge hidden by product-page.js when the chosen size has no discount. */
#brxe-0vr24f[hidden] {
	display: none !important;
}

/* ---------- Gallery (Figma Gallery 471:10922) ---------- */

/* Zoom chip (Figma 472:13771): always shown, 20px in from the main image's corner. The gallery box
   also holds the thumbs, so the offset is measured from the top of the square image (100cqw tall). */
#brxe-rr1lo6 .woocommerce-product-gallery {
	container-type: inline-size;
}

#brxe-rr1lo6 .woocommerce-product-gallery__trigger {
	top: calc(100cqw - var(--space-20) - var(--icon-trust)) !important;
	bottom: auto !important;
	margin: 0;
	opacity: 1 !important; /* WooCommerce starts it hidden */
}

/* Figma zoom_in glyph instead of WooCommerce's emoji. */
#brxe-rr1lo6 .woocommerce-product-gallery__trigger > * {
	display: none;
}

#brxe-rr1lo6 .woocommerce-product-gallery__trigger::before {
	display: block;
	width: var(--icon-sm);
	height: var(--icon-sm);
	content: "";
	background-color: currentColor;
	-webkit-mask: url("../icons/zoom.svg") center / contain no-repeat;
	mask: url("../icons/zoom.svg") center / contain no-repeat;
}

/* Bricks gives the gallery grid an auto column, which grows to fit a long thumbs row and drags the
   main image (flexslider sizes slides to it) over the summary column. Keep it to the gallery width. */
#brxe-rr1lo6 .woocommerce-product-gallery {
	grid-template-columns: minmax(0, 1fr);
}

/* Thumbs: 76px tiles, 20px apart (Figma Frame 2147229305). Six fit; more scroll sideways. */
#brxe-rr1lo6 .flex-control-thumbs {
	display: flex;
	gap: var(--space-20);
	margin: 0;
	padding: 0;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

#brxe-rr1lo6 .flex-control-thumbs::-webkit-scrollbar {
	display: none;
}

#brxe-rr1lo6 .flex-control-thumbs li {
	flex: 0 0 var(--gallery-thumb);
	scroll-snap-align: start;
	width: var(--gallery-thumb) !important; /* flexslider sets an inline width */
	margin: 0 !important;
}

/* Thumb arrows (added by product-page.js when the row overflows): the site carousel arrow
   (home sliders bs4sld/n6sldr), centred on the thumbs row at the bottom of the gallery. */
#brxe-rr1lo6 .woocommerce-product-gallery {
	--sng-thumb-h: var(--gallery-thumb);
	--sng-thumb-arrow: var(--carousel-arrow);
}

#brxe-rr1lo6 .sng-thumb-arrow {
	position: absolute;
	bottom: calc((var(--sng-thumb-h) - var(--sng-thumb-arrow)) / 2);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--sng-thumb-arrow);
	height: var(--sng-thumb-arrow);
	padding: 0;
	color: var(--color-on-accent);
	background-color: var(--color-brand-deep);
	border: 0;
	border-radius: var(--radius-pill);
	cursor: pointer;
}

#brxe-rr1lo6 .sng-thumb-arrow--prev {
	left: var(--space-4);
}

#brxe-rr1lo6 .sng-thumb-arrow--next {
	right: var(--space-4);
}

#brxe-rr1lo6 .sng-thumb-arrow::before {
	width: var(--icon-xs);
	height: var(--icon-xs);
	content: "";
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z'/%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'%3E%3Cpath d='M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

#brxe-rr1lo6 .sng-thumb-arrow--next::before {
	transform: scaleX(-1);
}

#brxe-rr1lo6 .sng-thumb-arrow:disabled {
	cursor: default;
	opacity: 0.7;
}

#brxe-rr1lo6 .sng-thumb-arrow[hidden] {
	display: none;
}

#brxe-rr1lo6 .flex-control-thumbs img {
	border: var(--hairline) solid transparent;
}

#brxe-rr1lo6 .flex-control-thumbs img.flex-active {
	border-color: var(--color-brand-accent);
	box-shadow: 0 var(--gap-2) var(--space-4) var(--shadow-accent-40);
}

/* ---------- Wishlist hearts on this page (Figma: 18px ink-muted heart in the 41px box / 30px circle) ---------- */

/* YITH keeps a gap for its (empty) text label, which pushes the icon off-centre: icon only. */
#brxe-y4jgfr .yith-wcwl-add-to-wishlist-button,
.brxe-ngk2x1 .yith-wcwl-add-to-wishlist-button {
	gap: 0;
}

#brxe-y4jgfr .yith-wcwl-add-to-wishlist-button__label:empty,
.brxe-ngk2x1 .yith-wcwl-add-to-wishlist-button__label:empty {
	display: none;
}

/* ---------- Rating breakdown (Figma 471:10972) ---------- */

.sng-rating-bars {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sng-rating-bars__row {
	display: flex;
	align-items: center;
	gap: var(--space-10);
	font-family: var(--font-body);
	font-size: var(--text-eyebrow);
	font-weight: 600;
	line-height: var(--lh-eyebrow);
	letter-spacing: var(--ls-eyebrow);
	color: var(--color-ink-muted);
}

.sng-rating-bars__label {
	flex: 0 0 auto;
	white-space: nowrap;
}

.sng-rating-bars__track {
	position: relative;
	flex: 0 1 var(--bar-track);
	height: var(--bar-h);
	overflow: hidden;
	background-color: var(--color-surface-sand);
	border-radius: var(--radius-pill);
}

.sng-rating-bars__fill {
	position: absolute;
	inset: 0 auto 0 0;
	background-color: var(--color-star-gold);
	border-radius: inherit;
}

/* ---------- Pincode check (Figma 450:10049) ---------- */

#brxe-uptlqe .form-group label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

#brxe-uptlqe .message {
	flex-basis: 100%;
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: 500;
	line-height: var(--lh-sm);
	color: var(--color-brand-deep);
}

#brxe-uptlqe .message.danger {
	color: var(--color-sale);
}

#brxe-uptlqe .message .text {
	padding: 0;
}

#brxe-uptlqe.brxe-form {
	flex-wrap: wrap !important;
}

#brxe-uptlqe .form-group:not(.submit-button-wrapper) {
	flex: 1 1 0;
	min-width: 0;
}

/* ---------- Description tab (Figma Tabs Section, Default) ---------- */

/* Image fills the pane's right side; its left edge fades into the cream page (Figma blur rect). */
/* Runs the full pane height, through the tab content's 40px padding (Figma image 32 starts at the tab rule).
   Own stacking context so its fade stays under the copy. */
.sng-description-media {
	position: absolute;
	inset: calc(-1 * var(--space-40)) 0 calc(-1 * var(--space-40)) auto;
	z-index: 0;
	width: var(--tab-media-w);
	max-width: 53%;
}

.sng-description-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top; /* Figma shows the image's top (headboard) */
}

.sng-description-media::before {
	position: absolute;
	inset: 0 auto 0 0;
	z-index: 1;
	width: var(--tab-media-fade);
	content: "";
	/* Figma: 233px cream rect with a 54px layer blur → solid for ~110px, clear by ~219px. */
	background: linear-gradient(90deg, var(--color-surface-cream) 47%, var(--color-surface-cream-0) 94%);
}

/* ---------- Additional information (Figma Variant2 472:13060) ---------- */

#brxe-28sug5 table.shop_attributes {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}

#brxe-28sug5 .shop_attributes tr {
	border-bottom: var(--hairline) solid var(--color-border-subtle);
}

#brxe-28sug5 .shop_attributes th,
#brxe-28sug5 .shop_attributes td {
	padding: var(--space-10) 0;
	font-family: var(--font-body);
	font-size: var(--text-md);
	font-weight: 400;
	font-style: normal;
	line-height: var(--lh-md);
	text-align: left;
	vertical-align: top;
	background: none;
	border: 0;
}

#brxe-28sug5 .shop_attributes th {
	width: var(--attr-label-w);
	padding-right: var(--space-24);
	color: var(--color-ink);
}

#brxe-28sug5 .shop_attributes td {
	color: var(--color-ink-muted);
}

#brxe-28sug5 .shop_attributes td p {
	max-width: var(--attr-value-max);
	margin: 0;
	padding: 0;
}

/* ---------- Reviews (Figma Tabs Section, Reviews) ---------- */

#brxe-6alp8h .woocommerce-Reviews-title {
	margin: 0 0 var(--space-24);
	font-family: var(--font-display);
	font-size: var(--text-h4);
	font-weight: 600;
	line-height: var(--lh-h4);
	color: var(--color-ink);
}

#brxe-6alp8h .commentlist {
	margin: 0;
	padding: 0;
	list-style: none;
}

#brxe-6alp8h .commentlist li.review {
	margin: 0;
	padding: var(--space-20) 0;
	border-bottom: var(--hairline) solid var(--color-border-subtle);
}

/* Figma order: stars, review, then avatar + name. */
#brxe-6alp8h .comment_container {
	display: grid;
	grid-template-columns: var(--avatar-sm) 1fr;
	grid-template-areas:
		"stars stars"
		"text text"
		"avatar meta";
	gap: var(--space-10);
	align-items: center;
}

#brxe-6alp8h .comment_container .avatar {
	grid-area: avatar;
	position: static;
	width: var(--avatar-sm);
	height: var(--avatar-sm);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--radius-pill);
}

#brxe-6alp8h .comment-text {
	display: contents;
}

#brxe-6alp8h .comment-text .star-rating,
#brxe-6alp8h .comment-text .description {
	grid-column: 1 / -1;
}

#brxe-6alp8h .comment-text .star-rating {
	grid-area: stars;
	position: relative; /* Bricks: absolute; WooCommerce positions the filled stars inside it */
	float: none;
	margin: 0;
	font-size: var(--text-eyebrow);
	color: var(--color-star-gold);
}

/* Figma: gold stars, empty ones as gold outlines (WooCommerce icon font: e021 = outline, e020 = filled, as in its review form).
   Bricks sizes this box for 15px stars and colours the layers the other way round. */
#brxe-6alp8h .comment-text .star-rating {
	width: 5.4em; /* WooCommerce default; its star glyph is wider than 1em */
	height: 1em;
	line-height: 1;
}

#brxe-6alp8h .comment-text .star-rating::before {
	content: "\e021\e021\e021\e021\e021";
	left: 0;
	right: auto;
	color: var(--color-star-gold);
}

#brxe-6alp8h .comment-text .star-rating span::before {
	content: "\e020\e020\e020\e020\e020";
	color: var(--color-star-gold);
}

#brxe-6alp8h .comment-text .description {
	grid-area: text;
	margin: 0; /* Bricks: top margin, bottom rule and padding */
	padding: 0;
	border: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-10);
	max-width: var(--faq-max);
	font-size: var(--text-sm);
	font-weight: 500;
	line-height: var(--lh-sm);
	color: var(--color-ink-muted);
}

#brxe-6alp8h .comment-text .description p {
	margin: 0;
}

#brxe-6alp8h .comment-text .meta {
	grid-area: meta;
	display: flex;
	flex-direction: column;
	gap: var(--gap-2);
	margin: 0;
	font-size: var(--text-eyebrow);
	font-weight: 600;
	line-height: var(--lh-eyebrow);
	letter-spacing: var(--ls-eyebrow);
	color: var(--color-ink-muted);
}

#brxe-6alp8h .comment-text .meta .woocommerce-review__author {
	font-size: var(--text-sm);
	font-weight: 500;
	line-height: var(--lh-sm);
	letter-spacing: 0;
}

#brxe-6alp8h .comment-text .meta .woocommerce-review__dash {
	display: none;
}

#brxe-6alp8h .woocommerce-noreviews {
	margin: 0 0 var(--space-15);
}

#brxe-6alp8h .must-log-in {
	margin: var(--space-24) 0 0;
}

#brxe-6alp8h .must-log-in a {
	font-family: var(--font-body);
	font-size: var(--text-body);
	font-weight: 500;
	line-height: var(--lh-body);
	color: var(--color-brand-accent);
	text-decoration: underline;
}

/* Add a review (Figma 472:12991): heading, 28px stars, sand fields, accent pill button. */
#brxe-6alp8h #review_form_wrapper {
	max-width: var(--faq-max);
	margin-top: var(--space-24);
}

#brxe-6alp8h .comment-reply-title {
	display: block;
	margin: 0 0 var(--space-15);
	font-family: var(--font-display);
	font-size: var(--text-h4);
	font-weight: 600;
	line-height: var(--lh-h4);
	color: var(--color-ink);
}

#brxe-6alp8h .comment-form {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-15) var(--space-16);
}

#brxe-6alp8h .comment-form > p {
	display: flex;
	flex: 1 1 100%;
	flex-direction: column;
	gap: var(--space-6);
	margin: 0;
}

#brxe-6alp8h .comment-form label {
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: 500;
	line-height: var(--lh-sm);
	color: var(--color-ink);
}

#brxe-6alp8h .comment-form .required {
	color: var(--color-sale);
}

#brxe-6alp8h .comment-form input[type="text"],
#brxe-6alp8h .comment-form input[type="email"],
#brxe-6alp8h .comment-form textarea {
	width: 100%;
	padding: var(--space-10) var(--space-15);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: 500;
	line-height: var(--lh-sm);
	color: var(--color-ink);
	background-color: var(--color-surface-sand-50);
	border: var(--hairline) solid var(--color-border-subtle);
	border-radius: var(--radius-card);
	box-shadow: none;
}

#brxe-6alp8h .comment-form textarea {
	height: var(--review-textarea-h); /* WooCommerce prints rows="8" */
	min-height: var(--review-textarea-h);
	resize: vertical;
}

#brxe-6alp8h .comment-form > p.form-submit {
	align-items: flex-start; /* Figma: the button is sized by its padding */
}

#brxe-6alp8h .comment-form input:focus,
#brxe-6alp8h .comment-form textarea:focus {
	border-color: var(--color-brand-accent);
	outline: none;
}

/* Name + Email side by side (guests only). */
#brxe-6alp8h .comment-form > p.comment-form-author,
#brxe-6alp8h .comment-form > p.comment-form-email {
	flex: 1 1 calc(50% - var(--space-8));
}

#brxe-6alp8h .comment-form p.stars {
	margin: 0;
	line-height: 1;
}

#brxe-6alp8h .comment-form p.stars a {
	width: var(--icon-trust);
	height: var(--icon-trust);
	margin-right: var(--space-10);
	font-size: var(--icon-trust);
}

#brxe-6alp8h .comment-form p.stars a::before {
	color: var(--color-border-subtle);
}

#brxe-6alp8h .comment-form p.stars:hover a::before,
#brxe-6alp8h .comment-form p.stars.selected a::before {
	color: var(--color-star-gold);
}

#brxe-6alp8h .comment-form p.stars a:hover ~ a::before,
#brxe-6alp8h .comment-form p.stars.selected a.active ~ a::before {
	color: var(--color-border-subtle);
}

#brxe-6alp8h .comment-form .form-submit .submit {
	padding: var(--space-16) var(--space-26);
	font-family: var(--font-body);
	font-size: var(--text-button);
	font-weight: 600;
	line-height: var(--lh-button);
	color: var(--color-on-accent);
	background-color: var(--color-brand-accent);
	border: 0;
	border-radius: var(--radius-pill);
	cursor: pointer;
}

#brxe-6alp8h .comment-form .form-submit .submit:hover {
	background-color: var(--color-brand-deep);
}

/* ---------- Responsive ---------- */

/* Stacked layout (Bricks tablet portrait): the rating summary follows the product details instead of
   sitting between the photos and the title. */
@media (max-width: 991px) {
	#brxe-e261ze {
		display: contents !important; /* Bricks' own #brxe-e261ze { display: flex } prints after this file */
	}

	#brxe-rr1lo6 {
		order: 1;
	}

	#brxe-8is6ex {
		order: 2;
	}

	#brxe-qaousv {
		order: 3;
	}
}

@media (max-width: 767px) {
	/* Four tabs don't fit one line: scroll them sideways instead of wrapping under the active rule. */
	#brxe-dlpzf7 {
		flex-wrap: nowrap !important;
		overflow-x: auto;
		scrollbar-width: none;
	}

	#brxe-dlpzf7 > * {
		flex-shrink: 0;
		white-space: nowrap;
	}

	#brxe-rr1lo6 .flex-control-thumbs {
		gap: var(--space-10);
	}

	/* Thumbs are square sixths of the gallery here; the gallery is an inline-size container. */
	#brxe-rr1lo6 .woocommerce-product-gallery {
		--sng-thumb-h: calc((100cqw - 5 * var(--space-10)) / 6);
		--sng-thumb-arrow: var(--icon-btn);
	}

	/* Six thumbs share the row (Figma desktop shows six); more scroll sideways. */
	#brxe-rr1lo6 .flex-control-thumbs li {
		flex: 0 0 calc((100% - 5 * var(--space-10)) / 6);
		width: auto !important;
		min-width: 0;
	}

	#brxe-6alp8h .comment-form > p.comment-form-author,
	#brxe-6alp8h .comment-form > p.comment-form-email {
		flex-basis: 100%;
	}

	#brxe-28sug5 .shop_attributes th {
		width: 40%;
		padding-right: var(--space-15);
	}
}

/* ---------- Back in stock "Notify me" (inc/back-in-stock.php; no Figma design: product page tokens) ---------- */
.sng-stock-alert {
	display: flex;
	flex-direction: column;
	gap: var(--space-10);
	margin-top: var(--space-20);
	padding: var(--space-20);
	background-color: var(--color-surface-sand);
	border: var(--hairline) solid var(--color-border-subtle);
	border-radius: var(--radius-lg);
}

.sng-stock-alert[hidden] {
	display: none;
}

.sng-stock-alert__title {
	margin: 0;
	font-family: "Newsreader", serif;
	font-size: var(--text-h5);
	font-weight: 600;
	line-height: var(--lh-h5);
	color: var(--color-ink);
}

.sng-stock-alert__text,
.sng-stock-alert__msg {
	margin: 0;
	font-family: "Work Sans", sans-serif;
	font-size: var(--text-sm);
	line-height: var(--lh-sm);
	color: var(--color-ink-muted);
}

.sng-stock-alert__msg:empty {
	display: none;
}

.sng-stock-alert.is-done .sng-stock-alert__msg {
	color: var(--color-badge-default);
}

.sng-stock-alert.is-error .sng-stock-alert__msg {
	color: var(--color-sale);
}

.sng-stock-alert__form {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-10);
}

.sng-stock-alert__form[hidden] {
	display: none;
}

.sng-stock-alert__label,
.sng-stock-alert__trap {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.sng-stock-alert__input {
	flex: 1 1 12rem;
	min-width: 0;
	height: var(--field-h-lg);
	padding: 0 var(--space-15);
	font-family: "Work Sans", sans-serif;
	font-size: var(--text-md);
	color: var(--color-ink);
	background-color: var(--color-surface-cream);
	border: var(--hairline) solid var(--color-border-subtle);
	border-radius: var(--radius-pill);
}

.sng-stock-alert__input:focus-visible {
	outline: var(--hairline-md) solid var(--color-brand-deep);
	outline-offset: var(--space-2);
}

.sng-stock-alert__button {
	flex: 0 0 auto;
	height: var(--field-h-lg);
	padding: 0 var(--space-26);
	font-family: "Work Sans", sans-serif;
	font-size: var(--text-button);
	font-weight: 600;
	line-height: var(--lh-button);
	color: var(--color-on-accent);
	background-color: var(--color-brand-accent);
	border: 0;
	border-radius: var(--radius-pill);
	cursor: pointer;
}

.sng-stock-alert__button:hover {
	background-color: var(--color-brand-deep);
}

.sng-stock-alert__button:disabled {
	opacity: 0.6;
	cursor: progress;
}

/* Main photo magnifier (product-page.js): the home product cards' lens (product-card-hover.css). */
.sng-gallery-lens {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	width: var(--card-lens-size);
	height: var(--card-lens-size);
	border-radius: 50%;
	background-color: var(--color-surface-sand);
	background-repeat: no-repeat;
	box-shadow: 0 var(--space-4) var(--space-16) var(--shadow-ink-28);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, -50%);
	transition: opacity var(--card-hover-ms) ease;
}

.sng-gallery-lens.is-on {
	opacity: 1;
}

/* WooCommerce's hover zoom stays on (it's what adds the zoom chip and its lightbox), but the lens replaces
   its enlarged photo, so hide that. jquery.zoom sets inline styles: !important wins. */
.woocommerce-product-gallery .zoomImg {
	display: none !important;
}

.woocommerce-product-gallery__image img {
	cursor: zoom-in;
}

@media (prefers-reduced-motion: reduce) {
	.sng-gallery-lens {
		transition: none;
	}
}

/* Out of stock (body.sng-oos, set by inc/back-in-stock.php and stock-alert.js): "Notify Me" replaces Quantity,
   Add to cart, Buy it now and the Razorpay Buy Now. The quantity row is collapsed with visibility + zero height,
   not display:none, so its stepper layout is untouched when an in-stock choice brings it back. !important beats
   the mobile sticky-bar rules. */
body.sng-oos .woocommerce-variation-add-to-cart,
body.sng-oos form.cart:not(.variations_form) {
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	visibility: hidden !important;
}

body.sng-oos #btn-1cc-pdp,
body.sng-oos a.brxe-button[href*="/checkout/?add-to-cart="] {
	display: none !important;
}

/* The form is the call to action now. */
body.sng-oos .sng-stock-alert {
	margin-top: var(--space-10);
}

/* Cards: "Notify Me" takes the place of Add to cart / Buy now. */
.sng-card-notify {
	text-align: center;
}

/* "Out of Stock" badge beside New / Bestseller / Luxury (Bricks element in template 699): shown while the chosen
   colour / size is out of stock (body.sng-oos). On cards the same badge is a Bricks condition instead. */
.sng-oos-badge {
	display: none;
}

body.sng-oos .sng-oos-badge {
	display: block;
}

/* Desktop: the photos column (gallery + rating summary, #brxe-e261ze) stays in view while the product details beside
   it scroll, stopping 20px from the top of the window. Columns stack from
   991px down (see above), so only wider screens. */
@media (min-width: 992px) {
	#brxe-e261ze {
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 20px); /* The header is not sticky (mobile-shell.css). */
		align-self: flex-start;
	}
}

/* ---------- Add a review: same design as the phone form (mobile-product.css) on every screen: a sand card the width
   of the reviews list, labels in small capitals, cream fields, the ACF Location / Photo fields styled like the
   WooCommerce ones (side by side on wide screens), a light outline "Add Image". Logged out there is no form: no card. ---------- */
#brxe-6alp8h #review_form_wrapper:has(form) {
	max-width: none;
	margin-top: var(--space-24);
	padding: 24px 28px;
	border: var(--hairline) solid var(--color-border-subtle);
	border-radius: 16px;
	background: var(--color-surface-sand);
}

#brxe-6alp8h .comment-form .comment-form-rating,
#brxe-6alp8h .comment-form .acf-fields {
	flex: 1 1 100%;
	width: 100%;
	margin: 0;
}

#brxe-6alp8h .comment-form .comment-form-rating {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

#brxe-6alp8h .comment-form label,
#brxe-6alp8h .comment-form .acf-label label {
	display: block;
	margin: 0;
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--color-ink);
}

#brxe-6alp8h .comment-form .required,
#brxe-6alp8h .comment-form .acf-required {
	color: var(--color-brand-deep);
}

#brxe-6alp8h .comment-form input[type="text"],
#brxe-6alp8h .comment-form input[type="email"],
#brxe-6alp8h .comment-form textarea {
	box-sizing: border-box;
	min-height: 46px;
	padding: 12px 16px;
	font-size: 14px;
	line-height: 1.4;
	background: var(--color-surface-cream);
	border-radius: 12px;
}

#brxe-6alp8h .comment-form textarea {
	height: 130px;
	min-height: 130px;
}

#brxe-6alp8h .comment-form .acf-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px 20px;
	border: 0;
	background: none;
}

#brxe-6alp8h .comment-form .acf-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
}

#brxe-6alp8h .comment-form .acf-label {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
}

#brxe-6alp8h .comment-form .acf-label .description {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none;
	color: var(--color-ink-muted);
}

#brxe-6alp8h .comment-form .acf-input {
	margin: 0;
}

#brxe-6alp8h .comment-form .acf-input input[type="text"] {
	width: 100%;
}

#brxe-6alp8h .acf-image-uploader .hide-if-value p {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 13px;
	color: var(--color-ink-muted);
}

#brxe-6alp8h .acf-image-uploader .acf-button,
#brxe-6alp8h .acf-image-uploader input[type="file"]::file-selector-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	margin: 0;
	padding: 0 16px;
	border: 1.5px solid var(--color-brand-deep);
	border-radius: var(--radius-pill);
	background: #fff;
	box-shadow: none;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	color: var(--color-brand-deep);
	text-decoration: none;
	cursor: pointer;
}

#brxe-6alp8h .acf-image-uploader .acf-button:hover {
	background: var(--color-surface-cream);
}

#brxe-6alp8h .acf-image-uploader input[type="file"] {
	font-size: 13px;
	color: var(--color-ink-muted);
}

#brxe-6alp8h .acf-image-uploader .image-wrap {
	max-width: 64px !important;
}

#brxe-6alp8h .acf-image-uploader .image-wrap img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 12px;
}
