/* ویجت تماس شناور — استایل سمت سایت (مقاوم در برابر CSS قالب) */
.fcw-root{
  --fcw-size:52px;
  --fcw-gap:10px;
  --fcw-shadow:0 4px 16px rgba(0,0,0,.12),0 1px 4px rgba(0,0,0,.08);
  position:fixed;
  width:0;
  height:0;
  z-index:2147483000;
  direction:rtl;
  text-align:right;
  line-height:normal;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Vazirmatn,Tahoma,Arial,sans-serif;
}
/* ریست کامل در برابر استایل‌های قالب */
.fcw-root *,.fcw-root *::before,.fcw-root *::after{
  box-sizing:border-box;
  margin:0;
  padding:0;
  float:none;
  clear:none;
}
.fcw-root a.fcw-item,.fcw-root a.fcw-item:hover,.fcw-root a.fcw-item:focus{
  text-decoration:none;
  box-shadow:none;
  border:none;
  background:none;
}

.fcw-root .fcw-stack{
  position:absolute;
  display:flex;
  flex-wrap:nowrap;
  justify-content:flex-start;
  align-content:flex-start;
  gap:var(--fcw-gap);
  width:auto;
  height:auto;
  opacity:0;
  pointer-events:none;
  transform:translateY(6px) scale(.96);
  transition:opacity .18s ease,transform .18s ease;
}
.fcw-root[data-open="true"] .fcw-stack{opacity:1;pointer-events:auto;transform:translateY(0) scale(1);}
.fcw-root[data-vpos="bottom"] .fcw-stack{bottom:calc(var(--fcw-size) + 14px);flex-direction:column-reverse;}
.fcw-root[data-vpos="top"] .fcw-stack{top:calc(var(--fcw-size) + 14px);flex-direction:column;}
.fcw-root[data-hpos="right"] .fcw-stack{right:0;align-items:flex-end;}
.fcw-root[data-hpos="left"] .fcw-stack{left:0;align-items:flex-start;}

/* هر آیتم دقیقاً به اندازه دایره است تا همه دکمه‌ها روی یک خط عمودی بایستند */
.fcw-root .fcw-item{
  position:relative;
  display:block;
  flex:none;
  width:var(--fcw-size);
  height:var(--fcw-size);
  min-width:0;
  min-height:0;
  line-height:normal;
}

.fcw-root .fcw-item-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  border-radius:50%;
  background:#fff;
  box-shadow:var(--fcw-shadow);
  border:1px solid rgba(0,0,0,.04);
  transition:transform .12s ease;
}
.fcw-root .fcw-item:hover .fcw-item-btn{transform:scale(1.06);}
.fcw-root .fcw-item-btn svg{width:56%;height:56%;display:block;}
.fcw-root .fcw-item-btn img{width:56%;height:56%;object-fit:contain;display:block;}
.fcw-root .fcw-item-btn .fcw-emoji{font-size:22px;line-height:1;}

/* برچسب‌ها کاملاً خارج از جریان چیدمان‌اند و روی تراز دکمه‌ها اثری ندارند */
.fcw-root .fcw-item-label{
  position:absolute;
  top:50%;
  z-index:2;
  background:#fff;
  color:#2C2C2B;
  font-size:13px;
  font-weight:500;
  line-height:1.4;
  padding:7px 12px;
  border-radius:10px;
  white-space:nowrap;
  box-shadow:var(--fcw-shadow);
  border:1px solid #E6E5E3;
  opacity:0;
  pointer-events:none;
  transition:opacity .15s ease,transform .15s ease;
}
.fcw-root[data-hpos="right"] .fcw-item-label{right:calc(100% + 10px);transform:translateY(-50%) translateX(4px);}
.fcw-root[data-hpos="left"] .fcw-item-label{left:calc(100% + 10px);transform:translateY(-50%) translateX(-4px);}
.fcw-root .fcw-item:hover .fcw-item-label,.fcw-root .fcw-item:focus-visible .fcw-item-label{
  opacity:1;
  transform:translateY(-50%) translateX(0);
}

.fcw-root .fcw-fab-wrap{position:absolute;width:var(--fcw-size);height:var(--fcw-size);}
.fcw-root[data-vpos="bottom"] .fcw-fab-wrap{bottom:0;}
.fcw-root[data-vpos="top"] .fcw-fab-wrap{top:0;}
.fcw-root[data-hpos="right"] .fcw-fab-wrap{right:0;}
.fcw-root[data-hpos="left"] .fcw-fab-wrap{left:0;}

.fcw-root .fcw-fab{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  border-radius:50%;
  background:#2783DE;
  color:#fff;
  border:none;
  outline:none;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
  box-shadow:var(--fcw-shadow);
  transition:transform .18s ease,background .18s ease;
}
.fcw-root .fcw-fab:hover{transform:scale(1.05);background:#1f6cbd;}
.fcw-root .fcw-fab svg{width:46%;height:46%;display:block;}
.fcw-root[data-static="true"] .fcw-fab{cursor:default;}
.fcw-root[data-static="true"] .fcw-fab:hover{transform:none;background:#2783DE;}

@media (max-width:520px){
  .fcw-root{--fcw-size:46px;--fcw-gap:8px;}
  .fcw-root .fcw-item-label{font-size:12px;padding:6px 10px;max-width:52vw;overflow:hidden;text-overflow:ellipsis;}
}

@media (prefers-reduced-motion:reduce){
  .fcw-root .fcw-stack,.fcw-root .fcw-fab,.fcw-root .fcw-item-btn,.fcw-root .fcw-item-label{transition:none;}
}
