/* Mercado Pago Secure Fields Styling */
#credit-card-form {
    background: linear-gradient(135deg, #f5e9d9 0%, #e8dcc0 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#credit-card-form h3 {
    color: #8b4513;
    margin-top: 0;
    border-bottom: 2px solid #d4b78f;
    padding-bottom: 10px;
}

#credit-card-form label {
    font-weight: bold;
    color: #5a2800;
    display: block;
    margin-bottom: 5px;
}

#credit-card-form input,
#credit-card-form select {
    width: 100%;
    padding: 10px;
    border: 2px solid #d4b78f;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

#credit-card-form input:focus,
#credit-card-form select:focus {
    outline: none;
    border-color: #8b4513;
    box-shadow: 0 0 5px rgba(139, 69, 19, 0.3);
}

/* Secure Fields containers */
#form-checkout__cardNumber,
#form-checkout__expirationDate,
#form-checkout__securityCode {
    border: 2px solid #d4b78f;
    border-radius: 4px;
    padding: 2px;
    height: 40px;
    background: white;
    transition: border-color 0.3s ease;
}

#form-checkout__cardNumber:focus-within,
#form-checkout__expirationDate:focus-within,
#form-checkout__securityCode:focus-within {
    border-color: #8b4513;
    box-shadow: 0 0 5px rgba(139, 69, 19, 0.3);
}

/* Payment method option styling */
.payment-option {
    transition: transform 0.2s ease;
}

.payment-option:hover {
    transform: translateY(-2px);
}

.payment-option input[type="radio"]:checked + label {
    background-color: #e8dcc0;
    border-color: #8b4513;
}

/* Loading and error states */
.mp-loading {
    opacity: 0.6;
    pointer-events: none;
}

.mp-error {
    border-color: #dc3545 !important;
    background-color: #fff5f5;
}

.mp-success {
    border-color: #28a745 !important;
    background-color: #f0fff4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #credit-card-form {
        margin: 10px 0;
        padding: 15px;
    }
    
    #credit-card-form input,
    #credit-card-form select {
        padding: 8px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
}
