.whatsapp-contact {
  position: fixed;
  right: clamp(14px, 2.2vw, 30px);
  bottom: calc(20vh + env(safe-area-inset-bottom, 0px));
  z-index: 180;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 58px;
  height: 58px;
  padding: 0 20px 0 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  color: #062c1b;
  background: #78f0a8;
  box-shadow: 0 18px 46px rgba(0, 13, 18, .32), 0 0 0 8px rgba(37, 211, 102, .08);
  opacity: 0;
  transform: translate3d(calc(100% + 42px), 0, 0);
  pointer-events: none;
  text-decoration: none;
  transition:
    opacity .45s ease,
    transform .7s cubic-bezier(.16, 1, .3, 1),
    padding .45s cubic-bezier(.16, 1, .3, 1),
    background .2s ease,
    box-shadow .2s ease;
}

.whatsapp-contact.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.whatsapp-contact:hover,
.whatsapp-contact:focus-visible {
  color: #032114;
  background: #98f7bd;
  box-shadow: 0 22px 54px rgba(0, 13, 18, .38), 0 0 0 9px rgba(37, 211, 102, .11);
}

.whatsapp-contact:focus-visible {
  outline: 3px solid rgba(202, 255, 225, .88);
  outline-offset: 4px;
}

.whatsapp-contact__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.whatsapp-contact__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.whatsapp-contact__label {
  max-width: 110px;
  margin-left: 10px;
  overflow: hidden;
  opacity: 1;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: .84rem;
  font-weight: 720;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: max-width .45s cubic-bezier(.16, 1, .3, 1), margin .45s ease, opacity .25s ease;
}

.whatsapp-contact.is-compact {
  padding-right: 14px;
}

.whatsapp-contact.is-compact .whatsapp-contact__label {
  max-width: 0;
  margin-left: 0;
  opacity: 0;
}

.whatsapp-contact.is-compact:hover,
.whatsapp-contact.is-compact:focus-visible {
  padding-right: 20px;
}

.whatsapp-contact.is-compact:hover .whatsapp-contact__label,
.whatsapp-contact.is-compact:focus-visible .whatsapp-contact__label {
  max-width: 110px;
  margin-left: 10px;
  opacity: 1;
}

@media (max-width: 650px) {
  .whatsapp-contact {
    right: 13px;
    bottom: calc(16vh + env(safe-area-inset-bottom, 0px));
    height: 54px;
    min-width: 54px;
    padding-inline: 13px 17px;
  }

  .whatsapp-contact__icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-contact,
  .whatsapp-contact__label {
    transition-duration: .01ms;
  }
}
