/*
Theme Name: Hello Elementor Child
Theme URI: https://ukcompounding.com/
Description: Child theme for Hello Elementor with custom site logic.
Author: UK Compounding
Template: hello-elementor
Version: 1.0.4
Text Domain: hello-elementor-child
*/

/* Out-of-stock add to cart buttons (loops, Elementor, Unlimited Elements). */
.ukc-oos-button,
button.ukc-oos-button,
.uc-button-addcart.ukc-oos-button,
.add_to_cart_button.out-of-stock,
.uc-button-addcart.out-of-stock,
.ajax_add_to_cart.out-of-stock,
button.uc-button-addcart.out-of-stock.disabled {
	background: #b5b5b5 !important;
	background-color: #b5b5b5 !important;
	background-image: none !important;
	border-color: #b5b5b5 !important;
	color: #ffffff !important;
	opacity: 1 !important;
	cursor: not-allowed !important;
	pointer-events: none !important;
	box-shadow: none !important;
}

.ukc-oos-button:hover,
button.ukc-oos-button:hover,
.uc-button-addcart.ukc-oos-button:hover,
.add_to_cart_button.out-of-stock:hover,
.uc-button-addcart.out-of-stock:hover {
	background: #b5b5b5 !important;
	background-color: #b5b5b5 !important;
	border-color: #b5b5b5 !important;
	color: #ffffff !important;
	opacity: 1 !important;
}

.ukc-oos-button .add-to-cart__loader,
.uc-button-addcart.ukc-oos-button .add-to-cart__loader {
	display: none !important;
}

.ukc-oos-button .stock.out-of-stock,
.uc-button-addcart.ukc-oos-button .stock.out-of-stock {
	margin: 0;
	padding: 0;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}

/*
 * Product page: sticky add-to-cart bar was full viewport height (100%)
 * with extreme z-index, blocking header cart clicks. Children default to
 * pointer-events:auto so we must disable all descendants except the bar content.
 */
body.single-product .elementor-location-header {
	position: relative;
	z-index: 2147483640 !important;
	isolation: isolate;
}

.elementor-728 .elementor-element.elementor-element-29fff54,
.elementor-728 .elementor-element.elementor-element-29fff54 .elementor-motion-effects-container,
.elementor-728 .elementor-element.elementor-element-29fff54 .elementor-motion-effects-layer {
	height: auto !important;
	min-height: 0 !important;
	max-height: 140px !important;
	--container-widget-height: auto !important;
	width: 100% !important;
	pointer-events: none !important;
}

.elementor-728 .elementor-element.elementor-element-29fff54 * {
	pointer-events: none !important;
}

.elementor-728 .elementor-element.elementor-element-29fff54 .e-con-inner,
.elementor-728 .elementor-element.elementor-element-29fff54 .e-con-inner * {
	pointer-events: auto !important;
}

/*
 * Elementor side cart: closed overlay is full-screen; disable pointer events when hidden.
 */
.elementor-widget-woocommerce-menu-cart:not(.elementor-menu-cart--shown) .elementor-menu-cart__container,
.elementor-widget-woocommerce-menu-cart:not(.elementor-menu-cart--shown) .elementor-menu-cart__main {
	pointer-events: none !important;
}

.elementor-widget-woocommerce-menu-cart.elementor-menu-cart--shown .elementor-menu-cart__container {
	pointer-events: auto !important;
}

.elementor-menu-cart__toggle_wrapper {
	position: relative !important;
	z-index: 2147483645 !important;
}

.elementor-menu-cart__toggle,
.elementor-menu-cart__toggle_button {
	position: relative !important;
	z-index: 2147483646 !important;
	pointer-events: auto !important;
	cursor: pointer !important;
}

/* Popups in DOM: hidden cart overlays must not block the page */
.elementor-location-popup:not(.elementor-active) .elementor-menu-cart__container {
	pointer-events: none !important;
	visibility: hidden !important;
}

