#whatsapp-link:not(.sf-floating-action) {
  display: none !important;
}

#whatsapp-link.sf-floating-action,
.sf-scroll-top {
  position: fixed !important;
  right: 24px !important;
  z-index: 10001 !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center;
  border-radius: 50% !important;
  line-height: 1 !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease,
    background-color 180ms ease !important;
}

#whatsapp-link.sf-floating-action {
  bottom: var(--sf-floating-bottom, 36px) !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  background: #25d366 !important;
  color: #fff !important;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22) !important;
}

.sf-scroll-top {
  bottom: calc(var(--sf-floating-bottom, 36px) + 60px) !important;
  border: 1px solid rgba(17, 17, 17, 0.35) !important;
  background: #fff !important;
  color: #171717 !important;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.18) !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.sf-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#whatsapp-link.sf-floating-action:hover {
  background: #20bd5a !important;
  transform: scale(1.06);
}

.sf-scroll-top:hover {
  background: #f6f6f6 !important;
  transform: translateY(-2px);
}

:is(#whatsapp-link.sf-floating-action, .sf-scroll-top) svg {
  display: block;
  width: 24px;
  height: 24px;
}

body.sf-has-chat-fab :is(#whatsapp-link.sf-floating-action, .sf-scroll-top) {
  right: 96px !important;
}

@media (max-width: 720px) {
  #whatsapp-link.sf-floating-action,
  .sf-scroll-top {
    right: 16px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .sf-scroll-top {
    bottom: calc(var(--sf-floating-bottom, 28px) + 56px) !important;
  }

  :is(#whatsapp-link.sf-floating-action, .sf-scroll-top) svg {
    width: 22px;
    height: 22px;
  }

  body.sf-has-chat-fab :is(#whatsapp-link.sf-floating-action, .sf-scroll-top) {
    right: 76px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #whatsapp-link.sf-floating-action,
  .sf-scroll-top {
    transition: none !important;
  }
}
