.nappy-whatsapp-float {
  align-items: center;
  background: #25d366;
  border: 0;
  border-radius: 50%;
  bottom: 24px;
  box-shadow: 0 0.45rem 1.35rem rgba(17, 74, 39, 0.3);
  color: #fff !important;
  display: flex;
  height: 60px;
  justify-content: center;
  position: fixed;
  right: 24px;
  text-decoration: none !important;
  transition: box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
  width: 60px;
  z-index: 2147483647;
}

.nappy-whatsapp-float svg {
  display: block;
  fill: currentColor;
  height: 32px;
  width: 32px;
}

.nappy-whatsapp-float:hover {
  background: #1fbd5a;
  box-shadow: 0 0.65rem 1.65rem rgba(17, 74, 39, 0.38);
  color: #fff !important;
  transform: translateY(-0.15rem) scale(1.04);
}

.nappy-whatsapp-float:focus-visible {
  background: #1fbd5a;
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.95), 0 0 0 0.48rem rgba(37, 211, 102, 0.55);
  color: #fff !important;
  outline: 0;
}

/* Deja sitio al botón "volver arriba" cuando ambos están visibles. */
#back-to-top {
  bottom: 100px;
  right: 24px;
}

@media (max-width: 767.98px) {
  .nappy-whatsapp-float {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    height: 56px;
    right: 16px;
    width: 56px;
  }

  .nappy-whatsapp-float svg {
    height: 30px;
    width: 30px;
  }

  #back-to-top {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nappy-whatsapp-float {
    transition: none;
  }
}
