/**
 * 1.8.505 — Catalog product layout (body.idx-catalog-product).
 *
 * Restores the normal shop container and header chrome that configurator.css
 * strips on any body.idx-configurator page, then lays out gallery ~45% /
 * summary ~55% inside that container. Does not edit configurator.css.
 *
 * Theme container (main.css):
 *   .container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
 *   --container: 1180px
 * Product section padding matches plaque / other shop-page products:
 *   .shop-page > #shop-content { padding-top: 40px; } (28px below 760px)
 *   section-rhythm padding-bottom: 28px (that file skips .idx-configurator)
 */

/* ==========================================================================
   1. Restore site chrome (header, announce, breadcrumbs, container)
   ========================================================================== */

body.idx-catalog-product.idx-configurator .site-announce {
	display: block !important;
}

body.idx-catalog-product.idx-configurator .site-header .idx-breadcrumbs,
body.idx-catalog-product.idx-configurator .site-header nav[aria-label="Breadcrumb"],
body.idx-catalog-product.idx-configurator .site-header .breadcrumbs {
	display: block !important;
}

/* Header inner is also .container — put it back on the same width as plaque / apparel. */
body.idx-catalog-product.idx-configurator .site-header .site-header__inner,
body.idx-catalog-product.idx-configurator .site-header.is-scrolled .site-header__inner {
	width: min(100% - 2.5rem, var(--container)) !important;
	max-width: none !important;
	height: auto !important;
	min-height: 88px !important;
	margin: 0 auto !important;
	padding: 0 !important;
	gap: 1rem !important;
}
body.idx-catalog-product.idx-configurator .site-header.is-scrolled .site-header__inner {
	min-height: 64px !important;
}
@media (max-width: 760px) {
	body.idx-catalog-product.idx-configurator .site-header .site-header__inner,
	body.idx-catalog-product.idx-configurator .site-header.is-scrolled .site-header__inner {
		/* Plaque uses theme 0.5rem here; 1rem left the logo column too narrow and the ham sat on IDX. */
		gap: 0.5rem !important;
	}
	body.idx-catalog-product.idx-configurator .site-header .site-header__inner {
		min-height: 72px !important;
	}
	body.idx-catalog-product.idx-configurator .site-header.is-scrolled .site-header__inner {
		min-height: 56px !important;
	}
}


