/* Stripe Connect Payment Form Styles */

#wpbs-stripe-connect-payment-form {
    margin: 15px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #ddd;
}

#wpbs-stripe-connect-card-element {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

#wpbs-stripe-connect-card-element:focus-within {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

#wpbs-stripe-connect-card-errors {
    color: #dc3232;
    font-size: 14px;
    margin-top: 10px;
    padding: 10px;
    background: #ffeaea;
    border: 1px solid #dc3232;
    border-radius: 4px;
}

.wpbs-stripe-connect-loading {
    opacity: 0.6;
    pointer-events: none;
}

.wpbs-stripe-connect-processing {
    position: relative;
}

.wpbs-stripe-connect-processing::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #0073aa;
    border-top-color: transparent;
    border-radius: 50%;
    animation: wpbs-stripe-connect-spin 1s linear infinite;
}

@keyframes wpbs-stripe-connect-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Payment method selection styling */
.wpbs-payment-method-stripe_connect {
    border-left: 4px solid #635bff;
}

.wpbs-payment-method-stripe_connect .wpbs-payment-method-name {
    color: #635bff;
    font-weight: 600;
}

/* Responsive design */
@media (max-width: 768px) {
    #wpbs-stripe-connect-payment-form {
        padding: 15px;
        margin: 10px 0;
    }
    
    #wpbs-stripe-connect-card-element {
        padding: 10px;
    }
}

/* Integration with existing WPBS styles */
.wpbs-form .wpbs-stripe-connect-payment-form {
    margin-top: 20px;
}

.wpbs-form-row .wpbs-stripe-connect-payment-form {
    width: 100%;
}

/* Success states */
.wpbs-stripe-connect-success {
    color: #46b450;
    background: #f0f8f0;
    border-color: #46b450;
}

/* Error states */
.wpbs-stripe-connect-error {
    color: #dc3232;
    background: #ffeaea;
    border-color: #dc3232;
}