/**
 * استایل‌های احراز هویت PDF
 * Mobile Sticky Menu
 */

@media screen and (max-width: 768px) {
/* فرم احراز هویت */
.msm-pdf-auth {
    direction: rtl;
    margin-bottom: 16px;
}

/* مراحل */
.msm-pdf-auth__step {
    display: none;
}

.msm-pdf-auth__step.active {
    display: block;
    animation: msmFadeIn 0.3s ease;
}

/* فیلد */
.msm-pdf-auth__field {
    margin-bottom: 0;
	text-align: center;
}

.msm-pdf-auth__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--msm-text);
    margin-bottom: 8px;
}

/* اینپوت شماره موبایل */
.msm-pdf-auth__input {
    width: auto !important;
    padding: 12px 14px !important;
    font-size: 16px !important;
    border: 1.5px solid var(--msm-border) !important;
    border-radius: 12px !important;
    outline: none;
    transition: border-color 0.2s !important;
    box-sizing: border-box !important;
    text-align: center;
    letter-spacing: 2px;
    box-shadow: none !important;
}

.msm-pdf-auth__input:focus {
    border-color: var(--msm-primary);
}

/* باکس‌های کد تایید */
.msm-pdf-auth__code-boxes {
    display: flex;
    gap: 10px;
    justify-content: center;
    direction: ltr;
}

    .msm-pdf-auth__code-input {
        width: 52px !important;
        height: 52px !important;
        text-align: center;
        font-size: 22px !important;
        font-weight: 700;
        border: 1.5px solid var(--msm-border) !important;
        border-radius: 12px !important;
        outline: none;
        transition: border-color 0.2s, box-shadow 0.2s !important;
        box-sizing: border-box !important;
        -moz-appearance: textfield !important;
        appearance: textfield !important;
        box-shadow: none !important;
    }

.msm-pdf-auth__code-input::-webkit-outer-spin-button,
.msm-pdf-auth__code-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.msm-pdf-auth__code-input:focus {
    border-color: var(--msm-primary);
    box-shadow: 0 0 0 3px rgba(92, 175, 33, 0.15);
}

/* پیام خطا */
.msm-pdf-auth__error {
    color: #E53935;
    font-size: 13px;
    margin: 6px 0 0;
    min-height: 18px;
}

/* دکمه */
.msm-pdf-auth__btn {
    position: relative;
    width: auto;
    margin: 0 auto;
    display: block;
    padding: 3px 15px;
}

.msm-pdf-auth__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* لودینگ */
.msm-pdf-auth__btn.loading {
    color: transparent;
    pointer-events: none;
}

.msm-pdf-auth__btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: msmSpin 0.6s linear infinite;
}

@keyframes msmSpin {
    to { transform: rotate(360deg); }
}

/* تایمر و ارسال مجدد */
.msm-pdf-auth__timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--msm-text-light);
}

.msm-pdf-auth__resend {
        background: none;
        border: none;
        color: var(--msm-primary) !important;
        font-size: 13px;
        padding: 0;
        font-weight: normal;
        margin: 0;
    }

.msm-pdf-auth__resend:disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

/* پیام موفقیت */
.msm-pdf-auth__success {
    text-align: center;
    color: var(--msm-primary);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 0;
}

/* نمایش شماره موبایل + دکمه ویرایش */
.msm-pdf-auth__phone-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    direction: ltr;
}

.msm-pdf-auth__phone-number {
    font-size: 15px;
    font-weight: 600;
    color: var(--msm-text);
    letter-spacing: 1px;
}

.msm-pdf-auth__phone-edit {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--msm-primary);
    padding: 4px;
    line-height: 1;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.msm-pdf-auth__phone-edit:hover {
    color: #4e9a1c;
}
}