/* ============================================================
   Email OTP for WooCommerce — Public/Frontend Styles
   ============================================================ */

/* OTP digit boxes */
.eotpwc-digits {
    display: flex;
    gap: 8px;
    margin: 14px 0;
    justify-content: flex-start;
}
.eotpwc-digit {
    width: 48px !important;
    height: 54px !important;
    text-align: center;
    font-size: 22px !important;
    font-weight: 600;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    color: #4338ca !important;
    background: #fff !important;
    padding: 0 !important;
    transition: border-color .2s, box-shadow .2s;
    outline: none !important;
    box-shadow: none !important;
}
.eotpwc-digit:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,.15) !important;
    background: #f5f3ff !important;
}
.eotpwc-digit.filled {
    border-color: #4338ca !important;
    background: #eff6ff !important;
}

/* Timer */
.eotpwc-timer-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
}
.eotpwc-timer {
    font-weight: 600;
    color: #4338ca;
}
.eotpwc-timer.expired { color: #dc2626; }

/* Resend button */
.eotpwc-resend-wrap { margin-top: 8px; }
.eotpwc-resend-btn {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 7px 16px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    transition: all .2s;
}
.eotpwc-resend-btn:not([disabled]):hover {
    border-color: #6366f1;
    color: #4338ca;
    background: #eff6ff;
}
.eotpwc-resend-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Send OTP button on registration/my-account */
.eotpwc-send-btn {
    background: #4338ca;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s;
}
.eotpwc-send-btn:hover { background: #3730a3; color: #fff; }

/* OTP description text */
.eotpwc-desc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 14px;
}

/* Success/error flash messages */
.eotpwc-msg {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
}
.eotpwc-msg.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.eotpwc-msg.error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ── Forgot Password Flow ── */
.eotpwc-fp-wrap {
    max-width: 480px;
    margin: 0 auto;
}
.eotpwc-fp-desc {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}
.eotpwc-form .form-row {
    margin-bottom: 16px;
}
.eotpwc-otp-box {
    margin-bottom: 20px;
}
.eotpwc-back-link {
    margin-top: 14px;
    font-size: 13px;
}
.eotpwc-back-link a {
    color: #6366f1;
    text-decoration: none;
}
.eotpwc-resend-wrap {
    margin-top: 10px;
}
.eotpwc-resend-btn.button {
    background: transparent !important;
    border: 1px solid #ccc !important;
    color: #555 !important;
    font-size: 13px !important;
    padding: 6px 16px !important;
    cursor: pointer;
}
.eotpwc-resend-btn.button:not([disabled]):hover {
    border-color: #6366f1 !important;
    color: #4338ca !important;
}

/* ── Lost Password Page ── */
.eotpwc-lostpass-wrap {
    max-width: 500px;
    margin: 0 auto;
    padding: 10px 0 30px;
}
.eotpwc-step-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}
.eotpwc-step-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.7;
}
.eotpwc-digits-wrap {
    margin: 16px 0 10px;
}
.eotpwc-back-link {
    margin-top: 16px;
    font-size: 13px;
}
.eotpwc-back-link a {
    color: #4338ca;
    text-decoration: none;
}
.eotpwc-back-link a:hover { text-decoration: underline; }

.eotpwc-resend-wrap { margin-top: 12px; }
.eotpwc-resend-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 7px 16px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all .2s;
}
.eotpwc-resend-btn:not([disabled]):hover {
    border-color: #4338ca;
    color: #4338ca;
    background: #f0effc;
}
.eotpwc-resend-btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
}
