/**
 * WooCommerce Email OTP Verification Styles
 *
 * @package WooEmailOTP
 */

/* ===== General OTP Section Styles ===== */
.weo-otp-section {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.weo-checkout-wrapper {
    margin: 25px 0;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.weo-checkout-wrapper h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.weo-checkout-info {
    color: #666;
    margin-bottom: 20px;
}

/* ===== OTP Input Field ===== */
.weo-otp-input {
    font-size: 24px !important;
    letter-spacing: 8px !important;
    text-align: center !important;
    font-weight: 600 !important;
    padding: 15px !important;
    border-radius: 8px !important;
    border: 2px solid #ddd !important;
    transition: all 0.3s ease !important;
}

.weo-otp-input:focus {
    border-color: #fbba52 !important;
    box-shadow: 0 0 0 3px rgba(251, 186, 82, 0.2) !important;
    outline: none !important;
}

/* ===== Buttons ===== */
.weo-send-btn,
.weo-verify-btn {
    background: linear-gradient(135deg, #fbba52 0%, #e5a544 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 30px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
}

.weo-send-btn:hover,
.weo-verify-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(251, 186, 82, 0.4) !important;
}

.weo-send-btn:disabled,
.weo-verify-btn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.weo-resend-btn {
    background: transparent !important;
    color: #fbba52 !important;
    border: 2px solid #fbba52 !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    margin-left: 10px !important;
    transition: all 0.3s ease !important;
}

.weo-resend-btn:hover:not(:disabled) {
    background: #fbba52 !important;
    color: #fff !important;
}

.weo-resend-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* ===== Messages ===== */
.weo-otp-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
}

.weo-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #28a745;
    color: #155724;
}

.weo-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #dc3545;
    color: #721c24;
}

/* ===== Verified Notice ===== */
.weo-verified-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #28a745;
    border-radius: 8px;
    color: #155724;
    font-weight: 600;
}

.weo-verified-notice .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #28a745;
}

/* ===== OTP Login Section ===== */
.weo-otp-login-section {
    margin-top: 30px;
}

.weo-divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
}

.weo-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.weo-divider span {
    position: relative;
    background: #fff;
    padding: 0 20px;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.weo-otp-login-form {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.weo-otp-login-form h4 {
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* ===== Responsive Styles ===== */
@media (max-width: 768px) {
    .weo-otp-input {
        font-size: 20px !important;
        letter-spacing: 5px !important;
    }

    .weo-send-btn,
    .weo-verify-btn {
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    .weo-resend-btn {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .weo-checkout-wrapper,
    .weo-otp-section {
        padding: 15px;
    }
}

/* ===== Animation ===== */
@keyframes weo-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.weo-shake {
    animation: weo-shake 0.5s ease;
}

@keyframes weo-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.weo-pulse {
    animation: weo-pulse 0.3s ease;
}
