/* ==========================================================================
   1.8.482 — Engrave-pricing product pages (body.idx-engrave-product).

   When Chamevo is also assigned, product-customizer.css's two-column
   body.chamevo-product grid and the idx-configurator PRICE chrome still
   apply even after the designer is hidden. These rules are scoped to
   body.idx-engrave-product, use high-specificity selectors, and do not
   rely on load order. Real Chamevo designer products (no idx-engrave-product)
   are untouched.
   ========================================================================== */

/* ---- 1. Keep the Chamevo canvas hidden; the Woo gallery is the image. ---- */
body.idx-engrave-product .cha-product-designer-wrapper,
body.idx-engrave-product #cha-start-customizing-button,
body.idx-engrave-product #cha-product-designer,
body.idx-engrave-product cv-customizer {
	display: none !important;
}

/* ---- 2. Undo the customizer two-column app grid (empty left column). ----
   Match a normal Woo single product: gallery left, summary right. */
body.idx-engrave-product.chamevo-product .shop-hero {
	display: block !important;
}
body.idx-engrave-product.chamevo-product #shop-content.section {
	background-image: none !important;
	background-color: transparent !important;
}

body.idx-engrave-product.chamevo-product div.product,
body.idx-engrave-product.idx-configurator div.product {
	display: block !important;
	grid-template-columns: none !important;
	grid-template-rows: none !important;
	gap: 0 !important;
}

body.idx-engrave-product.chamevo-product div.product .woocommerce-product-gallery,
body.idx-engrave-product.chamevo-product div.product div.images,
body.idx-engrave-product.idx-configurator div.product .woocommerce-product-gallery,
body.idx-engrave-product.idx-configurator div.product div.images {
	display: block !important;
	float: left !important;
	width: 48% !important;
	max-width: none !important;
	margin: 0 0 2rem !important;
	padding: 0 !important;
	grid-column: auto !important;
	grid-row: auto !important;
	position: relative !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	overflow: visible !important;
}

body.idx-engrave-product.chamevo-product div.product div.summary.entry-summary,
body.idx-engrave-product.idx-configurator div.product div.summary.entry-summary,
body.admin-bar.idx-engrave-product.chamevo-product div.product div.summary.entry-summary,
body.admin-bar.idx-engrave-product.idx-configurator div.product div.summary.entry-summary {
	display: block !important;
	float: right !important;
	width: 48% !important;
	max-width: none !important;
	margin: 0 0 2rem !important;
	padding: 0 !important;
	position: static !important;
	top: auto !important;
	grid-column: auto !important;
	grid-row: auto !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	gap: 0 !important;
}

body.idx-engrave-product.chamevo-product div.product > .woocommerce-tabs,
body.idx-engrave-product.chamevo-product div.product > .related,
body.idx-engrave-product.chamevo-product div.product > .upsells,
body.idx-engrave-product.chamevo-product div.product > section {
	float: none !important;
	width: 100% !important;
	clear: both !important;
	grid-column: auto !important;
}

/* Title: normal product heading, not the navy configurator strip. */
body.idx-engrave-product.chamevo-product div.product .summary .product_title,
body.idx-engrave-product.idx-configurator div.product .summary .product_title {
	position: static !important;
	margin: 0 0 .6rem !important;
	padding: 0 !important;
	background: transparent !important;
	color: #0f143a !important;
	border: 0 !important;
	border-radius: 0 !important;
	font-size: clamp(1.35rem, 2.2vw, 1.85rem) !important;
	line-height: 1.2 !important;
	box-shadow: none !important;
}
body.idx-engrave-product.chamevo-product div.product .summary .product_title::after,
body.idx-engrave-product.idx-configurator div.product .summary .product_title::after {
	content: none !important;
	display: none !important;
}

