/* ==============================================
   PAYMENT METHODS SHARED STYLES
   Shared UI components for checkout and bill pages
   Loading states, Retry logic, Payment method selector
   Note: Toast styles are in fluent.css - do not duplicate
   ============================================== */

/* ==============================================
   PAYMENT LOADING OVERLAY
   ============================================== */

.payment-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.payment-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.payment-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #22c55e;
    border-radius: 50%;
    animation: paymentSpin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes paymentSpin {
    to {
        transform: rotate(360deg);
    }
}

.payment-loading-text {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.payment-loading-subtext {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-top: 8px;
}

/* ==============================================
   PAYMENT METHOD SELECTOR
   ============================================== */

.payment-method-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.payment-method-option {
    flex: 1;
    min-width: 120px;
    position: relative;
}

.payment-method-option input[type="radio"] {
    display: none;
}

.payment-method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.payment-method-card:hover {
    border-color: #9ca3af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.payment-method-option input[type="radio"]:checked+.payment-method-card {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.2);
}

.payment-method-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #6b7280;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.payment-method-option input[type="radio"]:checked+.payment-method-card .payment-method-icon {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
}

.payment-method-name {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
}

.payment-method-desc {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

/* ==============================================
   RETRY BUTTON STYLES
   ============================================== */

.retry-action-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-size: 15px;
}

.retry-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.retry-action-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.retry-action-btn i {
    font-size: 16px;
}

.retry-attempt-counter {
    font-size: 13px;
    color: #6b7280;
    margin-top: 12px;
}

/* ==============================================
   PHONE NUMBER INPUT STYLES
   ============================================== */

.phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.phone-prefix {
    position: absolute;
    left: 16px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
    z-index: 1;
}

.phone-input-wrapper input {
    padding-left: 60px !important;
}

.phone-input-wrapper .phone-icon {
    position: absolute;
    right: 16px;
    color: #9ca3af;
    font-size: 18px;
    transition: color 0.2s;
}

.phone-input-wrapper.valid .phone-icon {
    color: #22c55e;
}

.phone-input-wrapper.invalid .phone-icon {
    color: #ef4444;
}

/* ==============================================
   MOBILE RESPONSIVE
   ============================================== */

@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .toast {
        padding: 14px 16px;
    }

    .payment-method-selector {
        flex-direction: column;
    }

    .payment-method-option {
        min-width: 100%;
    }

    .payment-method-card {
        flex-direction: row;
        padding: 16px;
        gap: 16px;
    }

    .payment-method-icon {
        margin-bottom: 0;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .payment-method-content {
        text-align: left;
    }
}