body {
  --tezel-float-right: max(29px, env(safe-area-inset-right));
  --tezel-float-bottom: max(29px, env(safe-area-inset-bottom));
  --tezel-whatsapp-size: 66px;
}

.tezel-whatsapp {
  position: fixed;
  right: var(--tezel-float-right);
  bottom: var(--tezel-float-bottom);
  z-index: 999989;
  display: grid;
  place-items: center;
  width: var(--tezel-whatsapp-size);
  height: var(--tezel-whatsapp-size);
  box-sizing: border-box;
  padding: 0;
  text-decoration: none;
  border-radius: 50%;
  color: #fff;
  background: #16a257;
  box-shadow: 0 5px 15px rgba(6, 92, 46, .24);
}

.tezel-whatsapp::before,
.tezel-whatsapp::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: #25d366;
  pointer-events: none;
  opacity: 0;
  content: "";
}

@media (prefers-reduced-motion: no-preference) {
  .tezel-whatsapp::before,
  .tezel-whatsapp::after {
    animation: tezel-whatsapp-wave 2.6s ease-out infinite;
  }

  .tezel-whatsapp::after {
    animation-delay: 1.3s;
  }
}

@keyframes tezel-whatsapp-wave {
  0% { opacity: .34; transform: scale(1); }
  80%, 100% { opacity: 0; transform: scale(1.57); }
}

.tezel-whatsapp svg {
  width: 58%;
  height: 58%;
}

.tezel-whatsapp:hover {
  background: #128746;
}

.tezel-whatsapp:focus-visible {
  outline: 3px solid #087fb7;
  outline-offset: 3px;
}

body #tzg-top {
  right: var(--tezel-float-right) !important;
  bottom: calc(var(--tezel-float-bottom) + var(--tezel-whatsapp-size) + 22px) !important;
}

@media (max-width: 760px) {
  body {
    --tezel-float-right: max(22px, env(safe-area-inset-right));
    --tezel-float-bottom: max(22px, env(safe-area-inset-bottom));
    --tezel-whatsapp-size: 54px;
  }
}