/* ---- 3. Kill the navy "PRICE" header; use a normal Woo price. ---- */
body.idx-engrave-product.chamevo-product div.product .summary > p.price,
body.idx-engrave-product.chamevo-product div.product .summary .woocommerce-variation-price .price,
body.idx-engrave-product.idx-configurator div.product .summary > p.price,
body.idx-engrave-product.idx-configurator div.product .summary .woocommerce-variation-price .price {
	display: block !important;
	margin: 0 0 1rem !important;
	padding: 0 !important;
	background: transparent !important;
	color: #0f143a !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-size: 1.25rem !important;
	font-weight: 600 !important;
	font-family: inherit !important;
}
body.idx-engrave-product.chamevo-product div.product .summary > p.price::before,
body.idx-engrave-product.chamevo-product div.product .summary .woocommerce-variation-price .price::before,
body.idx-engrave-product.idx-configurator div.product .summary > p.price::before,
body.idx-engrave-product.idx-configurator div.product .summary .woocommerce-variation-price .price::before {
	content: none !important;
	display: none !important;
}
body.idx-engrave-product.chamevo-product div.product .summary .price .amount,
body.idx-engrave-product.chamevo-product div.product .summary .price bdi,
body.idx-engrave-product.idx-configurator div.product .summary .price .amount,
body.idx-engrave-product.idx-configurator div.product .summary .price bdi {
	color: #0f143a !important;
}

/* Add to cart: drop the customizer yellow button; leave the theme's navy. */
body.idx-engrave-product.chamevo-product div.product form.cart .single_add_to_cart_button,
body.idx-engrave-product.idx-configurator div.product form.cart .single_add_to_cart_button {
	background: #0f143a !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	filter: none !important;
	transform: none !important;
}
body.idx-engrave-product.chamevo-product div.product form.cart .single_add_to_cart_button:hover:not(.disabled):not([disabled]),
body.idx-engrave-product.idx-configurator div.product form.cart .single_add_to_cart_button:hover:not(.disabled):not([disabled]) {
	background: #0f143a !important;
	color: #F3C91A !important;
	filter: none !important;
	transform: none !important;
}

/* ---- 4. "Blank or engraved?" wraps; no ellipsis. ---- */
body.idx-engrave-product .idx-eo__title {
	white-space: normal !important;
	overflow: visible !important;
	text-overflow: clip !important;
	max-width: none !important;
}

/* ---- 5. Selected Engraved (or Blank) option: yellow on navy, always readable. ---- */
body.idx-engrave-product .idx-eo__choice input:checked + .idx-eo__face {
	background-color: #0f143a !important;
	background-image: linear-gradient(#0f143a, #0f143a) !important;
	background-size: 100% 100% !important;
	color: #F3C91A !important;
}
body.idx-engrave-product .idx-eo__choice input:checked + .idx-eo__face .idx-eo__name,
body.idx-engrave-product .idx-eo__choice input:checked + .idx-eo__face .idx-eo__price,
body.idx-engrave-product .idx-eo__choice input:checked + .idx-eo__face .idx-eo__price .woocommerce-Price-amount,
body.idx-engrave-product .idx-eo__choice input:checked + .idx-eo__face .idx-eo__price .amount,
body.idx-engrave-product .idx-eo__choice input:checked + .idx-eo__face .idx-eo__price bdi,
body.idx-engrave-product .idx-eo__choice input:checked + .idx-eo__face .idx-eo__price .woocommerce-Price-currencySymbol {
	color: #F3C91A !important;
	background: transparent !important;
}

@media (max-width: 768px) {
	body.idx-engrave-product.chamevo-product div.product .woocommerce-product-gallery,
	body.idx-engrave-product.chamevo-product div.product div.images,
	body.idx-engrave-product.chamevo-product div.product div.summary.entry-summary,
	body.idx-engrave-product.idx-configurator div.product .woocommerce-product-gallery,
	body.idx-engrave-product.idx-configurator div.product div.images,
	body.idx-engrave-product.idx-configurator div.product div.summary.entry-summary {
		float: none !important;
		width: 100% !important;
	}
}

/* --------------------------------------------------------------------------
   1.8.482 — IDXPD products (e.g. Rectangle Patches 3.5 x 2.5):
   logged-out visitors saw a leftover "✎ Log in to Customize" button
   (plugin class-frontend.php / class-patch.php::render_group_cta, which
   calls IDXPD_Frontend::render_customize_button() directly — not a hook
   we can remove without also dropping the helpful note). Hide only that
   small button for guests; keep the navy "Sign in or create an account
   to use the builder" gate (idx-builders-verified-gate). Logged-in
   visitors still see "Customize".
   -------------------------------------------------------------------------- */
body:not(.logged-in) button.idxpd-customize-button,
body:not(.logged-in) .idxpd-customize-button {
	display: none !important;
}
