/* =====================================================
   STRIPE PAYMENT REQUEST BUTTON STYLES
   Apple Pay / Google Pay Native Integration
   ===================================================== */

/* Wallet Payment Container */
#taxi-wallet-payment {
    margin: 16px 0;
}

#stripe-payment-request-button {
    min-height: 48px;
    border-radius: 12px;
    overflow: hidden;
}

/* Loading state */
.wallet-loading {
    background: linear-gradient(135deg, #F3F4F6, #E5E7EB);
    border-radius: 12px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Fallback Card Payment Button */
.taxi-fallback-btn {
    background: linear-gradient(135deg, #1F2937, #111827) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.taxi-fallback-btn:hover {
    background: linear-gradient(135deg, #374151, #1F2937) !important;
}

/* Payment Secure Note */
.payment-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.payment-secure-note i {
    color: #10B981;
}

/* Wallet Available Badge */
.wallet-available-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
    border: 1px solid #A7F3D0;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #065F46;
    margin-top: 8px;
}

/* Apple Pay Specific Styling */
.apple-pay-button {
    -webkit-appearance: -apple-pay-button;
    -apple-pay-button-type: plain;
    -apple-pay-button-style: black;
    height: 48px;
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
}

/* Google Pay Specific Styling */
.google-pay-button {
    height: 48px;
    width: 100%;
    border-radius: 12px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.google-pay-button:hover {
    background: #1a1a1a;
}

/* Payment Method Selection Icons */
.payment-wallet-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 12px 0;
}

.payment-wallet-icon {
    width: 48px;
    height: 32px;
    border-radius: 6px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Processing State */
.payment-processing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    border-radius: 12px;
    text-align: center;
}

.payment-processing-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #DBEAFE;
    border-top-color: #3B82F6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.payment-processing-text {
    font-weight: 600;
    color: #1E40AF;
}

/* Success State */
.payment-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
    border-radius: 12px;
    text-align: center;
}

.payment-success-icon {
    font-size: 48px;
    color: #10B981;
}

.payment-success-text {
    font-weight: 600;
    color: #065F46;
}

/* Error State */
.payment-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: linear-gradient(135deg, #FEF2F2, #FECACA);
    border-radius: 12px;
    text-align: center;
}

.payment-error-icon {
    font-size: 48px;
    color: #EF4444;
}

.payment-error-text {
    font-weight: 600;
    color: #991B1B;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    #stripe-payment-request-button {
        min-height: 54px;
    }
    
    .taxi-fallback-btn {
        min-height: 54px;
        font-size: 16px;
    }
}