/**
 * Wallet rows in the checkout payment method list.
 *
 * The rows themselves are WooCommerce's and the theme's; this file only styles
 * what lives inside a wallet's box and the one behaviour that follows from a
 * wallet being chosen: Place Order goes away, because the wallet button is the
 * action.
 */
.mwa-wallet-box {
    padding: 2px 0 0;
}

.mwa-wallet-desc {
    margin: 0 0 12px;
    font-size: 13px;
}

/* Both buttons are 40px tall and full width. Google Pay arrives as a
   cross-origin iframe whose button is a fixed 40px with rounded corners that
   nothing here can restyle; Apple Pay honours any height and meets it at 40px.
   Apple's height is set in the Collect.js config server-side, since Collect.js
   writes it as an inline custom property that beats a stylesheet. */
.mwa-wallet-button {
    height: 40px;
    min-height: 40px;
    border-radius: 0;
    overflow: hidden;
}

.mwa-wallet-button:empty {
    height: 0;
    min-height: 0;
}

.mwa-wallet-button apple-pay-button {
    display: block;
    width: 100%;
}

.mwa-wallet-button iframe.CollectJSGooglePayIFrame {
    display: block;
    border: 0;
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
}

.mwa-wallet-hint {
    margin: 10px 0 0;
    color: #767676;
    font-size: 12px;
}

/* The wallet button is the action while a wallet row is chosen. */
body.mwa-wallet-selected #place_order,
body.mwa-wallet-selected .woocommerce-checkout-payment .place-order {
    display: none !important;
}

/* Staged-rollout diagnostics. Only ever rendered for admins while visibility is
   "Admins only"; customers never see this element. */
.mwa-wallet-diag {
    margin: 12px 0 0;
    padding: 8px 10px;
    border: 1px dashed #b8b8b8;
    background: #fafafa;
    color: #555;
    font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace;
    white-space: pre-line;
}
