.gd-floating-whatsapp {
  --gd-wa-color: #25d366;
  position: fixed;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 99998;
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 0;
  border-radius: 50%;
  background: var(--gd-wa-color);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.28);
  color: #fff !important;
  text-decoration: none !important;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.gd-wa-position-left {
  left: 18px;
}

.gd-wa-position-right {
  right: 18px;
}

.gd-floating-whatsapp svg {
  display: block;
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.gd-floating-whatsapp::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  width: max-content;
  max-width: 220px;
  padding: 8px 11px;
  border-radius: 5px;
  background: #00373a;
  color: #fff;
  font-family: Lato, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-4px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.gd-wa-position-right::after {
  right: calc(100% + 12px);
  left: auto;
  transform: translateY(-50%) translateX(4px);
}

.gd-floating-whatsapp:hover,
.gd-floating-whatsapp:focus-visible {
  color: #fff !important;
  filter: brightness(0.94);
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.34);
  transform: translateY(-2px);
}

.gd-floating-whatsapp:hover::after,
.gd-floating-whatsapp:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.gd-floating-whatsapp:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .gd-floating-whatsapp {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: 54px;
    height: 54px;
  }

  .gd-wa-position-left {
    left: 14px;
  }

  .gd-wa-position-right {
    right: 14px;
  }

  .gd-floating-whatsapp svg {
    width: 31px;
    height: 31px;
  }

  .gd-floating-whatsapp::after {
    display: none;
  }

  .gd-wa-hide-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .gd-wa-hide-desktop {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gd-floating-whatsapp,
  .gd-floating-whatsapp::after {
    transition: none;
  }
}

@media print {
  .gd-floating-whatsapp {
    display: none !important;
  }
}
