/*
 * Hold back the "no payment methods available" error while Stripe loads.
 * The class is removed by payment-notice.js as soon as a payment method is
 * available, or after a short timeout so genuine failures still show.
 */

.healio-payments-pending .wc-block-checkout__no-payment-methods-notice {
	display: none;
}

/* Keep the space reserved so the Place Order button does not jump. */
.healio-payments-pending .wp-block-woocommerce-checkout-payment-block::after {
	content: "";
	display: block;
	height: 84px;
	border-radius: 12px;
	background: linear-gradient(
		90deg,
		rgba(43, 10, 20, 0.05) 25%,
		rgba(43, 10, 20, 0.09) 37%,
		rgba(43, 10, 20, 0.05) 63%
	);
	background-size: 400% 100%;
	animation: healio-payments-shimmer 1.4s ease infinite;
}

@keyframes healio-payments-shimmer {
	0% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0 50%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.healio-payments-pending .wp-block-woocommerce-checkout-payment-block::after {
		animation: none;
	}
}
