/**
 * JSM Product Page CRO — v2 layout: 60/40 desktop, mobile funnel.
 */

/* Desktop-first defaults (avoids FOUC before breakpoint rules apply) */
body.jsm-cro-active .jsm-cro-gallery-desktop {
	display: block;
}

body.jsm-cro-active .jsm-cro-gallery-mobile {
	display: none;
}

body.jsm-cro-active .jsm-cro-mobile-flow {
	display: none;
}

body.jsm-cro-active .jsm-cro-summary-sticky--desktop {
	display: block;
}

/* Upsell / "You may also need" carousels removed from main buy-box viewport (desktop + mobile) */
body.jsm-cro-active .jsm-cro-order-bump,
body.jsm-cro-active .jsm-cro-related-inline,
body.jsm-cro-active .jsm-cro-related-sidebar,
body.jsm-cro-active .jsm-cro-related-wrap,
body.jsm-cro-active .jsm-cro-related-wrap--mobile,
body.jsm-cro-active .jsm-cro-recommend,
body.jsm-cro-active .jsm-cro-related,
body.jsm-cro-active.single-product .related.products,
body.jsm-cro-active.single-product .up-sells,
body.jsm-cro-active.single-product .upsells.products,
body.jsm-cro-active.single-product .wp-block-woocommerce-related-products,
body.jsm-cro-active.single-product .elementor-widget-eael-product-carousel,
body.jsm-cro-active.single-product .elementor-widget-eael-product-grid,
body.jsm-cro-active.single-product .elementor-widget-eael-woo-product-gallery {
	display: none !important;
}

body.jsm-cro-active .jsm-cro-gallery-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Masonry grid — always defined so desktop gallery renders at any viewport */
body.jsm-cro-active .jsm-cro-gallery-card {
	padding: 0;
	border: 0;
	box-shadow: none;
	background: transparent;
}

body.jsm-cro-active .jsm-cro-gallery-masonry--grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px;
	width: 100%;
	background: transparent;
}

body.jsm-cro-active .jsm-cro-gallery-masonry__item {
	display: block;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	overflow: hidden;
	background: #fff;
	box-shadow: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	font: inherit;
	color: inherit;
	text-align: inherit;
	transition: opacity 0.2s ease;
}

body.jsm-cro-active .jsm-cro-gallery-masonry__item:hover {
	opacity: 0.94;
}

body.jsm-cro-active .jsm-cro-gallery-masonry__item:focus-visible {
	outline: 2px solid var(--jsm-cro-navy, #003f8f);
	outline-offset: 3px;
}

body.jsm-cro-active .jsm-cro-gallery-masonry__frame {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 0;
	background: #fff;
}

body.jsm-cro-active .jsm-cro-gallery-masonry__img,
body.jsm-cro-active .jsm-cro-gallery-masonry__item img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	object-position: center center;
	border: 0 !important;
	box-shadow: none !important;
	outline: none;
}

body.jsm-cro-active .jsm-cro-gallery-masonry--count-1 {
	grid-template-columns: 1fr;
}

body.jsm-cro-active .jsm-cro-gallery-masonry--count-1 .jsm-cro-gallery-masonry__frame {
	aspect-ratio: 1 / 1;
	max-height: min(72vh, 640px);
}

body.jsm-cro-active .jsm-cro-gallery-masonry--odd-last .jsm-cro-gallery-masonry__item:last-child {
	grid-column: 1 / -1;
}

body.jsm-cro-active .jsm-cro-gallery-masonry--odd-last .jsm-cro-gallery-masonry__item:last-child .jsm-cro-gallery-masonry__frame {
	aspect-ratio: 2 / 1;
}

/* jsm-gallery-grid — desktop 2-column grid */
body.jsm-cro-active .jsm-gallery-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px;
	width: 100%;
}

