/* Payment UI Styles */

.payment-section {
    margin: 24px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.payment-section h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-section h4 i {
    color: #ff6b35;
}

.payment-info {
    background: white;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.payment-row:last-child {
    margin-bottom: 0;
}

.payment-row.payment-total {
    padding-top: 12px;
    border-top: 2px solid #e0e0e0;
    margin-top: 8px;
}

.payment-label {
    color: #666;
    font-size: 14px;
}

.payment-value {
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.payment-value.total {
    color: #ff6b35;
    font-size: 20px;
}

.payment-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 12px;
}

.payment-notice i {
    margin-top: 2px;
    flex-shrink: 0;
}

.payment-notice.info {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    color: #1565c0;
}

.payment-notice.info i {
    color: #1976d2;
}

.payment-notice.warning {
    background: #fff3e0;
    border: 1px solid #ffb74d;
    color: #e65100;
}

.payment-notice.warning i {
    color: #f57c00;
}

.payment-notice.authorization {
    background: #f3e5f5;
    border: 1px solid #ba68c8;
    color: #6a1b9a;
}

.payment-notice.authorization i {
    color: #8e24aa;
}

.payment-notice.captured {
    background: #e8f5e9;
    border: 1px solid #66bb6a;
    color: #2e7d32;
}

.payment-notice.captured i {
    color: #388e3c;
}

.payment-confirmation {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 6px;
}

.payment-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3e5f5;
    border-radius: 50%;
    flex-shrink: 0;
}

.payment-icon i {
    color: #8e24aa;
    font-size: 20px;
}

.payment-details {
    flex: 1;
}

.payment-amount {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.payment-message {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.payment-method-required {
    background: #fff3e0;
    border: 1px solid #ffb74d;
    padding: 16px;
    border-radius: 6px;
    text-align: center;
}

.payment-method-required i {
    font-size: 32px;
    color: #f57c00;
    margin-bottom: 12px;
}

.payment-method-required h4 {
    margin: 0 0 8px 0;
    color: #e65100;
    font-size: 16px;
}

.payment-method-required p {
    margin: 0 0 16px 0;
    color: #666;
    font-size: 14px;
}

.payment-summary {
    background: white;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.payment-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.payment-summary-row.total {
    border-top: 2px solid #e0e0e0;
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 600;
    font-size: 18px;
}

.payment-breakdown {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e0e0e0;
}

.payment-breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

/* Loading state for payment authorization */
.payment-authorizing {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: white;
    border-radius: 6px;
}

.payment-authorizing i {
    color: #ff6b35;
    margin-right: 12px;
    font-size: 20px;
}

.payment-authorizing span {
    color: #666;
    font-size: 14px;
}

/* Payment status badge */
.payment-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-status.authorized {
    background: #f3e5f5;
    color: #8e24aa;
}

.payment-status.captured {
    background: #e8f5e9;
    color: #388e3c;
}

.payment-status.cancelled {
    background: #f5f5f5;
    color: #757575;
}

.payment-status.failed {
    background: #ffebee;
    color: #c62828;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .payment-confirmation {
        flex-direction: column;
        text-align: center;
    }
    
    .payment-icon {
        margin: 0 auto;
    }
    
    .payment-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .payment-value.total {
        font-size: 18px;
    }
}

/* Payment Method Selection */
.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.payment-method-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-method-option:hover {
    border-color: #ff6b35;
    background: #fff5f2;
}

.payment-method-option.selected {
    border-color: #ff6b35;
    background: #fff5f2;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.payment-method-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.payment-method-option.selected .payment-method-radio {
    border-color: #ff6b35;
}

.payment-method-option.selected .payment-method-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #ff6b35;
    border-radius: 50%;
}

.payment-method-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-method-brand {
    font-size: 24px;
    color: #666;
}

.payment-method-brand i {
    width: 32px;
    text-align: center;
}

.payment-method-details {
    flex: 1;
}

.payment-method-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.payment-method-default {
    background: #4caf50;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-method-number {
    font-size: 14px;
    color: #666;
}

.payment-method-expiry {
    font-size: 12px;
    color: #999;
}

.loading-payment-methods,
.no-payment-methods,
.payment-methods-error {
    padding: 16px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 6px;
    color: #666;
    font-size: 14px;
}

.no-payment-methods {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffb74d;
}

.payment-methods-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.btn-add-payment {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
}

.btn-add-payment i {
    font-size: 12px;
}

/* Add Payment Method Modal */
.add-payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.add-payment-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.add-payment-header {
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.add-payment-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.add-payment-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.add-payment-close:hover {
    background: #f5f5f5;
    color: #333;
}

.add-payment-body {
    padding: 24px;
}

.stripe-element-container {
    margin-bottom: 16px;
}

#card-element {
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
}

#card-element.StripeElement--focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

#card-element.StripeElement--invalid {
    border-color: #ef5350;
}

#card-errors {
    color: #c62828;
    font-size: 13px;
    margin-top: 8px;
    min-height: 20px;
}

.add-payment-footer {
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.add-payment-footer button {
    min-width: 100px;
}

