/**
 * WalletUp Pay express lane — button + method drawer.
 * Brand purple (#674FBF) is passed in as --wup-pay-brand so it can follow the
 * merchant's configured colour later without touching this file.
 */

.wallet-up-pay-button {
    --wup-pay-brand: #674FBF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    min-height: 48px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: var(--wup-pay-brand);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    cursor: pointer;
    transition: filter 120ms ease, transform 80ms ease;
}
.wallet-up-pay-button:hover { filter: brightness(1.06); }
.wallet-up-pay-button:active { transform: translateY(1px); }
.wallet-up-pay-button:disabled { opacity: 0.7; cursor: default; }
.wallet-up-pay-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(103, 79, 191, 0.35);
}
.wallet-up-pay-button__label { letter-spacing: 0.2px; }
.wallet-up-pay-button__tag { font-size: 11px; font-weight: 500; opacity: 0.85; }

/* Drawer overlay */
.wallet-up-pay-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(20, 16, 38, 0.45);
    animation: wup-pay-fade 140ms ease;
}
@keyframes wup-pay-fade { from { opacity: 0; } to { opacity: 1; } }

.wallet-up-pay-drawer {
    --wup-pay-brand: #674FBF;
    width: 100%;
    max-width: 460px;
    margin: 0 12px 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 18px 18px 26px;
    box-shadow: 0 -8px 40px rgba(20, 16, 38, 0.25);
    animation: wup-pay-slide 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes wup-pay-slide { from { transform: translateY(24px); opacity: 0.6; } to { transform: translateY(0); opacity: 1; } }

@media (min-width: 600px) {
    .wallet-up-pay-drawer-overlay { align-items: center; }
    .wallet-up-pay-drawer { border-radius: 16px; margin: 0; }
}

.wallet-up-pay-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.wallet-up-pay-drawer__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--wup-pay-brand);
}
.wallet-up-pay-drawer__close {
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
}
.wallet-up-pay-drawer__close:hover { background: #f3f4f6; color: #111827; }
.wallet-up-pay-drawer__hint {
    margin: 6px 0 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #6b7280;
}
.wallet-up-pay-drawer__empty { color: #6b7280; padding: 18px 0; text-align: center; }

.wallet-up-pay-tiles { display: flex; flex-direction: column; gap: 10px; }

.wallet-up-pay-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color 120ms ease, background 120ms ease, transform 80ms ease;
}
.wallet-up-pay-tile:hover {
    border-color: var(--wup-pay-brand);
    background: rgba(103, 79, 191, 0.04);
}
.wallet-up-pay-tile:active { transform: scale(0.99); }
.wallet-up-pay-tile:focus-visible {
    outline: none;
    border-color: var(--wup-pay-brand);
    box-shadow: 0 0 0 3px rgba(103, 79, 191, 0.25);
}
.wallet-up-pay-tile__icon { width: 32px; height: 32px; object-fit: contain; flex: 0 0 auto; }
.wallet-up-pay-tile__name { flex: 1 1 auto; font-size: 15px; font-weight: 600; color: #1f2937; }
.wallet-up-pay-tile__go { font-size: 22px; color: var(--wup-pay-brand); line-height: 1; }
