.wa-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366, #1da851);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
  text-decoration: none;
  overflow: hidden;
}

.wa-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

.wa-btn:active {
  transform: scale(0.92);
}

.wa-btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.2) 100%);
  pointer-events: none;
  border-radius: 50%;
}

.wa-icon-box {
  position: relative;
  width: 32px;
  height: 32px;
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15));
}

.wa-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: #25d366;
  z-index: -1;
  opacity: 0;
}

.wa-pulse-ring.ring-1 {
  animation: wa-pulse-anim 2.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.wa-pulse-ring.ring-2 {
  animation: wa-pulse-anim 2.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  animation-delay: 1.2s;
}

@keyframes wa-pulse-anim {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}

.wa-chat-tooltip {
  position: relative;
  margin-bottom: 16px;
  background: var(--bg);
  border: 1px solid #e0e0e0;
  border-radius: 18px;
  padding: 18px;
  width: 280px;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.1));
  opacity: 0;
  transform: translateY(15px) scale(0.95);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
}

.wa-chat-tooltip.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wa-chat-tooltip::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 22px;
  width: 16px;
  height: 16px;
  background: var(--bg);
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  transform: rotate(45deg);
  z-index: 1;
}

.wa-tooltip-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #9a9a9a;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: background 0.25s, color 0.25s;
  z-index: 2;
}

.wa-tooltip-close:hover {
  background: #f0f0f0;
  color: #0d0d0d;
}

.wa-tooltip-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  padding-bottom: 12px;
}

.wa-tooltip-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.1);
  color: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-tooltip-avatar svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.wa-tooltip-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #25d366;
  border: 2px solid var(--bg);
  animation: wa-dot-blink 1.5s ease-in-out infinite alternate;
}

@keyframes wa-dot-blink {
  0% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1.1); }
}

.wa-tooltip-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.wa-tooltip-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0d0d0d;
}

.wa-tooltip-status {
  font-size: 11px;
  color: #25d366;
  font-weight: 600;
}

.wa-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 0 0;
  opacity: 0;
  animation: wa-fade-in 0.4s 0.3s forwards;
}

.wa-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.4;
  animation: wa-typing-bounce 1.2s ease-in-out infinite;
}

.wa-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.wa-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes wa-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

@keyframes wa-fade-in {
  to { opacity: 1; }
}

.wa-tooltip-body {
  margin-bottom: 0;
  opacity: 0;
  animation: wa-fade-in 0.4s 0.6s forwards;
}

.wa-tooltip-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: #4a4a4a;
  margin: 0;
  font-weight: 400;
  background: #eefaf3;
  padding: 10px 14px;
  border-radius: 4px 14px 14px 14px;
  display: inline-block;
}

.wa-quick-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
  opacity: 0;
  animation: wa-fade-in 0.4s 0.9s forwards;
}

.wa-chip {
  padding: 6px 12px;
  border: 1.5px solid #25d366;
  border-radius: 16px;
  background: transparent;
  color: #1da851;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}

.wa-chip:hover {
  background: #25d366;
  color: #fff;
}

.wa-tooltip-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  margin-top: 12px;
  background: linear-gradient(135deg, #25d366, #1da851);
  color: var(--bg) !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
  transition: transform 0.25s, box-shadow 0.25s;
  opacity: 0;
  animation: wa-fade-in 0.4s 1.2s forwards;
  border: none;
}

.wa-tooltip-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.wa-tooltip-action-btn svg {
  stroke: currentColor;
  transition: transform 0.25s;
}

.wa-tooltip-action-btn:hover svg {
  transform: translateX(3px);
}

@media (max-width: 480px) {
  .wa-float-container {
    bottom: 16px;
    right: 16px;
  }
  .wa-btn {
    width: 50px;
    height: 50px;
  }
  .wa-icon-box {
    width: 26px;
    height: 26px;
  }
  .wa-chat-tooltip {
    width: 240px;
    padding: 14px;
  }
  .wa-chat-tooltip::after {
    right: 17px;
  }
  .wa-tooltip-text {
    font-size: 12px;
    padding: 8px 12px;
  }
  .wa-tooltip-avatar {
    width: 32px;
    height: 32px;
  }
  .wa-tooltip-avatar svg {
    width: 18px;
    height: 18px;
  }
  .wa-tooltip-action-btn {
    padding: 9px;
    font-size: 12px;
  }
  .wa-chip {
    font-size: 10.5px;
    padding: 5px 10px;
  }
}

.wa-btn.wa-left {
  left: 24px;
  right: auto;
}

@media (max-width: 768px) {
  .wa-btn.wa-hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .wa-btn.wa-hide-desktop {
    display: none !important;
  }
}
