.floating-cta,
.whatsapp-float {
  display: none !important;
}

.whatsapp-widget {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(18px, 3vw, 28px);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  font-family: inherit;
  pointer-events: none;
}

.whatsapp-widget__bubble {
  position: relative;
  width: min(270px, calc(100vw - 104px));
  padding: 14px 42px 14px 16px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 20px 20px 6px 20px;
  color: #102033;
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 197, 94, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(240, 253, 244, 0.94));
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18), 0 8px 22px rgba(34, 197, 94, 0.16);
  transform: translateX(18px) scale(0.94);
  transform-origin: right bottom;
  opacity: 0;
  transition: opacity 0.34s ease, transform 0.34s cubic-bezier(0.2, 0.85, 0.2, 1);
  pointer-events: auto;
}

.whatsapp-widget.is-open .whatsapp-widget__bubble {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.whatsapp-widget.is-mobile-scrolling .whatsapp-widget__bubble {
  opacity: 0;
  transform: translateX(18px) scale(0.94);
  pointer-events: none;
}

.whatsapp-widget__bubble::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: 16px;
  width: 16px;
  height: 16px;
  background: rgba(240, 253, 244, 0.98);
  border-right: 1px solid rgba(34, 197, 94, 0.2);
  border-bottom: 1px solid rgba(34, 197, 94, 0.2);
  transform: rotate(-45deg);
}

.whatsapp-widget__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #16a34a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.whatsapp-widget__title {
  display: block;
  color: #0f172a;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.whatsapp-widget__text {
  display: block;
  margin-top: 5px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.whatsapp-widget__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  color: #64748b;
  background: rgba(15, 23, 42, 0.06);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.whatsapp-widget__button {
  position: relative;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #25d366, #11b84e);
  box-shadow: 0 16px 38px rgba(37, 211, 102, 0.42), inset 0 0 0 2px rgba(255, 255, 255, 0.25);
  text-decoration: none;
  pointer-events: auto;
  animation: whatsappPulse 2.8s ease-in-out infinite;
}

.whatsapp-widget__button::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  border: 1px solid rgba(37, 211, 102, 0.34);
}

.whatsapp-widget__button svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.whatsapp-widget__button:hover,
.whatsapp-widget__button:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(37, 211, 102, 0.5), inset 0 0 0 2px rgba(255, 255, 255, 0.34);
}

@keyframes whatsappPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.035);
  }
}

@media (max-width: 640px) {
  .whatsapp-widget {
    right: 14px;
    bottom: 16px;
    gap: 9px;
  }

  .whatsapp-widget__bubble {
    width: min(238px, calc(100vw - 92px));
    padding: 12px 36px 12px 13px;
    border-radius: 18px 18px 6px 18px;
  }

  .whatsapp-widget__title {
    font-size: 14px;
  }

  .whatsapp-widget__text {
    font-size: 12px;
  }

  .whatsapp-widget__button {
    width: 56px;
    height: 56px;
  }

  .whatsapp-widget__button svg {
    width: 28px;
    height: 28px;
  }
}
