.whatsapp-float-button {
  position: fixed;
  right: clamp(18px, 2.8vw, 30px);
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 1350;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #ffffff;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(74, 35, 90, 0.24), 0 4px 12px rgba(15, 23, 42, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.whatsapp-float-button::before {
  content: '';
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(18, 140, 74, 0.24);
  border-radius: inherit;
  opacity: 0.9;
  pointer-events: none;
}

.whatsapp-float-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(74, 35, 90, 0.28), 0 7px 18px rgba(15, 23, 42, 0.2);
}

.whatsapp-float-button:focus-visible {
  outline: 3px solid rgba(18, 140, 74, 0.24);
  outline-offset: 5px;
}

.whatsapp-float-button.is-loading {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

.whatsapp-float-icon {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 999px;
  overflow: visible;
  line-height: 1;
}

.whatsapp-float-avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: #ffffff;
}

.whatsapp-float-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 34%;
  transform: none;
  transform-origin: center;
}

.whatsapp-float-channel {
  position: absolute;
  right: -3px;
  bottom: -2px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #128c4a;
  color: #ffffff;
  font-size: 16px;
  box-shadow: 0 6px 14px rgba(18, 140, 74, 0.3);
  z-index: 2;
}

.whatsapp-float-label {
  position: absolute;
  right: 76px;
  top: 50%;
  max-width: min(210px, calc(100vw - 120px));
  padding: 9px 12px;
  border-radius: 8px;
  background: #183525;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(6px, -50%);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.whatsapp-float-button:hover .whatsapp-float-label,
.whatsapp-float-button:focus-visible .whatsapp-float-label {
  opacity: 1;
  transform: translate(0, -50%);
}

@media (max-width: 720px) {
  .whatsapp-float-button {
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    width: 62px;
    height: 62px;
  }

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

  .whatsapp-float-channel {
    width: 25px;
    height: 25px;
    font-size: 14px;
  }
}
