#msatc-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.15);
    z-index: 10000; /* بالاتر از تمام المان‌های وودمارت */
    display: none; 
    padding: 12px 15px;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

@media (max-width: 768px) {
    #msatc-sticky-bar { 
        display: flex !important; /* اجبار به نمایش در موبایل */
    }
    /* جلوگیری از چسبیدن دکمه به پایین ترین بخش موبایل‌های جدید */
    body { padding-bottom: 75px !important; } 
}

.msatc-action-area { flex: 0 0 60%; }
.msatc-price-area { 
    flex: 0 0 35%;
    text-align: left;
    font-size: 14px;
}

/* استایل اسپینر هنگام لودینگ */
.msatc-loading { opacity: 0.6; pointer-events: none; }




/* ظرف محتوا برای جلوگیری از جابجایی دکمه‌ها هنگام لودینگ */
.msatc-qty-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 40px;
}

/* استایل انیمیشن توپی (سه نقطه) */
.msatc-loader-dots {
    display: none; 
    align-items: center;
    gap: 4px;
}

.msatc-loader-dots span {
    width: 6px;
    height: 6px;
    background-color: #ef4056; /* رنگ توپ‌ها */
    border-radius: 50%;
    animation: msatc-bounce 0.6s infinite alternate;
}

.msatc-loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.msatc-loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes msatc-bounce {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-6px); opacity: 0.3; }
}

/* مدیریت نمایش در حالت لودینگ */
.msatc-loading .msatc-qty-value, 
.msatc-loading .msatc-btn-text {
    display: none !important; /* مخفی کردن عدد یا متن */
}

.msatc-loading .msatc-loader-dots {
    display: flex !important; /* نمایش توپ‌ها */
}

/* ظاهر شیک و تمیز مطابق عکس شما */
.msatc-qty-controls {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgb(0 0 0 / .08) !important;
    /* height: 36px !important; */
    display: flex;
}
}

.msatc-qty-btn {
    color: #ef4056 !important;
    font-size: 26px !important;
    background: transparent !important;
    border: none !important;
    width: 45px !important;
}

.msatc-qty-value {
    font-size: 19px !important;
    font-weight: bold !important;
    color: #333 !important;
}


