.floating-whatsapp-widget {
  --floating-whatsapp-bottom: 128px;
  position: fixed;
  z-index: 39;
  right: clamp(26px, 4.4vw, 38px);
  bottom: calc(var(--floating-whatsapp-bottom) + env(safe-area-inset-bottom, 0px));
}

.floating-whatsapp {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 5px 18px #123b2680;
  color: #fff;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, visibility 180ms ease;
}

.floating-whatsapp svg {
  display: block;
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.floating-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px #123b2680;
}

.floating-whatsapp:focus-visible {
  outline: 3px solid #163a27;
  outline-offset: 4px;
}

.floating-whatsapp__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  display: grid;
  width: min(320px, calc(100vw - 32px));
  gap: 7px;
  padding: 18px;
  border: 1px solid #e8dfd3;
  border-radius: 14px;
  background: #fffdf9;
  box-shadow: 0 12px 36px #16060530;
  color: #263a2d;
}

.floating-whatsapp__panel[hidden] {
  display: none;
}

.floating-whatsapp__panel h2 {
  margin: 0 0 5px;
  font-size: 17px;
  line-height: 1.3;
}

.floating-whatsapp__panel a {
  padding: 10px 11px;
  border-radius: 8px;
  color: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

.floating-whatsapp__panel a:hover,
.floating-whatsapp__panel a:focus-visible {
  outline: none;
  background: #edf8f0;
}

.floating-whatsapp__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  padding: 8px 11px;
  border-radius: 6px;
  background: #173a2b;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.floating-whatsapp:hover .floating-whatsapp__tooltip,
.floating-whatsapp:focus-visible .floating-whatsapp__tooltip {
  opacity: 1;
  transform: translateX(0);
}

.floating-whatsapp-widget.is-obstructed {
  /* visibility: hidden; */
  /* pointer-events: none; */
}

@media (max-width: 600px) {
  .floating-whatsapp-widget {
    --floating-whatsapp-bottom: 110px !important;
  }

  .floating-whatsapp {
    width: 54px;
    height: 54px;
  }

  .floating-whatsapp svg {
    width: 31px;
    height: 31px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .floating-whatsapp,
  .floating-whatsapp__tooltip {
    transition: none;
  }
}