/* Scoped preview overrides. The canonical product page is untouched. */
body.srsp-preview {
	--srsp-green: #5d6f61;
	--srsp-green-dark: #4d5e51;
	--srsp-rust: #a5472d;
	--srsp-chalk: #f6f4f1;
	--srsp-line: #d8d4cd;
}

.srsp-preview-marker {
	position: fixed;
	right: 12px;
	bottom: 12px;
	z-index: 9997;
	display: flex;
	gap: .45rem;
	align-items: center;
	padding: .4rem .65rem;
	border: 1px solid rgba(255,255,255,.28);
	border-radius: 999px;
	background: rgba(28,30,31,.92);
	color: #fff;
	box-shadow: 0 4px 18px rgba(28,30,31,.18);
	font-size: .68rem;
	line-height: 1.2;
}
.srsp-preview-marker span { color: rgba(255,255,255,.72); }

.srsp-mobile-purchase-card { display: none; }
.srsp-benefits-grid,
.srsp-review-quote { display: none; }
.srsp-footer-cookie-wrap,
.srsp-footer-cookie { display: none; }

/* Responsive device-charging story: genuine 3:2 photography, never cropped. */
.srsp-device-charging {
	border-block: 1px solid rgba(28,30,31,.1);
	background: #f6f4f1;
}
.srsp-device-charging__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
	box-sizing: border-box;
	width: min(100%, 1180px);
	margin: 0 auto;
	padding: clamp(3.25rem, 6vw, 5.5rem) 24px;
}
.srsp-device-charging__media { margin: 0; }
.srsp-device-charging__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: contain;
	border-radius: 8px;
}
.srsp-device-charging__copy { max-width: 34rem; }
.srsp-device-charging__copy h2 {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 3.4vw, 3.5rem);
	line-height: .98;
}
.srsp-device-charging__copy > p:not(.srsp-device-charging__limit) {
	margin: 0;
	font-size: clamp(1rem, 1.35vw, 1.18rem);
	line-height: 1.6;
}
.srsp-device-charging__limit {
	margin: 1.25rem 0 0;
	padding-left: .85rem;
	border-left: 3px solid #77997d;
	color: #4f5752;
	font-size: .84rem;
	line-height: 1.45;
}
.srsp-device-charging__limit strong { color: #1c1e1f; }

@media (min-width: 783px) and (max-width: 1100px) {
	.srsp-device-charging__inner {
		grid-template-columns: minmax(0, 1.08fr) minmax(260px, .92fr);
		gap: 1.5rem;
		padding-block: 3rem;
	}
	.srsp-device-charging__copy h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
}

@media (max-width: 782px) {
	.srsp-device-charging__inner {
		display: block;
		padding: 2.25rem 14px 2.5rem;
	}
	.srsp-device-charging__media { margin-bottom: 1.35rem; }
	.srsp-device-charging__media img { border-radius: 6px; }
	.srsp-device-charging__copy { max-width: none; }
	.srsp-device-charging__copy h2 {
		margin-bottom: .75rem;
		font-size: clamp(1.8rem, 8vw, 2.35rem);
		line-height: 1;
	}
	.srsp-device-charging__copy > p:not(.srsp-device-charging__limit) {
		font-size: .98rem;
		line-height: 1.55;
	}
	.srsp-device-charging__limit { margin-top: 1rem; }

	/* Collapse the theme's empty breadcrumb band to one intentional gap below
	   the sticky header. The gallery remains square and uncropped. */
	body.srsp-preview .wp-site-blocks > .woocommerce.product {
		margin-block-start: 0 !important;
	}
	body.srsp-preview #main-content {
		padding-top: 0 !important;
	}
	body.srsp-preview #main-content > .wp-block-columns.alignwide {
		margin-top: 12px !important;
	}

	/* Remove the breadcrumb and its reserved band on mobile only. */
	body.srsp-preview #main-content .woocommerce-breadcrumb,
	body.srsp-preview #main-content nav.woocommerce-breadcrumb,
	body.srsp-preview #main-content [aria-label="Breadcrumb"] {
		display: none !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	body.srsp-preview #main-content > .wp-block-columns.alignwide {
		gap: .8rem !important;
		margin-inline: 14px !important;
		width: calc(100% - 28px) !important;
	}

	/* Preserve WooCommerce's gallery behaviour while changing its mobile geometry. */
	body.srsp-preview .wp-block-woocommerce-product-gallery.wc-block-product-gallery {
		display: grid !important;
		grid-template-columns: 52px minmax(0, 1fr) !important;
		grid-template-rows: auto !important;
		gap: 8px !important;
		align-items: start !important;
		width: 100% !important;
		max-width: 100% !important;
	}
	body.srsp-preview .wc-block-product-gallery-thumbnails {
		grid-column: 1 !important;
		grid-row: 1 !important;
		width: 52px !important;
		height: min(76vw, 326px) !important;
		max-height: min(76vw, 326px) !important;
		overflow: hidden !important;
	}
	body.srsp-preview .wc-block-product-gallery-thumbnails__scrollable {
		display: flex !important;
		width: 52px !important;
		height: min(76vw, 326px) !important;
		max-height: min(76vw, 326px) !important;
		padding: 0 2px 0 0 !important;
		flex-direction: column !important;
		gap: 6px !important;
		overflow-x: hidden !important;
		overflow-y: auto !important;
		scroll-snap-type: y proximity;
	}
	body.srsp-preview .wc-block-product-gallery-thumbnails__thumbnail {
		width: 48px !important;
		min-width: 48px !important;
		height: 48px !important;
		margin: 0 !important;
		flex: 0 0 48px !important;
		scroll-snap-align: start;
	}
	body.srsp-preview .wc-block-product-gallery-thumbnails__thumbnail__image {
		width: 48px !important;
		height: 48px !important;
		border-radius: 6px;
		object-fit: cover;
	}
	body.srsp-preview .wc-block-product-gallery-large-image {
		grid-column: 2 !important;
		grid-row: 1 !important;
		width: 100% !important;
		min-width: 0 !important;
	}
	body.srsp-preview .wc-block-product-gallery-large-image__container,
	body.srsp-preview .wc-block-product-gallery-large-image__wrapper,
	body.srsp-preview .wc-block-product-gallery-large-image__image {
		max-height: min(76vw, 326px) !important;
	}
	body.srsp-preview .wc-block-product-gallery-large-image__image {
		width: 100% !important;
		height: min(76vw, 326px) !important;
		object-fit: contain !important;
	}

	/* One compact purchase decision directly beneath the real gallery. */
	.srsp-mobile-purchase-card {
		display: grid;
		gap: .55rem;
		margin-top: .65rem;
		padding: .85rem;
		border: 1px solid var(--srsp-line);
		border-radius: 8px;
		background: #fff;
		box-shadow: 0 5px 18px rgba(28,30,31,.06);
	}
	.srsp-mobile-purchase-card__top {
		display: flex;
		gap: .75rem;
		align-items: flex-start;
		justify-content: space-between;
	}
	.srsp-mobile-purchase-card__identity { min-width: 0; }
	.srsp-mobile-purchase-card__eyebrow {
		margin: 0 0 .18rem;
		color: var(--srsp-green);
		font: 600 .7rem/1.2 var(--wp--preset--font-family--plex-mono, monospace);
		letter-spacing: .075em;
		text-transform: uppercase;
	}
	.srsp-mobile-purchase-card h2 {
		margin: 0;
		font-size: clamp(1.28rem, 6vw, 1.65rem);
		line-height: 1.02;
	}
	.srsp-mobile-purchase-card__price {
		margin: 0;
		white-space: nowrap;
		font-size: clamp(1.35rem, 6vw, 1.7rem);
		font-weight: 700;
		line-height: 1;
	}
	.srsp-mobile-purchase-card__tags {
		display: flex;
		gap: .38rem;
		flex-wrap: wrap;
	}
	.srsp-mobile-purchase-card__tag {
		padding: .3rem .52rem;
		border-radius: 999px;
		background: rgba(119,153,125,.14);
		color: #344139;
		font: 600 .68rem/1.15 var(--wp--preset--font-family--plex-mono, monospace);
		letter-spacing: .025em;
		text-transform: uppercase;
	}
	.srsp-mobile-purchase-card__tag--case {
		background: rgba(165,71,45,.11);
		color: #783621;
	}
	.srsp-mobile-purchase-card__button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 50px;
		padding: .75rem 1rem;
		border: 1px solid var(--srsp-green);
		border-radius: 5px;
		background: var(--srsp-green);
		color: #fff;
		font-weight: 700;
		cursor: pointer;
	}
	.srsp-mobile-purchase-card__button:hover { background: var(--srsp-green-dark); }
	.srsp-mobile-purchase-card__button[aria-busy="true"] { opacity: .78; cursor: progress; }
	.srsp-mobile-purchase-card__fulfilment {
		display: flex;
		gap: .25rem .8rem;
		flex-wrap: wrap;
		margin: 0;
		color: #575d58;
		font-size: .78rem;
		line-height: 1.3;
	}
	.srsp-mobile-purchase-card__fulfilment strong { color: #344139; }

	/* Always-visible capability scan, placed below the first-screen CTA. */
	.srsp-benefits-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: .55rem;
		margin: .45rem 0 .8rem;
	}
	.srsp-benefit {
		display: grid;
		grid-template-columns: 58px minmax(0, 1fr);
		gap: .48rem;
		align-items: center;
		min-width: 0;
		padding: .62rem;
		border: 1px solid var(--srsp-line);
		border-radius: 8px;
		background: var(--srsp-chalk);
	}
	.srsp-benefit > img {
		display: block;
		width: 58px;
		height: 48px;
		object-fit: contain;
	}
	.srsp-benefit strong,
	.srsp-benefit span { display: block; }
	.srsp-benefit strong { font-size: .8rem; line-height: 1.2; }
	.srsp-benefit span { margin-top: .16rem; color: #575d58; font-size: .7rem; line-height: 1.25; }
	/* The compact card becomes the mobile source of title, price and primary CTA. */
	body.srsp-preview.srsp-mobile-enhanced #main-content > .wp-block-columns.alignwide > .wp-block-column:nth-child(2) > .wp-block-post-title,
	body.srsp-preview.srsp-mobile-enhanced #main-content > .wp-block-columns.alignwide > .wp-block-column:nth-child(2) > .wp-block-woocommerce-product-price,
	body.srsp-preview.srsp-mobile-enhanced #main-content > .wp-block-columns.alignwide > .wp-block-column:nth-child(2) > #buy-stargrid,
	body.srsp-preview.srsp-mobile-enhanced #main-content > .wp-block-columns.alignwide form.wp-block-woocommerce-add-to-cart-with-options,
	body.srsp-preview.srsp-mobile-enhanced #main-content > .wp-block-columns.alignwide form.cart {
		position: absolute !important;
		width: 1px !important;
		height: 1px !important;
		margin: -1px !important;
		padding: 0 !important;
		overflow: hidden !important;
		clip: rect(0 0 0 0) !important;
		clip-path: inset(50%) !important;
		white-space: nowrap !important;
	}

	/* One-line, drag-scroll trust ribbon with the existing product-managed icons. */
	body.srsp-preview .sr-buy-trust {
		display: flex !important;
		width: 100% !important;
		margin: .15rem 0 .9rem !important;
		padding: 0 !important;
		border: 0 !important;
		border-block: 1px solid var(--srsp-line) !important;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
	}
	body.srsp-preview .sr-buy-trust::-webkit-scrollbar { display: none; }
	body.srsp-preview .sr-buy-trust__item {
		display: flex !important;
		min-width: 178px !important;
		min-height: 68px !important;
		padding: .58rem .72rem !important;
		flex: 0 0 178px !important;
		flex-direction: row !important;
		gap: .55rem !important;
		justify-content: flex-start !important;
		text-align: left !important;
		border: 0 !important;
		border-right: 1px solid var(--srsp-line) !important;
		scroll-snap-align: start;
	}
	body.srsp-preview .sr-buy-trust__icon {
		width: 38px !important;
		height: 38px !important;
		flex: 0 0 38px;
	}
	body.srsp-preview .sr-buy-trust strong {
		font-size: .78rem !important;
		line-height: 1.28 !important;
		letter-spacing: .025em !important;
	}

	/* Keep all existing content modules, with tighter mobile rhythm only. */
	body.srsp-preview .srpc-section { padding-block: clamp(2.2rem, 9vw, 3.5rem) !important; }
	body.srsp-preview .srcm { margin-top: 2.75rem !important; }
	body.srsp-preview .srpc-block-reviews,
	body.srsp-preview .srpc-block-specifications,
	body.srsp-preview .srpc-block-specs { margin-block: 0 !important; }
	body.srsp-preview .srpc-section-header { margin-bottom: 1.1rem !important; }
	body.srsp-preview .srpc-section-header .srpc-eyebrow { margin-bottom: .38rem !important; font-size: .68rem !important; line-height: 1.3 !important; }
	body.srsp-preview .srpc-section-header .srpc-section-heading,
	body.srsp-preview .srpc-section-header > h2:last-child { margin-top: 0 !important; font-size: clamp(1.75rem, 8vw, 2.25rem) !important; line-height: 1.02 !important; }

	/* Editorial reviewer evidence, distributed between the existing modules. */
	.srsp-review-quote {
		display: flex;
		min-height: 0;
		margin: 0;
		padding: .75rem 0 0;
		flex-direction: column;
		overflow: hidden;
		background: #dce7ec;
		border-block: 1px solid rgba(28,30,31,.1);
	}
	.srsp-review-quote--case { background: #e8e3dc; }
	.srsp-review-quote__portrait {
		display: block;
		width: 100%;
		height: auto;
		max-height: 310px;
		object-fit: contain;
		object-position: center bottom;
	}
	.srsp-review-quote__copy {
		position: relative;
		z-index: 1;
		margin: -2.75rem 14px .9rem;
		padding: .9rem 1rem 1rem;
		border: 1px solid rgba(28,30,31,.1);
		border-radius: 8px;
		background: rgba(255,255,255,.92);
		box-shadow: 0 8px 22px rgba(28,30,31,.09);
	}
	.srsp-review-quote__source { display: flex; gap: .5rem; align-items: center; margin-bottom: .55rem; }
	.srsp-review-quote__source img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
	.srsp-review-quote__source span,
	.srsp-review-quote__source strong,
	.srsp-review-quote__source small { display: block; }
	.srsp-review-quote__source strong { font-size: .76rem; line-height: 1.1; }
	.srsp-review-quote__source small { margin-top: .12rem; color: #575d58; font-size: .64rem; }
	.srsp-review-quote blockquote { margin: 0; font-family: var(--wp--preset--font-family--plex-condensed, sans-serif); font-size: clamp(1.05rem, 4.7vw, 1.32rem); font-weight: 600; line-height: 1.16; }
	.srsp-review-quote a { display: inline-flex; min-height: 40px; margin-top: .45rem; align-items: center; color: #1c1e1f; font-size: .72rem; font-weight: 700; }
	body.srsp-preview #bush-business-review { scroll-margin-top: 78px; }
	.srsp-video-disclosure { grid-column: 1 / -1; margin: .2rem 0 0; color: #575d58; font-size: .72rem; line-height: 1.4; }

	/* Keep technical facts, but collapse the three detail groups on phones. */
	body.srsp-preview .srpc-spec-cards { display: grid !important; gap: .5rem !important; }
	body.srsp-preview .srpc-spec-card[data-srsp-accordion] { padding: 0 !important; overflow: hidden; }
	.srsp-spec-toggle {
		display: flex;
		width: 100%;
		min-height: 48px;
		padding: .7rem .85rem;
		align-items: center;
		justify-content: space-between;
		border: 0;
		background: transparent;
		color: #1c1e1f;
		font: 700 .78rem/1.2 var(--wp--preset--font-family--plex-mono, monospace);
		letter-spacing: .055em;
		text-align: left;
		cursor: pointer;
	}
	.srsp-spec-toggle::after { content: "+"; font-size: 1.15rem; font-weight: 400; }
	.srsp-spec-toggle[aria-expanded="true"]::after { content: "−"; }
	body.srsp-preview .srpc-spec-card[data-srsp-accordion] dl { margin: 0 !important; padding: 0 .85rem .8rem !important; }

	.srsp-copy-clamp:not(.is-expanded) {
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 4;
	}
	.srsp-copy-toggle {
		min-height: 42px;
		margin: .25rem 0 .75rem;
		padding: .4rem 0;
		border: 0;
		background: transparent;
		color: var(--srsp-green-dark);
		font-weight: 700;
		text-decoration: underline;
		text-underline-offset: .18em;
	}

	/* This product already appears above; retain only the useful planner zone. */
	body.srsp-preview .sr-gpf__product-zone { display: none !important; }
	body.srsp-preview .sr-gpf__shell { grid-template-columns: 1fr !important; }

	/* The existing review becomes a native 16:9 player on phones. */
	body.srsp-preview .sr-video-review { padding-block: 2.25rem !important; }
	body.srsp-preview .sr-video-review__grid { gap: 1.2rem !important; padding-inline: 14px !important; }
	body.srsp-preview .sr-video-tablet {
		width: 100% !important;
		aspect-ratio: 16 / 9 !important;
		background: #1c1e1f !important;
	}
	body.srsp-preview .sr-video-tablet__stage { position: absolute !important; inset: 0 !important; transform: none !important; }
	body.srsp-preview .sr-video-tablet__art { display: none !important; }
	body.srsp-preview .sr-video-tablet__player {
		position: absolute !important;
		inset: 0 !important;
		width: 100% !important;
		height: 100% !important;
		border-radius: 0 !important;
		box-shadow: none !important;
	}

	/* Use the real consent controls with a compact, non-purchase-obscuring layout. */
	body.srsp-preview .sr-consent {
		box-sizing: border-box !important;
		left: 10px !important;
		right: 10px !important;
		top: 72px !important;
		bottom: auto !important;
		width: auto !important;
		max-width: none !important;
		padding: .72rem !important;
		border-radius: 8px !important;
		box-shadow: 0 6px 20px rgba(28,30,31,.2) !important;
	}
	body.srsp-preview .sr-consent p {
		margin: 0 0 .55rem !important;
		font-size: .78rem !important;
		line-height: 1.4 !important;
	}
	body.srsp-preview .sr-consent p strong {
		display: inline-flex;
		gap: .35rem;
		align-items: center;
		margin-right: .35rem;
		font-size: .84rem;
	}
	body.srsp-preview .sr-consent p strong::before { content: "🍪"; font-size: 1rem; }
	body.srsp-preview .sr-consent > div {
		display: flex !important;
		gap: .45rem !important;
		justify-content: flex-end !important;
	}
	body.srsp-preview .sr-consent button {
		min-height: 42px !important;
		padding: .55rem .7rem !important;
		font-size: .75rem !important;
	}
	body.srsp-preview .sr-consent-manage { display: none !important; }
	body.srsp-preview .srsp-footer-cookie-wrap {
		display: block;
		box-sizing: border-box;
		width: min(100%, 1180px);
		margin: 0 auto;
		padding: .85rem 20px 1.25rem;
		border-top: 1px solid rgba(255,255,255,.16);
	}
	body.srsp-preview .srsp-footer-cookie {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		margin: 0;
		padding: .5rem .7rem;
		border: 1px solid rgba(255,255,255,.58);
		border-radius: 5px;
		background: transparent;
		color: #f6f4f1;
		font-size: .78rem;
	}

	.srsp-preview-marker {
		right: 8px;
		bottom: calc(8px + env(safe-area-inset-bottom));
		font-size: .62rem;
	}
}

@media (max-width: 350px) {
	body.srsp-preview #main-content > .wp-block-columns.alignwide {
		margin-inline: 10px !important;
		width: calc(100% - 20px) !important;
	}
	body.srsp-preview .wp-block-woocommerce-product-gallery.wc-block-product-gallery {
		grid-template-columns: 46px minmax(0, 1fr) !important;
		gap: 6px !important;
	}
	body.srsp-preview .wc-block-product-gallery-thumbnails,
	body.srsp-preview .wc-block-product-gallery-thumbnails__scrollable { width: 46px !important; }
	body.srsp-preview .wc-block-product-gallery-thumbnails__thumbnail,
	body.srsp-preview .wc-block-product-gallery-thumbnails__thumbnail__image {
		width: 44px !important;
		min-width: 44px !important;
		height: 44px !important;
		flex-basis: 44px !important;
	}
	.srsp-mobile-purchase-card { padding: .72rem; }
	.srsp-mobile-purchase-card__top { gap: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
	body.srsp-preview .sr-buy-trust { scroll-behavior: auto !important; }
}

