.lgw-sr-only {
	position: absolute;
	clip-path: inset(50%);
	overflow: hidden;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	white-space: nowrap;
}

.lgw-bf-custom-bg-layer {
	display: none;
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 1;
	pointer-events: none;
}

.lgw-bf-stage.has-custom-bg[data-bg-tone="light-scrim"] .lgw-bf-custom-bg-layer::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 253, 249, 0.54);
	backdrop-filter: blur(1px);
}

.lgw-bf-stage.has-custom-bg[data-bg-tone="dark-scrim"] .lgw-bf-custom-bg-layer::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(12, 18, 32, 0.54);
}

.lgw-bf-stage.has-custom-bg[data-bg-tone="dark-scrim"],
.lgw-bf-stage[data-design="design-5"] {
	color: #f8fafc;
}

.lgw-bf-stage[data-design="design-5"] {
	background: #0f172a;
}

.lgw-bf-stage[data-design="design-5"] .lgw-bf-eyebrow,
.lgw-bf-stage.has-custom-bg[data-bg-tone="dark-scrim"] .lgw-bf-eyebrow {
	color: #fde68a;
}

.lgw-bf-stage[data-design="design-5"] .lgw-bf-baby-name,
.lgw-bf-stage.has-custom-bg[data-bg-tone="dark-scrim"] .lgw-bf-baby-name {
	color: #fef3c7;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.lgw-bf-stage[data-design="design-5"] .lgw-bf-parents-label,
.lgw-bf-stage.has-custom-bg[data-bg-tone="dark-scrim"] .lgw-bf-parents-label {
	color: #fde68a;
}

.lgw-bf-stage[data-design="design-5"] .lgw-bf-stat-val,
.lgw-bf-stage[data-design="design-5"] .lgw-bf-parents-names,
.lgw-bf-stage.has-custom-bg[data-bg-tone="dark-scrim"] .lgw-bf-stat-val,
.lgw-bf-stage.has-custom-bg[data-bg-tone="dark-scrim"] .lgw-bf-parents-names {
	color: #f8fafc;
}

.lgw-bf-stage[data-design="design-5"] .lgw-bf-baby-photo-wrap {
	border-color: #fcd34d;
}

.lgw-bf-stage[data-design="design-6"] {
	background: #f9f8f3;
}

.lgw-bf-stage[data-design="design-6"] .lgw-bf-eyebrow {
	color: #52796f;
}

.lgw-bf-stage[data-design="design-6"] .lgw-bf-baby-photo-wrap {
	border-radius: 50% 50% 18px 18px;
	border-color: #52796f;
}

.lgw-bf-stage[data-design="design-6"] .lgw-bf-baby-name {
	color: #2f3e46;
}

.lgw-bf-stage[data-design="design-6"] .lgw-bf-parents-label {
	color: #52796f;
}

.lgw-bf-stage[data-design="design-7"] {
	background: #fffbf6;
}

.lgw-bf-stage[data-design="design-7"] .lgw-bf-eyebrow {
	color: #e11d48;
}

.lgw-bf-stage[data-design="design-7"] .lgw-bf-baby-photo-wrap {
	border-radius: 24px;
	border-color: #fb7185;
}

.lgw-bf-stage[data-design="design-7"] .lgw-bf-baby-name {
	color: #be123c;
}

.lgw-bf-stage[data-design="design-7"] .lgw-bf-parents-label {
	color: #e11d48;
}

.lgw-bf-stage[data-design="design-8"] {
	background: #fbf6ef;
}

.lgw-bf-stage[data-design="design-8"] .lgw-bf-eyebrow {
	color: #92400e;
}

.lgw-bf-stage[data-design="design-8"] .lgw-bf-baby-photo-wrap {
	border-color: #d97706;
}

.lgw-bf-stage[data-design="design-8"] .lgw-bf-baby-name {
	color: #78350f;
}

.lgw-bf-stage[data-design="design-8"] .lgw-bf-parents-label {
	color: #92400e;
}

/* Custom Background Upload Control Styles */
.lgw-bf-bg-control-box {
	background: #ffffff;
	border: 1px dashed #c8c2b6;
	padding: 0.75rem;
	border-radius: 4px;
}

.lgw-bf-bg-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.lgw-bf-bg-clear {
	font-size: 0.76rem;
	padding: 0.35rem 0.6rem;
	cursor: pointer;
}

.lgw-bf-bg-tone-row {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.45rem;
}

.lgw-bf-bg-tone-row label {
	font-size: 0.76rem;
	font-weight: 500;
}

/* Studio Nursery Wall Staging around Baby Birth Frame */
.lgw-bf-wall-backdrop {
	background: linear-gradient(180deg, #e7eef4 0%, #dde6ee 74%, #cfc8bc 74.5%, #e7e1d6 100%);
	padding: clamp(1.35rem, 3vw, 2.4rem) clamp(1.15rem, 2.8vw, 2.2rem) clamp(1.35rem, 2.8vw, 2rem);
	border-radius: 6px;
	border: 1px solid var(--wp--preset--color--border, #e5e2dc);
	position: relative;
	box-sizing: border-box;
}

/* Single dedicated two-column Hero Split section: left image stays sticky on page scroll until reaching the bottom of the right customizer, then page scrolls naturally into How Personalisation Works */
html:has(.lgw-bf-has-builder),
body.single-product:has(.lgw-bf-has-builder) .wp-site-blocks,
body.single-product:has(.lgw-bf-has-builder) #main-content,
body.single-product:has(.lgw-bf-has-builder) #primary,
body.single-product:has(.lgw-bf-has-builder) #main,
.woocommerce div.product.lgw-bf-has-builder {
	overflow-x: clip !important;
	overflow-y: visible !important;
}

.lgw-bf-hero-split {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(2rem, 4vw, 4rem);
	align-items: start;
	overflow: visible;
}

@media (max-width: 900px) {
	.lgw-bf-hero-split {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (min-width: 901px) {
	.lgw-bf-hero-split > .lgw-bf-wall-backdrop {
		position: sticky;
		top: clamp(1rem, 2.5vh, 1.75rem);
		align-self: start;
	}

	body.lgw-sticky-header .lgw-bf-hero-split > .lgw-bf-wall-backdrop {
		top: clamp(6.5rem, 11vh, 7.5rem);
	}

	.lgw-bf-hero-split > div.summary {
		overflow: visible !important;
		max-height: none !important;
	}
}

.lgw-bf-wall-backdrop .woocommerce-product-gallery {
	box-shadow: 0 22px 44px rgba(15, 23, 42, 0.24), 0 4px 12px rgba(15, 23, 42, 0.12) !important;
	background: #ffffff;
}

.lgw-bf-gallery-framed.lgw-frame-white,
.lgw-bf-gallery-framed.lgw-frame-oak,
.lgw-bf-gallery-framed.lgw-frame-black {
	padding: 0 !important;
}

.lgw-bf-gallery-framed.lgw-frame-real,
.lgw-bf-gallery-framed.lgw-frame-classic-gold {
	padding: 13.09% 16.97% 13.57% 18.28% !important;
	background: #ffffff;
}

.lgw-bf-gallery-framed.lgw-frame-real .lgw-bf-content-layer,
.lgw-bf-gallery-framed.lgw-frame-classic-gold .lgw-bf-content-layer {
	padding: clamp(1.4rem, 2.8vw, 2.2rem) clamp(0.85rem, 1.8vw, 1.3rem) clamp(1.3rem, 2.6vw, 2rem);
}

.lgw-bf-gallery-framed.lgw-frame-real .lgw-bf-baby-photo-wrap,
.lgw-bf-gallery-framed.lgw-frame-classic-gold .lgw-bf-baby-photo-wrap {
	inline-size: clamp(84px, 10.5vw, 124px);
}

.lgw-bf-gallery-framed.lgw-frame-real .lgw-bf-parents-photo-wrap,
.lgw-bf-gallery-framed.lgw-frame-classic-gold .lgw-bf-parents-photo-wrap {
	inline-size: clamp(78px, 9.5vw, 114px);
}

.lgw-bf-wall-shelf {
	margin-top: 1.25rem;
	block-size: 10px;
	background: linear-gradient(180deg, #b89872 0%, #8f6f4c 100%);
	border-radius: 2px;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

/* Baby Birth Keepsake Frame Live Poster Stage */
.lgw-bf-stage {
	position: relative;
	inline-size: 100%;
	aspect-ratio: 3 / 4;
	background: #ffffff;
	color: #1c1c1c;
	overflow: hidden;
	box-sizing: border-box;
}

.lgw-bf-stage[data-design="design-2"] {
	background: #fdf8ee;
}

.lgw-bf-stage[data-design="design-2"] .lgw-bf-content-layer {
	padding-inline: clamp(2.2rem, 4.2vw, 3.1rem);
	padding-block-end: clamp(3rem, 5.4vw, 3.9rem);
}

.lgw-bf-stage[data-design="design-3"] {
	background: #fffafc;
}

.lgw-bf-art-slot {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.lgw-bf-art-layer {
	inline-size: 100%;
	block-size: 100%;
	display: block;
}

.lgw-bf-content-layer {
	position: relative;
	z-index: 2;
	inline-size: 100%;
	block-size: 100%;
	padding: clamp(2.6rem, 5.2vw, 3.8rem) clamp(1.1rem, 2.4vw, 1.75rem) clamp(2.4rem, 4.5vw, 3.25rem);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	text-align: center;
	box-sizing: border-box;
}

.lgw-bf-eyebrow {
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	font-weight: 700;
	color: #9b7b4c;
	text-transform: uppercase;
}

.lgw-bf-top-row,
.lgw-bf-mid-row {
	display: grid;
	grid-template-columns: 1fr 1.35fr 1fr;
	gap: 0.65rem;
	align-items: center;
	inline-size: 100%;
}

.lgw-bf-stat-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
}

.lgw-bf-cal-icon {
	inline-size: 36px;
	block-size: 36px;
	border: 2px solid #dc2626;
	border-radius: 6px;
	background: #ffffff;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	line-height: 1;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.lgw-cal-bar {
	block-size: 9px;
	background: #dc2626;
}

.lgw-bf-cal-icon strong {
	margin: auto;
	font-size: 0.9rem;
	color: #1c1c1c;
}

.lgw-bf-stat-val {
	font-family: var(--wp--preset--font-family--editorial-serif, Georgia, serif);
	font-style: italic;
	font-size: clamp(0.74rem, 1.05vw, 0.88rem);
	font-weight: 600;
	line-height: 1.2;
}

.lgw-bf-blood {
	font-size: 0.7rem;
	color: #dc2626;
	font-weight: 700;
}

.lgw-bf-baby-photo-wrap {
	margin-inline: auto;
	inline-size: clamp(104px, 13.5vw, 162px);
	aspect-ratio: 1 / 1;
	border-radius: 999px;
	border: 4px solid #eab308;
	overflow: hidden;
	background: #f3f2ee;
	box-shadow: 0 0 0 4px #ffffff, 0 10px 20px rgba(0, 0, 0, 0.14);
}

.lgw-bf-stage[data-design="design-2"] .lgw-bf-baby-photo-wrap {
	border-radius: 50% 50% 14px 14px;
	border-color: #65a30d;
}

.lgw-bf-stage[data-design="design-3"] .lgw-bf-baby-photo-wrap {
	border-radius: 18px;
	border-color: #ec4899;
}

.lgw-bf-baby-photo-wrap img,
.lgw-bf-parents-photo-wrap img {
	inline-size: 100% !important;
	block-size: 100% !important;
	object-fit: cover !important;
	display: block;
}

.lgw-bf-baby-name {
	font-family: var(--wp--preset--font-family--editorial-serif, Georgia, serif);
	font-style: italic;
	font-weight: 700;
	font-size: clamp(1.15rem, 1.9vw, 1.65rem);
	color: #c8322b;
	letter-spacing: 0.05em;
	line-height: 1.12;
}

.lgw-bf-stage[data-design="design-2"] .lgw-bf-baby-name {
	color: #3f6212;
}

.lgw-bf-stage[data-design="design-3"] .lgw-bf-baby-name {
	color: #be185d;
}

.lgw-bf-parents-photo-wrap {
	margin-inline: auto;
	inline-size: clamp(98px, 11.5vw, 148px);
	aspect-ratio: 4 / 3;
	border-radius: 6px;
	border: 3px solid #ffffff;
	overflow: hidden;
	background: #f3f2ee;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}

.lgw-bf-parents-block {
	display: flex;
	flex-direction: column;
	gap: 0.12rem;
}

.lgw-bf-parents-label {
	font-family: var(--wp--preset--font-family--editorial-serif, Georgia, serif);
	font-style: italic;
	font-size: 0.82rem;
	color: #c8322b;
}

.lgw-bf-parents-names {
	font-family: var(--wp--preset--font-family--editorial-serif, Georgia, serif);
	font-style: italic;
	font-size: clamp(0.88rem, 1.35vw, 1.1rem);
}

/* Builder Controls — Atelier Customiser Polish */
.lgw-personalize-box[data-lgw-baby-frame] {
	background: var(--wp--preset--color--surface, #f7f5f0);
	border: 1px solid var(--wp--preset--color--border, #e5e2dc);
	border-radius: 6px;
	padding: clamp(1.1rem, 2.2vw, 1.5rem);
	gap: 1.05rem;
	box-shadow: 0 6px 24px rgba(16, 15, 13, 0.04);
}

.lgw-personalize-box[data-lgw-baby-frame] input[type="file"] {
	font-size: 0.84rem;
	color: var(--wp--preset--color--secondary, #5c5955);
	padding: 0.45rem;
	background: var(--wp--preset--color--base, #ffffff);
	border: 1px dashed #ccc5b9;
	border-radius: 4px;
	width: 100%;
	box-sizing: border-box;
	cursor: pointer;
}

.lgw-personalize-box[data-lgw-baby-frame] input[type="file"]::file-selector-button {
	font: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 0.4rem 0.75rem;
	margin-inline-end: 0.65rem;
	border: 1px solid var(--wp--preset--color--border, #d8d4cc);
	background: var(--wp--preset--color--surface, #f6f5f2);
	color: var(--wp--preset--color--contrast, #141414);
	border-radius: 3px;
	cursor: pointer;
	transition: background-color 150ms ease, border-color 150ms ease;
}

.lgw-personalize-box[data-lgw-baby-frame] input[type="file"]::file-selector-button:hover {
	background: var(--wp--preset--color--contrast, #141414);
	color: var(--wp--preset--color--base, #ffffff);
	border-color: var(--wp--preset--color--contrast, #141414);
}

.lgw-bf-design-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.55rem;
}

@media (max-width: 480px) {
	.lgw-bf-design-grid {
		grid-template-columns: 1fr;
	}
}

.lgw-bf-design-btn {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--wp--preset--color--border, #d8d4cc);
	background: var(--wp--preset--color--base, #ffffff);
	color: var(--wp--preset--color--contrast, #141414);
	font: inherit;
	font-size: 0.8rem;
	line-height: 1.25;
	font-weight: 600;
	cursor: pointer;
	text-align: start;
	min-block-size: 44px;
	border-radius: 4px;
	overflow-wrap: break-word;
	transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.lgw-bf-design-btn:hover {
	border-color: var(--wp--preset--color--contrast, #141414);
	transform: translateY(-1px);
}

.lgw-bf-design-btn:focus-visible {
	outline: 3px solid #0b57d0;
	outline-offset: 2px;
}

.lgw-bf-design-btn.is-selected {
	border-color: var(--wp--preset--color--contrast, #141414);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--contrast, #141414), 0 4px 12px rgba(20, 20, 20, 0.08);
	background: #faf6eb;
}

.lgw-bf-theme-dot {
	inline-size: 16px;
	block-size: 16px;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, 0.22);
	flex-shrink: 0;
}

.lgw-bf-theme-label {
	flex: 1 1 auto;
}

.lgw-bf-mode-toggle {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
}

.lgw-bf-mode-pill {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--wp--preset--color--border, #d8d4cc);
	background: var(--wp--preset--color--base, #ffffff);
	font-size: 0.8rem;
	cursor: pointer;
}

.lgw-bf-fields-stack {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

@media (max-width: 600px) {
	.lgw-bf-bg-tone-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.3rem;
	}

	.lgw-bf-wall-backdrop {
		padding: 0.65rem !important;
	}

	.lgw-bf-stage .lgw-bf-content-layer {
		padding: 0.78rem 0.38rem 0.88rem !important;
		gap: 0.1rem;
	}

	.lgw-bf-stage[data-design="design-2"] .lgw-bf-content-layer {
		padding-inline: 0.55rem !important;
		padding-block-end: 1.05rem !important;
	}

	.lgw-bf-stage .lgw-bf-eyebrow {
		font-size: 0.44rem !important;
		letter-spacing: 0.08em !important;
		line-height: 1.1 !important;
	}

	.lgw-bf-stage .lgw-bf-top-row,
	.lgw-bf-stage .lgw-bf-mid-row {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr) !important;
		gap: 0.18rem !important;
	}

	.lgw-bf-stage .lgw-bf-stat-card {
		gap: 0.1rem;
		min-inline-size: 0;
	}

	.lgw-bf-stage .lgw-bf-cal-icon {
		inline-size: 22px !important;
		block-size: 22px !important;
		border-width: 1.5px !important;
	}

	.lgw-bf-stage .lgw-bf-cal-bar {
		block-size: 5px !important;
	}

	.lgw-bf-stage .lgw-bf-cal-icon strong {
		font-size: 0.56rem !important;
	}

	.lgw-bf-stage .lgw-bf-stat-card svg,
	.lgw-bf-stage .lgw-bf-bottom-row svg {
		inline-size: 18px !important;
		block-size: 18px !important;
	}

	.lgw-bf-stage .lgw-bf-stat-val {
		font-size: 0.48rem !important;
		line-height: 1.12 !important;
		overflow-wrap: anywhere;
	}

	.lgw-bf-stage .lgw-bf-baby-name {
		font-size: 0.76rem !important;
		line-height: 1.08 !important;
		margin: 0 !important;
	}

	.lgw-bf-stage .lgw-bf-parents-label,
	.lgw-bf-stage .lgw-bf-parents-names,
	.lgw-bf-stage .lgw-bf-quote,
	.lgw-bf-stage .lgw-bf-sign {
		font-size: 0.48rem !important;
		line-height: 1.12 !important;
		margin: 0 !important;
	}

	.lgw-bf-gallery-framed.lgw-frame-real .lgw-bf-baby-photo-wrap,
	.lgw-bf-gallery-framed.lgw-frame-classic-gold .lgw-bf-baby-photo-wrap,
	.lgw-bf-stage .lgw-bf-baby-photo-wrap {
		inline-size: 50px !important;
		border-width: 2px !important;
		box-shadow: 0 0 0 2px #ffffff, 0 4px 8px rgba(0, 0, 0, 0.14) !important;
	}

	.lgw-bf-gallery-framed.lgw-frame-real .lgw-bf-parents-photo-wrap,
	.lgw-bf-gallery-framed.lgw-frame-classic-gold .lgw-bf-parents-photo-wrap,
	.lgw-bf-stage .lgw-bf-parents-photo-wrap {
		inline-size: 44px !important;
		border-width: 2px !important;
	}
}

@media (max-width: 420px) {
	.lgw-bf-mode-toggle {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 0.35rem;
	}
}
