/* Enhance only eligible EDD forms after their JS adapter is ready. Native EDD
 * purchase/checkout controls and the no-JS fallback remain plugin-owned. */
.f32-purchase-feedback :is(button.edd-add-to-cart, .edd_go_to_checkout) {
	box-sizing: border-box;
	min-inline-size: var(--f32-purchase-width, 11em);
	text-align: center;
	transition: background-color 180ms ease, color 180ms ease;
}

/* EDD sets inline display during its animation; scope the override to the
 * enhanced form, where the confirmation lives inside the button instead. */
.f32-purchase-feedback .edd-cart-added-alert {
	display: none !important;
}

.f32-purchase-feedback button.edd-add-to-cart .edd-loading {
	display: none;
}

.f32-purchase-feedback button.edd-add-to-cart[data-edd-loading] .edd-add-to-cart-label {
	opacity: 1;
}

.f32-purchase-feedback .edd_go_to_checkout.is-confirming {
	background: var(--wp--preset--color--price);
	color: #14532d;
}

.f32-purchase-feedback__status {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.f32-purchase-feedback :is(button.edd-add-to-cart, .edd_go_to_checkout) {
		transition: none;
	}
}