/* ---- Undo configurator-brand navy "app" header so it matches plaque ---- */
body.idx-catalog-product.idx-configurator .site-header,
body.idx-catalog-product.idx-configurator .site-header.is-scrolled {
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--line, #e2e0e8);
	box-shadow: none;
}
body.idx-catalog-product.idx-configurator .site-header.is-scrolled {
	background: rgba(15, 20, 58, 0.85);
	border-bottom-color: rgba(255, 255, 255, 0.12);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
body.idx-catalog-product.idx-configurator .site-header::before,
body.idx-catalog-product.idx-configurator .site-header::after {
	content: none !important;
	display: none !important;
	background: none !important;
}

/* Logo visibility: color lockup until scroll, then the reversed mark.
   Sizes mirror theme main.css (incl. 1.8.120 compact scrolled logo and 1.8.360
   tablet/phone caps) so the hamburger cannot overlap IDX. */
body.idx-catalog-product.idx-configurator .site-branding {
	min-width: 0;
	overflow: visible;
	justify-self: start;
}
body.idx-catalog-product.idx-configurator .site-branding .site-branding__logo--default,
body.idx-catalog-product.idx-configurator .site-branding__logo--default,
body.idx-catalog-product.idx-configurator .site-branding__logo--default img,
body.idx-catalog-product.idx-configurator .site-branding__logo--default .custom-logo,
body.idx-catalog-product.idx-configurator .site-branding img.site-branding__logo--default,
body.idx-catalog-product.idx-configurator .site-branding svg.site-branding__logo--default {
	display: block !important;
	height: 56px !important;
	width: auto !important;
	max-width: min(240px, 48vw) !important;
}
body.idx-catalog-product.idx-configurator .site-branding img.site-branding__logo--scroll {
	display: none !important;
}
body.idx-catalog-product.idx-configurator .site-header.is-scrolled .site-branding .site-branding__logo--default,
body.idx-catalog-product.idx-configurator .site-header.is-scrolled .site-branding__logo--default,
body.idx-catalog-product.idx-configurator .site-header.is-scrolled .site-branding img.site-branding__logo--default {
	display: none !important;
}
/* Theme 1.8.120 compact scrolled logo (plaque: 26px / max 142px). */
body.idx-catalog-product.idx-configurator .site-header.is-scrolled .site-branding img.site-branding__logo--scroll,
body.idx-catalog-product.idx-configurator .site-header.is-scrolled .site-branding__logo--scroll {
	display: block !important;
	height: 26px !important;
	width: auto !important;
	max-width: min(142px, 40vw) !important;
	object-fit: contain;
}
@media (max-width: 900px) {
	body.idx-catalog-product.idx-configurator .site-header.is-scrolled .site-branding img.site-branding__logo--scroll,
	body.idx-catalog-product.idx-configurator .site-header.is-scrolled .site-branding__logo--scroll {
		height: 22px !important;
		max-width: min(120px, 45vw) !important;
	}
}
@media (min-width: 761px) and (max-width: 1100px) {
	body.idx-catalog-product.idx-configurator .site-header .site-branding__logo--default,
	body.idx-catalog-product.idx-configurator .site-header .site-branding__logo--default img,
	body.idx-catalog-product.idx-configurator .site-header .site-branding__logo--default .custom-logo,
	body.idx-catalog-product.idx-configurator .site-header .site-branding img.site-branding__logo--default,
	body.idx-catalog-product.idx-configurator .site-header .site-branding svg.site-branding__logo--default {
		height: 44px !important;
		max-width: 180px !important;
	}
}
@media (min-width: 761px) and (max-width: 900px) {
	body.idx-catalog-product.idx-configurator .site-header .site-branding__logo--default,
	body.idx-catalog-product.idx-configurator .site-header .site-branding__logo--default img,
	body.idx-catalog-product.idx-configurator .site-header .site-branding__logo--default .custom-logo,
	body.idx-catalog-product.idx-configurator .site-header .site-branding img.site-branding__logo--default,
	body.idx-catalog-product.idx-configurator .site-header .site-branding svg.site-branding__logo--default {
		height: 36px !important;
		max-width: 150px !important;
	}
}
@media (max-width: 760px) {
	body.idx-catalog-product.idx-configurator .site-header .site-branding__logo--default,
	body.idx-catalog-product.idx-configurator .site-header .site-branding__logo--default img,
	body.idx-catalog-product.idx-configurator .site-header .site-branding__logo--default .custom-logo,
	body.idx-catalog-product.idx-configurator .site-header .site-branding img.site-branding__logo--default,
	body.idx-catalog-product.idx-configurator .site-branding .site-branding__logo--default {
		height: 40px !important;
		max-width: min(180px, 55vw) !important;
	}
}
@media (max-width: 430px) {
	body.idx-catalog-product.idx-configurator .site-header .site-branding__logo--default,
	body.idx-catalog-product.idx-configurator .site-header .site-branding__logo--default img,
	body.idx-catalog-product.idx-configurator .site-header .site-branding__logo--default .custom-logo,
	body.idx-catalog-product.idx-configurator .site-header .site-branding img.site-branding__logo--default,
	body.idx-catalog-product.idx-configurator .site-branding .site-branding__logo--default {
		/* Plaque at 390 computes 32×123, not 34 / 150. */
		height: 32px !important;
		max-width: 123px !important;
	}
}

/* Nav / tools: explicit plaque/theme colors. Do not use inherit/revert —
   those beat main.css is-scrolled #fff and left navy-on-navy EN/ES + gray account. */
body.idx-catalog-product.idx-configurator .site-header .site-nav__trigger {
	color: var(--ink, #0f143a) !important;
	background: transparent !important;
	box-shadow: none;
	border-radius: 0;
}
body.idx-catalog-product.idx-configurator .site-header.is-scrolled .site-nav__trigger {
	color: #fff !important;
	background: transparent !important;
}
body.idx-catalog-product.idx-configurator .site-nav__list .site-nav__trigger::after {
	content: none;
	display: none;
}

/* Lang switch: theme spacing + pipe, not the configurator yellow pill. */
body.idx-catalog-product.idx-configurator .site-header .lang-switch {
	display: inline-flex !important;
	align-items: center;
	gap: 0.35rem !important;
	padding: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
body.idx-catalog-product.idx-configurator .site-header .lang-switch a,
body.idx-catalog-product.idx-configurator .site-header .lang-switch span {
	color: var(--ink-soft, #272c67) !important;
	background: transparent !important;
	text-decoration: none;
	padding: 0.25rem 0.4rem !important;
	border-radius: 4px !important;
	font-size: 0.72rem !important;
	font-weight: 700 !important;
	box-shadow: none;
}
body.idx-catalog-product.idx-configurator .site-header .lang-switch a:hover,
body.idx-catalog-product.idx-configurator .site-header .lang-switch a:focus-visible {
	color: var(--ink, #0f143a) !important;
	background: var(--paper-2, #e8eaf3) !important;
}
body.idx-catalog-product.idx-configurator .site-header .lang-switch [aria-current="true"] {
	color: #101438 !important;
	background: var(--paper-2, #e8eaf3) !important;
	box-shadow: inset 0 -2px 0 #F3C91A !important;
}
body.idx-catalog-product.idx-configurator .site-header .lang-switch span[aria-hidden="true"] {
	display: inline !important;
	color: var(--ink-soft, #272c67) !important;
	background: transparent !important;
	box-shadow: none !important;
	font-weight: 700 !important;
}
body.idx-catalog-product.idx-configurator .site-header.is-scrolled .lang-switch a,
body.idx-catalog-product.idx-configurator .site-header.is-scrolled .lang-switch span {
	color: #fff !important;
	background: transparent !important;
}
body.idx-catalog-product.idx-configurator .site-header.is-scrolled .lang-switch a:hover,
body.idx-catalog-product.idx-configurator .site-header.is-scrolled .lang-switch a:focus-visible,
body.idx-catalog-product.idx-configurator .site-header.is-scrolled .lang-switch [aria-current="true"] {
	color: #fff !important;
	background: rgba(255, 255, 255, 0.12) !important;
}
body.idx-catalog-product.idx-configurator .site-header.is-scrolled .lang-switch [aria-current="true"] {
	color: #fff !important;
	box-shadow: inset 0 -2px 0 #F3C91A !important;
}
body.idx-catalog-product.idx-configurator .site-header.is-scrolled .lang-switch span[aria-hidden="true"] {
	color: #fff !important;
	background: transparent !important;
	box-shadow: none !important;
}

/* Account link */
body.idx-catalog-product.idx-configurator .site-header .header-account {
	color: var(--ink-soft, #272c67) !important;
	background: transparent !important;
	border: 1px solid transparent !important;
	font-size: 0.75rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em !important;
	padding: 0.35rem 0.55rem !important;
	border-radius: 999px;
	text-transform: uppercase;
	text-decoration: none;
}
body.idx-catalog-product.idx-configurator .site-header .header-account:hover {
	color: var(--ink, #0f143a) !important;
	border-color: var(--line, #e2e0e8) !important;
	background: var(--paper, #fff) !important;
}
body.idx-catalog-product.idx-configurator .site-header.is-scrolled .header-account {
	color: #fff !important;
	background: transparent !important;
	border-color: transparent !important;
	font-size: 0.9rem !important;
	padding: 0.4rem 0.7rem !important;
}
body.idx-catalog-product.idx-configurator .site-header.is-scrolled .header-account:hover {
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.35) !important;
	background: rgba(255, 255, 255, 0.1) !important;
}

/* Cart: theme 40px / 48px scrolled, not the compact configurator control. */
body.idx-catalog-product.idx-configurator .site-header .header-cart {
	color: var(--ink, #0f143a) !important;
	background: transparent !important;
	border: 1px solid var(--line, #e2e0e8) !important;
	width: 40px !important;
	height: 40px !important;
	border-radius: 999px;
}
body.idx-catalog-product.idx-configurator .site-header.is-scrolled .header-cart {
	color: #fff !important;
	background: transparent !important;
	border-color: rgba(255, 255, 255, 0.35) !important;
	width: 48px !important;
	height: 48px !important;
}
body.idx-catalog-product.idx-configurator .site-header.is-scrolled .header-cart:hover {
	color: var(--navy, #0f143a) !important;
	background: #fff !important;
	border-color: #fff !important;
}
body.idx-catalog-product.idx-configurator .site-header.is-scrolled .header-cart__icon svg {
	width: 24px !important;
	height: 24px !important;
}

/* Search toggle: search-toggle-483, including scrolled white icon/outline. */
body.idx-catalog-product.idx-configurator .site-header .idx-search__toggle {
	color: var(--ink, #0f143a) !important;
	background: transparent !important;
	border: 1px solid var(--line, #e2e0e8) !important;
}
body.idx-catalog-product.idx-configurator .site-header .idx-search__toggle:hover,
body.idx-catalog-product.idx-configurator .site-header .idx-search__toggle:focus-visible,
body.idx-catalog-product.idx-configurator .site-header .idx-search__toggle[aria-expanded="true"] {
	color: var(--ink, #0f143a) !important;
	background: var(--paper, #fff) !important;
	border-color: #f3c91a !important;
}
body.idx-catalog-product.idx-configurator .site-header.is-scrolled .idx-search__toggle {
	color: #fff !important;
	background: transparent !important;
	border-color: rgba(255, 255, 255, 0.35) !important;
}
body.idx-catalog-product.idx-configurator .site-header.is-scrolled .idx-search__toggle:hover,
body.idx-catalog-product.idx-configurator .site-header.is-scrolled .idx-search__toggle:focus-visible,
body.idx-catalog-product.idx-configurator .site-header.is-scrolled .idx-search__toggle[aria-expanded="true"] {
	color: #0f143a !important;
	background: #fff !important;
	border-color: #fff !important;
}

/* Hamburger: match plaque — navy button, yellow icon + glow only when scrolled. */
body.idx-catalog-product.idx-configurator .site-header .spark-toggle {
	color: #101438 !important;
	filter: none !important;
}
body.idx-catalog-product.idx-configurator .site-header .spark-toggle__icon {
	filter: none;
}
body.idx-catalog-product.idx-configurator .site-header.is-scrolled .spark-toggle {
	color: #101438 !important;
	filter: drop-shadow(0 0 10px rgba(243, 201, 26, 0.45));
}
body.idx-catalog-product.idx-configurator .site-header.is-scrolled .spark-toggle__icon {
	filter: brightness(0) saturate(100%) invert(79%) sepia(64%) saturate(1204%) hue-rotate(359deg) brightness(101%) contrast(96%);
}
body.idx-catalog-product.idx-configurator .site-header .spark-toggle::before {
	box-shadow: none;
	animation: none;
}

/* Product title: a normal heading, not the navy configurator panel bar. */
body.idx-catalog-product div.product .summary .product_title {
	position: static !important;
	top: auto !important;
	z-index: auto !important;
	margin: 0 0 0.5rem !important;
	padding: 0 !important;
	background: none !important;
	color: #0f143a !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-size: clamp(1.5rem, 2.4vw, 2.15rem) !important;
	letter-spacing: -0.01em;
	line-height: 1.15;
}
body.idx-catalog-product div.product .summary .product_title::after,
body.idx-catalog-product div.product .summary .product_title::before {
	content: none !important;
	display: none !important;
}

/* Header actions: keep one row (theme uses nowrap at tablet/phone). Logo sizes
   are set in the block above so they cannot be re-forced to 32/160 here. */
body.idx-catalog-product.idx-configurator .site-header__actions {
	gap: 0.75rem !important;
	flex-wrap: nowrap !important;
}
@media (min-width: 761px) and (max-width: 1100px) {
	body.idx-catalog-product.idx-configurator .site-header__actions {
		gap: 0.5rem !important;
		flex-wrap: nowrap !important;
	}
}
@media (max-width: 760px) {
	body.idx-catalog-product.idx-configurator .site-header__actions {
		/* Plaque computed 0.2rem (3.2px), not 0.35rem — the extra gap squeezed the logo. */
		gap: 0.2rem !important;
		flex-wrap: nowrap !important;
	}
	body.idx-catalog-product.idx-configurator .site-header .lang-switch {
		gap: 0.1rem !important;
	}
	body.idx-catalog-product.idx-configurator .site-header .lang-switch a,
	body.idx-catalog-product.idx-configurator .site-header .lang-switch span {
		padding: 0.25rem 0.2rem !important;
	}
}

/* Content container: same as .container on plaque / apparel. */
body.idx-catalog-product.idx-configurator #shop-content.section {
	padding-top: 40px !important;
	padding-bottom: 28px !important;
}
@media (max-width: 760px) {
	body.idx-catalog-product.idx-configurator #shop-content.section {
		padding-top: 28px !important;
		padding-bottom: 28px !important;
	}
}
body.idx-catalog-product.idx-configurator #shop-content.section > .container {
	width: min(100% - 2.5rem, var(--container)) !important;
	max-width: none !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
@media (max-width: 520px) {
	body.idx-catalog-product.idx-configurator .site-header .site-header__inner,
	body.idx-catalog-product.idx-configurator .site-header.is-scrolled .site-header__inner,
	body.idx-catalog-product.idx-configurator #shop-content.section > .container {
		/* Plaque at 390 is 10px sides (370px), not 1.5rem / 12px. */
		width: min(100% - 20px, var(--container)) !important;
	}
}

/* Product banner (.idxcart-hero) is already in the template; keep it visible. */
body.idx-catalog-product .idxcart-hero,
body.idx-catalog-product .idxshop-hero {
	display: block;
}

/* Tabs were hidden by configurator.css on every idx-configurator product. */
body.idx-catalog-product div.product > .woocommerce-tabs,
body.idx-catalog-product div.product .woocommerce-tabs.wc-tabs-wrapper {
	display: block;
}

/* ==========================================================================
   2. Gallery / summary columns
   ========================================================================== */

@media (min-width: 1024px) {
	body.idx-catalog-product div.product {
		display: grid;
		grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
		grid-template-rows: auto;
		column-gap: 40px;
		row-gap: 1.5rem;
		align-items: start;
		width: 100%;
		max-width: 100%;
	}

	body.idx-catalog-product div.product .woocommerce-product-gallery,
	body.idx-catalog-product div.product div.images {
		float: none !important;
		width: 100% !important;
		max-width: 560px !important;
		margin: 0 !important;
		justify-self: start;
		align-self: start;
	}

	body.idx-catalog-product div.product div.summary,
	body.idx-catalog-product div.product .summary,
	body.idx-catalog-product div.product div.summary.entry-summary {
		float: none !important;
		width: auto !important;
		max-width: 100% !important;
		margin: 0 !important;
		position: relative !important;
		top: auto !important;
		max-height: none !important;
		overflow: visible !important;
		align-self: start;
		padding: 24px !important;
		box-sizing: border-box;
		border-width: 0;
	}

	body.idx-catalog-product div.product .woocommerce-tabs,
	body.idx-catalog-product div.product .related,
	body.idx-catalog-product div.product .upsells,
	body.idx-catalog-product div.product .woocommerce-tabs.wc-tabs-wrapper {
		grid-column: 1 / -1;
		width: 100%;
		max-width: none;
		float: none;
	}

	body.idx-catalog-product div.product .woocommerce-product-gallery__image img,
	body.idx-catalog-product div.product .woocommerce-product-gallery__image a img {
		width: 100%;
		height: auto;
		max-width: 100%;
	}
}

/* Tablet / phone: stacked, normal side padding (from the restored container), image capped and centered. */
@media (max-width: 1023px) {
	body.idx-catalog-product div.product {
		display: block;
		grid-template-columns: none;
		grid-template-rows: none;
		width: 100%;
	}

	body.idx-catalog-product div.product .woocommerce-product-gallery,
	body.idx-catalog-product div.product div.images {
		float: none !important;
		width: 100% !important;
		max-width: 420px !important;
		margin-left: auto !important;
		margin-right: auto !important;
	}

	body.idx-catalog-product div.product div.summary,
	body.idx-catalog-product div.product .summary,
	body.idx-catalog-product div.product div.summary.entry-summary {
		float: none !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		position: static !important;
		max-height: none !important;
		overflow: visible !important;
		padding: 24px !important;
		box-sizing: border-box;
		border-width: 0;
	}

	body.idx-catalog-product div.product .woocommerce-product-gallery__image img,
	body.idx-catalog-product div.product .woocommerce-product-gallery__image a img {
		width: 100%;
		height: auto;
		max-width: 100%;
	}
}

/* Summary card inset. Plaque's summary panel has no card (padding 0); the
   catalog summary still carries configurator card chrome, so give it 24px
   padding around title through the buy row. Title stays a normal heading
   (no navy bar). */
body.idx-catalog-product div.product div.summary,
body.idx-catalog-product div.product .summary,
body.idx-catalog-product div.product div.summary.entry-summary {
	padding: 24px !important;
	box-sizing: border-box;
}

/* Restore a readable title now that the summary is a real column, not a 296px app panel. */
body.idx-catalog-product div.product .summary .product_title {
	font-size: clamp(1.35rem, 2vw, 1.75rem);
}

/* ==========================================================================
   3. Sticky variation wrap (wp_web mu-plugin idx-summary-no-sticky.php)
   Theme 1.8.385 in configurator-brand.css pins .single_variation_wrap on
   desktop, covering Color/Size with the Decoration box. Under the catalog
   class, force it to scroll with the page. After 505 is live, wp_web can
   drop the mu-plugin (wp_web removes it — do not touch live from here).
   ========================================================================== */
@media (min-width: 1024px) {
	body.idx-catalog-product div.product .summary .single_variation_wrap {
		position: static !important;
		bottom: auto !important;
		z-index: auto !important;
		margin: 0 !important;
		padding: 0 !important;
		background: none !important;
	}
}

/* ==========================================================================
   4. Buy row: qty | Add to cart | Customize (hint below)
   Customize is printed by IDXPD (woocommerce_after_add_to_cart_button).
   Guests get .idxbvg-cta instead. CSS only — do not edit the plugin.
   ========================================================================== */
body.idx-catalog-product div.product .woocommerce-variation-add-to-cart,
body.idx-catalog-product div.product form.cart .woocommerce-variation-add-to-cart {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
	grid-template-columns: none;
}

/* Hat decoration / notes live inside this wrap; keep them full-width above the button row. */
body.idx-catalog-product div.product .woocommerce-variation-add-to-cart > * {
	flex: 1 0 100%;
	width: 100%;
	max-width: 100%;
}
body.idx-catalog-product div.product form.cart .woocommerce-variation-add-to-cart > .quantity {
	flex: 0 0 auto;
	width: auto;
}
body.idx-catalog-product div.product form.cart .woocommerce-variation-add-to-cart > .single_add_to_cart_button,
body.idx-catalog-product div.product form.cart .woocommerce-variation-add-to-cart > .idxpd-customize-button,
body.idx-catalog-product div.product form.cart .woocommerce-variation-add-to-cart > .idxbvg-cta {
	flex: 1 1 0;
	width: auto;
	max-width: none;
}



body.idx-catalog-product div.product form.cart .quantity,
body.idx-catalog-product div.product form.cart .quantity.idxcz-step {
	float: none !important;
	margin: 0 !important;
	flex: 0 0 auto;
	align-self: stretch;
	display: inline-flex;
	align-items: stretch;
}

body.idx-catalog-product div.product form.cart .single_add_to_cart_button,
body.idx-catalog-product div.product form.cart .idxpd-customize-button {
	float: none !important;
	clear: none !important;
	flex: 1 1 0;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	min-height: 44px;
	align-self: center;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

/* Keep existing Customize colors / disabled (is-locked) — only undo the plugin's clear:both + 100% flex. */
body.idx-catalog-product div.product form.cart .idxpd-customize-button {
	flex-basis: 0;
}

/* Guest "Sign in … to use the builder" sits in the Customize slot. */
body.idx-catalog-product div.product form.cart .idxbvg-cta {
	flex: 1 1 0;
	clear: none !important;
	margin: 0 !important;
	width: auto;
	display: flex;
	align-items: stretch;
}
body.idx-catalog-product div.product form.cart .idxbvg-cta .idxbvg-signin-btn,
body.idx-catalog-product div.product form.cart .idxbvg-cta .button {
	width: 100%;
	min-height: 44px;
	margin: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	text-align: center;
}

/* Helper text ("Choose a decoration option to customize.") always below the row. */
body.idx-catalog-product div.product form.cart .idxpd-customize-hint,
body.idx-catalog-product div.product form.cart [data-idxpd-customize-hint] {
	flex: 1 0 100%;
	width: 100%;
	max-width: 100%;
	margin: 0.25rem 0 0;
	order: 10;
}

body.idx-catalog-product div.product form.cart .quantity.idxcz-step {
	min-height: 44px;
	height: 44px;
}

@media (max-width: 600px) {
	body.idx-catalog-product div.product form.cart .idxpd-customize-button,
	body.idx-catalog-product div.product form.cart .idxbvg-cta,
	body.idx-catalog-product div.product form.cart .woocommerce-variation-add-to-cart > .idxpd-customize-button,
	body.idx-catalog-product div.product form.cart .woocommerce-variation-add-to-cart > .idxbvg-cta {
		flex: 1 0 100% !important;
		width: 100% !important;
		max-width: 100% !important;
		order: 5;
	}
}
