/* WooCommerce OTP Verification Styles */
#wc-otp-verification-section {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
}

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

#otp-verification-container {
    position: relative;
}

/* OTP Status Messages */
.otp-status {
    display: inline-block;
    margin-left: 10px;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: bold;
}

.otp-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.otp-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.otp-status.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Buttons */
#send-otp-btn,
#verify-otp-btn,
#resend-otp-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

#send-otp-btn:hover:not(:disabled),
#verify-otp-btn:hover:not(:disabled),
#resend-otp-btn:hover:not(:disabled) {
    background: #005a87;
}

#send-otp-btn:disabled,
#verify-otp-btn:disabled,
#resend-otp-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

#verify-otp-btn.verified {
    background: #28a745;
}

#verify-otp-btn.verified:hover {
    background: #218838;
}

/* OTP Input Field */
#otp_code {
    font-size: 18px;
    text-align: center;
    letter-spacing: 3px;
    font-weight: bold;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    width: 100%;
    max-width: 200px;
    transition: border-color 0.3s ease;
}

#otp_code:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

#otp_code:readonly {
    background-color: #e9ecef;
    border-color: #28a745;
}

/* Timer styling */
#resend-timer {
    color: #666;
    font-size: 12px;
    margin-left: 5px;
}

/* Input section animation */
#otp-input-section {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    padding: 15px;
    margin-top: 15px;
}

/* Responsive design */
@media (max-width: 768px) {
    #wc-otp-verification-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    #send-otp-btn,
    #verify-otp-btn,
    #resend-otp-btn {
        width: 100%;
        margin-bottom: 10px;
        margin-left: 0 !important;
    }
    
    #otp_code {
        max-width: 100%;
    }
    
    .otp-status {
        margin-left: 0;
        margin-top: 10px;
        display: block;
    }
}

/* Loading state */
.otp-loading {
    position: relative;
}

.otp-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success checkmark animation */
.otp-success-check {
    color: #28a745;
    font-weight: bold;
}

/* Error shake animation */
@keyframes shake {
    0%, 20%, 40%, 60%, 80% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-3px);
    }
}

.otp-error-shake {
    animation: shake 0.5s ease-in-out;
}