/* ==========================================================
   Floating buttons (bottom right), stacked bottom to top:
   1. Zendesk "Help" launcher (iframe#launcher, ~50px tall)
   2. WhatsApp icon
   3. Back to top (.cd-top)
   ========================================================== */

/* WhatsApp icon: solid green circle, right-aligned with the Help launcher */
.whatsapp-icon.fixed.bottom_right {
  right: 22px !important;
  bottom: 66px !important;
  z-index: 999997;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  transition: background-color .2s ease, transform .2s ease;
}
.whatsapp-icon.fixed.bottom_right i.fa-whatsapp {
  font-size: 30px !important;
  line-height: 1;
  color: #fff !important;
}
.whatsapp-icon.fixed.bottom_right:hover {
  background: #128C7E;
  transform: scale(1.06);
}
.whatsapp-icon.fixed.bottom_right:hover i.fa-whatsapp {
  color: #fff !important;
}

/* Bubble message: to the left of the icon, vertically centred */
.whatsapp-icon.fixed.bottom_right .whatsapp_bubble {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  bottom: auto;
  left: auto;
  transform: translateY(-50%);
  width: max-content;
  max-width: 220px;
  padding: 8px 14px;
  border-radius: 18px;
  background: #fff;
  color: #333;
  font-size: 13px;
  line-height: 1.4;
  white-space: normal;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}
/* Hide the bubble when no message is set (avoids empty white bar) */
.whatsapp-icon .whatsapp_bubble:empty {
  display: none;
}

/* Back to top: moved above the WhatsApp icon */
a.cd-top {
  right: 28px !important;
  bottom: 134px !important;
}

/* Mobile: smaller icon, shorter bubble */
@media (max-width: 767px) {
  .whatsapp-icon.fixed.bottom_right {
    width: 48px;
    height: 48px;
  }
  .whatsapp-icon.fixed.bottom_right i.fa-whatsapp {
    font-size: 28px !important;
  }
  .whatsapp-icon.fixed.bottom_right .whatsapp_bubble {
    max-width: 170px;
    font-size: 12px;
  }
  a.cd-top {
    bottom: 130px !important;
  }
}
