.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 998;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 58px;
  padding: 0.35rem 0.35rem 0.35rem 1.15rem;
  color: #fff;
  background: #128c4b;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(7, 94, 45, 0.32), 0 3px 10px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  direction: ltr;
  isolation: isolate;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

[dir="rtl"] .whatsapp-float {
  padding: 0.35rem 1.15rem 0.35rem 0.35rem;
  direction: rtl;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(37, 211, 102, 0.38);
  animation: whatsapp-pulse 2.4s ease-out infinite;
}

.whatsapp-float__label {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.whatsapp-float__icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  background: #25d366;
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.whatsapp-float__icon img {
  display: block;
  width: 27px;
  height: 27px;
}

.whatsapp-float:hover {
  color: #fff;
  background: #0d7d40;
  box-shadow: 0 14px 34px rgba(7, 94, 45, 0.38), 0 5px 12px rgba(0, 0, 0, 0.22);
  transform: translateY(-4px);
}

.whatsapp-float:focus-visible {
  color: #fff;
  outline: 3px solid rgba(37, 211, 102, 0.45);
  outline-offset: 4px;
}

@keyframes whatsapp-pulse {
  0%, 55% {
    opacity: 0.45;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.16);
  }
}

@media (max-width: 600px) {
  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  [dir="rtl"] .whatsapp-float {
    padding: 0;
  }

  .whatsapp-float::before {
    display: none;
  }

  .whatsapp-float__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .whatsapp-float__icon {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    box-shadow: 0 8px 22px rgba(7, 94, 45, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  }

  .whatsapp-float:hover {
    background: transparent;
    box-shadow: none;
  }
}

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

  .whatsapp-float {
    transition: none;
  }
}
