/* Premium builder skeleton — matches simple/advanced UI layout */

@keyframes cpbpwc-builder-skeleton-shimmer {
	0% {
		background-position: 200% 0;
	}

	100% {
		background-position: -200% 0;
	}
}

.cpbpwc-main-designer-container,
.cpbpwc-designer-shell {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.cpbpwc-main-designer-container.cpbpwc-designer-ready,
.cpbpwc-designer-shell.cpbpwc-designer-ready {
	overflow: visible;
}

.cpbpwc-main-designer-container.cpbpwc-is-loading:not(.cpbpwc-shell-ready),
.cpbpwc-designer-shell.cpbpwc-is-loading:not(.cpbpwc-shell-ready) {
	min-height: 0;
	height: 0;
	opacity: 0;
	visibility: hidden;
	overflow: hidden;
}

/* Off-screen until the inline/jQuery placement script moves us beside the gallery. */
.cpbpwc-main-designer-container.cpbpwc-awaiting-placement {
	position: fixed !important;
	left: -99999px !important;
	top: 0 !important;
	width: 1px !important;
	height: 1px !important;
	min-height: 0 !important;
	max-height: 1px !important;
	opacity: 0 !important;
	visibility: hidden !important;
	overflow: hidden !important;
	pointer-events: none !important;
}

/* Gallery column shimmer while designer shell is repositioned (block + classic themes). */
body.cpbpwc-simple-shell-pending:not(.cpbpwc-designer-placed) .wp-block-woocommerce-product-image-gallery,
body.cpbpwc-simple-shell-pending:not(.cpbpwc-designer-placed) div.product div.images:not(.cpbpwc-designer-placed) {
	display: block !important;
	min-height: 520px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	box-sizing: border-box;
	background-color: #eceff3;
	background-image: linear-gradient(
		90deg,
		rgba(115, 115, 115, 0.04) 0%,
		rgba(115, 115, 115, 0.14) 45%,
		rgba(115, 115, 115, 0.04) 90%
	);
	background-size: 200% 100%;
	animation: cpbpwc-builder-skeleton-shimmer 1.5s ease-in-out infinite;
}

/* First paint: show skeleton in the gallery column after placement. */
.cpbpwc-main-designer-container.cpbpwc-is-loading.cpbpwc-shell-ready.cpbpwc-designer-placed:not(.cpbpwc-designer-ready),
.cpbpwc-designer-shell.cpbpwc-is-loading.cpbpwc-shell-ready.cpbpwc-designer-placed:not(.cpbpwc-designer-ready) {
	min-height: 640px;
	height: auto;
	opacity: 1;
	visibility: visible;
	overflow: hidden;
}

.cpbpwc-main-designer-container.cpbpwc-is-loading.cpbpwc-shell-ready.cpbpwc-designer-placed:not(.cpbpwc-designer-ready) #product-designer,
.cpbpwc-main-designer-container.cpbpwc-is-loading.cpbpwc-shell-ready.cpbpwc-designer-placed:not(.cpbpwc-designer-ready) .cpbpwc-design-preview-mode {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
	pointer-events: none;
}

.cpbpwc-main-designer-container.cpbpwc-is-loading.cpbpwc-shell-ready .cpbpwc-designer-skeleton.cpbpwc-skeleton-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.cpbpwc-main-designer-container.cpbpwc-shell-ready,
.cpbpwc-designer-shell.cpbpwc-shell-ready {
	height: auto;
	min-height: 0;
	opacity: 1;
	visibility: visible;
	transition:
		opacity 0.22s ease,
		visibility 0.22s ease;
}

.cpbpwc-main-designer-container.cpbpwc-shell-ready.cpbpwc-designer-placed:not(.cpbpwc-designer-ready),
.cpbpwc-designer-shell.cpbpwc-shell-ready.cpbpwc-designer-placed:not(.cpbpwc-designer-ready) {
	min-height: 640px;
}

.cpbpwc-designer-skeleton {
	position: absolute;
	inset: 0;
	z-index: 20;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	max-height: 100%;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 8px;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 0.25s ease,
		visibility 0.25s ease;
}

.cpbpwc-designer-skeleton.cpbpwc-skeleton-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.cpbpwc-designer-skeleton.cpbpwc-skeleton-hiding {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.cpbpwc-main-designer-container.cpbpwc-designer-ready .cpbpwc-designer-skeleton,
.cpbpwc-designer-shell.cpbpwc-designer-ready .cpbpwc-designer-skeleton {
	display: none;
}

.cpbpwc-builder-skeleton__block {
	display: block;
	flex-shrink: 0;
	background-color: #eceff3;
	background-image: linear-gradient(
		90deg,
		rgba(115, 115, 115, 0.04) 0%,
		rgba(115, 115, 115, 0.14) 45%,
		rgba(115, 115, 115, 0.04) 90%
	);
	background-size: 200% 100%;
	animation: cpbpwc-builder-skeleton-shimmer 1.5s ease-in-out infinite;
	border: 1px solid #e8edf3;
	border-radius: 10px;
}

/* Shell grid — mirrors .wrapper-memes-main */
.cpbpwc-builder-skeleton__shell {
	display: grid;
	width: 100%;
	height: 100%;
	max-height: 100%;
	grid-template-areas:
		"ops ops"
		"sidebar preview"
		"assets assets";
	grid-template-columns: minmax(72px, 100px) minmax(0, 1fr);
	grid-template-rows: auto minmax(0, 1fr) auto;
	gap: 8px 10px;
	box-sizing: border-box;
	overflow: hidden;
	align-content: stretch;
}

/* Top toolbar rows */
.cpbpwc-builder-skeleton__ops {
	grid-area: ops;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid #f1f7fe;
	min-width: 0;
}

.cpbpwc-builder-skeleton__icon-row {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.cpbpwc-builder-skeleton__icon {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	flex: 0 0 auto;
}

.cpbpwc-builder-skeleton__canvas-bar {
	display: flex;
	justify-content: center;
	width: 100%;
	padding: 2px 0;
	min-width: 0;
}

.cpbpwc-builder-skeleton__canvas-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 10px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
	max-width: 100%;
	overflow: hidden;
}

.cpbpwc-builder-skeleton__tool {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background-color: #fff;
	flex: 0 0 auto;
}

.cpbpwc-builder-skeleton__dropdown {
	width: 72px;
	height: 34px;
	border-radius: 10px;
	background-color: #fff;
	flex: 0 0 auto;
}

/* Sidebar thumbnails */
.cpbpwc-builder-skeleton__sidebar {
	grid-area: sidebar;
	display: flex;
	flex-direction: column;
	gap: 10px;
	border-right: 1px solid #f1f7fe;
	padding-right: 8px;
	min-height: 0;
	overflow: hidden;
}

.cpbpwc-builder-skeleton__thumb {
	width: 100%;
	max-width: 72px;
	aspect-ratio: 1 / 1;
	height: auto;
	border-radius: 10px;
}

/* Canvas preview */
.cpbpwc-builder-skeleton__preview-wrap {
	grid-area: preview;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	min-width: 0;
	padding: 0 4px;
	overflow: hidden;
}

.cpbpwc-builder-skeleton__preview {
	width: 100%;
	max-width: 100%;
	height: 100%;
	min-height: 180px;
	max-height: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 12px;
	background-color: #f8fafc;
}

.cpbpwc-builder-skeleton__expand {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: #fff;
}

/* Bottom assets — fit container width, no overflow */
.cpbpwc-builder-skeleton__assets {
	grid-area: assets;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	justify-content: center;
	gap: 8px;
	padding-top: 8px;
	border-top: 1px solid #f1f7fe;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
}

.cpbpwc-builder-skeleton__asset {
	width: 100%;
	max-width: 64px;
	margin: 0 auto;
	aspect-ratio: 1 / 1;
	height: auto;
	border-radius: 10px;
	background-color: #fff;
}

/* Advanced builder page shell */
body.cpbpwc-advance-builder-page .cpbpwc-designer-shell,
body.cpbpwc-advance-builder-page .cpbpwc-designer-shell.cpbpwc-shell-ready,
body.cpbpwc-advance-builder-page .cpbpwc-designer-shell.cpbpwc-designer-ready {
	margin: 0;
	min-height: 0;
	height: auto;
	overflow: hidden;
}

body.cpbpwc-advance-builder-page .cpbpwc-designer-shell > #product-designer {
	height: 100%;
}

body.cpbpwc-advance-builder-page .cpbpwc-designer-shell > #product-designer > .cpbpwc-advance-container {
	height: 100%;
}

