/**
 * Cart / checkout mirror：與參考頁差異最小的修正（其餘交給鏡像 CSS 串 + cart-astra-inline-from-ref.css）。
 */

body.woocommerce-cart .woocommerce-cart-mirror-wrap img {
	height: auto;
	max-width: 100%;
}

body.woocommerce-cart #masthead {
	position: relative;
	z-index: 1000000 !important;
}

body.woocommerce-cart [data-simpdog-cart-overlay].sc-popover-overlay,
body.woocommerce-cart [data-simpdog-cart-drawer] {
	z-index: 1000020 !important;
}

/* Checkout mirror：與購物車相同 masthead / overlay 層級 */
body.woocommerce-checkout .woocommerce-checkout-mirror-wrap img {
	height: auto;
	max-width: 100%;
}

body.woocommerce-checkout #masthead {
	position: relative;
	z-index: 1000000 !important;
}

body.woocommerce-checkout [data-simpdog-cart-overlay].sc-popover-overlay,
body.woocommerce-checkout [data-simpdog-cart-drawer] {
	z-index: 1000020 !important;
}

body.woocommerce-checkout #primary,
body.woocommerce-checkout .entry-content {
	position: relative;
	z-index: 2;
}

body.woocommerce-checkout .simpdog-checkout-breadcrumbs,
body.woocommerce-checkout .ast-breadcrumbs-wrapper {
	position: relative;
	z-index: 30;
	pointer-events: auto;
}

body.woocommerce-checkout .simpdog-checkout-breadcrumbs a,
body.woocommerce-checkout .ast-breadcrumbs-wrapper .trail-items a {
	pointer-events: auto;
	cursor: pointer;
}
