body {
    direction: rtl;
}

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

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

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

/* دکمه اصلی چت */
.cmw-chat-btn {
    border-radius: 5px;
    background: linear-gradient(135deg, #3ad65c, #1eaf47);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transition: 0.3s ease;
    border: none;
    padding: 13px 20px;
    font-size: 18px;
    color: #fff !important;
    font-family: inherit !important;
}

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

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

/* منوی چت */
.cmw-chat-menu {
    position: absolute;
    bottom: 130px;
    right: 0;
    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: 20px;
       width: 140px;
       /* قطر تقریبی دایره */
       height: 140px;
       display: flex;
       justify-content: center;
       align-items: center;
       z-index: 9999;
       /* پس‌زمینه نیمه‌شفاف */
       overflow: hidden;
       /* برای اینکه آیکون‌ها بیرون نزنند */
       background: #eee !important;
       border-radius: 80px 80px 0px 0px;
   }

   /* کانتینر داخلی برای هر آیکون و انیمیشن */
   .icon-wrapper {
       position: absolute;
       /* برای قرارگیری روی هم */
       width: 100px;
       height: 100px;
       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 {

       bottom: 0px anchor;
       color: #333;
       font-family: iransans;
       margin-top: 101px !important;
       font-size: 14px;
   }

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