/* Native WooCommerce single-product integration. */
.single-product form.cart:not([data-ehcw-product-form]) .woocommerce-variation-price {
	display: none !important;
}

/* WooCommerce inserts this next to the button after added_to_cart. The drawer replaces it. */
.single-product a.added_to_cart.wc-forward,
.single-product form.cart a.added_to_cart.wc-forward,
.single-product form.cart + a.added_to_cart.wc-forward {
	display: none !important;
	visibility: hidden !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	pointer-events: none !important;
}

form.cart .single_add_to_cart_button.ehcw-native-enhanced {
	position: relative !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0 !important;
	overflow: hidden !important;
	isolation: isolate !important;
	transition: background-color .22s ease, border-color .22s ease, color .22s ease, transform .18s ease, box-shadow .22s ease !important;
}

/* v1.3.4 — force a single dark-green interaction color across every WooCommerce state. */
form.cart .single_add_to_cart_button.ehcw-native-enhanced:hover,
form.cart .single_add_to_cart_button.ehcw-native-enhanced:focus,
form.cart .single_add_to_cart_button.ehcw-native-enhanced:focus-visible,
form.cart .single_add_to_cart_button.ehcw-native-enhanced:active,
form.cart .single_add_to_cart_button.ehcw-native-enhanced.loading,
form.cart .single_add_to_cart_button.ehcw-native-enhanced.added,
form.cart .single_add_to_cart_button.ehcw-native-enhanced.ehcw-native-cart-success,
form.cart.ehcw-native-cart-loading .single_add_to_cart_button.ehcw-native-enhanced,
form.cart.ehcw-native-cart-loading .single_add_to_cart_button.ehcw-native-enhanced:hover,
form.cart.ehcw-native-cart-loading .single_add_to_cart_button.ehcw-native-enhanced:focus,
form.cart.ehcw-native-cart-loading .single_add_to_cart_button.ehcw-native-enhanced:active {
	background: #0F2E26 !important;
	background-color: #0F2E26 !important;
	border-color: #0F2E26 !important;
	color: #fff !important;
}

form.cart .single_add_to_cart_button.ehcw-native-enhanced:hover:not(:disabled),
form.cart .single_add_to_cart_button.ehcw-native-enhanced:focus-visible:not(:disabled) {
	transform: translateY(-1px) !important;
	box-shadow: 0 8px 22px rgba(15, 46, 38, .18) !important;
}

form.cart .single_add_to_cart_button.ehcw-native-enhanced:active:not(:disabled) {
	transform: translateY(0) scale(.98) !important;
	box-shadow: 0 3px 10px rgba(15, 46, 38, .16) !important;
}

form.cart.ehcw-native-cart-loading .single_add_to_cart_button.ehcw-native-enhanced {
	cursor: wait !important;
	pointer-events: none !important;
	transform: none !important;
	opacity: 1 !important;
}

/* Remove WooCommerce/theme loading and success pseudo icons completely. */
form.cart .single_add_to_cart_button.ehcw-native-enhanced::before,
form.cart .single_add_to_cart_button.ehcw-native-enhanced::after,
form.cart .single_add_to_cart_button.ehcw-native-enhanced.loading::before,
form.cart .single_add_to_cart_button.ehcw-native-enhanced.loading::after,
form.cart .single_add_to_cart_button.ehcw-native-enhanced.added::before,
form.cart .single_add_to_cart_button.ehcw-native-enhanced.added::after,
form.cart .single_add_to_cart_button.ehcw-native-enhanced.ehcw-native-cart-success::before,
form.cart .single_add_to_cart_button.ehcw-native-enhanced.ehcw-native-cart-success::after {
	content: none !important;
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	animation: none !important;
}

/* Loading is represented only by three animated dots replacing the button label. */
form.cart .single_add_to_cart_button.ehcw-native-enhanced .ehcw-native-loading-dots {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	direction: ltr !important;
	min-width: 46px !important;
	gap: 6px !important;
	font: inherit !important;
	font-size: 19px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	color: #fff !important;
}

form.cart .single_add_to_cart_button.ehcw-native-enhanced .ehcw-native-loading-dots > span {
	display: inline-block !important;
	animation: ehcw-native-dot 1s ease-in-out infinite !important;
}

form.cart .single_add_to_cart_button.ehcw-native-enhanced .ehcw-native-loading-dots > span:nth-child(2) {
	animation-delay: .14s !important;
}

form.cart .single_add_to_cart_button.ehcw-native-enhanced .ehcw-native-loading-dots > span:nth-child(3) {
	animation-delay: .28s !important;
}

form.cart .ehcw-native-cart-message {
	width: 100%;
	margin-top: 10px;
	font-size: 13px;
	line-height: 1.8;
}

form.cart .ehcw-native-cart-message.is-error {
	color: #b42318;
}

@keyframes ehcw-native-dot {
	0%, 60%, 100% { opacity: .35; transform: translateY(0); }
	30% { opacity: 1; transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
	form.cart .single_add_to_cart_button.ehcw-native-enhanced,
	form.cart .single_add_to_cart_button.ehcw-native-enhanced::before,
	form.cart .single_add_to_cart_button.ehcw-native-enhanced::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}
