/*
 * After "Add to cart" / "Pre-order" on a product page: the Mini-Cart badge
 * pulses (class set by scroll.js). Animates `scale`, not `transform`:
 * WooCommerce positions the badge with transform: translateY(-50%), which a
 * transform animation would replace (the badge jumped to the middle of the
 * icon). `scale` combines with it, so the badge pulses where it sits.
 */
@keyframes axelle-cart-pulse {
	0%, 100% { scale: 1; }
	50% { scale: 1.35; }
}

.wc-block-mini-cart__button.is-pulsing .wc-block-mini-cart__badge {
	animation: axelle-cart-pulse 0.8s cubic-bezier(0.45, 0, 0.55, 1) 2;
}

/* Reduced motion: no pulse, a ring around the badge for the same time. */
@media (prefers-reduced-motion: reduce) {
	.wc-block-mini-cart__button.is-pulsing .wc-block-mini-cart__badge {
		animation: none;
		outline: 2px solid currentColor;
		outline-offset: 2px;
	}
}
