/**
 * RushPay Payment Widget Styles
 */

.rushpay-widget {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 500px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.rushpay-header {
    background: linear-gradient(135deg, #ff6b00 0%, #e65100 100%);
    color: white;
    padding: 24px;
    text-align: center;
}

.rushpay-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.rushpay-header h3 i {
    font-size: 28px;
}

.rushpay-logo {
    height: 28px;
    width: auto;
    vertical-align: middle;
    display: inline-block;
    margin-left: 8px;
}

.rushpay-body {
    padding: 32px;
}

.rushpay-step {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rushpay-form-group {
    margin-bottom: 24px;
}

.rushpay-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.rushpay-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.rushpay-input:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.rushpay-input:read-only {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.rushpay-otp-input {
    text-align: center;
    font-size: 24px;
    letter-spacing: 8px;
    font-weight: 600;
}

.rushpay-form-group small {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 12px;
}

.rushpay-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: block;
}

.rushpay-btn-primary {
    background: linear-gradient(135deg, #ff6b00 0%, #e65100 100%);
    color: white;
}

.rushpay-btn-primary:hover {
    background: linear-gradient(135deg, #e65100 0%, #bf360c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.rushpay-btn-primary:active {
    transform: translateY(0);
}

.rushpay-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.rushpay-btn-large {
    padding: 16px 24px;
    font-size: 18px;
}

.rushpay-btn-link {
    background: transparent;
    color: #ff6b00;
    margin-top: 12px;
    padding: 8px;
    font-size: 14px;
}

.rushpay-btn-link:hover {
    background: rgba(255, 107, 0, 0.1);
}

.rushpay-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.rushpay-alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.rushpay-alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.rushpay-alert-info {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #90caf9;
}

.rushpay-balance-display {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(230, 81, 0, 0.1) 100%);
    border: 2px solid rgba(255, 107, 0, 0.3);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
}

.rushpay-balance-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.rushpay-balance-amount {
    font-size: 32px;
    font-weight: 700;
    color: #ff6b00;
}

.rushpay-payment-summary {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.rushpay-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}

.rushpay-summary-amount {
    font-weight: 700;
    color: #333;
    font-size: 20px;
}

.rushpay-processing {
    text-align: center;
    padding: 40px 20px;
}

.rushpay-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6b00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.rushpay-processing p {
    color: #666;
    font-size: 16px;
}

.rushpay-success {
    text-align: center;
    padding: 40px 20px;
}

.rushpay-success-icon {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 20px;
}

.rushpay-success h3 {
    color: #333;
    margin-bottom: 12px;
}

.rushpay-success p {
    color: #666;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 600px) {
    .rushpay-widget {
        border-radius: 0;
        margin: 0;
    }

    .rushpay-body {
        padding: 24px 20px;
    }

    .rushpay-header {
        padding: 20px;
    }

    .rushpay-header h3 {
        font-size: 20px;
    }

    .rushpay-logo {
        height: 24px;
    }

    .rushpay-balance-amount {
        font-size: 28px;
    }
}

