/**
 * IDX Product Designer — functional layout + Local builder chrome (0.1.2).
 * Theme polish: body.idx-designer-product (Theo 1.8.455). Plugin must win on cursor.
 */

/* --------------------------------------------------------------------------
   CRITICAL: site laser cursor sets body.laser-cursor-on * { cursor:none }
   while theme hides .laser-cursor over the designer → invisible mouse.
   Mirror checkout/CPR overrides. Do not use cursor:none anywhere here.
   -------------------------------------------------------------------------- */
body.idx-designer-product.laser-cursor-on,
body.idx-designer-product.laser-cursor-on *,
body.idx-designer-product .laser-cursor {
	cursor: auto !important;
}
body.idx-designer-product .laser-cursor {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}
body.idx-designer-product.laser-cursor-on button,
body.idx-designer-product.laser-cursor-on .idxpd-tool,
body.idx-designer-product.laser-cursor-on .idxpd-btn,
body.idx-designer-product.laser-cursor-on .idxpd-rail__pin,
body.idx-designer-product.laser-cursor-on label[for],
body.idx-designer-product.laser-cursor-on .idxpd-layers li {
	cursor: pointer !important;
}
body.idx-designer-product.laser-cursor-on input[type="text"],
body.idx-designer-product.laser-cursor-on input[type="number"],
body.idx-designer-product.laser-cursor-on textarea {
	cursor: text !important;
}
body.idx-designer-product.laser-cursor-on .idxpd-canvas,
body.idx-designer-product.laser-cursor-on .idxpd-canvas.is-idle {
	cursor: default !important;
}
body.idx-designer-product.laser-cursor-on .idxpd-canvas.is-moving {
	cursor: grabbing !important;
}
body.idx-designer-product.laser-cursor-on .idxpd-canvas.is-resizing {
	cursor: nwse-resize !important;
}
body.idx-designer-product.laser-cursor-on .idxpd-canvas.is-rotating {
	cursor: crosshair !important;
}

/* --------------------------------------------------------------------------
   Full-page builder chrome: hide site footer / dock / announce leftovers.
   Theo already hides announce/breadcrumb via body.idx-configurator; belt+suspenders.
   -------------------------------------------------------------------------- */
body.idx-designer-product .site-footer,
body.idx-designer-product .side-dock,
body.idx-designer-product .back-to-top,
body.idx-designer-product .ppc-button-wrapper,
body.idx-designer-product .site-announce,
body.idx-designer-product .dtf-announce,
body.idx-designer-product .site-header .breadcrumbs,
body.idx-designer-product .site-header .idx-breadcrumbs,
body.idx-designer-product .site-header nav[aria-label="Breadcrumb"],
body.idx-designer-product .page-hero,
body.idx-designer-product .shop-hero {
	display: none !important;
}

body.idx-designer-product .site-main,
body.idx-designer-product .idxpd-page,
body.idx-designer-product .idxpd-section,
body.idx-designer-product .idxpd-wrap,
body.idx-designer-product .idxpd-content {
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}

.idxpd-root {
	--idxpd-navy: #0f143a;
	--idxpd-navy-hover: #17245a;
	--idxpd-yellow: #f3c91a;
	--idxpd-mist: #e2e0e8;
	--idxpd-white: #ffffff;
	/* Wider than Theo’s 70px icon rail so labels (CLIP ART) fit; theme vars overridden below. */
	--idxpd-rail-w: 148px;
	--idxpd-panel-w: 280px;
	box-sizing: border-box;
	color: var(--idxpd-navy);
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.4;
	background: var(--idxpd-mist);
	min-height: calc(100vh - var(--idxcz-admin, 0px) - 72px);
	display: flex;
	flex-direction: column;
}

/* Beat theme --idxpd-rail-w: 70px so tool labels aren’t clipped. */
body.idx-designer-product {
	--idxpd-rail-w: 148px;
	--idxpd-panel-w: 280px;
}
body.idx-designer-product .idxpd-rail[data-pinned="true"] {
	width: calc(var(--idxpd-rail-w) + var(--idxpd-panel-w));
}
body.idx-designer-product .idxpd-tool[data-idxpd-tool] {
	justify-content: flex-start;
	padding-left: 0.65rem;
	padding-right: 0.5rem;
	gap: 0.55rem;
}
body.idx-designer-product .idxpd-rail[data-pinned="true"] .idxpd-tool__label {
	position: static !important;
	width: auto !important;
	height: auto !important;
	overflow: visible !important;
	clip: auto !important;
	clip-path: none !important;
	white-space: nowrap;
}
body.idx-designer-product .idxpd-header__brand {
	white-space: nowrap;
	flex-shrink: 0;
}

.idxpd-root *,
.idxpd-root *::before,
.idxpd-root *::after {
	box-sizing: border-box;
}

.idxpd-root--gate {
	align-items: center;
	justify-content: center;
	min-height: 60vh;
}
.idxpd-gate {
	text-align: center;
	padding: 2rem;
	background: var(--idxpd-white);
	border: 1px solid #cfcdd6;
	max-width: 420px;
}
.idxpd-gate__title {
	font-family: Oswald, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 1.25rem;
	margin: 0 0 0.5rem;
}
.idxpd-gate__text {
	margin: 0 0 1.25rem;
}

.idxpd-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.5rem 1rem;
	background: var(--idxpd-navy);
	color: var(--idxpd-white);
	min-height: 48px;
	flex: none;
}

.idxpd-header__brand {
	font-family: Oswald, Montserrat, sans-serif;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.95rem;
}

.idxpd-header__meta {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	font-size: 0.85rem;
}

.idxpd-header__badge {
	background: var(--idxpd-yellow);
	color: var(--idxpd-navy);
	padding: 0.15rem 0.5rem;
	font-family: Oswald, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.75rem;
}

.idxpd-layout {
	display: grid;
	grid-template-columns: minmax(260px, 428px) 1fr minmax(200px, 280px);
	gap: 0;
	flex: 1 1 auto;
	min-height: 0;
	align-items: stretch;
}

.idxpd-rail {
	background: var(--idxpd-white);
	border-right: 1px solid #cfcdd6;
	display: flex;
	flex-direction: column;
	min-width: var(--idxpd-rail-w);
}

/* Unpinned: plugin does NOT display:none the panel (that blocked Theo’s hover flyout).
   Theo’s idx-designer-455.css positions/shows it on :hover / :focus-within / :has(.is-active).
   data-panel-open="<tool>" is set by JS for his selectors. */
.idxpd-rail[data-pinned="false"] {
	width: var(--idxpd-rail-w);
	min-width: var(--idxpd-rail-w);
	position: relative;
}
.idxpd-rail[data-pinned="false"] .idxpd-tool__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}
/* Ensure flyout can open even if an older plugin rule fought theme display:none. */
body.idx-designer-product .idxpd-rail[data-pinned="false"]:hover .idxpd-rail__panel,
body.idx-designer-product .idxpd-rail[data-pinned="false"]:focus-within .idxpd-rail__panel,
body.idx-designer-product .idxpd-rail[data-pinned="false"]:has(.idxpd-tool.is-active) .idxpd-rail__panel,
body.idx-designer-product .idxpd-rail[data-pinned="false"][data-panel-open] .idxpd-rail__panel {
	display: block !important;
}

.idxpd-rail__pin {
	margin: 0.5rem;
	padding: 0.4rem 0.6rem;
	border: 1px solid var(--idxpd-navy);
	background: var(--idxpd-white);
	color: var(--idxpd-navy);
	font-family: Oswald, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	transition: background 0.25s ease, color 0.25s ease;
}
.idxpd-rail__pin[aria-pressed="true"] {
	background: var(--idxpd-yellow);
}
.idxpd-rail__pin-icon {
	display: inline-flex;
	width: 1rem;
	height: 1rem;
}
.idxpd-rail__pin-icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.idxpd-rail__tools {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.5rem;
}

.idxpd-tool {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	width: 100%;
	padding: 0.55rem 0.65rem;
	border: 0;
	background: transparent;
	color: var(--idxpd-navy);
	cursor: pointer;
	text-align: left;
	font-family: Oswald, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.85rem;
	transition: background 0.25s ease;
}
.idxpd-tool:hover:not(:disabled),
.idxpd-tool.is-active {
	background: var(--idxpd-mist);
}
.idxpd-tool:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}
.idxpd-tool__icon {
	width: 1.35rem;
	height: 1.35rem;
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.idxpd-tool__icon svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.idxpd-rail__panel {
	border-top: 1px solid #cfcdd6;
	padding: 0;
	flex: 1;
	overflow: auto;
}

.idxpd-panel__title {
	font-family: Oswald, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 1rem;
	margin: 0 0 0.75rem;
}
.idxpd-panel {
	padding: 0.75rem;
}
.idxpd-panel__note {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
}

.idxpd-field {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin-bottom: 0.75rem;
}
.idxpd-field--inline {
	flex-direction: row;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
}
.idxpd-field--check {
	flex-direction: row;
	align-items: center;
	gap: 0.5rem;
}
.idxpd-field--check .idxpd-field__label {
	margin: 0;
}
.idxpd-field__label {
	font-family: Oswald, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.75rem;
}
.idxpd-field__input,
.idxpd-stage__toolbar select {
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 16px;
	padding: 0.4rem 0.5rem;
	border: 1px solid #cfcdd6;
	border-radius: 0;
	color: var(--idxpd-navy);
	background: var(--idxpd-white);
}
.idxpd-field__input--range {
	padding: 0.35rem 0;
	height: 1.75rem;
	accent-color: var(--idxpd-navy, #0f143a);
}
.idxpd-field__input--color {
	padding: 0.15rem;
	min-height: 2.25rem;
	cursor: pointer;
}


/* Hide native file input; custom button avoids stale “No file chosen” tooltip. */
.idxpd-file {
	position: relative;
}
.idxpd-file__input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.idxpd-file__btn {
	width: 100%;
}

.idxpd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.55rem 0.9rem;
	border: 0;
	border-radius: 0;
	font-family: Oswald, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease;
}
.idxpd-btn--primary {
	background: var(--idxpd-yellow);
	color: var(--idxpd-navy);
}
.idxpd-btn--primary:hover {
	background: var(--idxpd-navy);
	color: var(--idxpd-white);
}

.idxpd-layers {
	list-style: none;
	margin: 0;
	padding: 0;
}
.idxpd-layers__empty {
	padding: 0.6rem 0.4rem;
	color: rgba(15, 20, 58, 0.55);
	font-size: 0.9rem;
	cursor: default;
}
.idxpd-layers__item {
	display: grid;
	grid-template-columns: 1.6rem 1.2rem minmax(0, 1fr) 1.5rem 1.5rem 1.5rem;
	align-items: center;
	gap: 0.15rem;
	padding: 0.35rem 0.25rem;
	border-bottom: 1px solid var(--idxpd-mist);
	font-size: 0.9rem;
}
.idxpd-layers__item.is-selected {
	background: var(--idxpd-mist);
}
.idxpd-layers__item.is-hidden .idxpd-layers__label {
	opacity: 0.45;
	text-decoration: line-through;
}
.idxpd-layers__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.15rem;
	height: 1.15rem;
	font-size: 0.7rem;
	font-weight: 700;
	font-family: Oswald, sans-serif;
	color: var(--idxpd-navy);
	background: rgba(15, 20, 58, 0.08);
}
.idxpd-layers__label {
	display: block;
	width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-align: left;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 500;
	cursor: pointer;
	padding: 0.15rem 0.2rem;
}
.idxpd-layers__item.is-selected .idxpd-layers__label {
	font-weight: 700;
}
.idxpd-layers__btn {
	border: 1px solid #cfcdd6;
	background: var(--idxpd-white);
	color: var(--idxpd-navy);
	width: 1.4rem;
	height: 1.4rem;
	line-height: 1;
	padding: 0;
	cursor: pointer;
	font-size: 0.85rem;
}
.idxpd-layers__btn:disabled {
	opacity: 0.35;
	cursor: default;
}
.idxpd-layers__btn--vis {
	border-color: transparent;
	background: transparent;
	font-size: 0.95rem;
}
.idxpd-layers__btn--del {
	color: #8a1f1f;
}
.idxpd-layers li {
	/* legacy fallback if any plain li remains */
	padding: 0.4rem 0.5rem;
	border-bottom: 1px solid var(--idxpd-mist);
	cursor: pointer;
	font-size: 0.95rem;
}
.idxpd-layers li.is-selected {
	background: var(--idxpd-mist);
	font-weight: 600;
}

.idxpd-stage {
	background: #f5f4f7;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 0.75rem;
}
.idxpd-stage__toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 0.75rem;
}
.idxpd-stage__canvas-wrap {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--idxpd-white);
	border: 1px solid #cfcdd6;
	min-height: 360px;
	overflow: auto;
}
.idxpd-canvas {
	display: block;
	max-width: 100%;
	cursor: default;
	touch-action: none;
}
.idxpd-stage__hint {
	margin: 0.5rem 0 0;
	font-size: 0.85rem;
	color: var(--idxpd-navy-hover);
}