body.cpbpwc-advance-builder-page .cpbpwc-designer-shell.cpbpwc-is-loading:not(.cpbpwc-shell-ready) {
	/* Advance renders shell-ready + active skeleton in PHP — keep visible on first paint. */
	flex: 1 1 auto;
	min-height: 0;
	height: auto;
	opacity: 1;
	visibility: visible;
}

body.cpbpwc-advance-builder-page .cpbpwc-designer-skeleton--advance {
	border: 0;
	border-radius: 0;
	padding: 0;
	background: #f8fafc;
}

.cpbpwc-builder-skeleton__shell--advance {
	display: grid;
	grid-template-columns:
		76px
		minmax(0, calc(min(420px, 38vw) - 76px))
		minmax(0, 1fr);
	grid-template-areas: "rail panel stage";
	gap: 0;
	width: 100%;
	height: 100%;
	min-height: 100%;
	box-sizing: border-box;
}

.cpbpwc-builder-skeleton__rail {
	grid-area: rail;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 12px 8px;
	background: #000000;
	border-right: 1px solid #1a1a1a;
	box-sizing: border-box;
}

.cpbpwc-builder-skeleton__rail-item {
	width: 64px;
	height: 56px;
	border-radius: 12px;
}

.cpbpwc-builder-skeleton__shell--advance .cpbpwc-builder-skeleton__rail-item {
	width: 52px;
	height: 48px;
	border-radius: 12px;
	background-color: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.06);
}

