/* موقعیت دهی کلی نوار شناور */
.mfsb-wrapper {
    /* دسکتاپ: چسبیده به چپ */
    position: fixed;
    left: 0; 
    top: 50%;
    transform: translateY(-50%);
    direction: ltr; /* برای درست کار کردن افکت کشویی در سمت چپ */
    z-index: 9999; 
}

/* ------------------------------------------- */
/* استایل دسکتاپ (فلوتینگ بار کناری) - چپ‌چین */
/* ------------------------------------------- */

.mfsb-wrapper .item_con {
    margin-bottom: 2px;
    clear: both;
}

/* استایل هر آیتم - حالت عادی */
.mfsb-wrapper .service_item.showLang {
    /* عرض اولیه که آیکون را نمایش می دهد */
    height: 60px;
    background: #1a1a2e;
    color: #fff;

    /* انیمیشن‌ها */
    width: auto;
    max-width: 60px;
    min-width: 60px;
    padding: 0 12px;
    transition: max-width 0.6s cubic-bezier(.2,.8,.2,1), padding 0.45s cubic-bezier(.2,.8,.2,1), background 0.45s ease;
    will-change: max-width, background;

    position: relative;
    cursor: pointer;
    text-decoration: none;

    /* آیکون را در سمت چپ نگه می دارد */
    display: flex;
    align-items: center;
    flex-direction: row; 
    overflow: hidden; 
}

/* جلوه هاور (Hover Effect) */
.mfsb-wrapper .service_item.showLang:hover,
.mfsb-wrapper .service_item.showLang:focus {
    /* باز شدن کامل آیتم */
    max-width: 400px; 
    min-width: 60px;
    padding: 0 16px;
}

/* استایل آیکون */
.mfsb-wrapper .service_icon {
    flex-shrink: 0; 
}

.mfsb-wrapper .service_icon .mfsb-icon {
    width: 30px;
    height: 30px;
    vertical-align: middle;
}

/* محتوای متنی - Service Value */
.mfsb-wrapper .service_value {
    /* فضای خالی بین آیکون و متن */
    margin-left: 12px;
    padding-right: 0px;
    text-align: left;
    
    /* افکت ورود از چپ */
    opacity: 0;
    transform: translateX(-10px); 
    transition: opacity 0.45s ease, transform 0.45s ease;
    
    display: flex;
    align-items: center;
    height: 100%;
}

.mfsb-wrapper .service_item.showLang:hover .service_value,
.mfsb-wrapper .service_item.showLang:focus .service_value {
    /* هنگام هاور یا فوکوس، متن دیده و به جای خود برمی‌گردد */
    opacity: 1;
    transform: translateX(0);
}

.mfsb-wrapper .service_value p {
    margin: 0;
    padding: 0px !important;
}

.mfsb-wrapper .service_value span {
    font-size: 14px;
    font-weight: bold;
}

a.service_item.showLang {
    margin-bottom: 2px;
}

/* ------------------------------------------- */
/* حالت موبایل: @media (max-width: 600px) */
/* **تنظیمات موبایل برای بازگشت به سمت راست** */
/* ------------------------------------------- */

@media (max-width: 600px) {
    /* مخفی کردن نوار شناور دسکتاپ */
    .mfsb-wrapper {
        display: none !important;
    }

    /* دکمه گرد موبایل (Mobile Button) */
    .mfsb-mobile-btn {
        position: fixed;
        right: 18px; /* ✨ تغییر کلیدی: بازگشت به right */
        left: unset; /* مطمئن می‌شویم left اعمال نشود */
        bottom: 18px;
        /* ابعاد */
        width: 60px; 
        height: 60px;
        /* رنگ */
        background: #1a1a2e; 
        color: #fff;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10001;
        cursor: pointer;
        font-size: 32px;
        transition: background 0.2s;
    }
    
    .mfsb-mobile-btn:hover {
        background: #22224d; 
    }

    /* نوار کشویی موبایل (Mobile Bar) */
    .mfsb-mobile-bar {
        position: fixed;
        right: 18px; /* ✨ تغییر کلیدی: بازگشت به right */
        left: unset; /* مطمئن می‌شویم left اعمال نشود */
        bottom: 90px;
        background: #fff;
        border-radius: 18px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
        padding: 12px 0;
        z-index: 10000;
        min-width: 220px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(20px);
        transition: opacity 0.35s, transform 0.35s;
    }

    .mfsb-mobile-bar.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    
    /* آیتم‌های سرویس در نوار موبایل */
    .mfsb-mobile-bar .service_item {
        max-width: 100%;
        min-width: 0;
        width: 100%;
        background: #1a1a2e;
        color: #222; 
        border-radius: 12px;
        margin: 0 12px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
        padding: 0px 12px; 
        display: flex;
        align-items: center;
        transition: background 0.2s;
        width: 12.7rem;
        height: 2.4rem;
    }

    .mfsb-mobile-bar .service_item:hover {
        background: #22224d;
    }

    .mfsb-mobile-bar .service_icon .mfsb-icon {
        width: 28px;
        height: 28px;
    }

    /* مقدار سرویس (متن) در نوار موبایل */
    .mfsb-mobile-bar .service_value {
        opacity: 1;
        transform: none;
        padding-left: 0px !important;
        color: #ffffff; 
        padding-top: 0px !important;
    }
    
    .mfsb-mobile-bar .service_value p {
        padding-top: 0px !important;
        margin: 0px !important;
    }
}
#goftino_w {z-index: 1;}
iframe#goftino_w {
    left: 10px !important;
    bottom: 4px !important;
}