.idxpd-card {
	background: var(--idxpd-white);
	border-left: 1px solid #cfcdd6;
	padding: 0;
	overflow: auto;
}
.idxpd-card__inner {
	padding: 0 0 1rem;
}
.idxpd-card__header {
	background: var(--idxpd-navy);
	color: #fff;
	padding: 0.7rem 1rem;
	border-bottom: 3px solid var(--idxpd-yellow);
	margin: 0;
}
.idxpd-card__title {
	font-family: Oswald, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 1.05rem;
	margin: 0;
	color: inherit;
}
.idxpd-card__body {
	padding: 1rem;
}
.idxpd-card__line {
	margin: 0.25rem 0;
}
.idxpd-card__price {
	margin: 1rem 0;
	padding: 0.75rem;
	background: var(--idxpd-mist);
}
.idxpd-card__price-label {
	display: block;
	font-family: Oswald, sans-serif;
	text-transform: uppercase;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
}
.idxpd-card__price-value {
	font-size: 1.5rem;
	font-weight: 700;
}
.idxpd-card__price-note {
	display: block;
	font-size: 0.85rem;
	opacity: 0.8;
}
.idxpd-card__price-breakdown {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.85rem;
	line-height: 1.35;
	opacity: 0.9;
}
.idxpd-card__price-breakdown[hidden] { display: none; }
.idxpd-card__disclaimer {
	font-size: 0.85rem;
	opacity: 0.75;
}

/* Optional mobile tool strip */
.idxpd-mobile-tools {
	display: none;
}

@media (max-width: 900px) {
	.idxpd-layout {
		grid-template-columns: 1fr;
	}
	.idxpd-card {
		border-left: 0;
		border-bottom: 1px solid #cfcdd6;
		order: -1;
	}
	.idxpd-rail {
		border-right: 0;
		border-bottom: 1px solid #cfcdd6;
	}
	.idxpd-mobile-tools {
		display: flex;
		gap: 0.35rem;
		overflow-x: auto;
		padding: 0.5rem;
		background: var(--idxpd-navy);
	}
	.idxpd-mobile-tools .idxpd-tool {
		flex: none;
		width: auto;
		color: #fff;
		min-width: 4.5rem;
		flex-direction: column;
		font-size: 0.7rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.idxpd-rail__pin,
	.idxpd-tool,
	.idxpd-btn {
		transition: none;
	}
}

/* 0.1.3 — clip art grid */
.idxpd-clipart__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
	gap: 0.45rem;
	margin: 0.5rem 0 0.75rem;
	max-height: 420px;
	overflow: auto;
}
.idxpd-clipart__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	padding: 0.35rem;
	border: 1px solid #cfcdd6;
	background: #fff;
	cursor: pointer;
	color: var(--idxpd-navy);
	font-size: 0.65rem;
	line-height: 1.2;
	text-align: center;
}
.idxpd-clipart__item:hover,
.idxpd-clipart__item:focus-visible {
	border-color: var(--idxpd-navy);
	box-shadow: 0 0 0 2px var(--idxpd-yellow);
	outline: none;
}
.idxpd-clipart__item.is-brand {
	border-color: var(--idxpd-yellow);
}
.idxpd-clipart__item img {
	width: 64px;
	height: 64px;
	object-fit: contain;
	background: #f5f4f7;
}
.idxpd-clipart__name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	width: 100%;
}

/* 0.1.5 — tumbler color swatches */
.idxpd-colors {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0.5rem 0 0.75rem;
}
.idxpd-color {
	width: 28px;
	height: 28px;
	border: 2px solid rgba(15, 20, 58, 0.25);
	border-radius: 50%;
	padding: 0;
	cursor: pointer;
	background: #ccc;
}
.idxpd-color.is-active {
	box-shadow: 0 0 0 3px #f3c91a, 0 0 0 5px #0f143a;
	border-color: #0f143a;
}
.idxpd-color:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px #f3c91a, 0 0 0 5px #0f143a;
}

/* Design JSON verify panel (0.1.11) */
.idxpd-design-json {
	margin-top: 1rem;
	border-top: 1px solid var(--idxpd-mist);
	padding-top: 0.75rem;
}
.idxpd-design-json__summary {
	font-family: Oswald, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.85rem;
	cursor: pointer;
	color: var(--idxpd-navy);
}
.idxpd-design-json__ta {
	width: 100%;
	min-height: 9rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 11px;
	line-height: 1.35;
	resize: vertical;
	margin: 0.5rem 0;
}
.idxpd-design-json__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}
.idxpd-design-json__actions .idxpd-btn {
	font-size: 0.8rem;
	padding: 0.35rem 0.55rem;
}
.idxpd-design-json__filebtn {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	margin: 0;
}

/* Laser export (0.1.13) */
.idxpd-laser {
	margin-top: 1rem;
	border-top: 1px solid var(--idxpd-mist);
	padding-top: 0.75rem;
}
.idxpd-laser__summary {
	font-family: Oswald, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.85rem;
	cursor: pointer;
	color: var(--idxpd-navy);
}
.idxpd-laser__preview-wrap {
	margin: 0.5rem 0;
	background: #fff;
	border: 1px solid #cfcdd6;
	min-height: 4rem;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: auto;
}
.idxpd-laser__preview {
	max-width: 100%;
	height: auto;
	image-rendering: pixelated;
	display: block;
}
.idxpd-laser__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}
.idxpd-laser__actions .idxpd-btn {
	font-size: 0.8rem;
	padding: 0.35rem 0.55rem;
}

.idxpd-card__atc {
	width: 100%;
	margin-top: 0.75rem;
}
.idxpd-card__price-value {
	font-size: 1.35rem;
	font-weight: 700;
	font-family: Oswald, sans-serif;
}

/* 0.1.19 — clip art polish */
.idxpd-panel[data-idxpd-panel="clipart"].is-loading .idxpd-clipart__grid {
	opacity: 0.55;
}
.idxpd-clipart__item.is-broken {
	opacity: 0.45;
	cursor: not-allowed;
}
.idxpd-clipart__broken {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	background: #f5f4f7;
	color: #888;
	font-size: 1rem;
}
.idxpd-clipart__item.is-svg::after {
	content: "SVG";
	font-size: 0.55rem;
	letter-spacing: 0.04em;
	color: #666;
}

/* Apparel keeps color on Woo Variation Swatches; never paint duplicate chip grid. */
.idxpd-root[data-product="richardson-112"] [data-idxpd-colors],
.idxpd-root[data-product="richardson-112pm"] [data-idxpd-colors],
.idxpd-root[data-product="gildan-5000"] [data-idxpd-colors],
[data-idxpd-colors][hidden] { display: none !important; position: static !important; }

/* 0.1.33: normal apparel embed in Woo flow; not fixed/tumbler full-screen chrome. */
body.single-product.idx-designer-product .idxpd-root[data-product="richardson-112"],
body.single-product.idx-designer-product .idxpd-root[data-product="richardson-112pm"],
body.single-product.idx-designer-product .idxpd-root[data-product="gildan-5000"] {
	position: relative !important;
	inset: auto !important;
	width: 100% !important;
	max-width: none !important;
	min-height: 760px !important;
	height: auto !important;
	margin: 32px 0 !important;
	grid-column: 1 / -1 !important;
	grid-row: auto !important;
	clear: both !important;
	z-index: 1 !important;
	overflow: visible !important;
}
body.single-product.idx-designer-product div.product .summary.entry-summary {
	position: relative !important;
	z-index: 2 !important;
	overflow: visible !important;
}
body.single-product.idx-designer-product .idxpd-root .idxpd-layout {
	position: relative !important;
	inset: auto !important;
	min-height: 710px !important;
	grid-template-columns: minmax(260px, 428px) minmax(360px, 1fr) minmax(210px, 280px) !important;
}
body.single-product.idx-designer-product .idxpd-root .idxpd-rail,
body.single-product.idx-designer-product .idxpd-root .idxpd-rail__panel,
body.single-product.idx-designer-product .idxpd-root .idxpd-card,
body.single-product.idx-designer-product .idxpd-root .idxpd-stage__toolbar {
	position: relative !important;
	inset: auto !important;
	float: none !important;
	transform: none !important;
	z-index: 1 !important;
	max-width: 100% !important;
}
body.single-product.idx-designer-product .idxpd-root .idxpd-stage__canvas-wrap {
	height: 600px !important;
	min-height: 600px !important;
	max-height: 600px !important;
	overflow: hidden !important;
}
body.single-product.idx-designer-product .idxpd-root .idxpd-canvas {
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 100% !important;
}
@media (max-width: 1100px) {
	body.single-product.idx-designer-product .idxpd-root .idxpd-layout { grid-template-columns: 240px minmax(0,1fr) !important; }
	body.single-product.idx-designer-product .idxpd-root .idxpd-card { grid-column: 1 / -1; }
}

