
.loading-icon {
    display: none;
}

/*
 * Wallet-gate: when Omniva is chosen but no parcel machine is picked, the
 * body carries .custom-omniva-wallet-gated. Force-hide every Stripe wallet
 * button variant via !important so late-mounted / re-mounted iframes stay
 * hidden regardless of when the plugin injects them.
 */
body.custom-omniva-wallet-gated #dokan-stripe-express-payment-request-wrapper,
body.custom-omniva-wallet-gated #dokan-stripe-express-payment-request-button-separator,
body.custom-omniva-wallet-gated #wc-stripe-payment-request-wrapper,
body.custom-omniva-wallet-gated #wc-stripe-payment-request-button-separator,
body.custom-omniva-wallet-gated .wc-stripe-payment-request-button-wrapper,
body.custom-omniva-wallet-gated #wc-stripe-express-checkout-element {
    display: none !important;
}

/*
 * Form-invalid gate: when required checkout fields aren't filled or terms
 * isn't accepted, block clicks into wallet buttons. Wallets pull billing
 * data from the wallet sheet but don't fill terms/etc, so without this the
 * buyer can complete a purchase without accepting the terms.
 */
body.custom-omniva-wallet-form-invalid #dokan-stripe-express-payment-request-wrapper,
body.custom-omniva-wallet-form-invalid #wc-stripe-payment-request-wrapper,
body.custom-omniva-wallet-form-invalid .wc-stripe-payment-request-button-wrapper,
body.custom-omniva-wallet-form-invalid #wc-stripe-express-checkout-element {
    opacity: 0.45 !important;
    pointer-events: none !important;
    position: relative !important;
}
body.custom-omniva-wallet-form-invalid #dokan-stripe-express-payment-request-wrapper::after,
body.custom-omniva-wallet-form-invalid #wc-stripe-payment-request-wrapper::after,
body.custom-omniva-wallet-form-invalid .wc-stripe-payment-request-button-wrapper::after {
    content: 'Aizpildiet obligātos laukus, lai izmantotu Google Pay / Apple Pay';
    display: block;
    text-align: center;
    font-size: 12px;
    color: #666;
    padding-top: 8px;
    pointer-events: none;
}