/* Single product AJAX add to cart (Customizer opt-in): spinner while the request runs; the button keeps its content. */
form.cart .single_add_to_cart_button.ahura-atc-loading {
    cursor: progress;
    opacity: .75;
}

form.cart .single_add_to_cart_button.ahura-atc-loading::after {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-inline-start: .5em;
    vertical-align: -.15em;
    border: 2px solid currentColor;
    border-inline-end-color: transparent;
    border-radius: 50%;
    animation: ahura-atc-spin .7s linear infinite;
}

@keyframes ahura-atc-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    form.cart .single_add_to_cart_button.ahura-atc-loading::after {
        animation-duration: 2s;
    }
}
