/* global styles for paypal checkout */
@layer components {
    .payment-method-note {
        @apply rounded-md px-4 py-2 bg-gray-200 mb-4 w-full md:w-11/12;
        display: inline-block;
        font-weight: normal;
    }
}

#hyva-checkout-container {
    [id*="paypal-messages"] {
        @apply p-4 border border-gray-200 rounded-lg;
        display: inline-block;
        text-align: center;
    }

    [id*="payment-method-view"] > [id*="paypal-button-"] {
        @apply py-4;
    }
}

/*
 * While a PayPal Express payment is authorized the addresses are read-only, so the
 * "billing and shipping address are the same" toggle has nothing left to control.
 * The toggle is rendered by Hyva_Checkout, outside the block that marks the locked state,
 * which is why this is scoped through :has() rather than a descendant selector.
 */
#hyva-checkout-container:has([data-paypal-express-address-locked]) [wire\:target="billingAsShipping"] {
    display: none !important;
}
