/**
 * RZ Custom Product Design Layout - Frontend Styles & Theme Isolation
 *
 * Ensures that WooCommerce and theme-level global styles (like image box-shadows,
 * unnatural margins, or borders) do not pollute Gutenberg or Elementor custom layouts.
 *
 * @package RZ\CustomProductDesignLayout
 */

.rz-product-custom-layout {
	width: 100%;
	position: relative;
	box-sizing: border-box;
	clear: both;
}

/* Reset theme/WooCommerce aggressive image box-shadows and borders inside custom layouts */
.woocommerce div.product .rz-product-custom-layout img,
.woocommerce .rz-product-custom-layout img,
.single-product .rz-product-custom-layout img,
.single-product .entry-content .rz-product-custom-layout img,
.rz-product-custom-layout img {
	box-shadow: none;
	border: 0;
	max-width: 100%;
	height: auto;
}

/* Allow Elementor explicit box-shadows or border-radius if intentionally configured by the user */
.rz-product-custom-layout .elementor-element.elementor-widget-image .elementor-image-box-shadow img,
.rz-product-custom-layout .elementor-element [class*="has-box-shadow"] img {
	box-shadow: inherit;
}

/* Prevent theme table borders from bleeding into custom block / Elementor tables */
.woocommerce div.product .rz-product-custom-layout table,
.single-product .rz-product-custom-layout table {
	border-collapse: collapse;
}

/* Hide empty auto-paragraphs created by theme filters */
.woocommerce div.product .rz-product-custom-layout p:empty,
.single-product .rz-product-custom-layout p:empty {
	display: none;
}

