/* Cashfree Verification Checkout Styles */

.cashfree-verification-section {
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
}

.cashfree-verification-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.cashfree-verification-section p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

#cfvwc_verify_pan_btn,
#cfvwc_initiate_esign_btn {
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
}

#cfvwc_verify_pan_btn:hover,
#cfvwc_initiate_esign_btn:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

#cfvwc_verify_pan_btn:disabled,
#cfvwc_initiate_esign_btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#cfvwc_verify_pan_btn.verified,
#cfvwc_initiate_esign_btn.verified {
    background: #46b450;
}

#cfvwc_verify_pan_btn.verified:hover,
#cfvwc_initiate_esign_btn.verified:hover {
    background: #46b450;
    cursor: default;
    transform: none;
}

#cfvwc_verification_messages {
    margin: 15px 0;
    padding: 15px;
    border-radius: 4px;
    font-size: 14px;
}

#cfvwc_verification_messages.woocommerce-info {
    background: #e5f5fa;
    border-left: 4px solid #00a0d2;
    color: #00a0d2;
}

#cfvwc_verification_messages.woocommerce-message {
    background: #ecf7ed;
    border-left: 4px solid #46b450;
    color: #46b450;
}

#cfvwc_verification_messages.woocommerce-error {
    background: #f9e4e4;
    border-left: 4px solid #dc3232;
    color: #dc3232;
}

/* Input field styles */
#cashfree_verification_fields input[type="text"],
#cashfree_verification_fields input[type="tel"],
#cashfree_verification_fields input[type="date"] {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

#cashfree_verification_fields input[type="text"]:focus,
#cashfree_verification_fields input[type="tel"]:focus,
#cashfree_verification_fields input[type="date"]:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.2);
}

#cashfree_verification_fields input[readonly] {
    background-color: #f0f0f0;
    cursor: not-allowed;
}

/* Place order button disabled state */
#place_order.disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

/* Loading indicator */
.cfvwc-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: cfvwc-spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes cfvwc-spin {
    to { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .cashfree-verification-section {
        padding: 15px;
    }
    
    #cfvwc_verify_pan_btn,
    #cfvwc_initiate_esign_btn {
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* Admin order page styles */
.cashfree-verification-admin {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.cashfree-verification-admin h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.cashfree-verification-admin p {
    margin: 8px 0;
    line-height: 1.6;
}

.cashfree-verification-admin strong {
    color: #555;
    display: inline-block;
    min-width: 150px;
}