.cpbpwc-builder-skeleton__panel {
	grid-area: panel;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	padding: 20px 16px;
	background: #ffffff;
	border-right: 1px solid #e2e8f0;
	box-sizing: border-box;
	overflow: hidden;
	min-width: 0;
}

.cpbpwc-builder-skeleton__panel-title {
	width: 42%;
	max-width: 140px;
	height: 22px;
	border-radius: 8px;
	flex-shrink: 0;
}

.cpbpwc-builder-skeleton__panel-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	width: 100%;
	min-width: 0;
}

.cpbpwc-builder-skeleton__panel-tile {
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	border-radius: 14px;
}

.cpbpwc-builder-skeleton__stage {
	grid-area: stage;
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	height: 100%;
	background-color: #f1f5f9;
	background-image: radial-gradient(circle, #cbd5e1 1px, transparent 1px);
	background-size: 16px 16px;
	box-sizing: border-box;
	overflow: hidden;
}

.cpbpwc-builder-skeleton__stage-frame {
	position: relative;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 0;
	padding: 48px 20px 96px;
	box-sizing: border-box;
}

.cpbpwc-builder-skeleton__stage-tools-top {
	position: absolute;
	top: 14px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
}

.cpbpwc-builder-skeleton__stage-tools-bottom {
	position: absolute;
	left: 20px;
	right: 20px;
	bottom: 24px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	z-index: 2;
}

.cpbpwc-builder-skeleton__stage-bottom-view,
.cpbpwc-builder-skeleton__stage-bottom-zoom {
	display: flex;
	align-items: center;
	min-width: 0;
}

.cpbpwc-builder-skeleton__stage-pill-row {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 8px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
}

.cpbpwc-builder-skeleton__stage-chip {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background-color: #f1f5f9;
	border-color: #e8edf3;
}

.cpbpwc-builder-skeleton__stage-pill {
	width: 72px;
	height: 36px;
	border-radius: 999px;
	background-color: #1e293b;
	border-color: #0f172a;
}

.cpbpwc-builder-skeleton__stage-pill--muted {
	width: 64px;
	background-color: #e2e8f0;
	border-color: #cbd5e1;
}

.cpbpwc-builder-skeleton__stage-zoom {
	width: min(220px, 42vw);
	height: 40px;
	border-radius: 999px;
	background-color: #ffffff;
	border-color: #e2e8f0;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
	flex-shrink: 0;
}

.cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__preview-wrap {
	position: relative;
	flex: 0 1 auto;
	width: 100%;
	max-width: min(100%, 660px);
	min-height: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__preview {
	width: 100%;
	max-width: 100%;
	min-height: 200px;
	height: auto;
	max-height: min(62vh, calc(100% - 80px));
	aspect-ratio: 1 / 1;
	border-radius: 14px;
	background-color: #ffffff;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

/* Hide legacy canvas loading while skeleton is active */
.cpbpwc-designer-skeleton.cpbpwc-skeleton-active ~ #product-designer .canvas_loading,
.cpbpwc-main-designer-container:has(.cpbpwc-designer-skeleton.cpbpwc-skeleton-active) .canvas_loading,
.cpbpwc-designer-shell:has(.cpbpwc-designer-skeleton.cpbpwc-skeleton-active) .canvas_loading {
	display: none;
}

#product-designer .canvas_loading {
	background: #f8fafc;
	color: transparent;
}

@media (max-width: 782px) {
	.cpbpwc-builder-skeleton__shell {
		grid-template-columns: 64px minmax(0, 1fr);
		grid-template-rows: auto minmax(0, 1fr) auto;
	}

	.cpbpwc-builder-skeleton__thumb,
	.cpbpwc-builder-skeleton__asset {
		max-width: 52px;
	}

	.cpbpwc-builder-skeleton__assets {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 6px;
	}

	.cpbpwc-builder-skeleton__icon {
		width: 36px;
		height: 36px;
	}

	.cpbpwc-builder-skeleton__preview {
		min-height: 160px;
	}

	.cpbpwc-main-designer-container.cpbpwc-shell-ready.cpbpwc-designer-placed:not(.cpbpwc-designer-ready),
	.cpbpwc-designer-shell.cpbpwc-shell-ready.cpbpwc-designer-placed:not(.cpbpwc-designer-ready) {
		min-height: 520px;
	}

}

/* Advance builder — mobile matches canvas-on-top + bottom sheet + tab rail */
@media (max-width: 900px) {
	html.cpbpwc-mobile-layout body.cpbpwc-advance-builder-page .cpbpwc-designer-shell.cpbpwc-is-loading:not(.cpbpwc-shell-ready),
	body.cpbpwc-advance-builder-page .cpbpwc-designer-shell.cpbpwc-is-loading:not(.cpbpwc-shell-ready) {
		flex: 1 1 auto;
		min-height: 0;
		height: auto;
		max-height: none;
	}

	html.cpbpwc-mobile-layout body.cpbpwc-advance-builder-page .cpbpwc-designer-skeleton--advance,
	body.cpbpwc-advance-builder-page .cpbpwc-designer-skeleton--advance {
		position: absolute;
		inset: 0;
		height: 100%;
		max-height: 100%;
		border: 0;
		border-radius: 0;
		padding: 0;
	}

	html.cpbpwc-mobile-layout .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__shell--advance,
	body.cpbpwc-advance-builder-page .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__shell--advance {
		display: flex;
		flex-direction: column;
		grid-template-columns: none;
		grid-template-areas: none;
		width: 100%;
		height: 100%;
		min-height: 0;
		max-height: 100%;
	}

	html.cpbpwc-mobile-layout .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__stage,
	body.cpbpwc-advance-builder-page .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__stage {
		order: 1;
		flex: 1 1 0;
		min-height: 0;
		width: 100%;
	}

	html.cpbpwc-mobile-layout .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__panel,
	body.cpbpwc-advance-builder-page .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__panel {
		order: 2;
		flex: 0 0 38%;
		width: 100%;
		max-height: 38%;
		min-height: 0;
		border-right: none;
		border-top: 1px solid #e2e8f0;
		padding: 10px 10px 8px;
		overflow: hidden;
		box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.06);
	}

	html.cpbpwc-mobile-layout .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__rail,
	body.cpbpwc-advance-builder-page .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__rail {
		order: 3;
		flex: 0 0 auto;
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: flex-start;
		gap: 6px;
		width: 100%;
		padding: 6px 8px max(6px, env(safe-area-inset-bottom, 0px));
		border-right: none;
		border-top: 1px solid #1a1a1a;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	html.cpbpwc-mobile-layout .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__rail::-webkit-scrollbar,
	body.cpbpwc-advance-builder-page .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__rail::-webkit-scrollbar {
		display: none;
	}

	html.cpbpwc-mobile-layout .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__rail-item,
	body.cpbpwc-advance-builder-page .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__rail-item {
		flex: 0 0 auto;
		width: 44px;
		min-width: 44px;
		height: 44px;
		border-radius: 10px;
	}

	html.cpbpwc-mobile-layout .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__panel-title,
	body.cpbpwc-advance-builder-page .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__panel-title {
		width: 36%;
		height: 18px;
		margin-bottom: 2px;
	}

	html.cpbpwc-mobile-layout .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__panel-grid,
	body.cpbpwc-advance-builder-page .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__panel-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		flex: 1 1 auto;
		min-height: 0;
		align-content: start;
	}

	html.cpbpwc-mobile-layout .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__panel-tile,
	body.cpbpwc-advance-builder-page .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__panel-tile {
		border-radius: 12px;
		min-height: 0;
	}

	html.cpbpwc-mobile-layout .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__stage-frame,
	body.cpbpwc-advance-builder-page .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__stage-frame {
		padding: 34px 8px 168px;
	}

	html.cpbpwc-mobile-layout .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__stage-tools-bottom,
	body.cpbpwc-advance-builder-page .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__stage-tools-bottom {
		left: 8px;
		right: 8px;
		bottom: max(6px, env(safe-area-inset-bottom, 0px));
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-end;
		gap: 8px;
	}

	html.cpbpwc-mobile-layout .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__stage-bottom-view,
	html.cpbpwc-mobile-layout .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__stage-bottom-zoom,
	body.cpbpwc-advance-builder-page .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__stage-bottom-view,
	body.cpbpwc-advance-builder-page .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__stage-bottom-zoom {
		width: 100%;
		justify-content: center;
	}

	html.cpbpwc-mobile-layout .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__stage-pill-row,
	body.cpbpwc-advance-builder-page .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__stage-pill-row {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		width: 100%;
		max-width: min(100%, 320px);
		margin: 0 auto;
		padding: 4px;
		box-sizing: border-box;
	}

	html.cpbpwc-mobile-layout .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__stage-pill,
	body.cpbpwc-advance-builder-page .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__stage-pill {
		width: 100%;
		min-width: 0;
		height: 34px;
	}

	html.cpbpwc-mobile-layout .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__stage-zoom,
	body.cpbpwc-advance-builder-page .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__stage-zoom {
		width: 100%;
		max-width: min(100%, 340px);
		height: 38px;
		margin: 0 auto;
	}

	html.cpbpwc-mobile-layout .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__preview,
	body.cpbpwc-advance-builder-page .cpbpwc-designer-skeleton--advance .cpbpwc-builder-skeleton__preview {
		max-height: 100%;
		min-height: 120px;
		aspect-ratio: 1 / 1;
		box-shadow: none;
	}
}
