/* LifeCore — single product AJAX add to cart (loaded on product pages only) */

.single-product form.cart .single_add_to_cart_button { position: relative; transition: opacity .2s ease; }

.single-product form.cart .single_add_to_cart_button.loading {
	opacity: .75;
	cursor: progress;
	padding-inline-end: 44px !important;
}
.single-product form.cart .single_add_to_cart_button.loading::after {
	content: "" !important;
	position: absolute;
	top: 50%;
	inset-inline-end: 16px;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border: 2px solid currentColor;
	border-inline-end-color: transparent;
	border-radius: 50%;
	font-family: inherit !important;
	animation: lc-spin .7s linear infinite;
}
.single-product form.cart .single_add_to_cart_button.added::after {
	content: "\2713" !important;   /* ✓ */
	font-family: inherit !important;
	margin-inline-start: 8px;
}

/* The success notice already contains "View cart" → hide WooCommerce's extra inline link */
.single-product form.cart .added_to_cart { display: none; }

.lc-atc-notices:empty { display: none; }
.lc-atc-notices { margin-bottom: 16px; }
.lc-atc-notices .woocommerce-message,
.lc-atc-notices .woocommerce-error,
.lc-atc-notices .woocommerce-info { margin: 0; border-radius: 5px; }

@keyframes lc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.single-product form.cart .single_add_to_cart_button.loading::after { animation-duration: 2s; }
}
