/*
 * Express wallets open their own abbreviated checkout and cannot collect the
 * per-participant waiver. This stylesheet is a provider-agnostic fallback;
 * server-side provider filters and order validation remain the primary guards.
 */
body.mim-event-payment-guard #wc-square-digital-wallet,
body.mim-event-payment-guard .wc-square-digital-wallet,
body.mim-event-payment-guard #wcpay-payment-request-wrapper,
body.mim-event-payment-guard .wcpay-payment-request-wrapper,
body.mim-event-payment-guard .wcpay-express-checkout-wrapper,
body.mim-event-payment-guard #wcpay-express-checkout-element,
body.mim-event-payment-guard #wc-stripe-payment-request-wrapper,
body.mim-event-payment-guard #wc-stripe-express-checkout-element,
body.mim-event-payment-guard .wc-stripe-express-checkout-element,
body.mim-event-payment-guard .ppcp-button-googlepay,
body.mim-event-payment-guard .ppcp-button-applepay,
body.mim-event-payment-guard .gpay-button,
body.mim-event-payment-guard .gpay-card-info-container,
body.mim-event-payment-guard [class*="ppcp-googlepay"],
body.mim-event-payment-guard [class*="ppcp-applepay"],
body.mim-event-payment-guard .wc-block-components-express-payment,
body.mim-event-payment-guard [id*="payment-request-button"],
body.mim-event-payment-guard [class*="payment-request-button"],
body.mim-event-payment-guard [id*="express-checkout"],
body.mim-event-payment-guard [class*="express-checkout"] {
    display: none !important;
}

/*
 * WooPayments Express Checkout submits through the Store API and cannot carry
 * the signed classic-checkout waiver payload. Hide that duplicate wallet only
 * for event checkouts; Square remains available below the waiver guard.
 */
body.mim-event-wallet-checkout .wcpay-express-checkout-wrapper,
body.mim-event-wallet-checkout #wcpay-express-checkout-element,
body.mim-event-wallet-checkout #wcpay-payment-request-wrapper,
body.mim-event-wallet-checkout .wcpay-payment-request-wrapper,
body.mim-event-wallet-checkout #wcpay-express-checkout-button-separator {
    display: none !important;
}

/*
 * On the full event checkout, Square's Apple Pay and Google Pay buttons remain
 * visible but cannot be used until every participant waiver is complete. The
 * PHP checkout validation remains authoritative if JavaScript is bypassed.
 */
body.mim-event-wallet-checkout.mim-event-wallet-locked #wc-square-digital-wallet,
body.mim-event-wallet-checkout.mim-event-wallet-locked .wc-square-digital-wallet,
body.mim-event-wallet-checkout.mim-event-wallet-locked .wc-square-wallet-buttons,
body.mim-event-wallet-checkout.mim-event-wallet-locked #wc-square-google-pay,
body.mim-event-wallet-checkout.mim-event-wallet-locked #apple-pay-button,
body.mim-event-wallet-checkout.mim-event-wallet-locked .ppcp-button-googlepay,
body.mim-event-wallet-checkout.mim-event-wallet-locked .ppcp-button-applepay,
body.mim-event-wallet-checkout.mim-event-wallet-locked .gpay-button,
body.mim-event-wallet-checkout.mim-event-wallet-locked .gpay-card-info-container,
body.mim-event-wallet-checkout.mim-event-wallet-locked [class*="ppcp-googlepay"],
body.mim-event-wallet-checkout.mim-event-wallet-locked [class*="ppcp-applepay"] {
    opacity: .42;
    pointer-events: none !important;
    filter: grayscale(.35);
}

.mim-wallet-unlock-notice {
    box-sizing: border-box;
    margin: 12px 0;
    padding: 11px 14px;
    border-left: 4px solid #c9961a;
    background: #fff8e6;
    color: #4b3a12;
    font-size: 14px;
    line-height: 1.45;
}
