/* بله‌شاپ — ویجت ورود OTP
 * نسخهٔ ۲ — بازطراحی با حفظ تمام id/class/قراردادها.
 * رنگ‌ها ثابت سبز بله #0D9165 (مستقل از تم پنل — این ویجت روی صفحات ووکامرس است).
 */

.bls-otp-box{
        background:linear-gradient(180deg,#FBFDFC,#F3F9F6);
        border:1px solid #DDEAE2;
        border-radius:16px;
        padding:22px;
        margin-bottom:20px;
        direction:rtl;
        font-family:'Estedad','Vazirmatn',Tahoma,sans-serif;
        box-shadow:0 1px 2px rgba(15,27,22,.04), 0 4px 16px rgba(15,27,22,.05);
        position:relative;
        overflow:hidden;
}
.bls-otp-box::before{
        content:'';
        position:absolute;
        top:-30px;left:-30px;
        width:100px;height:100px;
        border-radius:50%;
        background:rgba(13,145,101,.06);
        pointer-events:none;
}

.bls-otp-head{
        display:flex;justify-content:space-between;align-items:center;
        cursor:pointer;
        position:relative;
}
.bls-otp-head strong{
        font-size:15px;font-weight:800;
        display:flex;align-items:center;gap:8px;
}
.bls-otp-head strong::before{
        content:'🔐';
        font-size:18px;
}
.bls-otp-toggle{
        color:#0D9165;
        font-size:12.5px;font-weight:700;
        transition:opacity .15s ease;
}
.bls-otp-toggle:hover{opacity:.7;}

#blsOtpBody{margin-top:18px;}
#blsOtpBody.bls-otp-collapsed{display:none;}

/* ═══════════════════════════════════════════════════════════
   تب‌ها
   ═══════════════════════════════════════════════════════════ */
.bls-otp-tabs{
        display:flex;gap:4px;
        margin-bottom:18px;
        background:#EEF2F4;
        padding:4px;
        border-radius:12px;
}
.bls-otp-tab{
        flex:1;
        padding:10px;
        border:0;background:transparent;
        color:#5B6B66;
        border-radius:9px;
        cursor:pointer;
        font-size:12.5px;font-weight:700;font-family:inherit;
        transition:all .18s ease;
}
.bls-otp-tab.active{
        background:#fff;
        color:#095C42;
        box-shadow:0 1px 3px rgba(15,27,22,.1);
}

/* ═══════════════════════════════════════════════════════════
   راهنما و دکمه‌ها
   ═══════════════════════════════════════════════════════════ */
.bls-otp-hint{
        font-size:12.5px;color:#5B6B66;
        margin:0 0 14px;line-height:1.7;
}

.bls-otp-primary-btn{
        display:inline-flex;align-items:center;justify-content:center;gap:8px;
        width:100%;text-align:center;
        background:#0D9165;color:#fff;
        border:none;padding:12px 16px;
        border-radius:11px;cursor:pointer;
        font-size:13px;font-weight:700;text-decoration:none;
        box-sizing:border-box;font-family:inherit;
        box-shadow:0 8px 24px rgba(13,145,101,.22);
        transition:background .15s ease,transform .1s ease;
}
.bls-otp-primary-btn:hover{background:#0A7350;}
.bls-otp-primary-btn:active{transform:translateY(1px);}

/* ═══════════════════════════════════════════════════════════
   جعبهٔ انتظار ورود با بله
   ═══════════════════════════════════════════════════════════ */
#blsOtpSessionBox{
        margin-top:14px;text-align:center;
        padding:18px;
        background:#fff;
        border:1.5px dashed #CDD5D2;
        border-radius:13px;
}
#blsOtpSessionBox p{
        font-size:12.5px;
        margin:0 0 12px;
        color:#5B6B66;
}
#blsOtpSessionWait{
        font-size:12.5px;color:#5B6B66;
        margin-top:14px;font-weight:700;
        display:flex;align-items:center;justify-content:center;gap:8px;
}
#blsOtpSessionWait::before{
        content:'';
        width:14px;height:14px;
        border:2px solid #0D9165;
        border-top-color:transparent;
        border-radius:50%;
        animation:blsOtpSpin .8s linear infinite;
}
@keyframes blsOtpSpin{to{transform:rotate(360deg);}}

/* ═══════════════════════════════════════════════════════════
   فیلدهای ورودی (مرحلهٔ شماره و کد)
   ═══════════════════════════════════════════════════════════ */
.bls-otp-step{display:flex;gap:8px;}
.bls-otp-step input{
        flex:1;
        padding:12px 14px;
        border:1.5px solid #CDD5D2;
        border-radius:11px;
        font-family:inherit;font-size:13px;
        background:#fff;
        transition:border-color .15s ease,box-shadow .15s ease;
}
.bls-otp-step input::placeholder{color:#8A958F;}
.bls-otp-step input:focus{
        outline:none;
        border-color:#0D9165;
        box-shadow:0 0 0 3px rgba(13,145,101,.12);
}
.bls-otp-step button{
        background:#0D9165;color:#fff;
        border:none;padding:12px 22px;
        border-radius:11px;cursor:pointer;
        font-size:13px;font-weight:700;font-family:inherit;
        white-space:nowrap;
        transition:background .15s ease,transform .1s ease;
        box-shadow:0 4px 12px rgba(13,145,101,.18);
}
.bls-otp-step button:hover{background:#0A7350;}
.bls-otp-step button:active{transform:translateY(1px);}
.bls-otp-step .bls-otp-verify-btn{
        background:#095C42;
        box-shadow:0 4px 12px rgba(9,92,66,.22);
}
.bls-otp-step .bls-otp-verify-btn:hover{background:#084A37;}

/* ═══════════════════════════════════════════════════════════
   پیام‌ها
   ═══════════════════════════════════════════════════════════ */
.bls-otp-message{
        font-size:12.5px;
        margin-top:14px;
        min-height:18px;
        font-weight:700;
        display:flex;align-items:center;gap:6px;
}
.bls-otp-message.ok{color:#0A8D74;}
.bls-otp-message.err{color:#B3261E;}

/* ═══════════════════════════════════════════════════════════
   اسپینر (در پیام‌های «در حال...»)
   ═══════════════════════════════════════════════════════════ */
.bls-otp-spinner{
        display:inline-block;
        width:14px;height:14px;
        border:2px solid #0D9165;
        border-top-color:transparent;
        border-radius:50%;
        animation:blsOtpSpin2 .8s linear infinite;
        vertical-align:middle;
}
@keyframes blsOtpSpin2{to{transform:rotate(360deg);}}

/* ═══════════════════════════════════════════════════════════
   موبایل
   ═══════════════════════════════════════════════════════════ */
@media (max-width:480px){
        .bls-otp-box{padding:16px;}
        .bls-otp-step{flex-direction:column;}
        .bls-otp-step button{width:100%;}
}
