/**
 * Merch in the Void — PDP hero peel (allowlisted products only).
 * Lives inside the images column so the mobile buy box stays clear.
 */
.rr-void {
	--rr-void-ink: #020402;
	--rr-void-fog: #070b07;
	--rr-void-text: #d8eadc;
	--rr-void-muted: #7f9a86;
	--rr-void-signal: #00ff41;
	--rr-void-line: rgba(116, 255, 147, 0.3);
	--rr-void-mono: "Fragment Mono", ui-monospace, monospace;
	position: relative;
	z-index: 1;
	isolation: isolate;
	max-width: 100%;
}

.rr-void__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 0 0 10px;
	padding: 0;
	position: static;
	container-type: inline-size;
	container-name: rr-void-bar;
}

.rr-void__toggle {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid var(--rr-void-line);
	background: rgba(4, 8, 4, 0.85);
	color: var(--rr-void-signal);
	font-family: var(--rr-void-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: lowercase;
	cursor: pointer;
	border-radius: 0;
	line-height: 1.2;
}

.rr-void__toggle:hover {
	border-color: var(--rr-void-signal);
}

.rr-void__toggle:focus {
	outline: none;
}

.rr-void__toggle:focus-visible {
	outline: 3px solid var(--rr-void-signal);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px rgba(0, 255, 65, 0.22);
}

.rr-void__toggle[aria-pressed="true"] {
	background: rgba(0, 255, 65, 0.12);
	box-shadow: inset 0 0 0 1px rgba(0, 255, 65, 0.35);
}

.rr-void__help {
	margin: 0;
	flex: 1 1 180px;
	color: var(--rr-void-muted);
	font-family: var(--rr-void-mono);
	font-size: 12px;
	line-height: 1.4;
	max-width: 36rem;
}

/* Prefer the short helper. Long line only when the bar has room. */
.rr-void__help-full {
	display: none;
}

.rr-void__help-tight {
	display: inline;
}

@container rr-void-bar (min-width: 40rem) {
	.rr-void__help-full {
		display: inline;
	}

	.rr-void__help-tight {
		display: none;
	}
}

@supports not (container-type: inline-size) {
	@media (min-width: 900px) {
		.rr-void__help-full {
			display: inline;
		}

		.rr-void__help-tight {
			display: none;
		}
	}
}

.rr-void__stage {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	overflow: hidden;
	background:
		radial-gradient(ellipse at 50% 42%, rgba(0, 28, 10, 0.55), #020402 72%);
	pointer-events: none;
}

.rr-void__stage[hidden] {
	display: none !important;
}

.rr-void__layer {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-height: none !important;
	object-fit: contain;
	object-position: center;
	pointer-events: none;
	background: transparent !important;
}

.rr-void__silhouette {
	opacity: 0.92;
	filter: contrast(1.05);
}

.rr-void__garment {
	z-index: 1;
}

.rr-void.is-on .woocommerce-product-gallery__image a,
.rr-void.is-on .flex-viewport a {
	pointer-events: none;
}

.rr-void.is-on .woocommerce-product-gallery__image:first-child > a img,
.rr-void.is-on .woocommerce-product-gallery__image:first-child img.wp-post-image,
.rr-void.is-on .flex-viewport .woocommerce-product-gallery__image > a img {
	visibility: hidden;
}

.rr-void.is-on .rr-void__layer {
	visibility: visible;
}

/* Hero well must be a positioning context for the collage. */
.rr-void .woocommerce-product-gallery,
.rr-void .flex-viewport,
.rr-void .woocommerce-product-gallery__image:first-child {
	position: relative;
}

/* Stay inside the images column — never overlay the buy box. */
.elementor-widget-woocommerce-product-add-to-cart,
.elementor-widget-woocommerce-product-price,
.elementor-widget-woocommerce-product-title,
form.cart {
	position: relative;
	z-index: 3;
}

@media (max-width: 782px) {
	.rr-void__bar {
		position: static;
		margin-bottom: 8px;
	}

	.rr-void__toggle {
		min-height: 44px;
	}

	.rr-void__help {
		flex-basis: 100%;
	}

	.rr-void__help-full {
		display: none !important;
	}

	.rr-void__help-tight {
		display: inline !important;
	}

	/* Stacked Elementor PDP: images then buy box. Keep void in-flow. */
	.elementor-widget-woocommerce-product-images .rr-void {
		margin-bottom: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rr-void__toggle,
	.rr-void__stage,
	.rr-void__layer {
		transition: none !important;
	}
}