body.jsm-cro-active .jsm-gallery-grid .jsm-cro-gallery-masonry__item,
body.jsm-cro-active .jsm-gallery-grid .jsm-cro-gallery-masonry__frame,
body.jsm-cro-active .jsm-gallery-grid .jsm-cro-gallery-carousel__link,
body.jsm-cro-active .jsm-gallery-grid .jsm-cro-gallery-carousel__slide,
body.jsm-cro-active .jsm-gallery-grid .jsm-gallery-item,
body.jsm-cro-active .jsm-gallery-grid .jsm-cro-gallery-carousel__img,
body.jsm-cro-active .jsm-gallery-grid img {
	border-radius: 0;
}

/* Viewport-based gallery swap + horizontal swipe carousel (no JS class required) */
@media (max-width: 1023px) {
	body.jsm-cro-active .jsm-cro-gallery-desktop,
	body.jsm-cro-active .jsm-cro-gallery-masonry--grid {
		display: none !important;
	}

	body.jsm-cro-active .jsm-cro-gallery-mobile {
		display: block !important;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.jsm-cro-active .jsm-cro-gallery-carousel-viewport {
		width: 100%;
		max-width: 100%;
		overflow: hidden;
	}

	body.jsm-cro-active .jsm-cro-gallery-carousel,
	body.jsm-cro-active .jsm-gallery-grid {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 15px;
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	body.jsm-cro-active .jsm-cro-gallery-carousel::-webkit-scrollbar {
		display: none;
	}

	body.jsm-cro-active .jsm-cro-gallery-carousel__slide {
		flex: 0 0 100%;
		width: 100%;
		min-width: 100%;
		max-width: 100%;
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}

	body.jsm-cro-active .jsm-cro-gallery-carousel__link {
		display: block;
		width: 100%;
		line-height: 0;
		background: linear-gradient(180deg, #e8f4fc 0%, #f8fbff 100%);
		border-radius: 0;
		overflow: hidden;
		border: 0;
		padding: 0;
		cursor: pointer;
	}

	body.jsm-cro-active .jsm-cro-gallery-carousel__img,
	body.jsm-cro-active .jsm-cro-gallery-carousel img {
		display: block;
		width: 100%;
		height: auto;
		min-height: 200px;
		max-height: min(56vw, 320px);
		margin: 0 auto;
		object-fit: contain;
	}

	body.jsm-cro-active .jsm-cro-gallery-dots {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		gap: 8px;
		margin: 12px 0 0;
		padding: 0;
	}

	body.jsm-cro-active .jsm-cro-gallery-dot {
		width: 8px;
		height: 8px;
		padding: 0;
		border: 0;
		border-radius: 999px;
		background: #cbd5e1;
		cursor: pointer;
		transition: width 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
		/* 44px tap target without changing visual dot size */
		box-shadow: 0 0 0 18px transparent;
	}

	body.jsm-cro-active .jsm-cro-gallery-dot.is-active {
		width: 24px;
		background: var(--jsm-cro-navy, #003f8f);
	}
}

@media (min-width: 1024px) {
	body.jsm-cro-active .jsm-cro-gallery-mobile {
		display: none !important;
	}

	body.jsm-cro-active .jsm-cro-gallery-desktop {
		display: block !important;
	}
}

/* ── Desktop 60/40 grid ── */
@media (min-width: 1024px) {
	/* Wider product page — less empty margin on left/right */
	body.jsm-cro-active.single-product .site-content > .ast-container,
	body.jsm-cro-active.single-product .site-content > .ast-container-fluid {
		max-width: min(1440px, calc(100vw - 24px));
		padding-left: 12px;
		padding-right: 12px;
	}

	body.jsm-cro-active .jsm-cro-product-wrap {
		max-width: none;
		width: 100%;
		margin: 0 auto;
		padding: 0;
	}

	/* Left 60%: gallery + accordions | Right 40%: config + sticky summary */
	body.jsm-cro-active .jsm-cro-layout.product-layout {
		display: grid;
		grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
		gap: 20px;
		align-items: stretch;
		margin: 8px 0 24px;
		overflow: visible;
	}

	body.jsm-cro-active .jsm-cro-layout__media {
		grid-column: 1;
		min-width: 0;
		align-self: stretch;
		display: flex;
		flex-direction: column;
		gap: 16px;
		padding: 16px;
		border-radius: 12px;
		background: var(--jsm-cro-bg, #f7faff);
		box-sizing: border-box;
	}

	body.jsm-cro-active .jsm-cro-layout__buybox {
		grid-column: 2;
		min-width: 0;
		align-self: stretch;
		display: flex;
		flex-direction: column;
		gap: 16px;
		overflow: visible;
	}

	body.jsm-cro-active .jsm-cro-buybox__panel {
		flex-shrink: 0;
	}

	body.jsm-cro-active .jsm-cro-buybox__config .jsm-cro-configurator,
	body.jsm-cro-active .jsm-cro-buybox__config form.variations_form,
	body.jsm-cro-active .jsm-cro-buybox__config form.jsm-cro-simple-cart {
		margin: 0;
	}

	body.jsm-cro-active .jsm-cro-summary-sticky--desktop {
		display: block;
	}

	body.jsm-cro-active .jsm-cro-mobile-flow {
		display: none !important;
	}

	body.jsm-cro-active .jsm-cro-gallery-mobile {
		display: none !important;
	}

	body.jsm-cro-active .jsm-cro-gallery-desktop {
		display: block;
	}

	body.jsm-cro-active .jsm-cro-buybox__intro .jsm-cro-feature-row--mockup {
		display: none;
	}

	body.jsm-cro-active .jsm-cro-buybox__intro .jsm-cro-price-line {
		margin-bottom: 10px;
	}
}

/* ── Mobile single-column funnel (100% width, logical stack) ── */
@media (max-width: 1023px) {
	body.jsm-cro-active .jsm-cro-product-wrap {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	body.jsm-cro-active .jsm-cro-layout.product-layout {
		display: flex;
		flex-direction: column;
		width: 100%;
		max-width: 100%;
		gap: 12px;
		margin: 0 0 20px;
	}

	body.jsm-cro-active .jsm-cro-layout__buybox,
	body.jsm-cro-active .jsm-cro-buybox__panel,
	body.jsm-cro-active .jsm-cro-buybox__intro,
	body.jsm-cro-active .jsm-cro-buybox__intro > .jsm-cro-intro,
	body.jsm-cro-active .jsm-cro-mobile-flow {
		display: contents;
	}

	body.jsm-cro-active .jsm-cro-layout__media {
		order: 10;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		padding: 0;
		border-radius: 0;
		background: transparent;
	}

	body.jsm-cro-active .jsm-cro-layout__hero {
		width: 100%;
		max-width: 100%;
	}

	body.jsm-cro-active .jsm-cro-intro__primary {
		order: 20;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.jsm-cro-active .jsm-cro-intro__postcode-wrap {
		order: 30;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		margin: 4px 0 12px;
	}

	body.jsm-cro-active .jsm-cro-postcode {
		display: block !important;
		margin-bottom: 0;
	}

	body.jsm-cro-active .jsm-cro-postcode__card {
		border: 2px solid rgba(0, 87, 184, 0.28);
		border-radius: 12px;
		background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
		box-shadow: 0 4px 14px rgba(0, 87, 184, 0.08);
	}

	body.jsm-cro-active .jsm-cro-postcode__title {
		color: var(--jsm-cro-navy, #003f8f);
	}

	body.jsm-cro-active .jsm-cro-buybox__config {
		order: 40;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.jsm-cro-active .jsm-cro-summary-sticky--desktop,
	body.jsm-cro-active .jsm-cro-summary-mobile {
		display: none !important;
	}

	body.jsm-cro-active .jsm-cro-mobile-checkout-anchor {
		order: 50;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.jsm-cro-active .jsm-cro-product-tabs--desktop {
		display: none !important;
	}

	body.jsm-cro-active .jsm-cro-accordions--mobile {
		order: 60;
		display: block;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.jsm-cro-active .jsm-cro-intro__secondary {
		order: 25;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.jsm-cro-is-mobile.jsm-cro-active .jsm-cro-add-to-basket-block--sticky.is-hidden {
		transform: translateY(110%);
		opacity: 0;
		pointer-events: none;
	}

	/* Fat-thumb pills — min 56px tap targets on mobile/tablet */
	body.jsm-cro-active .jsm-cro-bottle,
	body.jsm-cro-active .jsm-cro-plan,
	body.jsm-cro-active .jsm-cro-frequency__btn,
	body.jsm-cro-active .jsm-cro-qty-quick__btn,
	body.jsm-cro-active .jsm-cro-audience__btn,
	body.jsm-cro-active .jsm-cro-qty-controls:not(.jsm-cro-qty-controls--basket) .minus,
	body.jsm-cro-active .jsm-cro-qty-controls:not(.jsm-cro-qty-controls--basket) .plus,
	body.jsm-cro-active .jsm-cro-qty-controls:not(.jsm-cro-qty-controls--basket) button.minus,
	body.jsm-cro-active .jsm-cro-qty-controls:not(.jsm-cro-qty-controls--basket) button.plus,
	body.jsm-cro-active .jsm-cro-step--minimized .jsm-cro-step__summary,
	body.jsm-cro-active .jsm-cro-step--audience .jsm-cro-step__summary {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 56px;
		box-sizing: border-box;
		touch-action: manipulation;
	}

	body.jsm-cro-active .jsm-cro-bottle,
	body.jsm-cro-active .jsm-cro-plan {
		display: flex;
		align-items: flex-start;
		min-height: 56px;
	}

	body.jsm-cro-active .jsm-cro-frequency__btn,
	body.jsm-cro-active .jsm-cro-qty-quick__btn,
	body.jsm-cro-active .jsm-cro-audience__btn {
		width: 100%;
		min-width: 0;
		padding: 16px 12px;
		font-size: 13px;
		font-weight: 600;
		line-height: 1.25;
		text-align: center;
		white-space: nowrap;
	}

	body.jsm-cro-active .jsm-cro-frequency,
	body.jsm-cro-active .jsm-cro-audience--full,
	body.jsm-cro-active .jsm-cro-bottle-grid {
		display: grid;
		grid-template-columns: 1fr;
		gap: 10px;
	}

	body.jsm-cro-active .jsm-cro-step--qty .jsm-cro-qty-quick {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 8px;
		width: 100%;
	}

	body.jsm-cro-active .jsm-cro-qty-quick__btn span {
		display: inline;
		white-space: nowrap;
		line-height: 1.25;
	}

	body.jsm-cro-is-mobile.jsm-cro-active .jsm-cro-order-bump__add {
		min-width: 44px;
		min-height: 44px;
	}
}

/* ── Order bump (shared) ── */
.jsm-cro-order-bump__title {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 800;
	color: var(--jsm-cro-navy, #003f8f);
}

.jsm-cro-order-bump__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jsm-cro-order-bump__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid var(--jsm-cro-border, #d7e2f0);
}

.jsm-cro-order-bump__item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.jsm-cro-order-bump__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1;
}

.jsm-cro-order-bump__name {
	font-size: 13px;
	font-weight: 700;
	color: var(--jsm-cro-text, #0f2544);
	line-height: 1.3;
}

.jsm-cro-order-bump__price {
	font-size: 12px;
	font-weight: 600;
	color: var(--jsm-cro-muted, #64748b);
}

.jsm-cro-order-bump__add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1.5px solid var(--jsm-cro-navy, #003f8f);
	border-radius: 8px;
	background: #fff;
	color: var(--jsm-cro-navy, #003f8f);
	font-size: 20px;
	font-weight: 700;
	text-decoration: none;
	flex-shrink: 0;
}

.jsm-cro-order-bump__add.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.jsm-cro-buybox__intro {
	margin-bottom: 12px;
}

.jsm-cro-buybox__meta {
	margin-top: 12px;
}

.jsm-cro-intro__postcode-wrap {
	margin: 0 0 14px;
}

/* Postcode soft gate — both viewports */
body.jsm-cro-active .jsm-cro-postcode {
	display: block;
}

body.jsm-cro-active .jsm-cro-postcode__card {
	border: 2px solid rgba(0, 87, 184, 0.28);
	border-radius: 12px;
	background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
	box-shadow: 0 4px 14px rgba(0, 87, 184, 0.08);
}

body.jsm-cro-active .jsm-cro-postcode__title {
	color: var(--jsm-cro-navy, #003f8f);
}

body.jsm-cro-active .jsm-cro-postcode__status.is-pending {
	background: #eff6ff;
	color: var(--jsm-cro-navy, #003f8f);
	font-weight: 600;
}

body.jsm-cro-active .jsm-cro-product-wrap.is-delivery-blocked .jsm-cro-buybox__config,
body.jsm-cro-active .jsm-cro-product-wrap.is-delivery-blocked .jsm-cro-mobile-checkout-anchor,
body.jsm-cro-active .jsm-cro-product-wrap.is-delivery-blocked .jsm-cro-summary-sticky--desktop {
	pointer-events: none;
	opacity: 0.42;
	filter: grayscale(0.15);
	user-select: none;
}

body.jsm-cro-active .jsm-cro-product-wrap.is-delivery-blocked .jsm-cro-buybox__config {
	position: relative;
}

body.jsm-cro-active .jsm-cro-product-wrap.is-delivery-blocked .jsm-cro-buybox__config::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.35);
	pointer-events: none;
}

.jsm-cro-product-tabs--below {
	margin: 24px 0 32px;
	padding-top: 8px;
	border-top: 1px solid var(--jsm-cro-border, #dce4f2);
}

.jsm-cro-product-tabs--below .jsm-cro-info-accordions,
.jsm-cro-product-tabs--below .jsm-cro-product-tabs {
	max-width: none;
}

@media (min-width: 1024px) {
	body.jsm-cro-active .jsm-cro-layout__media .jsm-cro-product-tabs--desktop {
		margin-top: 4px;
	}
}

.jsm-cro-buybox__config {
	margin-bottom: 8px;
}

/* Minimized configurator steps — collapsed by default, compact summary row */
.jsm-cro-configurator {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.jsm-cro-step--minimized,
.jsm-cro-step--audience {
	margin-bottom: 0;
}

.jsm-cro-step--minimized .jsm-cro-step__details,
.jsm-cro-step--audience .jsm-cro-step__details {
	border: 1px solid var(--jsm-cro-border, #d7e2f0);
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
	box-sizing: border-box;
}

.jsm-cro-step--minimized .jsm-cro-step__summary,
.jsm-cro-step--audience .jsm-cro-step__summary {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-rows: auto auto;
	align-items: center;
	column-gap: 10px;
	row-gap: 3px;
	padding: 12px 14px;
	cursor: pointer;
	pointer-events: auto;
	list-style: none;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.jsm-cro-step--audience .jsm-cro-step__summary {
	grid-template-columns: minmax(0, 1fr) auto;
}

.jsm-cro-step--minimized .jsm-cro-step__summary::-webkit-details-marker,
.jsm-cro-step--audience .jsm-cro-step__summary::-webkit-details-marker {
	display: none;
}

.jsm-cro-step--minimized .jsm-cro-step__summary::after,
.jsm-cro-step--audience .jsm-cro-step__summary::after {
	content: '';
	grid-column: 3;
	grid-row: 1 / span 2;
	align-self: center;
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	margin-left: 0;
	border-right: 2px solid var(--jsm-cro-muted, #64748b);
	border-bottom: 2px solid var(--jsm-cro-muted, #64748b);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.jsm-cro-step--audience .jsm-cro-step__summary::after {
	grid-column: 2;
}

.jsm-cro-step--minimized .jsm-cro-step__details[open] > .jsm-cro-step__summary::after,
.jsm-cro-step--audience .jsm-cro-step__details[open] > .jsm-cro-step__summary::after {
	transform: rotate(-135deg);
}

.jsm-cro-step--minimized .jsm-cro-step__summary-main {
	display: contents;
}

.jsm-cro-step--minimized .jsm-cro-step__title,
.jsm-cro-step--audience .jsm-cro-step__title {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--jsm-cro-navy, #003f8f);
	min-width: 0;
}

.jsm-cro-step--audience .jsm-cro-step__title {
	grid-column: 1;
}

.jsm-cro-step--minimized .jsm-cro-step__value,
.jsm-cro-step--audience .jsm-cro-step__value {
	grid-column: 2;
	grid-row: 2;
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--jsm-cro-muted, #64748b);
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
	padding-right: 4px;
}

.jsm-cro-step--audience .jsm-cro-step__value {
	grid-column: 1;
}

.jsm-cro-step--minimized .jsm-cro-step__num {
	grid-column: 1;
	grid-row: 1 / span 2;
	align-self: center;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	font-size: 11px;
	line-height: 22px;
}

.jsm-cro-step--minimized .jsm-cro-step__body {
	padding: 12px 14px 14px;
	border-top: 1px solid var(--jsm-cro-border, #d7e2f0);
	box-sizing: border-box;
}

.jsm-cro-step--minimized .jsm-cro-bottle-grid {
	gap: 10px;
}

.jsm-cro-step--minimized .jsm-cro-bottle {
	padding: 12px;
	box-sizing: border-box;
	min-width: 0;
}

.jsm-cro-step--minimized .jsm-cro-bottle.is-selected {
	box-shadow: none;
}

.jsm-cro-step--minimized .jsm-cro-bottle__desc {
	display: none;
}

.jsm-cro-step--minimized .jsm-cro-bottle__price {
	margin: 4px 0 0;
	font-size: 18px;
}

.jsm-cro-step--minimized .jsm-cro-plans {
	gap: 10px;
}

.jsm-cro-step--minimized .jsm-cro-plan {
	padding: 12px 14px;
	box-sizing: border-box;
	min-width: 0;
}

.jsm-cro-step--minimized .jsm-cro-plan.is-selected {
	box-shadow: none;
}

.jsm-cro-step--minimized .jsm-cro-plan__desc {
	font-size: 12px;
	margin-top: 4px;
}

.jsm-cro-step--minimized .jsm-cro-frequency {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin-top: 10px;
}

.jsm-cro-step--minimized .jsm-cro-frequency__btn {
	box-sizing: border-box;
	min-width: 0;
	width: 100%;
	min-height: 56px;
	margin: 0;
	white-space: normal;
	text-align: center;
	line-height: 1.25;
	padding: 16px 12px;
}

.jsm-cro-step--minimized .jsm-cro-badge {
	font-size: 9px;
	padding: 2px 6px;
}

.jsm-cro-step--minimized .jsm-cro-qty-quick {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.jsm-cro-step--minimized .jsm-cro-qty-quick__btn {
	box-sizing: border-box;
	min-width: 0;
	width: 100%;
	min-height: 56px;
	margin: 0;
	padding: 16px 12px;
}

.jsm-cro-step--minimized .jsm-cro-audience--full {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.jsm-cro-step--minimized .jsm-cro-audience--full .jsm-cro-audience__btn {
	box-sizing: border-box;
	min-width: 0;
	width: 100%;
	min-height: 56px;
	margin: 0;
	padding: 16px 12px;
}

.jsm-cro-step--audience {
	margin-top: 0;
}

.jsm-cro-step--qty {
	margin-bottom: 0;
}

/* v1.8 — Lola's-inspired product flow sectioning */
.jsm-cro-intro--flow .jsm-cro-intro__title {
	margin-bottom: 10px;
}

.jsm-cro-intro--flow .jsm-cro-price-card--mockup {
	margin-bottom: 12px;
}

.jsm-cro-intro--flow .jsm-cro-postcode {
	display: block;
	margin-bottom: 14px;
}

.jsm-cro-intro--flow .jsm-cro-intro__rating .star-rating {
	margin: 0;
}

.jsm-cro-intro__availability {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 700;
	color: #16813a;
}

.jsm-cro-intro__availability--out {
	font-weight: 600;
	color: inherit;
}

.jsm-cro-feature-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 4px;
	padding: 0;
	list-style: none;
}

.jsm-cro-feature-tags li {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border: 1px solid #d7e2f0;
	border-radius: 999px;
	background: #f4f9ff;
	font-size: 12px;
	font-weight: 600;
	color: var(--jsm-cro-navy, #003f8f);
	line-height: 1.2;
}

.jsm-cro-postcode__check {
	min-height: 42px;
	padding: 0 16px;
	white-space: nowrap;
}

.jsm-cro-postcode__locate {
	display: inline-flex;
	align-items: center;
	margin-top: 8px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--jsm-cro-navy, #003f8f);
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.jsm-cro-postcode-trust {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.jsm-cro-postcode-trust__item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.3;
	color: #64748b;
	white-space: nowrap;
}

.jsm-cro-postcode-trust__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	color: var(--jsm-cro-green, #16a34a);
}

.jsm-cro-postcode-trust__icon svg {
	display: block;
}

.jsm-cro-postcode__card .jsm-cro-postcode__status {
	margin: 10px 0 0;
}

.jsm-cro-postcode__card .jsm-cro-postcode__status:not(.is-visible) {
	display: none;
}

.jsm-cro-postcode__card .jsm-cro-postcode__status.is-visible {
	display: block;
}

.jsm-cro-delivery-result {
	display: none;
}

@media (min-width: 1024px) {
	body.jsm-cro-active .jsm-cro-intro--flow .jsm-cro-postcode {
		display: block;
		margin-bottom: 14px;
	}

	body.jsm-cro-active .jsm-cro-intro--flow .jsm-cro-intro__rating {
		margin-bottom: 10px;
	}

	body.jsm-cro-active .jsm-cro-intro--flow .jsm-cro-intro__desc {
		margin-bottom: 10px;
	}
}

@media (max-width: 767px) {
	body.jsm-cro-is-mobile.jsm-cro-active .jsm-cro-postcode__check {
		min-height: 44px;
	}
}

/* ── Lola-style mobile product page (≤768px): full-width, peek carousel, inline total ── */
@media (max-width: 768px) {
	body.single-product.jsm-cro-active .site-main,
	body.single-product.jsm-cro-active .content-area,
	body.single-product.jsm-cro-active .woocommerce,
	body.single-product.jsm-cro-active .product,
	body.single-product.jsm-cro-active .jsm-cro-product-wrap,
	body.single-product.jsm-cro-active .jsm-cro-layout.product-layout,
	body.single-product.jsm-cro-active .jsm-product-layout {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
		box-sizing: border-box;
	}

	body.single-product.jsm-cro-active .site-content > .ast-container,
	body.single-product.jsm-cro-active .site-content > .ast-container-fluid {
		max-width: 100%;
		padding-left: 0;
		padding-right: 0;
	}

	body.single-product.jsm-cro-active .jsm-cro-product-wrap {
		padding-left: 0;
		padding-right: 0;
		overflow-x: hidden;
		overflow-x: clip;
	}

	body.single-product.jsm-cro-active .jsm-cro-layout.product-layout,
	body.single-product.jsm-cro-active .jsm-product-layout {
		display: block;
		padding-left: 0;
		padding-right: 0;
		gap: 0;
	}

	body.single-product.jsm-cro-active .jsm-cro-layout__media,
	body.single-product.jsm-cro-active .jsm-product-gallery-wrap,
	body.single-product.jsm-cro-active .jsm-cro-layout__hero,
	body.single-product.jsm-cro-active .jsm-product-gallery,
	body.single-product.jsm-cro-active .jsm-cro-gallery-card {
		width: 100%;
		max-width: 100%;
	}

	body.single-product.jsm-cro-active .jsm-cro-gallery-carousel-viewport {
		overflow: hidden;
	}

	body.single-product.jsm-cro-active .jsm-cro-gallery-carousel,
	body.single-product.jsm-cro-active .jsm-gallery-grid {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 15px;
		padding-left: 8px;
		padding-right: 8px;
		width: 100%;
		box-sizing: border-box;
		-webkit-overflow-scrolling: touch;
	}

	body.single-product.jsm-cro-active .jsm-cro-gallery-carousel__slide,
	body.single-product.jsm-cro-active .jsm-gallery-item {
		flex: 0 0 92%;
		scroll-snap-align: center;
		aspect-ratio: 1 / 1;
		overflow: hidden;
		border-radius: 0;
		background: #f7f9fc;
		min-width: 0;
		width: auto;
		max-width: none;
	}

	body.single-product.jsm-cro-active .jsm-cro-gallery-mobile--single .jsm-cro-gallery-carousel__slide,
	body.single-product.jsm-cro-active .jsm-cro-gallery-mobile--single .jsm-gallery-item {
		flex: 0 0 calc(100% - 16px);
	}

	body.single-product.jsm-cro-active .jsm-cro-gallery-carousel__link {
		display: block;
		width: 100%;
		height: 100%;
		border-radius: 0;
		background: #f7f9fc;
	}

	body.single-product.jsm-cro-active .jsm-cro-gallery-carousel__img,
	body.single-product.jsm-cro-active .jsm-gallery-item img {
		width: 100%;
		height: 100%;
		min-height: 0;
		max-height: none;
		object-fit: cover;
		display: block;
	}

	body.single-product.jsm-cro-active .jsm-cro-gallery-dots {
		padding: 0 8px;
		margin-top: 10px;
	}

	body.single-product.jsm-cro-active .jsm-cro-intro__primary,
	body.single-product.jsm-cro-active .jsm-cro-intro__secondary,
	body.single-product.jsm-cro-active .jsm-cro-intro__postcode-wrap,
	body.single-product.jsm-cro-active .jsm-cro-buybox__config,
	body.single-product.jsm-cro-active .jsm-product-summary {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		padding-left: 12px;
		padding-right: 12px;
	}

	body.single-product.jsm-cro-active .jsm-cro-intro__primary {
		padding-top: 12px;
	}

	body.single-product.jsm-cro-active .jsm-cro-intro--mockup .jsm-cro-intro__title {
		font-size: 1.35rem;
		line-height: 1.25;
		margin-bottom: 8px;
	}

	body.single-product.jsm-cro-active .jsm-cro-intro__label {
		margin-bottom: 4px;
		font-size: 12px;
	}

	body.single-product.jsm-cro-active .jsm-cro-price-card--mockup {
		margin-bottom: 10px;
	}

	body.single-product.jsm-cro-active .jsm-cro-intro__secondary {
		margin-bottom: 8px;
	}

	body.single-product.jsm-cro-active .jsm-cro-feature-tags {
		flex-wrap: wrap;
		gap: 6px;
	}

	body.single-product.jsm-cro-active .jsm-postcode-card,
	body.single-product.jsm-cro-active .jsm-option-card,
	body.single-product.jsm-cro-active .jsm-plan-card,
	body.single-product.jsm-cro-active .jsm-quantity-card,
	body.single-product.jsm-cro-active .jsm-product-accordions,
	body.single-product.jsm-cro-active .jsm-cro-mobile-checkout-anchor {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	body.single-product.jsm-cro-active .jsm-cro-summary-mobile {
		display: none !important;
	}

	body.single-product.jsm-cro-active .jsm-cro-add-to-basket-block--inline {
		order: 45;
	}

	body.single-product.jsm-cro-active .jsm-cro-mobile-checkout-anchor {
		order: 50;
		padding-left: 12px;
		padding-right: 12px;
	}

	body.single-product.jsm-cro-active .jsm-cro-accordions--mobile {
		order: 60;
		padding-left: 12px;
		padding-right: 12px;
		margin-top: 8px;
	}
}
