/* OTP Verification Section Styling */
#otp-verification-section {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
}

#otp-verification-section h3 {
    margin-top: 0;
    color: #333;
}

#otp-verification-section input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 16px;
}

#otp-verification-section button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

#otp-verification-section button:hover {
    background: #005a87;
}

#otp-verification-section button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Message styling */
.woocommerce-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 10px;
    border-radius: 3px;
    margin: 10px 0;
}

.woocommerce-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px;
    border-radius: 3px;
    margin: 10px 0;
}

/* Custom billing fields styling */
#billing_username_field,
#billing_password_field,
#billing_retry_password_field {
    margin-bottom: 15px;
}

#billing_username,
#billing_password,
#billing_retry_password {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

/* Readonly fields styling for Keycloak data */
input[readonly] {
    background-color: #f5f5f5 !important;
    color: #666 !important;
    cursor: not-allowed !important;
    border: 1px solid #ddd !important;
}

input[readonly]:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Labels for Keycloak fields */
label:contains("(از Keycloak)") {
    color: #0073aa;
    font-weight: bold;
}

/* Hide password fields when target products not in cart */
body.no-target-products #billing_password_field,
body.no-target-products #billing_retry_password_field {
    display: none !important;
}

/* Responsive design */
@media (max-width: 768px) {
    #otp-verification-section {
        padding: 15px;
    }
    
    #otp-verification-section input,
    #billing_username,
    #billing_password,
    #billing_retry_password {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* End of CSS */