/* Floating WhatsApp + Call buttons.
   Copied from the webnetdigitalmedia.com buttons (same size, colours and animation).
   Keyframes are prefixed with "pm-float-" so they don't clash with the theme's
   own "spin" / "pulse" animations, and the icon rules are scoped to these buttons. */

.btn-phone-pulse {
  background: #fcb412;
  color: white;
  position: fixed;
  bottom: 16px;
  right: 6px;
  font-size: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 0;
  height: 0;
  padding: 35px;
  text-decoration: none;
  border-radius: 50%;
  z-index: 999;
}

.btn-whatsapp-pulse {
  background: #25d366;
  color: white;
  position: fixed;
  bottom: 20px;
  left: 40px;
  font-size: 30px !important;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 0;
  height: 0;
  padding: 35px;
  text-decoration: none;
  border-radius: 50%;
  animation-name: pm-float-pulse;
  animation-duration: 1.5s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
  z-index: 999;
}

.btn-phone-pulse:hover,
.btn-phone-pulse:focus,
.btn-whatsapp-pulse:hover,
.btn-whatsapp-pulse:focus {
  color: white;
}

.btn-phone-pulse i,
.btn-whatsapp-pulse i {
  display: inline-block;
  font-style: normal;
  line-height: 1;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

/* WhatsApp icon slowly tilts, then snaps back. */
.btn-whatsapp-pulse i {
  animation: pm-float-spin 4s linear infinite;
}

.btn-whatsapp-pulse-border {
  bottom: 16px;
  left: 6px;
  animation-play-state: paused;
}

.btn-whatsapp-pulse-border::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  padding: 35px;
  border: 5px solid #25d366;
  opacity: 0.75;
  animation-name: pm-float-pulse-border;
  animation-duration: 1.5s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

.btn-phone-pulse-border::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  padding: 35px;
  border: 5px solid #fcb412;
  opacity: 0.75;
  animation-name: pm-float-pulse-border;
  animation-duration: 1.5s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

/* Centre the pulse ring on the button, whatever size it grows to. */
.btn-whatsapp-pulse-border::before,
.btn-phone-pulse-border::before {
  top: 50%;
  left: 50%;
  margin: 0;
  box-sizing: content-box;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

@keyframes pm-float-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  80% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
}

@keyframes pm-float-pulse-border {
  0% {
    padding: 25px;
    opacity: 0.75;
  }
  75% {
    padding: 50px;
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes pm-float-spin {
  100% {
    transform: rotate(-25deg);
  }
}

/* Keep the theme's back-to-top button above the call button. */
.back-to-top,
.back-to-top.visible {
  bottom: 110px;
}
