/* Quantity + Add to cart retain their existing theme styling. Only wallets wrap. */
.single-product form.cart:not(.variations_form):has(> #awx-express-checkout-wrapper),
.single-product .woocommerce-variation-add-to-cart:has(> #awx-express-checkout-wrapper) {
    display: flex;
    flex-wrap: wrap !important;
    align-items: stretch;
}
.single-product form.cart #awx-express-checkout-wrapper,
.single-product form.cart #awx-express-checkout-button-separator {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.single-product form.cart #awx-express-checkout-button {
    display: flex;
    flex-flow: row nowrap !important;
    gap: 8px;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}
.single-product form.cart #awx-express-checkout-button > .awx-ec-button {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    margin: 0 !important;
}
.single-product form.cart #awx-express-checkout-button iframe,
.single-product form.cart #awx-express-checkout-button button,
.single-product form.cart #awx-express-checkout-button apple-pay-button {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* The theme assigns positive order to quantity/cart/Buy now on mobile. */
.single-product form.cart #awx-express-checkout-button-separator { order: 9; }
.single-product form.cart #awx-express-checkout-wrapper { order: 10; }

.single-product form.cart #awx-express-checkout-button-separator {
    margin: 0 !important;
    line-height: 1.4;
}
.single-product form.cart #awx-express-checkout-wrapper {
    padding-top: 0 !important;
}

/* The native Google Pay button uses 6px corners inside its iframe. Match its outer clipping edge. */
.single-product form.cart #awx-ec-google-pay-btn {
    border-radius: 6px;
    overflow: hidden;
    isolation: isolate;
}
.single-product form.cart #awx-ec-google-pay-btn iframe {
    display: block;
    border: 0;
    border-radius: 6px;
}
.single-product form.cart #awx-ec-google-pay-btn:focus-within {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
.single-product form.cart #awx-express-checkout-wrapper.mbmc-awx-invalid-selection { display: none !important; }
.single-product form.cart #awx-express-checkout-wrapper.mbmc-awx-variation-pending { pointer-events: none; }