/* 0.1.35: desktop full product-row; stack tools/stage/card on narrow screens. */
@media (max-width: 760px) {
	body.single-product.idx-designer-product .idxpd-root .idxpd-layout {
		display: flex !important;
		flex-direction: column !important;
		min-height: 0 !important;
	}
	body.single-product.idx-designer-product .idxpd-root {
		min-height: 0 !important;
	}
	body.single-product.idx-designer-product .idxpd-root .idxpd-rail,
	body.single-product.idx-designer-product .idxpd-root .idxpd-stage,
	body.single-product.idx-designer-product .idxpd-root .idxpd-card {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}
	body.single-product.idx-designer-product .idxpd-root .idxpd-rail__tools {
		flex-direction: row !important;
		flex-wrap: wrap !important;
	}
	body.single-product.idx-designer-product .idxpd-root .idxpd-rail__panel {
		display: block !important;
		max-height: none !important;
	}
	body.single-product.idx-designer-product .idxpd-root .idxpd-stage__canvas-wrap {
		width: 100% !important;
		height: 380px !important;
		min-height: 380px !important;
		max-height: 380px !important;
	}
	body.single-product.idx-designer-product .idxpd-root .idxpd-canvas {
		width: auto !important;
		height: auto !important;
		max-width: 100% !important;
		max-height: 100% !important;
	}
}
/* 0.1.44: full-window customizer; ordinary Woo layout remains untouched. */
/* 0.2.28: sits on its own line below Add to cart, about the same size, 15px padding on each side of the text */
.idxpd-customize-button{display:flex;align-items:center;justify-content:center;gap:.5rem;box-sizing:border-box;width:max-content;max-width:max-content;min-height:38px;padding:10px 15px;margin:.6rem 0 0;clear:both;flex:0 0 100%;border:2px solid #101438;border-radius:4px;background:#F3C91A!important;color:#101438!important;font:600 17px/17px Oswald,'Arial Narrow',system-ui,sans-serif;text-transform:uppercase;letter-spacing:.03em;cursor:pointer!important;box-shadow:0 2px 0 #101438}
.idxpd-customize-button:hover,.idxpd-customize-button:focus{background:#ffdb36!important;color:#101438!important;outline:3px solid #101438;outline-offset:2px}
.idxpd-modal[hidden],.idxpd-added-notice[hidden]{display:none!important}
.idxpd-modal{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;z-index:2147483000!important;background:#e2e0e8;overflow:auto!important;overscroll-behavior:contain}
.idxpd-modal__dialog{height:100%;width:100%;position:relative}
.idxpd-modal__close{position:fixed;right:12px;top:8px;z-index:2147483002;width:44px;height:44px;border:2px solid #F3C91A;border-radius:50%;background:#101438;color:#F3C91A;font:32px/36px system-ui,sans-serif;cursor:pointer!important}
.idxpd-modal__close:focus{outline:3px solid #F3C91A;outline-offset:2px}
body.idxpd-modal-open{position:fixed!important;left:0;right:0;width:100%;overflow:hidden!important}
.idxpd-modal .idxpd-root{height:100dvh;min-height:0!important;position:relative}
.idxpd-modal .idxpd-layout{min-height:0;overflow:auto}
.idxpd-modal .idxpd-header{padding-right:65px}
.idxpd-modal-choices{display:flex;gap:1rem;align-items:center;flex-wrap:wrap;padding:.65rem 1rem;background:#fff;border-bottom:1px solid #cfcdd6;color:#101438}
.idxpd-modal-choices label{display:flex;gap:.45rem;align-items:center;font-weight:700;font-size:.85rem}
.idxpd-modal-choices select{min-width:130px;max-width:260px;padding:.45rem;border:1px solid #101438;background:#fff;color:#101438}
.idxpd-added-notice{position:fixed;top:15px;left:50%;transform:translateX(-50%);z-index:2147483001;max-width:min(92vw,700px);padding:1rem 1.5rem;background:#101438;color:#fff;border:3px solid #F3C91A;font-weight:700}
@media(max-width:900px){.idxpd-modal .idxpd-layout{grid-template-columns:minmax(185px,240px) minmax(300px,1fr)}.idxpd-modal .idxpd-card{grid-column:1/-1;display:block}.idxpd-modal .idxpd-card__inner{padding:.6rem}.idxpd-modal .idxpd-header__badge{display:none}}
@media(max-width:600px){.idxpd-modal .idxpd-layout{display:flex;flex-direction:column;overflow:visible}.idxpd-modal .idxpd-root{height:auto;min-height:100dvh!important}.idxpd-modal .idxpd-header{padding:.5rem 58px .5rem .65rem}.idxpd-modal .idxpd-header__meta{display:none}.idxpd-modal-choices{gap:.5rem}.idxpd-modal-choices label{font-size:.72rem;flex:1}.idxpd-modal-choices select{min-width:0;width:100%;max-width:none}.idxpd-modal .idxpd-rail{width:100%;min-width:0;border-right:0}.idxpd-modal .idxpd-rail[data-pinned="true"]{width:100%}.idxpd-modal .idxpd-rail__pin{display:none}.idxpd-modal .idxpd-rail__tools{display:flex;flex-direction:row;overflow:auto}.idxpd-modal .idxpd-rail__panel{max-height:240px;overflow:auto}.idxpd-modal .idxpd-card{order:4}.idxpd-modal .idxpd-stage{min-height:380px}.idxpd-modal__close{right:6px;top:5px}.idxpd-customize-button{width:100%;min-height:52px}}


/* 0.1.47 — selected-art controls under the canvas */
.idxpd-selection {
	margin: 0.5rem 0.75rem 0.75rem;
	padding: 0.65rem 0.75rem;
	border: 1px solid #cfcdd6;
	border-radius: 6px;
	background: #fff;
}
.idxpd-selection__title {
	margin: 0 0 0.4rem;
	font: 700 0.8rem Oswald, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #101438;
}
.idxpd-selection__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 0.65rem;
	align-items: end;
}
.idxpd-selection__row .idxpd-field--inline {
	margin: 0;
}
.idxpd-selection__row .idxpd-field__input {
	width: 4.5rem;
	min-height: 2rem;
}
.idxpd-selection__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.55rem;
}

.idxpd-stage__clear {
	margin: 0.35rem 0.75rem 0;
}
.idxpd-stage__clear .idxpd-btn {
	min-height: 2.1rem;
	padding: 0.35rem 0.85rem;
	font-size: 0.85rem;
}


/* Out of stock — builder color tiles + stock line */
.idxpd-color.is-oos,
.idxpd-swatch.is-oos {
	position: relative;
	opacity: 0.55;
	filter: grayscale(0.35);
	pointer-events: none;
	cursor: not-allowed;
}
.idxpd-color.is-oos::after,
.idxpd-swatch.is-oos::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top right,
		transparent calc(50% - 1px),
		#c0392b 0,
		#c0392b calc(50% + 1px),
		transparent 0
	);
	border-radius: inherit;
	pointer-events: none;
}
.idxpd-card__stock {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: #1f2937;
}
.idxpd-card__stock.is-oos {
	color: #b91c1c;
}

.idxpd-colors {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0.4rem 0 0.6rem;
}
.idxpd-colors .idxpd-color {
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 0.35rem;
	border: 2px solid rgba(15,20,58,0.2);
	padding: 0;
	cursor: pointer;
	background-size: cover !important;
	background-position: center !important;
}
.idxpd-colors .idxpd-color.is-active {
	border-color: #0f143a;
	box-shadow: 0 0 0 2px #F3C91A;
}


/* Image cleanup panel (0.1.52) */
.idxpd-image-edit { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(15,20,58,0.12); }
.idxpd-image-edit .idxpd-field--row { display: flex; flex-wrap: wrap; gap: 8px; }
.idxpd-image-edit .idxpd-btn.is-active { outline: 2px solid #F3C91A; }


/* —— Viewport pan/zoom (0.1.54) —— */
.idxpd-viewport {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0.4rem 0 0.6rem;
}
.idxpd-viewport__btn {
  min-width: 2.2rem;
  padding: 0.35rem 0.55rem;
}
.idxpd-viewport__btn.is-active {
  outline: 2px solid #F3C91A;
  background: #101438;
  color: #F3C91A;
}
.idxpd-viewport__zoom {
  font-size: 0.85rem;
  font-weight: 600;
  color: #101438;
  min-width: 3.2rem;
}
.idxpd-canvas.is-hand { cursor: grab; }
.idxpd-canvas.is-panning { cursor: grabbing; }
.idxpd-engrave-note {
  margin: 0.25rem 0 0.5rem;
  color: #101438;
}
.idxpd-engrave-mask {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

/* ===================== 0.1.57 workspace layout (Tone markup #1–#14) ===================== */
.idxpd-header { min-height: 44px; padding: 0.35rem 1rem; }
.idxpd-header__brand { display: flex; align-items: baseline; gap: 0.6rem; }
.idxpd-wordmark { font-family: Oswald, Montserrat, sans-serif; font-weight: 600; font-size: 1.25rem; letter-spacing: 0.08em; color: #fff; display: inline-flex; align-items: center; }
.idxpd-wordmark__star { color: #F3C91A; font-size: 0.8em; margin: 0 0.32em; line-height: 1; position: relative; top: -0.04em; }
.idxpd-wordmark-logo { display: inline-block; height: 36px; width: auto; max-width: 180px; object-fit: contain; vertical-align: middle; }
.idxpd-header__sub { font-family: Montserrat, sans-serif; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.idxpd-debug-hide { display: none !important; }

/* Stage = workbar / toolbar / selection / body(side + canvas) */
.idxpd-root .idxpd-stage { padding: 0.4rem 0.5rem 0.35rem; gap: 0.3rem; min-height: 0; overflow: hidden; }
.idxpd-workbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.9rem; }
.idxpd-workbar__group { display: flex; align-items: center; gap: 0.6rem; margin: 0 !important; }
.idxpd-root .idxpd-workbar .idxpd-modal-choices { padding: 0; background: none; border: 0; }
.idxpd-root .idxpd-workbar .idxpd-modal-choices select { min-width: 110px; padding: 0.25rem; }
.idxpd-root .idxpd-workbar .idxpd-stage__toolbar { gap: 0.6rem; }
.idxpd-root .idxpd-workbar .idxpd-stage__toolbar .idxpd-field--inline:not([data-idxpd-placement-field]) { display: none; }
.idxpd-workbar__product { margin: 0 0 0 auto; font: 600 0.85rem Montserrat, sans-serif; color: #101438; }
.idxpd-workbar__dims { font-weight: 500; color: #3b3f63; }

.idxpd-toolbar.idxpd-viewport { margin: 0; padding: 0.25rem; background: #fff; border: 1px solid #cfcdd6; border-radius: 6px; gap: 0.3rem; }
.idxpd-toolbar .idxpd-viewport__btn { min-height: 34px; min-width: 2.4rem; padding: 0.25rem 0.6rem; font-size: 0.8rem; }
.idxpd-toolbar__sep { width: 1px; align-self: stretch; background: #cfcdd6; margin: 0 0.2rem; }

.idxpd-root .idxpd-selection { margin: 0; padding: 0.3rem 0.5rem; display: flex; align-items: center; gap: 0.5rem; min-height: 46px; }
.idxpd-root .idxpd-selection[hidden] { display: flex !important; visibility: hidden; }
.idxpd-root .idxpd-selection__title { margin: 0; white-space: nowrap; }
.idxpd-root .idxpd-selection__row { flex-wrap: wrap; align-items: center; gap: 0.3rem 0.45rem; }
.idxpd-root .idxpd-selection__row .idxpd-field--inline { flex-direction: row; align-items: center; gap: 0.25rem; }
.idxpd-root .idxpd-selection__row .idxpd-field__input { width: 4rem; min-height: 32px; padding: 0.15rem 0.3rem; }
.idxpd-root .idxpd-selection__actions { margin: 0; gap: 0.3rem; }
.idxpd-rot__slider { width: 110px; }
.idxpd-btn--sm { min-height: 32px; padding: 0.2rem 0.45rem; font-size: 0.75rem; }

.idxpd-stage__body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 0.4rem; }
.idxpd-stage__side { display: flex; flex-direction: column; gap: 0.35rem; overflow: auto; min-height: 0; }
.idxpd-side__btn { width: 100%; min-height: 40px; font-size: 0.78rem; }
.idxpd-side__hint { margin: 0; font-size: 0.7rem; line-height: 1.3; color: #3b3f63; }
.idxpd-prep { border: 1px solid #cfcdd6; border-radius: 6px; background: #fff; padding: 0.3rem; }
.idxpd-prep__summary { cursor: pointer; font: 700 0.74rem Oswald, sans-serif; text-transform: uppercase; letter-spacing: 0.03em; color: #101438; min-height: 32px; display: flex; align-items: center; }
.idxpd-prep .idxpd-engrave-note { font-size: 0.7rem; margin: 0.25rem 0; }
.idxpd-engrave-mask--stack { flex-direction: column; align-items: stretch !important; gap: 0.35rem !important; margin: 0.3rem 0 0 !important; }
.idxpd-engrave-mask--stack .idxpd-field--inline { flex-direction: column; align-items: stretch; margin: 0; }
.idxpd-engrave-mask--stack select { width: 100%; font-size: 0.75rem; }
.idxpd-seg { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.idxpd-seg .idxpd-btn { flex: 1 1 0; min-height: 34px; padding: 0.2rem 0.4rem; font-size: 0.75rem; }
.idxpd-seg .idxpd-btn.is-active { background: #101438; color: #F3C91A; outline: 2px solid #F3C91A; }

/* #10/#11: canvas fills stage; display size only (720×520 backing store, calibration unchanged) */
body.single-product.idx-designer-product .idxpd-root .idxpd-stage__canvas-wrap,
.idxpd-root .idxpd-stage__canvas-wrap { height: auto !important; min-height: 0 !important; max-height: none !important; overflow: hidden !important; padding: 0; background: #fff; }
body.single-product.idx-designer-product .idxpd-root .idxpd-canvas,
.idxpd-root .idxpd-canvas { width: auto !important; height: auto !important; max-width: 100% !important; max-height: 100% !important; }
.idxpd-bill-print-note { margin: 0; font-weight: 600; font-size: 0.78rem; }

/* #5 compact image edit */
.idxpd-image-edit { margin-top: 8px; padding-top: 8px; }
.idxpd-panel__note--short { font-size: 0.72rem; margin: 0 0 0.35rem; }
.idxpd-field--compact { margin-bottom: 0.3rem; }
.idxpd-field--compact .idxpd-field__label { font-size: 0.68rem; }
.idxpd-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.5rem; }
.idxpd-img-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.3rem; margin-top: 0.3rem; }
.idxpd-img-actions .idxpd-btn { min-height: 34px; padding: 0.2rem 0.3rem; font-size: 0.72rem; }
.idxpd-img-actions [data-idxpd-img-apply] { grid-column: span 2; }
.idxpd-btn--warn { border-color: #B22234; color: #B22234; }

/* Desktop modal: fill viewport, no main-page scroll */
.idxpd-modal .idxpd-root { display: flex; flex-direction: column; }
body.single-product.idx-designer-product .idxpd-modal .idxpd-root .idxpd-layout,
.idxpd-modal .idxpd-layout { flex: 1 1 auto; min-height: 0 !important; overflow: hidden; grid-template-columns: auto minmax(0, 1fr) minmax(190px, 250px) !important; }
.idxpd-modal .idxpd-rail { --idxpd-rail-w: 104px; --idxpd-panel-w: 236px; overflow: hidden; }
.idxpd-modal .idxpd-rail__panel { overflow: auto; }
.idxpd-modal .idxpd-card { overflow: auto; }
@media (max-width: 1100px) {
	body.single-product.idx-designer-product .idxpd-modal .idxpd-root .idxpd-layout,
	.idxpd-modal .idxpd-layout { grid-template-columns: auto minmax(0, 1fr) 190px !important; }
	body.single-product.idx-designer-product .idxpd-modal .idxpd-root .idxpd-card { grid-column: auto; }
	.idxpd-modal .idxpd-rail { --idxpd-rail-w: 88px; --idxpd-panel-w: 210px; }
	.idxpd-stage__body { grid-template-columns: 120px minmax(0, 1fr); }
	.idxpd-workbar__product { font-size: 0.75rem; }
}
/* Phone: stacked, canvas first-class, panels collapse/scroll */
@media (max-width: 760px) {
	body.single-product.idx-designer-product .idxpd-modal .idxpd-root .idxpd-layout,
	.idxpd-modal .idxpd-layout { display: flex !important; flex-direction: column; overflow: visible; }
	.idxpd-root .idxpd-stage { overflow: visible; }
	.idxpd-stage__body { grid-template-columns: 1fr; }
	.idxpd-stage__side { flex-direction: row; flex-wrap: wrap; order: 2; overflow: visible; }
	.idxpd-side__btn { width: auto; flex: 1 1 140px; }
	.idxpd-prep { flex: 1 1 100%; }
	body.single-product.idx-designer-product .idxpd-root .idxpd-stage__canvas-wrap,
	.idxpd-root .idxpd-stage__canvas-wrap { height: min(62vw, 380px) !important; }
	.idxpd-root .idxpd-selection[hidden] { display: none !important; }
	.idxpd-rot__slider { width: 100%; }
	.idxpd-workbar__product { margin-left: 0; }
}
/* 0.1.57: stable selection bar — disabled look instead of blank gap when nothing selected */
@media (min-width: 761px) {
	.idxpd-root .idxpd-selection[hidden] { visibility: visible; opacity: 0.45; pointer-events: none; }
	.idxpd-root .idxpd-selection[hidden] .idxpd-selection__title::after { content: " — select art"; font-weight: 500; text-transform: none; }
}
/* 0.1.57: bound the modal workspace to the viewport height */
.idxpd-modal .idxpd-modal__dialog { display: flex; flex-direction: column; height: 100%; }
.idxpd-modal .idxpd-modal__dialog > .idxpd-root { flex: 1 1 auto; height: auto !important; min-height: 0 !important; }
body.single-product.idx-designer-product .idxpd-modal .idxpd-root .idxpd-layout,
.idxpd-modal .idxpd-layout { grid-template-rows: minmax(0, 1fr); }
.idxpd-modal .idxpd-layout > * { min-height: 0; }
@media (max-width: 760px) {
	.idxpd-modal .idxpd-modal__dialog { height: auto; }
}
/* 0.1.57: legacy inline-embed rule (0.1.33) must not offset/grow the full-screen modal */
body.single-product.idx-designer-product .idxpd-modal .idxpd-root[data-product] { margin: 0 !important; min-height: 0 !important; overflow: hidden !important; }
@media (max-width: 760px) {
	body.single-product.idx-designer-product .idxpd-modal .idxpd-root[data-product] { overflow: visible !important; }
}
/* 0.1.57 phone: canvas workspace first, then tools panel, then summary/ATC */
@media (max-width: 760px) {
	.idxpd-modal .idxpd-layout > .idxpd-stage { order: 1; }
	.idxpd-modal .idxpd-layout > .idxpd-rail { order: 2; }
	.idxpd-modal .idxpd-layout > .idxpd-card { order: 3; }
}
/* 0.1.57 polish: selection row never overlaps; prep text short */
.idxpd-root .idxpd-selection { flex-wrap: wrap; align-items: center; }
.idxpd-root .idxpd-selection__row { display: flex; flex: 1 1 0; min-width: 0; }
.idxpd-root .idxpd-selection__row .idxpd-field--inline { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 0.2rem; position: static; }
.idxpd-root .idxpd-selection__row .idxpd-field--inline .idxpd-field__label { margin: 0; white-space: nowrap; font-size: 0.68rem; }
.idxpd-root .idxpd-selection__actions { display: inline-flex; }
.idxpd-prep .idxpd-engrave-note { display: none !important; }
.idxpd-prep__lead { margin: 0.25rem 0; font-size: 0.7rem; color: #3b3f63; }
.idxpd-engrave-mask--stack .idxpd-field--check { flex-direction: row !important; align-items: center; gap: 0.35rem; }

/* ===== 0.1.57 review fixes: active-image controls must fit 1024×640 / 1280×800 ===== */
/* Duplicate upload rotation (selection bar owns rotation); element kept for JS */
.idxpd-panel--upload label.idxpd-field:has([data-idxpd-rotation-upload]) { display: none !important; }
/* While editing an image: hide upload instructions + "Added" line; compact Choose image */
.idxpd-panel--upload:has(.idxpd-image-edit:not([hidden])) > .idxpd-panel__note,
.idxpd-panel--upload:has(.idxpd-image-edit:not([hidden])) > [data-idxpd-upload-status],
.idxpd-panel--upload:has(.idxpd-image-edit:not([hidden])) .idxpd-file > .idxpd-field__label,
.idxpd-panel--upload:has(.idxpd-image-edit:not([hidden])) > .idxpd-panel__title { display: none !important; }
.idxpd-panel--upload:has(.idxpd-image-edit:not([hidden])) .idxpd-file__btn { min-height: 34px; padding: 0.2rem 0.5rem; font-size: 0.75rem; }
.idxpd-panel--upload:has(.idxpd-image-edit:not([hidden])) .idxpd-file { margin: 0; }
.idxpd-panel--upload .idxpd-image-edit { margin-top: 6px; padding-top: 6px; }
.idxpd-panel--upload .idxpd-image-edit .idxpd-panel__title { margin: 0 0 0.2rem; font-size: 0.9rem; }
.idxpd-panel--upload .idxpd-panel__note--short { margin: 0 0 0.25rem; }
/* Sticky commit/cancel footer inside the scrolling rail panel */
.idxpd-img-footer { position: sticky; bottom: 0; z-index: 3; background: #fff; padding: 0.35rem 0 0.25rem; border-top: 1px solid rgba(15,20,58,0.12); margin-top: 0.3rem; }
.idxpd-img-crop-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem; margin-bottom: 0.3rem; }
.idxpd-img-crop-actions[hidden] { display: none; }
.idxpd-img-crop-actions .idxpd-btn { min-height: 34px; padding: 0.2rem 0.3rem; font-size: 0.72rem; }
.idxpd-img-footer .idxpd-img-actions { margin-top: 0; }
.idxpd-modal .idxpd-rail__panel { padding: 0.5rem 0.6rem; }
/* Short viewports: left nav stays (all items), laid out as a compact 2-col grid */
@media (min-width: 761px) and (max-height: 860px) {
	.idxpd-modal .idxpd-rail__pin { min-height: 30px; padding: 0.15rem 0.5rem; font-size: 0.72rem; }
	.idxpd-modal .idxpd-rail__tools { display: grid !important; grid-template-columns: 1fr 1fr; gap: 2px; padding: 4px; }
	.idxpd-modal .idxpd-rail__tools .idxpd-tool { min-height: 30px; padding: 0.15rem 0.35rem; font-size: 0.68rem; gap: 0.25rem; }
	.idxpd-modal .idxpd-rail__tools .idxpd-tool__icon svg { width: 15px; height: 15px; }
	.idxpd-modal .idxpd-rail { --idxpd-rail-w: 0px; display: flex; flex-direction: column; width: 256px; min-width: 256px; }
	.idxpd-modal .idxpd-rail__panel { flex: 1 1 auto; min-height: 0; width: auto; border-left: 0; }
	.idxpd-modal .idxpd-grid2 .idxpd-field--compact { margin-bottom: 0.15rem; }
	.idxpd-modal .idxpd-field__input--range { height: 18px; }
}
/* Summary: Add to cart always reachable */
.idxpd-modal .idxpd-card__atc { position: sticky; bottom: 0.4rem; z-index: 3; box-shadow: 0 -6px 10px rgba(255,255,255,0.95); }
/* Phone: header brand above tool strip, close button not covering it */
@media (max-width: 900px) {
	.idxpd-modal .idxpd-header { display: flex !important; order: -2; padding: 0.4rem 60px 0.4rem 0.65rem; }
	.idxpd-modal .idxpd-mobile-tools { order: -1; }
	.idxpd-modal .idxpd-wordmark { font-size: 1.05rem; }
}
.idxpd-modal .idxpd-image-edit .idxpd-grid2 { grid-template-columns: minmax(0,1fr) minmax(0,1fr); column-gap: 0.4rem; }
.idxpd-modal .idxpd-image-edit .idxpd-grid2 > *, .idxpd-modal .idxpd-image-edit input[type=range], .idxpd-modal .idxpd-image-edit select { min-width: 0; max-width: 100%; width: 100%; box-sizing: border-box; }

/* ===================== 0.1.58 conventional customizer layout (mirrors Chamevo) =====================
   Left  : tool rail (Text / Upload / Clip art / Layers) + panel; the selected-art properties sit at the
           top of that panel (contextual: only active when art is selected).
   Top   : bar over the canvas — Preview + Clear (left), Undo / Redo (center), Select/Hand + zoom (right).
   Right : product summary; price + Add to cart are pinned to the bottom of that column.
   All hooks (data-idxpd-*) are unchanged; this block is CSS-only layout on top of 0.1.57. */
.idxpd-root--v2 .idxpd-topbar {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 0.35rem 0.75rem; padding: 0.3rem 0.5rem; margin: 0;
	background: #fff; border: 1px solid #cfcdd6; border-radius: 6px;
}
.idxpd-root--v2 .idxpd-topbar__group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; }
.idxpd-root--v2 .idxpd-topbar__group--center { justify-content: center; flex: 1 1 auto; }
.idxpd-root--v2 .idxpd-topbar__group--right { justify-content: flex-end; }
body .idxpd-root--v2 .idxpd-topbar .idxpd-tool[data-idxpd-tool] {
	width: auto; min-height: 34px; min-width: 0; padding: 0.25rem 0.65rem;
	flex-direction: row; justify-content: center; gap: 0.35rem;
	border: 1px solid #cfcdd6; border-radius: 6px; background: #fff; color: #101438;
	font: 600 0.78rem Montserrat, sans-serif; letter-spacing: 0; text-transform: none;
}
body .idxpd-root--v2 .idxpd-topbar .idxpd-tool[data-idxpd-tool]:hover:not(:disabled) { background: #eceef7; color: #101438; }
body .idxpd-root--v2 .idxpd-topbar .idxpd-tool[data-idxpd-tool]:disabled { opacity: 0.4; }
.idxpd-root--v2 .idxpd-topbar .idxpd-tool__icon { width: 1.1rem; height: 1.1rem; }
.idxpd-root--v2 .idxpd-topbar .idxpd-tool__label { position: static; width: auto; height: auto; clip: auto; overflow: visible; }

/* contextual properties panel (top of the left panel) */
.idxpd-root--v2 .idxpd-props { padding: 0.6rem 0.75rem; border-bottom: 1px solid #cfcdd6; background: #f6f7fb; display: flex; flex-direction: column; gap: 0.5rem; }
.idxpd-root--v2 .idxpd-props .idxpd-selection { display: block; margin: 0; padding: 0.5rem 0.55rem; min-height: 0; background: #fff; visibility: visible; opacity: 1; pointer-events: auto; }
.idxpd-root--v2 .idxpd-props .idxpd-selection[hidden] { display: none !important; }
.idxpd-root--v2 .idxpd-props .idxpd-selection__title { white-space: normal; margin: 0 0 0.4rem; }
.idxpd-root--v2 .idxpd-props .idxpd-selection__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem 0.5rem; align-items: end; }
.idxpd-root--v2 .idxpd-props .idxpd-selection__row .idxpd-field--inline { flex-direction: column; align-items: stretch; gap: 0.15rem; min-width: 0; }
.idxpd-root--v2 .idxpd-props .idxpd-selection__row .idxpd-field__input { width: 100%; box-sizing: border-box; }
.idxpd-root--v2 .idxpd-props .idxpd-rot__slider { width: 100%; }
.idxpd-root--v2 .idxpd-props .idxpd-selection__actions { grid-column: 1 / -1; margin: 0.15rem 0 0; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.idxpd-root--v2 .idxpd-props__empty { margin: 0; font-size: 0.78rem; color: #3b3f63; }
.idxpd-root--v2 .idxpd-props .idxpd-selection:not([hidden]) ~ .idxpd-props__empty { display: none; }
.idxpd-root--v2 .idxpd-props__extras { display: flex; flex-direction: column; gap: 0.35rem; min-height: 0; }
.idxpd-root--v2 .idxpd-props__extras .idxpd-side__btn { width: 100%; }

/* canvas takes the whole centre column now that the old side strip is gone */
.idxpd-root--v2 .idxpd-stage__body { grid-template-columns: minmax(0, 1fr); }

/* price + add to cart: fixed summary area at the bottom of the right column */
.idxpd-root--v2 .idxpd-card__inner { display: flex; flex-direction: column; }
.idxpd-root--v2 .idxpd-card__body { flex: 1 1 auto; }
.idxpd-root--v2 .idxpd-card__summary {
	position: sticky; bottom: 0; z-index: 2; margin: auto -14px -14px; padding: 0.7rem 14px 0.9rem;
	background: #fff; border-top: 2px solid #F3C91A; box-shadow: 0 -6px 14px rgba(16, 20, 56, 0.08);
}
.idxpd-root--v2 .idxpd-card__summary .idxpd-card__price { margin-top: 0; }
.idxpd-root--v2 .idxpd-card__summary .idxpd-card__atc { width: 100%; min-height: 46px; }

@media (max-width: 900px) {
	.idxpd-root--v2 .idxpd-card__summary { margin: 0.5rem -0.6rem -0.6rem; padding-left: 0.6rem; padding-right: 0.6rem; }
}
@media (max-width: 760px) {
	.idxpd-root--v2 .idxpd-topbar__group--center { order: 3; flex-basis: 100%; }
	.idxpd-root--v2 .idxpd-props .idxpd-selection__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* ===================== 0.1.60 builder layout (Tone's builder-layout-interface.ai) =====================
   Header | narrow left column (tabs + accordions + eagle) | toolbar rows + CLIENT/ITEM | checkerboard canvas
   with PRINT AREA and REMOVE BACKGROUND | floating icon bar | SELECTED ART strip | right summary.
   Scoped to #idxpd-root.idxpd-root--v3 so the protected theme skin (idx-designer-455.css) is not touched;
   it loses on specificity to the ID selector. Brand: navy #101438, yellow #F3C91A, Oswald + Montserrat. */
#idxpd-root.idxpd-root--v3 {
	--v3-navy: #101438; --v3-yellow: #F3C91A; --v3-line: #cfd3e4; --v3-mist: #eef0f7;
	--v3-left-w: clamp(176px, 15vw, 214px); --v3-card-w: clamp(230px, 19vw, 280px);
}
#idxpd-root.idxpd-root--v3 .idxpd-ico { width: 1.9rem; height: 1.9rem; display: block; flex: none; fill: none; }
#idxpd-root.idxpd-root--v3 .idxpd-layout {
	display: grid; grid-template-columns: var(--v3-left-w) minmax(0, 1fr) var(--v3-card-w); align-items: stretch; gap: 0;
	min-height: calc(var(--idxcz-h, 640px) - 48px);
}

/* header: brand left, LOCAL TEST + close right (the close X is the theme/modal chrome, untouched) */
#idxpd-root.idxpd-root--v3 .idxpd-header { display: flex; align-items: center; justify-content: space-between; background: var(--v3-navy); color: #fff; }
#idxpd-root.idxpd-root--v3 .idxpd-header__brand { font-family: Oswald, Montserrat, sans-serif; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
#idxpd-root.idxpd-root--v3 .idxpd-header__badge { margin-left: auto; }

/* ---- left column ---- */
#idxpd-root.idxpd-root--v3 .idxpd-leftcol {
	display: flex; flex-direction: column; min-width: 0; background: #fff; color: var(--v3-navy);
	border-right: 1.5px solid var(--v3-line); font-family: Montserrat, system-ui, sans-serif;
}
#idxpd-root.idxpd-root--v3 .idxpd-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--v3-navy); }
#idxpd-root.idxpd-root--v3 .idxpd-tab {
	display: flex; align-items: center; gap: 0.4rem; min-height: 40px; padding: 0.3rem 0.55rem; cursor: pointer;
	background: var(--v3-navy); color: #fff; border: 0; border-bottom: 3px solid transparent; border-radius: 0;
	font: 600 0.85rem Oswald, sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
}
#idxpd-root.idxpd-root--v3 .idxpd-tab__icon { color: var(--v3-yellow); display: inline-flex; width: 1.15rem; height: 1.15rem; }
#idxpd-root.idxpd-root--v3 .idxpd-tab__icon svg { width: 100%; height: 100%; stroke: currentColor; }
#idxpd-root.idxpd-root--v3 .idxpd-tab.is-active { border-bottom-color: var(--v3-yellow); background: #1a2050; }
#idxpd-root.idxpd-root--v3 .idxpd-tab:hover { background: #1a2050; }
#idxpd-root.idxpd-root--v3 .idxpd-tab:focus-visible { outline: 3px solid var(--v3-yellow); outline-offset: -3px; }
#idxpd-root.idxpd-root--v3 .idxpd-leftcol__panel { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0.45rem 0.55rem 0.6rem; scrollbar-width: thin; }
#idxpd-root.idxpd-root--v3 .idxpd-leftcol .idxpd-panel { padding: 0; }
#idxpd-root.idxpd-root--v3 .idxpd-leftcol__logo { padding: 0.5rem 0.6rem 0.8rem; text-align: center; margin-top: auto; }
#idxpd-root.idxpd-root--v3 .idxpd-leftcol__logo img { max-width: 100%; width: 118px; height: auto; display: inline-block; }

/* accordions */
#idxpd-root.idxpd-root--v3 .idxpd-acc { border-bottom: 1px solid var(--v3-line); margin: 0; padding: 0; }
#idxpd-root.idxpd-root--v3 .idxpd-acc__title { margin: 0; padding: 0; font: inherit; }
#idxpd-root.idxpd-root--v3 .idxpd-acc__head {
	display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 0.4rem; cursor: pointer; list-style: none;
	min-height: 36px; padding: 0.3rem 0.1rem; background: transparent; border: 0; border-radius: 0; color: var(--v3-navy);
	font: 700 0.8rem Oswald, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; text-align: left;
}
#idxpd-root.idxpd-root--v3 .idxpd-acc__head::-webkit-details-marker { display: none; }
#idxpd-root.idxpd-root--v3 .idxpd-acc__head:hover { background: var(--v3-mist); }
#idxpd-root.idxpd-root--v3 .idxpd-acc__head:focus-visible { outline: 3px solid var(--v3-yellow); outline-offset: 1px; box-shadow: 0 0 0 5px var(--v3-navy); }
#idxpd-root.idxpd-root--v3 .idxpd-acc__chev { width: 0.55rem; height: 0.55rem; border-right: 2.5px solid var(--v3-navy); border-bottom: 2.5px solid var(--v3-navy); transform: rotate(45deg); margin: -0.2rem 0.25rem 0 0; transition: transform 0.15s ease; flex: none; }
#idxpd-root.idxpd-root--v3 .idxpd-acc__head[aria-expanded="false"] .idxpd-acc__chev,
#idxpd-root.idxpd-root--v3 details.idxpd-acc:not([open]) > .idxpd-acc__head .idxpd-acc__chev { transform: rotate(-45deg); margin-top: 0; }
#idxpd-root.idxpd-root--v3 .idxpd-acc__body { padding: 0.15rem 0 0.6rem; }
#idxpd-root.idxpd-root--v3 details.idxpd-acc { border: 0; border-bottom: 1px solid var(--v3-line); border-radius: 0; background: transparent; padding: 0; }
#idxpd-root.idxpd-root--v3 details.idxpd-acc > :not(summary) { padding-left: 0; padding-right: 0; }
#idxpd-root.idxpd-root--v3 .idxpd-acc__body[hidden], #idxpd-root.idxpd-root--v3 .idxpd-image-edit[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { #idxpd-root.idxpd-root--v3 .idxpd-acc__chev { transition: none; } }

/* compact controls in the narrow column */
#idxpd-root.idxpd-root--v3 .idxpd-leftcol { font-size: 0.78rem; }
#idxpd-root.idxpd-root--v3 .idxpd-leftcol .idxpd-panel__note { font-size: 0.72rem; margin: 0 0 0.35rem; line-height: 1.3; }
#idxpd-root.idxpd-root--v3 .idxpd-leftcol .idxpd-field { margin: 0 0 0.35rem; }
#idxpd-root.idxpd-root--v3 .idxpd-leftcol .idxpd-field__label { font: 600 0.66rem Oswald, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.1rem; }
#idxpd-root.idxpd-root--v3 .idxpd-leftcol .idxpd-field__input,
#idxpd-root.idxpd-root--v3 .idxpd-leftcol select,
#idxpd-root.idxpd-root--v3 .idxpd-leftcol textarea { font-size: 0.8rem; min-height: 30px; padding: 0.2rem 0.35rem; width: 100%; box-sizing: border-box; }
#idxpd-root.idxpd-root--v3 .idxpd-leftcol .idxpd-btn { min-height: 30px; padding: 0.2rem 0.4rem; font-size: 0.68rem; letter-spacing: 0.04em; }
#idxpd-root.idxpd-root--v3 .idxpd-leftcol .idxpd-file__btn,
#idxpd-root.idxpd-root--v3 .idxpd-leftcol [data-idxpd-upload-trigger] { width: 100%; min-height: 34px; }
#idxpd-root.idxpd-root--v3 .idxpd-image-edit .idxpd-field--row,
#idxpd-root.idxpd-root--v3 .idxpd-image-edit .idxpd-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.3rem; align-items: end; }
#idxpd-root.idxpd-root--v3 .idxpd-image-edit .idxpd-field--row > .idxpd-btn:nth-child(3):last-child { grid-column: 1 / -1; }
#idxpd-root.idxpd-root--v3 .idxpd-image-edit input[type="range"] { width: 100%; min-width: 0; }
#idxpd-root.idxpd-root--v3 .idxpd-image-edit .idxpd-btn.is-active { background: var(--v3-navy); color: var(--v3-yellow); outline: 2px solid var(--v3-yellow); }
#idxpd-root.idxpd-root--v3 .idxpd-image-edit [data-idxpd-img-footer], #idxpd-root.idxpd-root--v3 .idxpd-image-edit .idxpd-image-edit__footer { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem; }
#idxpd-root.idxpd-root--v3 .idxpd-prep__lead, #idxpd-root.idxpd-root--v3 .idxpd-prep .idxpd-engrave-note { display: none !important; }

/* ---- stage: checkerboard + toolbar rows ---- */
#idxpd-root.idxpd-root--v3 .idxpd-stage {
	display: flex; flex-direction: column; gap: 0; padding: 0; min-width: 0;
	background-color: #fff;
	background-image: conic-gradient(#e4e4e4 25%, transparent 0 50%, #e4e4e4 0 75%, transparent 0);
	background-size: 36px 36px; background-position: 0 0;
}
#idxpd-root.idxpd-root--v3 .idxpd-topbar { display: block; padding: 0.35rem 0.7rem 0.3rem; margin: 0; border: 0; border-bottom: 3px solid var(--v3-yellow); border-radius: 0; background: #f1f2f5; }
#idxpd-root.idxpd-root--v3 .idxpd-topbar__row1 { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
#idxpd-root.idxpd-root--v3 .idxpd-topbar__row2 { margin-top: 0.25rem; }
#idxpd-root.idxpd-root--v3 .idxpd-upload-big {
	display: inline-flex; align-items: center; gap: 0.5rem; min-height: 54px; padding: 0.3rem 1rem; cursor: pointer; border-radius: 0;
	background: var(--v3-navy); color: var(--v3-yellow); border: 0; font: 600 1.05rem Oswald, sans-serif; letter-spacing: 0.1em; text-transform: uppercase;
}
#idxpd-root.idxpd-root--v3 .idxpd-upload-big .idxpd-ico { width: 2.4rem; height: 2.4rem; }
#idxpd-root.idxpd-root--v3 .idxpd-upload-big:hover { background: #1c2358; }
#idxpd-root.idxpd-root--v3 .idxpd-ibtns, #idxpd-root.idxpd-root--v3 .idxpd-floatbar { display: flex; flex-wrap: wrap; gap: 0.25rem; align-items: stretch; }
#idxpd-root.idxpd-root--v3 .idxpd-ibtn {
	display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem; min-width: 46px; min-height: 54px; padding: 0.15rem 0.25rem;
	background: #fff; border: 1.5px solid var(--v3-navy); border-radius: 0; cursor: pointer; color: var(--v3-navy);
	font: 700 0.58rem Oswald, sans-serif; letter-spacing: 0.06em; text-transform: uppercase;
}
#idxpd-root.idxpd-root--v3 .idxpd-ibtn:hover:not(:disabled) { background: #fff6cc; }
#idxpd-root.idxpd-root--v3 .idxpd-ibtn.is-active, #idxpd-root.idxpd-root--v3 .idxpd-ibtn[aria-pressed="true"] { background: var(--v3-navy); color: var(--v3-yellow); }
#idxpd-root.idxpd-root--v3 .idxpd-ibtn:disabled { opacity: 0.4; cursor: not-allowed; }
#idxpd-root.idxpd-root--v3 .idxpd-ibtn:focus-visible, #idxpd-root.idxpd-root--v3 .idxpd-upload-big:focus-visible { outline: 3px solid var(--v3-yellow); outline-offset: 1px; box-shadow: 0 0 0 5px var(--v3-navy); }
#idxpd-root.idxpd-root--v3 .idxpd-ibtn__label { line-height: 1; }
#idxpd-root.idxpd-root--v3 .idxpd-clientitem { margin-left: auto; text-align: right; font-family: Oswald, sans-serif; text-transform: uppercase; color: var(--v3-navy); min-width: 0; }
#idxpd-root.idxpd-root--v3 .idxpd-clientitem p { margin: 0; line-height: 1.1; overflow-wrap: anywhere; }
#idxpd-root.idxpd-root--v3 .idxpd-clientitem__client { font-weight: 600; font-size: clamp(1.1rem, 2.2vw, 1.9rem); letter-spacing: 0.03em; }
#idxpd-root.idxpd-root--v3 .idxpd-clientitem__item { font-weight: 500; font-size: clamp(0.85rem, 1.25vw, 1.1rem); letter-spacing: 0.04em; }
#idxpd-root.idxpd-root--v3 .idxpd-workbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.8rem; }
#idxpd-root.idxpd-root--v3 .idxpd-workbar__group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; margin: 0; }
#idxpd-root.idxpd-root--v3 .idxpd-workbar label { display: inline-flex; align-items: center; gap: 0.3rem; font: 700 0.62rem Oswald, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; }
#idxpd-root.idxpd-root--v3 .idxpd-workbar select { min-height: 28px; font-size: 0.78rem; padding: 0.1rem 0.3rem; max-width: 9.5rem; }
/* hidden must beat display:flex on workbar labels / choice group */
.idxpd-modal-choices[hidden],
.idxpd-workbar__group[hidden],
.idxpd-modal-choices label[hidden],
#idxpd-root.idxpd-root--v3 .idxpd-workbar__group[hidden],
#idxpd-root.idxpd-root--v3 .idxpd-workbar .idxpd-modal-choices[hidden],
#idxpd-root.idxpd-root--v3 .idxpd-workbar label[hidden]{display:none!important;}
#idxpd-root.idxpd-root--v3 .idxpd-viewctl { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.2rem; }
#idxpd-root.idxpd-root--v3 .idxpd-viewctl .idxpd-btn { min-height: 28px; padding: 0.1rem 0.5rem; font-size: 0.66rem; }
#idxpd-root.idxpd-root--v3 .idxpd-viewctl .idxpd-btn.is-active { background: var(--v3-navy); color: var(--v3-yellow); }
#idxpd-root.idxpd-root--v3 .idxpd-viewport__zoom { font: 600 0.7rem Oswald, sans-serif; min-width: 3rem; }

/* canvas area: white TOOL AREA over the checkerboard */
#idxpd-root.idxpd-root--v3 .idxpd-stage__body { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; min-height: 0; overflow: visible; padding: 0.7rem 1rem 0.6rem; gap: 0.5rem; }
#idxpd-root.idxpd-root--v3 .idxpd-stage__body > * { flex: 0 0 auto; }
#idxpd-root.idxpd-root--v3 .idxpd-stage__canvas-wrap {
	position: relative; width: 100%; max-width: 980px; min-height: 340px; background: #fff; border: 1.5px solid var(--v3-line); border-radius: 0; box-shadow: none; padding: 2.2rem 0.5rem 0.5rem;
}
#idxpd-root.idxpd-root--v3 .idxpd-stage__canvas-wrap #idxpd-canvas { width: 100%; height: auto; max-height: 56vh; border-radius: 0; }
#idxpd-root.idxpd-root--v3 .idxpd-printarea { position: absolute; top: 0.45rem; right: 0.8rem; margin: 0; font: 600 clamp(0.95rem, 1.6vw, 1.3rem) Oswald, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; color: var(--v3-navy); }
#idxpd-root.idxpd-root--v3 .idxpd-printarea[hidden] { display: none; }
/* 0.1.62: the older ".idxpd-root .idxpd-stage { overflow: hidden }" plus a shrinkable canvas frame let the canvas paint over / clip the
   button under it. The stage never clips now, nothing in the canvas column shrinks, and the button row sits above the canvas layer. */
#idxpd-root.idxpd-root--v3 .idxpd-stage { overflow: visible; }
.idxpd-modal #idxpd-root.idxpd-root--v3 .idxpd-stage { overflow-x: hidden; overflow-y: auto; }
#idxpd-root.idxpd-root--v3 .idxpd-underitem { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; width: 100%; min-height: 3.4rem; text-align: center; }
#idxpd-root.idxpd-root--v3 .idxpd-bgremove { display: inline-flex !important; visibility: visible !important; opacity: 1; align-items: center; justify-content: center; background: var(--v3-navy) !important; color: var(--v3-yellow) !important; min-height: 36px; padding: 0.3rem 1.1rem; font: 700 0.78rem Oswald, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; border: 0; border-radius: 0 !important; cursor: pointer; }
#idxpd-root.idxpd-root--v3 .idxpd-bgremove:disabled, #idxpd-root.idxpd-root--v3 .idxpd-bgremove[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
#idxpd-root.idxpd-root--v3 .idxpd-bgremove:focus-visible { outline: 3px solid var(--v3-yellow); outline-offset: 2px; box-shadow: 0 0 0 5px var(--v3-navy); }
#idxpd-root.idxpd-root--v3 .idxpd-underitem .idxpd-side__hint { margin: 0; font-size: 0.7rem; color: var(--v3-navy); background: rgba(255, 255, 255, 0.85); padding: 0.1rem 0.4rem; }
#idxpd-root.idxpd-root--v3 .idxpd-bgtol { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.35rem; margin: 0.25rem 0 0.3rem; font-size: 0.7rem; }
#idxpd-root.idxpd-root--v3 .idxpd-bgtol input[type="range"] { min-width: 0; width: 100%; }
#idxpd-root.idxpd-root--v3 .idxpd-bgremove--panel { width: 100%; min-height: 34px; }
#idxpd-root.idxpd-root--v3 .idxpd-floatbar { position: relative; z-index: 3; justify-content: center; background: #fff; border: 1.5px solid var(--v3-line); padding: 0.25rem; box-shadow: 0 6px 16px -10px rgba(16, 20, 56, 0.55); max-width: 100%; }
#idxpd-root.idxpd-root--v3 .idxpd-bill-print-note { margin: 0.3rem 1rem 0; }

/* bottom strip: SELECTED ART */
#idxpd-root.idxpd-root--v3 .idxpd-bottomstrip {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-top: auto; padding: 0.55rem 0.9rem;
	background: rgba(255, 255, 255, 0.92); border-top: 3px solid var(--v3-yellow);
}
#idxpd-root.idxpd-root--v3 .idxpd-bottomstrip .idxpd-selection { display: flex !important; visibility: visible !important; flex: 1 1 520px; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; margin: 0; padding: 0; min-height: 0; background: transparent; border: 0; }
#idxpd-root.idxpd-root--v3 .idxpd-selection__title { margin: 0; font: 700 0.8rem Oswald, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--v3-navy); white-space: nowrap; }
#idxpd-root.idxpd-root--v3 .idxpd-selection.is-empty .idxpd-selection__title::after { content: " — select art"; font-weight: 500; text-transform: none; letter-spacing: 0; }
#idxpd-root.idxpd-root--v3 .idxpd-selection__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; flex: 1 1 auto; }
#idxpd-root.idxpd-root--v3 .idxpd-selection__row .idxpd-field--inline { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 0.25rem; margin: 0; }
#idxpd-root.idxpd-root--v3 .idxpd-selection__row .idxpd-field__label { font: 700 0.6rem Oswald, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; margin: 0; }
#idxpd-root.idxpd-root--v3 .idxpd-selection__row .idxpd-field__input { width: 4.2rem; min-height: 30px; padding: 0.1rem 0.3rem; font-size: 0.8rem; }
#idxpd-root.idxpd-root--v3 .idxpd-rot__slider { width: clamp(80px, 12vw, 160px); accent-color: var(--v3-navy); }
#idxpd-root.idxpd-root--v3 .idxpd-bottomstrip .idxpd-btn { min-height: 30px; padding: 0.15rem 0.6rem; font-size: 0.68rem; background: var(--v3-navy); color: var(--v3-yellow); border: 0; }
#idxpd-root.idxpd-root--v3 .idxpd-selection__actions { display: inline-flex; gap: 0.3rem; margin: 0; }
#idxpd-root.idxpd-root--v3 .idxpd-selection.is-empty { opacity: 0.5; }
#idxpd-root.idxpd-root--v3 .idxpd-selection.is-empty input, #idxpd-root.idxpd-root--v3 .idxpd-selection.is-empty button { cursor: not-allowed; }
#idxpd-root.idxpd-root--v3 .idxpd-bottomstrip__actions { display: inline-flex; gap: 0.5rem; margin-left: auto; }
#idxpd-root.idxpd-root--v3 .idxpd-bottomstrip__actions .idxpd-btn { min-height: 38px; padding: 0.3rem 1rem; font-size: 0.8rem; }
#idxpd-root.idxpd-root--v3 .idxpd-btn--engrave { background: var(--v3-yellow) !important; color: var(--v3-navy) !important; box-shadow: inset 0 0 0 2px var(--v3-navy); }
#idxpd-root.idxpd-root--v3 .idxpd-btn--engrave:hover:not(:disabled) { background: var(--v3-navy) !important; color: var(--v3-yellow) !important; }
#idxpd-root.idxpd-root--v3 .idxpd-btn--engrave:disabled { opacity: 0.5; cursor: not-allowed; }
#idxpd-root.idxpd-root--v3 .idxpd-btn--engrave:focus-visible { outline: 3px solid var(--v3-navy); outline-offset: 2px; }

/* right column footer */
#idxpd-root.idxpd-root--v3 .idxpd-card__footer { padding: 0.5rem 14px 0.7rem; text-align: right; border-top: 1px solid var(--v3-line); background: #fff; }
#idxpd-root.idxpd-root--v3 .idxpd-card__footer p { margin: 0; font: 600 0.72rem Oswald, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--v3-navy); }
#idxpd-root.idxpd-root--v3 .idxpd-card__help { text-transform: none !important; letter-spacing: 0.02em !important; }
#idxpd-root.idxpd-root--v3 .idxpd-card__help a { color: var(--v3-navy); text-decoration: underline; }

/* responsive: tablet stacks the card under the stage; phone stacks everything */
@media (max-width: 1100px) {
	#idxpd-root.idxpd-root--v3 .idxpd-layout { grid-template-columns: var(--v3-left-w) minmax(0, 1fr); }
	#idxpd-root.idxpd-root--v3 .idxpd-card { grid-column: 1 / -1; order: 3; max-height: none; border-left: 0; border-top: 1.5px solid var(--v3-line); }
	#idxpd-root.idxpd-root--v3 .idxpd-clientitem { flex: 1 1 100%; text-align: left; margin-left: 0; }
}
@media (max-width: 720px) {
	#idxpd-root.idxpd-root--v3 .idxpd-layout { grid-template-columns: minmax(0, 1fr); }
	#idxpd-root.idxpd-root--v3 .idxpd-leftcol { border-right: 0; border-bottom: 1.5px solid var(--v3-line); }
	#idxpd-root.idxpd-root--v3 .idxpd-leftcol__logo { display: none; }
	#idxpd-root.idxpd-root--v3 .idxpd-card { order: 4; }
	#idxpd-root.idxpd-root--v3 .idxpd-stage__body { padding: 0.5rem 0.4rem 0; }
	#idxpd-root.idxpd-root--v3 .idxpd-ibtn { min-width: 40px; }
	#idxpd-root.idxpd-root--v3 .idxpd-bottomstrip__actions { width: 100%; }
	#idxpd-root.idxpd-root--v3 .idxpd-bottomstrip__actions .idxpd-btn { flex: 1 1 0; }
}
#idxpd-root.idxpd-root--v3 .idxpd-mobile-tools { display: none !important; }


/* ===================== 0.1.60b tuning: narrow left column, stacked tools, canvas space =====================
   Older single-product / modal rules set the grid columns with !important (e.g. minmax(260px, 428px) or `auto`,
   which let the left column grow to a third of the screen). These use the #id so they win. */
#idxpd-root.idxpd-root--v3 { --v3-left-w: clamp(260px, 21vw, 300px); --v3-card-w: clamp(220px, 18vw, 270px); }
body.single-product.idx-designer-product #idxpd-root.idxpd-root--v3 .idxpd-layout,
.idxpd-modal #idxpd-root.idxpd-root--v3 .idxpd-layout,
#idxpd-root.idxpd-root--v3 .idxpd-layout {
	grid-template-columns: var(--v3-left-w) minmax(0, 1fr) var(--v3-card-w) !important;
	min-height: 0 !important; align-items: stretch;
}
#idxpd-root.idxpd-root--v3 .idxpd-leftcol { width: var(--v3-left-w); max-width: var(--v3-left-w) !important; min-width: 0; box-sizing: border-box; overflow-x: hidden; }
#idxpd-root.idxpd-root--v3 .idxpd-leftcol * { max-width: 100%; }
@media (max-width: 1100px) {
	body.single-product.idx-designer-product #idxpd-root.idxpd-root--v3 .idxpd-layout,
	.idxpd-modal #idxpd-root.idxpd-root--v3 .idxpd-layout,
	#idxpd-root.idxpd-root--v3 .idxpd-layout { grid-template-columns: var(--v3-left-w) minmax(0, 1fr) !important; }
	#idxpd-root.idxpd-root--v3 .idxpd-card { grid-column: 1 / -1 !important; }
}
@media (max-width: 760px) {
	body.single-product.idx-designer-product #idxpd-root.idxpd-root--v3 .idxpd-layout,
	.idxpd-modal #idxpd-root.idxpd-root--v3 .idxpd-layout,
	#idxpd-root.idxpd-root--v3 .idxpd-layout { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; }
	#idxpd-root.idxpd-root--v3 .idxpd-leftcol { width: auto; max-width: none !important; }
}
/* the canvas fills the centre column (older rules fixed the frame at 600px tall and the canvas at its natural size) */
body.single-product.idx-designer-product #idxpd-root.idxpd-root--v3 .idxpd-stage__canvas-wrap,
#idxpd-root.idxpd-root--v3 .idxpd-stage__canvas-wrap {
	height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important;
	width: 100%; max-width: min(1100px, calc((100vh - 330px) * 1.385)); min-width: min(100%, 360px);
}
body.single-product.idx-designer-product #idxpd-root.idxpd-root--v3 .idxpd-canvas,
#idxpd-root.idxpd-root--v3 .idxpd-stage__canvas-wrap #idxpd-canvas {
	width: 100% !important; height: auto !important; max-width: 100% !important; max-height: none !important; display: block; aspect-ratio: 720 / 520;
}
#idxpd-root.idxpd-root--v3 #idxpd-canvas.is-tool-active { cursor: crosshair; }

/* Erase / Restore / Crop: one full-width button per row, clear on/off state */
#idxpd-root.idxpd-root--v3 .idxpd-toolstack { display: flex; flex-direction: column; gap: 0.3rem; margin: 0 0 0.4rem; }
#idxpd-root.idxpd-root--v3 .idxpd-toolstack .idxpd-toolbtn { display: block; width: 100%; min-height: 34px; text-align: left; padding: 0.25rem 0.6rem 0.25rem 0.8rem; border: 1.5px solid var(--v3-navy); background: #fff; color: var(--v3-navy); position: relative; }
#idxpd-root.idxpd-root--v3 .idxpd-toolstack .idxpd-toolbtn::after { content: "OFF"; position: absolute; right: 0.55rem; top: 50%; transform: translateY(-50%); font: 600 0.6rem Oswald, sans-serif; letter-spacing: 0.08em; opacity: 0.55; }
#idxpd-root.idxpd-root--v3 .idxpd-toolstack .idxpd-toolbtn.is-active { background: var(--v3-navy); color: var(--v3-yellow); box-shadow: inset 5px 0 0 var(--v3-yellow); outline: 2px solid var(--v3-yellow); outline-offset: 1px; }
#idxpd-root.idxpd-root--v3 .idxpd-toolstack .idxpd-toolbtn.is-active::after { content: "ON"; opacity: 1; }
#idxpd-root.idxpd-root--v3 .idxpd-toolstack .idxpd-toolbtn:focus-visible { outline: 3px solid var(--v3-yellow); outline-offset: 1px; box-shadow: 0 0 0 5px var(--v3-navy); }
#idxpd-root.idxpd-root--v3 .idxpd-tool-hint { margin: 0 0 0.4rem; padding: 0.3rem 0.45rem; background: #fff6cc; border-left: 3px solid var(--v3-yellow); font-size: 0.72rem; }
#idxpd-root.idxpd-root--v3 .idxpd-tool-hint[hidden], #idxpd-root.idxpd-root--v3 [data-idxpd-img-brush-wrap][hidden] { display: none; }
/* engraving mask */
#idxpd-root.idxpd-root--v3 .idxpd-seg--preview { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; margin: 0 0 0.4rem; }
#idxpd-root.idxpd-root--v3 .idxpd-seg--preview .idxpd-btn.is-active { background: var(--v3-navy); color: var(--v3-yellow); }
#idxpd-root.idxpd-root--v3 .idxpd-engrave-helper { margin: 0.1rem 0 0.45rem; font-size: 0.72rem; line-height: 1.35; color: var(--v3-navy); background: var(--v3-mist); padding: 0.35rem 0.45rem; border-left: 3px solid var(--v3-yellow); }
#idxpd-root.idxpd-root--v3 [data-idxpd-engrave-threshold]:disabled { opacity: 0.4; }

/* ---- 0.1.63: 300 DPI minimum (upload note, selected-art badge, checkout block message) ---- */
#idxpd-root.idxpd-root--v3 .idxpd-dpi-note { display: flex; align-items: flex-start; gap: 0.45rem; margin: 0.1rem 0 0.5rem; padding: 0.4rem 0.5rem; background: #fff6cc; border-left: 4px solid var(--v3-yellow); color: var(--v3-navy); font-size: 0.74rem; line-height: 1.35; }
#idxpd-root.idxpd-root--v3 .idxpd-dpi-note__badge { flex: 0 0 auto; min-width: 2.1rem; padding: 0.1rem 0.25rem; text-align: center; background: var(--v3-navy); color: var(--v3-yellow); font: 700 0.78rem Oswald, sans-serif; letter-spacing: 0.04em; }
#idxpd-root.idxpd-root--v3 .idxpd-dpi-badge { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; padding: 0.15rem 0.45rem; border: 1.5px solid transparent; font-size: 0.72rem; line-height: 1.25; flex: 1 1 100%; }
#idxpd-root.idxpd-root--v3 .idxpd-dpi-badge[hidden] { display: none; }
#idxpd-root.idxpd-root--v3 .idxpd-dpi-badge__chip { flex: 0 0 auto; padding: 0.05rem 0.4rem; font: 700 0.76rem Oswald, sans-serif; letter-spacing: 0.04em; white-space: nowrap; }
#idxpd-root.idxpd-root--v3 .idxpd-dpi-badge.is-ok { background: #e6f4ea; border-color: #2e7d32; color: #1b4d22; }
#idxpd-root.idxpd-root--v3 .idxpd-dpi-badge.is-ok .idxpd-dpi-badge__chip { background: #2e7d32; color: #fff; }
#idxpd-root.idxpd-root--v3 .idxpd-dpi-badge.is-low { background: #fff3d6; border-color: #e08a00; color: #6b3d00; font-weight: 600; }
#idxpd-root.idxpd-root--v3 .idxpd-dpi-badge.is-low .idxpd-dpi-badge__chip { background: #e08a00; color: #fff; }
#idxpd-root.idxpd-root--v3 .idxpd-dpi-block { margin: 0; padding: 0.35rem 0.55rem; background: #fdecea; border-left: 4px solid #c62828; color: #7f1d1d; font-size: 0.74rem; font-weight: 600; line-height: 1.35; }
#idxpd-root.idxpd-root--v3 .idxpd-dpi-block[hidden] { display: none; }
#idxpd-root.idxpd-root--v3 .idxpd-bottomstrip__actions { flex-wrap: wrap; justify-content: flex-end; max-width: 100%; }
#idxpd-root.idxpd-root--v3 .idxpd-bottomstrip__actions .idxpd-dpi-block { flex: 1 1 100%; order: -1; text-align: left; }

/* 0.1.65 patch family: the designer is the only way to buy (native qty / add-to-cart hidden) */
body.idxpd-patch-product form.cart .quantity,
body.idxpd-patch-product form.cart .single_add_to_cart_button,
body.idxpd-patch-product .wc-block-components-quantity-selector { display: none !important; }
.idxpd-patch-cta { margin: 12px 0; }
.idxpd-patch-cta__note { font-size: 13px; color: #55587a; margin: 8px 0 0; }
.idxpd-patch-qty { margin: 8px 0 10px; }
.idxpd-patch-qty label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.idxpd-patch-qty input[type="number"] { width: 96px; padding: 6px 8px; font: inherit; border: 1px solid #c9cbe0; border-radius: 6px; }
.idxpd-patch-qty__note { margin: 6px 0 0; font-size: 12px; line-height: 1.4; }

/* 0.1.68 goods (sheets + glassware): blank / engraved mode, copy-to-all, native add-to-cart hidden (the designer is the only way to buy) */
.idxpd-goods-mode { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 4px; }
.idxpd-goods-mode__opt { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.idxpd-goods-mode__note { margin: 4px 0 8px; }
.idxpd-goods-copy { margin: 4px 0 8px; }
body.idxpd-goods-product form.cart .single_add_to_cart_button,
body.idxpd-goods-product form.cart .quantity { display: none !important; }

/* 0.1.69 multi-item sheets */
.idxpd-sheet-items { border: 1px solid rgba(15, 20, 58, .15); border-radius: 8px; padding: 10px 12px; margin: 8px 0; background: #fff; }
.idxpd-sheet-items__title { margin: 0 0 4px; font-size: 14px; }
.idxpd-sheet-row { display: block; margin: 6px 0; }
.idxpd-sheet-row select, .idxpd-sheet-row input { margin-left: 6px; }
.idxpd-sheet-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.idxpd-sheet-fill { border: 1px dashed rgba(15, 20, 58, .25); border-radius: 6px; padding: 6px 10px 8px; margin: 8px 0; }
.idxpd-sheet-fill label { display: inline-block; margin: 2px 8px 2px 0; }
.idxpd-sheet-fill input[type="number"] { width: 4.5em; }
.idxpd-sheet-status { margin: 4px 0; font-size: 13px; opacity: .85; }
.idxpd-sheet-warn { margin: 6px 0 0; padding: 6px 8px; border-radius: 6px; background: #fdecea; color: #8a1c14; font-size: 13px; }
.idxpd-goods-dup { margin: 4px 0 8px; }

/* flat-engraving note near the engrave area (glassware / drinkware): bottom of the board, centred */
.idxpd-root .idxpd-stage__canvas-wrap { position: relative; }
.idxpd-root .idxpd-flat-note { position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.4rem; margin: 0; z-index: 2; font: 600 0.8rem/1.3 Montserrat, sans-serif; text-align: center; color: #44506b; background: rgba(255,255,255,0.85); padding: 2px 6px; pointer-events: none; }
.idxpd-root .idxpd-flat-note a { color: #0f143a; font-weight: 700; text-decoration: underline; pointer-events: auto; }

/* 0.1.83 slate coasters: Shape × Set, engraved only */
.idxpd-coaster-opts { display: grid; gap: 0.75rem; margin: 0 0 0.75rem; }
.idxpd-coaster-opts__field { display: flex; flex-direction: column; gap: 0.25rem; margin: 0; }
.idxpd-coaster-opts__field select { width: 100%; }
.idxpd-coaster-quote { margin: 0.5rem 0 0; }

/* 0.1.84 leatherette covers / journals */
.idxpd-leatherette-quote { margin: 0.5rem 0 0; }

.idxpd-customize-button.is-locked,.idxpd-customize-button:disabled{opacity:.55;cursor:not-allowed!important;box-shadow:none}
.idxpd-customize-hint{margin:.35rem 0 0;font-size:.9rem;color:#101438}
/* 0.1.85 first-run tutorial */
.idxpd-help-btn{margin-left:.5rem;border:1px solid #101438;background:#fff;color:#101438;border-radius:4px;padding:.25rem .6rem;font:700 .8rem Montserrat,sans-serif;text-transform:uppercase;cursor:pointer}
.idxpd-help-btn:hover,.idxpd-help-btn:focus{background:#F3C91A;outline:2px solid #101438;outline-offset:2px}
.idxpd-tutorial{position:fixed;inset:0;z-index:100050;background:rgba(16,20,56,.55);display:flex;align-items:center;justify-content:center;padding:1.5rem}
.idxpd-tutorial[hidden]{display:none!important}
.idxpd-tutorial__card{background:#fff;color:#101438;max-width:28rem;width:100%;border:2px solid #101438;border-radius:8px;padding:1.25rem 1.35rem;box-shadow:0 8px 28px rgba(16,20,56,.25)}
.idxpd-tutorial__card h2{margin:0 0 .5rem;font:700 1.1rem Montserrat,sans-serif}
.idxpd-tutorial__step{margin:0 0 1rem;font:400 1rem Montserrat,sans-serif;line-height:1.45}
.idxpd-tutorial__nav{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}
.idxpd-tutorial__nav .idxpd-btn{min-height:40px}

/* 0.1.86 sheet-goods Duplicate + Fill sheet toolbar / popover */
#idxpd-root.idxpd-root--v3 .idxpd-ibtn[data-idxpd-sheet-tool][hidden],
#idxpd-root.idxpd-root--v3 .idxpd-fill-wrap[hidden] { display: none !important; }
#idxpd-root.idxpd-root--v3 .idxpd-fill-wrap { position: relative; display: inline-flex; }
#idxpd-root.idxpd-root--v3 .idxpd-fill-pop {
	position: absolute; top: calc(100% + 4px); right: 0; left: auto; z-index: 80;
	min-width: 13.5rem; padding: 0.7rem 0.8rem;
	background: #fff; border: 1.5px solid var(--v3-navy); color: var(--v3-navy);
	box-shadow: 0 8px 22px rgba(16, 20, 56, 0.18);
	font: 500 0.78rem Montserrat, sans-serif;
}
#idxpd-root.idxpd-root--v3 .idxpd-fill-pop[hidden] { display: none !important; }
#idxpd-root.idxpd-root--v3 .idxpd-fill-pop__row {
	display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
	font: 700 0.62rem Oswald, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 0.4rem;
}
#idxpd-root.idxpd-root--v3 .idxpd-fill-pop__row input {
	width: 4.6rem; min-height: 28px; padding: 0.15rem 0.3rem; font: 600 0.8rem Montserrat, sans-serif;
	border: 1px solid var(--v3-navy); color: var(--v3-navy);
}
#idxpd-root.idxpd-root--v3 .idxpd-fill-pop__fit {
	margin: 0 0 0.5rem; font: 700 0.66rem Oswald, sans-serif; letter-spacing: 0.06em; text-transform: uppercase;
}
#idxpd-root.idxpd-root--v3 .idxpd-fill-pop__grid { display: flex; gap: 0.5rem; }
#idxpd-root.idxpd-root--v3 .idxpd-fill-pop__grid .idxpd-fill-pop__row { flex: 1; }
#idxpd-root.idxpd-root--v3 .idxpd-fill-pop__apply {
	display: block; width: 100%; margin-top: 0.35rem; min-height: 34px;
	background: var(--v3-navy); color: var(--v3-yellow); border: 0;
	font: 700 0.78rem Oswald, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
}
#idxpd-root.idxpd-root--v3 .idxpd-fill-pop__apply:hover { filter: brightness(1.08); }
#idxpd-root.idxpd-root--v3 .idxpd-fill-pop__apply:focus-visible { outline: 3px solid var(--v3-yellow); outline-offset: 1px; box-shadow: 0 0 0 5px var(--v3-navy); }
#idxpd-root.idxpd-root--v3 .idxpd-ibtn[data-idxpd-act="fill-sheet"].is-active { background: var(--v3-navy); color: var(--v3-yellow); }

/* ===================== 0.2.26 test-pass layout fixes =====================
   - the art tool bar (floatbar) + SELECTED ART row live in a dock under the canvas; the canvas area scrolls on its own,
     so the toolbar, the topbar and the dock stay on screen and never cover the canvas.
   - right-hand product panel: exactly 10px left / right padding. */
#idxpd-root.idxpd-root--v3 .idxpd-stage { overflow: hidden; min-height: 0; }
#idxpd-root.idxpd-root--v3 .idxpd-topbar { flex: 0 0 auto; position: relative; z-index: 6; }
#idxpd-root.idxpd-root--v3 .idxpd-stage__body { flex: 1 1 auto !important; min-height: 0 !important; width: 100%; box-sizing: border-box; overflow-x: hidden; overflow-y: auto !important; }
#idxpd-root.idxpd-root--v3 .idxpd-dock { flex: 0 0 auto; position: relative; z-index: 6; background: #fff; border-top: 1px solid var(--v3-line); box-shadow: 0 -6px 14px -10px rgba(16, 20, 56, 0.45); }
#idxpd-root.idxpd-root--v3 .idxpd-dock .idxpd-floatbar { margin: 0.35rem auto; box-shadow: none; }
#idxpd-root.idxpd-root--v3 .idxpd-dock .idxpd-bottomstrip { margin-top: 0; background: #fff; }
@media (max-width: 720px) {
	#idxpd-root.idxpd-root--v3 .idxpd-stage { overflow: visible; }
	#idxpd-root.idxpd-root--v3 .idxpd-stage__body { overflow: visible !important; }
	#idxpd-root.idxpd-root--v3 .idxpd-topbar { position: sticky; top: 0; }
	#idxpd-root.idxpd-root--v3 .idxpd-dock { position: sticky; bottom: 0; }
}

#idxpd-root.idxpd-root--v3 .idxpd-card__header,
#idxpd-root.idxpd-root--v3 .idxpd-card__body,
#idxpd-root.idxpd-root--v3 .idxpd-card__summary,
#idxpd-root.idxpd-root--v3 .idxpd-card__footer { padding-left: 10px !important; padding-right: 10px !important; margin-left: 0 !important; margin-right: 0 !important; box-sizing: border-box; }
#idxpd-root.idxpd-root--v3 .idxpd-card__inner { padding-left: 0 !important; padding-right: 0 !important; }
#idxpd-root.idxpd-root--v3 .idxpd-dock .idxpd-ibtn { min-height: 42px; min-width: 42px; }
#idxpd-root.idxpd-root--v3 .idxpd-dock .idxpd-bottomstrip { padding-top: 0.35rem; padding-bottom: 0.35rem; }
/* compact dock: one thin tool row + a tight SELECTED ART row */
#idxpd-root.idxpd-root--v3 .idxpd-dock .idxpd-floatbar { margin: 0.25rem auto; padding: 0.15rem; gap: 0.2rem; }
#idxpd-root.idxpd-root--v3 .idxpd-dock .idxpd-ibtn { min-height: 36px; min-width: 40px; padding: 0.1rem 0.2rem; gap: 0; }
#idxpd-root.idxpd-root--v3 .idxpd-dock .idxpd-ibtn .idxpd-ico { width: 1.3rem; height: 1.3rem; }
#idxpd-root.idxpd-root--v3 .idxpd-dock .idxpd-bottomstrip { gap: 0.25rem 0.6rem; padding: 0.3rem 0.7rem; }
#idxpd-root.idxpd-root--v3 .idxpd-dock .idxpd-bottomstrip .idxpd-selection { flex: 1 1 420px; gap: 0.25rem 0.4rem; }
#idxpd-root.idxpd-root--v3 .idxpd-dock .idxpd-selection__row { gap: 0.2rem 0.35rem; }
#idxpd-root.idxpd-root--v3 .idxpd-dock .idxpd-selection__row .idxpd-field__input { width: 3.4rem; min-height: 26px; }
#idxpd-root.idxpd-root--v3 .idxpd-dock .idxpd-rot__slider { width: 70px; }
#idxpd-root.idxpd-root--v3 .idxpd-dock .idxpd-bottomstrip .idxpd-btn { min-height: 26px; padding: 0.1rem 0.5rem; }
#idxpd-root.idxpd-root--v3 .idxpd-dock .idxpd-bottomstrip__actions .idxpd-btn { min-height: 30px; padding: 0.15rem 0.8rem; }

/* 0.2.28: cart link + count in the builder header */
.idxpd-cart-link{display:inline-flex;align-items:center;gap:.4rem;margin-right:.6rem;padding:.3rem .7rem;border:2px solid #F3C91A;border-radius:4px;background:transparent;color:#F3C91A;font:700 .8rem Oswald,sans-serif;letter-spacing:.08em;text-transform:uppercase;text-decoration:none}
.idxpd-cart-link:hover,.idxpd-cart-link:focus{background:#F3C91A;color:#101438}
.idxpd-cart-link__count{display:inline-block;min-width:1.4em;padding:0 .35em;border-radius:99px;background:#F3C91A;color:#101438;text-align:center}
.idxpd-cart-link:hover .idxpd-cart-link__count,.idxpd-cart-link:focus .idxpd-cart-link__count{background:#101438;color:#F3C91A}

/* 0.2.28 A4: preview step after Add to cart (all print locations side by side) */
.idxpd-preview-step{position:absolute;inset:0;z-index:50;background:#101438;color:#fff;display:flex;flex-direction:column;align-items:center;gap:1rem;padding:1.25rem;overflow:auto}
.idxpd-preview-step h2{margin:0;font:600 1.25rem/1.2 Oswald,system-ui,sans-serif;color:#F3C91A;text-align:center}
.idxpd-preview-step__grid{display:flex;flex-wrap:wrap;gap:1rem;justify-content:center;align-items:flex-start;width:100%}
.idxpd-preview-step__item{margin:0;flex:1 1 220px;max-width:340px;background:#fff;border-radius:6px;overflow:hidden;color:#101438;text-align:center}
.idxpd-preview-step__item img{display:block;width:100%;height:auto}
.idxpd-preview-step__item figcaption{padding:.4rem;font:600 .9rem Oswald,system-ui,sans-serif;text-transform:uppercase}
.idxpd-preview-step__actions{display:flex;gap:.75rem;flex-wrap:wrap;justify-content:center}
.idxpd-preview-step__actions a.idxpd-btn{text-decoration:none}

/* 0.2.28 (S2): rows that set [hidden] (corner radius, custom-shape quote mode) must really disappear */
.idxpd-sheet-items [hidden] { display: none !important; }

/* ---- 0.2.29 general builder notes (N4, N5, N6, N11) ---- */
/* N11a: CLIENT / ITEM label sits in the navy header bar, right side */
#idxpd-root.idxpd-root--v3 .idxpd-header__meta .idxpd-clientitem { margin: 0 1rem 0 0; text-align: right; color: #fff; line-height: 1.05; }
#idxpd-root.idxpd-root--v3 .idxpd-header__meta .idxpd-clientitem__client { font-size: 1.05rem; color: #fff; letter-spacing: 0.04em; }
#idxpd-root.idxpd-root--v3 .idxpd-header__meta .idxpd-clientitem__item { font-size: 0.68rem; color: var(--v3-yellow); letter-spacing: 0.06em; }
#idxpd-root.idxpd-root--v3 .idxpd-header__meta { display: flex; align-items: center; gap: 0.5rem; }
/* N4: optional shop logo under the build version */
#idxpd-root.idxpd-root--v3 .idxpd-card__logo { margin: 0.45rem 0 0.35rem; text-align: center; }
#idxpd-root.idxpd-root--v3 .idxpd-card__logo img { width: 104px; max-width: 60%; height: auto; display: inline-block; }
/* N11b: SELECTED ART row in the top tool bar, right side (sticky with the bar) */
#idxpd-root.idxpd-root--v3 .idxpd-topbar .idxpd-selection { display: flex !important; visibility: visible !important; flex: 1 1 250px; max-width: 620px; flex-direction: column; align-items: flex-end; gap: 0.15rem; margin: 0 0 0 auto; padding: 0.15rem 0 0; min-height: 0; min-width: 0; background: transparent; border: 0; }
#idxpd-root.idxpd-root--v3 .idxpd-topbar .idxpd-selection__row { justify-content: flex-end; flex: 0 1 auto; gap: 0.25rem 0.4rem; }
#idxpd-root.idxpd-root--v3 .idxpd-topbar .idxpd-selection__row .idxpd-field--inline { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 0.2rem; margin: 0; }
#idxpd-root.idxpd-root--v3 .idxpd-topbar .idxpd-selection__row .idxpd-field__label { font: 700 0.58rem Oswald, sans-serif; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; margin: 0; }
#idxpd-root.idxpd-root--v3 .idxpd-topbar .idxpd-selection__row .idxpd-field__input { width: 3.6rem; min-height: 26px; padding: 0.05rem 0.25rem; font-size: 0.78rem; }
#idxpd-root.idxpd-root--v3 .idxpd-topbar .idxpd-rot__slider { width: 70px; }
#idxpd-root.idxpd-root--v3 .idxpd-topbar .idxpd-selection .idxpd-btn { min-height: 26px; padding: 0.1rem 0.5rem; font-size: 0.64rem; background: var(--v3-navy); color: var(--v3-yellow); border: 0; }
#idxpd-root.idxpd-root--v3 .idxpd-topbar .idxpd-selection__title { text-align: right; }
#idxpd-root.idxpd-root--v3 .idxpd-topbar .idxpd-dpi-badge { margin: 0; }
/* N6: no tool bar at the bottom any more; the dock only carries Clear design / Engrave it */
#idxpd-root.idxpd-root--v3 .idxpd-dock .idxpd-bottomstrip { justify-content: flex-end; }

/* 0.2.30 (R9): slate coasters, labelled "different design" block + Coaster 1..N strip with status. */
.idxpd-coaster-diff__heading { font-weight: 700; margin: 0.25rem 0 0; }
.idxpd-coaster-diff { flex-direction: row !important; align-items: flex-start; gap: 0.5rem !important; cursor: pointer; }
.idxpd-coaster-diff input[type="checkbox"] { flex: 0 0 auto; margin-top: 0.2rem; }
.idxpd-coaster-diff__text { font-weight: 600; line-height: 1.3; }
.idxpd-coaster-diff__help { margin: -0.25rem 0 0; }
.idxpd-coaster-strip[hidden] { display: none; }
.idxpd-coaster-strip__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: 0.4rem; }
.idxpd-coaster-strip__tab { display: grid; justify-items: center; gap: 0.15rem; padding: 0.4rem 0.25rem; border: 2px solid #c9ccd6; border-radius: 0.5rem; background: #fff; cursor: pointer; font: inherit; color: inherit; }
.idxpd-coaster-strip__tab.is-active { border-color: #0f1535; box-shadow: 0 0 0 2px #ffd200; }
.idxpd-coaster-strip__tab.is-done .idxpd-coaster-strip__status { color: #1a7f37; font-weight: 700; }
.idxpd-coaster-strip__tab.is-empty .idxpd-coaster-strip__status { color: #8a5a00; }
.idxpd-coaster-strip__thumb { width: 2.25rem; height: 2.25rem; background: #4a4c4f; color: #ffd200; font-weight: 800; display: grid; place-items: center; border-radius: 0.25rem; }
.idxpd-coaster-strip__thumb--round { border-radius: 50%; }
.idxpd-coaster-strip__name { font-weight: 700; font-size: 0.85rem; }
.idxpd-coaster-strip__status { font-size: 0.75rem; }

/* 0.2.30 (R11): apparel art recolor (Selected art row) + upload note. */
.idxpd-recolor { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: 0.25rem 0; }
.idxpd-recolor[hidden] { display: none !important; }
.idxpd-recolor .idxpd-field__label { margin-right: 0.25rem; }
.idxpd-recolor__opt.is-active, .idxpd-recolor__pick.is-active { outline: 2px solid #ffd200; outline-offset: 1px; }
.idxpd-recolor__dot { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 1px solid #8a8fa3; margin-right: 0.3rem; vertical-align: -0.1rem; }
.idxpd-recolor__pick { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.8rem; cursor: pointer; padding: 0.1rem 0.3rem; border-radius: 0.3rem; }
.idxpd-recolor__pick input[type="color"] { width: 1.8rem; height: 1.5rem; padding: 0; border: 1px solid #8a8fa3; background: none; }
.idxpd-recolor-note { font-weight: 600; }

/* 0.2.30 (R12): laser-reveal products (leatherette covers / journals) lock the text preview to the engrave colour, so the picker is really hidden. */
[data-idxpd-text-color-field][hidden] { display: none !important; }

/* 0.2.30b: coaster strip thumbnails show the same slate photo as the canvas (locked shape) */
.idxpd-coaster-strip__thumb[data-idxpd-coaster-thumb-photo] { background-color: transparent; background-repeat: no-repeat; background-position: center; background-size: 156%; text-shadow: 0 1px 2px #000; }
.idxpd-coaster-shape-lock { display: block; margin-top: 0.25rem; }

/* 0.9.4: don't flash empty product-option lines */
.idxpd-card__line[hidden],
.idxpd-colors[hidden],
.idxpd-card__build[hidden] { display: none !important; }
.idxpd-cart-thumb { width: 80px; height: auto; object-fit: contain; background: #f4f3f0; border-radius: 6px; }

/* 0.9.4: artwork-upload lead */
.idxpd-panel__lead {
	margin: 0 0 0.75rem;
	font-size: 0.92rem;
	line-height: 1.4;
	font-weight: 600;
}
