/* Quick Contact Pro - Frontend Widget Styles */
.qc-float-wrapper {
  position: fixed;
  bottom: var(--qc-offset-b, 20px);
  z-index: 999999;
  display: flex;
  align-items: center; /* تراز افقی دکمه و حباب */
  gap: 12px;
}

/* موقعیت‌دهی در راست یا چپ صفحه */
.qc-pos-right {
  right: var(--qc-offset-h, 20px);
  flex-direction: row-reverse; /* قرارگیری حباب در سمت چپ دکمه */
}

.qc-pos-left {
  left: var(--qc-offset-h, 20px);
  flex-direction: row; /* قرارگیری حباب در سمت راست دکمه */
}

/* Visibility classes */
@media (min-width: 769px) {
  .qc-float-wrapper.qc-hide-desktop {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .qc-float-wrapper.qc-hide-mobile {
    display: none !important;
  }
}

/* Main Button */
.qc-main-btn {
  width: var(--qc-btn-size, 60px);
  height: var(--qc-btn-size, 60px);
  background-color: var(--qc-btn-color, #25d366);
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
}

.qc-main-btn:hover {
  transform: scale(1.08);
}

.qc-main-btn img {
  width: 55%;
  height: 55%;
  object-fit: contain;
  border-radius: 50%;
}

.qc-main-btn .dashicons {
  font-size: calc(var(--qc-btn-size, 60px) * 0.48);
  width: auto;
  height: auto;
}

/* Sub buttons container (for Multi Mode) */
.qc-sub-buttons {
  position: absolute;
  bottom: calc(100% + 12px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.qc-pos-right .qc-sub-buttons {
  right: 0;
}

.qc-pos-left .qc-sub-buttons {
  left: 0;
}

.qc-float-wrapper.qc-is-open .qc-sub-buttons {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.qc-sub-btn {
  width: calc(var(--qc-btn-size, 60px) * 0.8);
  height: calc(var(--qc-btn-size, 60px) * 0.8);
  background: #ffffff;
  color: #1e293b !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  text-decoration: none !important;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.qc-sub-btn:hover {
  transform: scale(1.1);
  background: var(--qc-btn-color, #25d366);
  color: #ffffff !important;
}

/* Tooltip Chat Bubble */
.qc-tooltip-bubble {
  background-color: var(--qc-tooltip-bg, #1e293b);
  color: var(--qc-tooltip-color, #ffffff);
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  pointer-events: none;
  position: relative;
  animation: qcFloatFade 0.6s ease forwards;
}

/* پیکان کوچک حباب متنی بسته به سمت قرارگیری */
.qc-tooltip-bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
}

.qc-pos-right .qc-tooltip-bubble::after {
  right: -12px;
  border-color: transparent transparent transparent var(--qc-tooltip-bg, #1e293b);
}

.qc-pos-left .qc-tooltip-bubble::after {
  left: -12px;
  border-color: transparent var(--qc-tooltip-bg, #1e293b) transparent transparent;
}

@keyframes qcFloatFade {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

/* Animations */.qc-sub-btn svg {
  width: 50%;
  height: 50%;
  display: block;
}

.qc-main-btn svg {
  display: block;
}

.qc-float-wrapper[data-animation="pulse"] .qc-main-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid var(--qc-btn-color, #25d366);
  animation: qcPulseWave 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
  z-index: -1;
}

@keyframes qcPulseWave {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.45); opacity: 0; }
}

.qc-float-wrapper[data-animation="bounce"] .qc-main-btn {
  animation: qcBounce 2.5s infinite ease-in-out;
}

@keyframes qcBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

.qc-float-wrapper[data-animation="shake"] .qc-main-btn {
  animation: qcShake 3.5s infinite ease-in-out;
}

@keyframes qcShake {
  0%, 100% { transform: rotate(0deg); }
  80% { transform: rotate(0deg); }
  85% { transform: rotate(8deg); }
  90% { transform: rotate(-8deg); }
  95% { transform: rotate(4deg); }
}
.qc-sub-btn svg {
  width: 50%;
  height: 50%;
  display: block;
}

.qc-main-btn svg {
  display: block;
}
/* استایل کلی دکمه شناور واتساپ */
.qcbp-whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.qcbp-whatsapp-button:hover {
    background-color: #128c7e;
    color: #ffffff;
    transform: scale(1.1);
}

/* سایز و تنظیم آیکون داخل دکمه */
.qcbp-whatsapp-button i {
    font-size: 30px;
}
.qc-main-btn i,
.qc-sub-btn i {
  font-size: 24px;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}
/* اعمال فونت وزیر به کل ویجت به جز آیکون‌ها */
.qc-float-wrapper,
.qc-float-wrapper *:not([class^="icon-"]):not([class*=" icon-"]) {
    font-family: vazir, -apple-system, BlinkMacSystemFont, sans-serif;
}
/* رنگ قابل تنظیم آیکن‌های لیست گروهی */
.qc-float-wrapper .qc-sub-buttons .qc-sub-btn,
.qc-float-wrapper .qc-sub-buttons .qc-sub-btn i,
.qc-float-wrapper .qc-sub-buttons .qc-sub-btn i::before {
    color: var(--qc-group-icon-color, #fff) !important;
}

/* پشتیبانی از آیکن‌های چندبخشی Icomoon */
.qc-float-wrapper .qc-sub-buttons .qc-sub-btn i span,
.qc-float-wrapper .qc-sub-buttons .qc-sub-btn i span::before {
    color: var(--qc-group-icon-color, #fff) !important;
}