/* BS-6428 / BS-6430: wallet buttons (Apple Pay / Google Pay / Link) above the card forms —
   booking checkout Pay in full, the extras-only checkout and the invoice pay page. Mounted by
   assets/js/checkout-wallets.js on every [data-crew-wallets] node. BS-7426: the PayPal adapter
   renders one .crew-checkout-wallets__button per wallet (PayPal, Venmo, Apple Pay, Google Pay). */
.crew-checkout-wallets {
    margin-bottom: 24px;
}
.crew-checkout-wallets[hidden] {
    display: none;
}
.crew-checkout-wallets.is-pending {
    height: 0;
    margin: 0;
    overflow: hidden;
}
.crew-checkout-wallets.is-disabled .crew-checkout-wallets__mount {
    opacity: .5;
    pointer-events: none;
}
.crew-checkout-wallets.is-busy .crew-checkout-wallets__mount {
    opacity: .5;
    pointer-events: none;
    cursor: progress;
}
/* BS-7423: a chosen payment plan charges a deposit; the wallets charge the amount due in full. */
.crew-checkout-wallets.is-plan {
    display: none;
}
/* BS-7423: Adyen renders one button per wallet (Apple Pay, Google Pay, PayPal), stacked. */
.crew-checkout-wallets__button {
    margin-bottom: 10px;
    min-height: 44px;
}
.crew-checkout-wallets__button:last-child {
    margin-bottom: 0;
}
.crew-checkout-wallets__button .adyen-checkout__applepay__button,
.crew-checkout-wallets__button .gpay-button {
    width: 100%;
}
.crew-checkout-wallets__action {
    margin: 16px 0;
}
.crew-checkout-wallets__action[hidden] {
    display: none;
}
.crew-checkout-wallets__hint {
    margin: 8px 0;
    font-size: 13px;
    color: var(--event-critical-color, #E74C3C);
}
/* BS-6431: the plan disclosure under the wallet buttons on a payment-plan deposit. */
.crew-checkout-wallets__plan {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--event-text-secondary-color, #6B7280);
}
.crew-checkout-wallets__plan[hidden] {
    display: none;
}
.crew-checkout-wallets__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--event-text-secondary-color, rgba(255, 255, 255, 0.6));
}
.crew-checkout-wallets__divider::before,
.crew-checkout-wallets__divider::after {
    content: "";
    flex: 1 1 auto;
    border-top: 1px solid var(--event-surface-border-color, #3a3a3a);
}

/* BS-7426: PayPal wallets — one row per button, full width, the Apple Pay button drawn by WebKit. */
.crew-checkout-wallets__button {
    width: 100%;
    min-height: 44px;
}
.crew-checkout-wallets__button + .crew-checkout-wallets__button {
    margin-top: 10px;
}
.crew-checkout-wallets__applepay {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    -webkit-appearance: -apple-pay-button;
    -apple-pay-button-type: book;
    -apple-pay-button-style: black;
}
/* BS-7838: a surface that takes a payment (the invoice pay page) does not say "Book"; Apple's
   button has no "pay" type, so it reads "Check out with Apple Pay". */
.crew-checkout-wallets--pay .crew-checkout-wallets__applepay,
.crew-checkout-wallets--pay .crew-wallet-btn--apple {
    -apple-pay-button-type: check-out;
}
.crew-checkout-wallets__button--google_pay > div,
.crew-checkout-wallets__button--google_pay button {
    width: 100%;
}

/* BS-7424: Braintree has no express element — one button per offered wallet (Apple Pay, Google Pay,
   PayPal, Venmo), rendered by the braintree adapter in checkout-wallets.js. A payment plan chosen
   in the card-vault form hides the row: a wallet pays the full amount now. */
.crew-checkout-wallets.is-plan-chosen {
    display: none;
}
.crew-wallet-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.crew-wallet-btn {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
}
.crew-wallet-btn--apple {
    height: 44px;
    -webkit-appearance: -apple-pay-button;
    -apple-pay-button-type: book;
    -apple-pay-button-style: black;
}
.crew-wallet-btn--google > * {
    width: 100%;
}
.crew-wallet-btn--paypal {
    min-height: 44px;
}
.crew-wallet-btn--venmo {
    background: #008CFF;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .2px;
}
.crew-wallet-btn--venmo:hover,
.crew-wallet-btn--venmo:focus-visible {
    background: #0074D4;
}
