/* Suppresses WooCommerce Blocks' "no payment methods available" error while the gateways are still registering, and shows a neutral loading line in its place. Body class is added server-side and removed by checkout-payment-notice.js. */

body.wc-mli-awaiting-payment-methods .wc-block-checkout__no-payment-methods-notice {
    display: none !important;
}

.wc-mli-payment-loading {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    color: var(--global-palette5, #4a5568);
    font-weight: 500;
}

body.wc-mli-awaiting-payment-methods .wc-mli-payment-loading {
    display: flex;
}

.wc-mli-payment-loading__spinner {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(83, 143, 60, 0.25);
    border-top-color: var(--global-palette1, #538f3c);
    border-radius: 50%;
    animation: wc-mli-payment-loading-spin 0.8s linear infinite;
}

@keyframes wc-mli-payment-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wc-mli-payment-loading__spinner {
        animation-duration: 2s;
    }
}
