body {
    direction: rtl;
}

/* موقعیت ویجت */
.cmw-chat-widget {
    position: fixed;
    bottom: 15px;
    z-index: 999999;
    direction: rtl;
}

.cmw-chat-widget.cmw-right {
    right: 15px;
}

.cmw-chat-widget.cmw-left {
    left: 15px;
}

/* دکمه اصلی چت */
.cmw-chat-btn {
    border-radius: 5px;
    background: transparent !important;
    box-shadow: none !important;
    border: none;
    padding: 0 !important;
}

.cmw-chat-btn:hover {
    transform: scale(1.08);
}

.cmw-chat-btn img {
    width: 72px;
    height: 72px;
}

/* منوی چت */
.cmw-chat-menu {
    position: fixed;
    bottom: 110px;
    right: 20px;
    width: 280px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: scale(0);
    transform-origin: bottom right;
    transition: 0.35s cubic-bezier(.68, -0.55, .27, 1.55);
    overflow: hidden;
}

/* اگر ویجت در چپ باشد، مبدا انیمیشن را چپ بگذاریم */
.cmw-chat-widget.cmw-left .cmw-chat-menu {
    right: auto;
    left: 0;
    transform-origin: bottom left;
}

.cmw-chat-menu.cmw-show {
    transform: scale(1);
}

.cmw-chat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
    transition: background 0.2s ease;
}

.cmw-chat-item:hover {
    background: #f7f7f7;
}

.cmw-chat-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* آیکن های پلتفرم ها */
.cmw-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.cmw-title:before {
    width: 1px;
    height: 40px;
    content: ' ';
    background: #ccc;
    position: absolute;
    padding-left: 1px;
    right: 55px;

}

.cmw-title {
    display: flex;
    padding-right: 10px;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;


}

.cmw-main-title {
    font-weight: 600;
    font-size: 17px;
}

.cmw-phone {
    font-size: 15px;
    color: #555;
}



   /* کانتینر اصلی که دایره را ایجاد می‌کند */
.circular-container { position: fixed; bottom: 0px; right: 40px; width: 0px; height: 100px; display: flex; justify-content: center; align-items: center; background: transparent !important; border-radius: 980px 980px 980px 980px; box-shadow: none !important; }

   /* کانتینر داخلی برای هر آیکون و انیمیشن */
   .icon-wrapper {
       position: absolute;
       /* برای قرارگیری روی هم */
       width: 70px;
       height: 70px;
       display: flex;
       justify-content: center;
       align-items: center;
       opacity: 0;
       /* همه آیکون‌ها ابتدا نامرئی */
       transition: opacity 0.5s ease-in-out;
       /* انیمیشن محو شدن */
       animation: blink-animation 1.5s infinite;
       /* انیمیشن چشمک‌زن */
       cursor: pointer;
   }

   /* فعال کردن آیکون فعلی */
   .icon-wrapper.active {
       opacity: 1;
   }

   /* استایل خود آیکون (تصویر) */
   .platform-icon-img {
       width: 100%;
       height: 100%;
       border-radius: 50%;
       /* اگر بخواهیم خود تصویر هم گرد باشد */
       display: block;
       /* برای جلوگیری از فضای اضافه زیر تصویر */
   }

   /* انیمیشن چشمک‌زن */
   @keyframes blink-animation {
       0% {
           transform: scale(1);
       }

       50% {
           transform: scale(0.9);
       }

       100% {
           transform: scale(1);
       }
   }

   /* انیمیشن انتشار بوردر */
   @keyframes ripple {
       0% {
           transform: scale(0.8);
           opacity: 0.7;
       }

       100% {
           transform: scale(1.2);
           opacity: 0;
       }
   }

   /* بوردر پخش‌شونده */
   .ripple-border {
       position: absolute;
       border: 2px solid #007bff;
       /* رنگ بوردر */
       border-radius: 50%;
       animation: ripple 1s ease-out infinite;
       /* استفاده از انیمیشن ripple */
       width: 100%;
       height: 100%;
       opacity: 0;
       /* در حالت عادی نامرئی است */
       animation-play-state: paused;
       /* به طور پیش‌فرض متوقف */
       padding: 8px;
   }

   /* فعال کردن انیمیشن ripple برای آیکون فعال */
   .icon-wrapper.active .ripple-border {
       opacity: 1;
       animation-play-state: running;
   }

   /* استایل باکس چت */
   .chat-box {
       display: none;
       position: fixed;
       bottom: 120px;
       /* کمی بالاتر از دایره */
       right: 150px;
       /* سمت چپ دایره */
       width: 250px;
       padding: 20px;
       background: #fff;
       border-radius: 15px;
       box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
       text-align: center;
       z-index: 10000;
   }

   .chatboxdes {

       color: #333;
       font-size: 14px;
       position: absolute;
       bottom: 72px;
       background: #f33 !important;
       border-radius: 5px;
       padding: 5px 10px;
       color: #fff;
       font-family: inherit !important;
       width:110px;
       text-align: center;
       right: 80px;
       font-size: 11px;
   }

   .title-chatbox {
  font-size: 18px;
  padding: 20px 10px;
  background: #fcc51e;
}


}


/* ===== Floating Button Modern Minimal ===== */

.circular-container.cmw-chat-btn{
    background:transparent !important;
    box-shadow:none !important;
    border:none !important;
    width:auto !important;
    height:auto !important;
    overflow:visible !important;
}

.circular-container.cmw-chat-btn img{
    display:block !important;
}
.cmw-floating-custom-icon{
    width:72px !important;
    height:72px !important;
    display:block !important;
}
.circular-container.cmw-chat-btn::before{
    content:none !important;
    display:none !important;
}

@keyframes cmwPulse{
    0%{
        transform:scale(1);
        box-shadow:0 0 0 0 rgba(37,211,102,.5);
    }
    70%{
        transform:scale(1.05);
        box-shadow:0 0 0 16px rgba(37,211,102,0);
    }
    100%{
        transform:scale(1);
        box-shadow:0 0 0 0 rgba(37,211,102,0);
    }
}

.circular-container.cmw-chat-btn:hover{
    transform:scale(1.08);
}

.chatboxdes{
    display:none !important;
}
