/* A prominent contact shortcut, clear of the back-to-top control. */
.whatsapp-float {
  position: fixed;
  right: 24px;
  right: max(24px, env(safe-area-inset-right));
  bottom: 24px;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  min-height: 76px;
  max-width: calc(100vw - 48px);
  padding: 12px 18px 12px 12px;
  border: 2px solid #b7ffd1;
  border-radius: 50px;
  background: linear-gradient(115deg, #36eb7a, #25d366);
  color: #063d21;
  text-decoration: none;
  box-shadow: 0 8px 28px #087e4647, 0 0 24px #25d36640;
  isolation: isolate;
  animation: whatsapp-bounce 5s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent
}

.whatsapp-float::before,
.whatsapp-float::after {
  content: '';
  position: absolute;
  inset: -3px;
  z-index: -1;
  border: 2px solid #25d366;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  animation: whatsapp-pulse 2.8s ease-out infinite
}

.whatsapp-float::after {
  animation-delay: 1.4s
}

.whatsapp-float-icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #08783e;
  color: #fff
}

.whatsapp-float-icon svg {
  display: block;
  width: 38px;
  height: 38px
}

.whatsapp-float-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15
}

.whatsapp-float-copy>span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px
}

.whatsapp-float-copy>strong {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.4px
}

.whatsapp-float-arrow {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-left: auto
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #4aee87;
  color: #063d21;
  text-decoration: none;
  box-shadow: 0 10px 34px #087e465c, 0 0 28px #25d36666;
  animation-play-state: paused
}

.whatsapp-float:hover::before,
.whatsapp-float:hover::after,
.whatsapp-float:focus-visible::before,
.whatsapp-float:focus-visible::after {
  animation-play-state: paused
}

.whatsapp-float:focus-visible {
  outline: 3px solid #063d21;
  outline-offset: 5px
}

.has-whatsapp .back-to-top {
  bottom: 120px;
  bottom: calc(max(24px, env(safe-area-inset-bottom)) + 96px)
}

.has-whatsapp .simple-footer {
  padding-bottom: 118px
}

@keyframes whatsapp-pulse {
  0% { transform: scale(1); opacity: .6 }
  75%, 100% { transform: scale(1.1, 1.3); opacity: 0 }
}

@keyframes whatsapp-bounce {
  0%, 12%, 24%, 100% { transform: translateY(0) }
  6% { transform: translateY(-8px) }
  18% { transform: translateY(-4px) }
}

@media(max-width:550px) {
  .whatsapp-float {
    right: 16px;
    right: max(16px, env(safe-area-inset-right));
    bottom: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    gap: 10px;
    min-width: 212px;
    min-height: 68px;
    max-width: calc(100vw - 32px);
    padding: 10px 14px 10px 10px
  }

  .whatsapp-float-icon {
    flex-basis: 44px;
    width: 44px;
    height: 44px
  }

  .whatsapp-float-icon svg {
    width: 35px;
    height: 35px
  }

  .whatsapp-float-copy>strong {
    font-size: 20px
  }

  .has-whatsapp .back-to-top {
    bottom: 104px;
    bottom: calc(max(16px, env(safe-area-inset-bottom)) + 88px)
  }

  .has-whatsapp .simple-footer {
    padding-bottom: 104px
  }
}

@media(prefers-reduced-motion:reduce) {
  .whatsapp-float,
  .whatsapp-float::before,
  .whatsapp-float::after {
    animation: none
  }
}
