.wsp-float {
  position: fixed;
  bottom: 90px;
  right: 36px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  font-family: inherit;
}

/* Bubble */
.wsp-bubble {
  background: #ffffff;
  color: #111;
  border-radius: 18px 18px 4px 18px;
  padding: 16px 18px 14px;
  width: 270px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.08);
  position: relative;
  transform-origin: bottom right;
  opacity: 0;
  transform: scale(0.82) translateY(12px);
  pointer-events: none;
  transition: opacity 0.42s cubic-bezier(0.34,1.56,0.64,1),
              transform 0.42s cubic-bezier(0.34,1.56,0.64,1);
}
.wsp-bubble.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
.wsp-bubble__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.wsp-bubble__identity {
  display: flex;
  align-items: center;
  gap: 9px;
}
.wsp-bubble__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a0a0a 0%, #2a2a2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #b89b6e;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.wsp-bubble__name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
  line-height: 1.2;
}
.wsp-bubble__status {
  font-size: 0.62rem;
  color: #25D366;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.wsp-bubble__close {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f0f0f0;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #666;
  flex-shrink: 0;
  transition: background 0.2s;
  line-height: 1;
}
.wsp-bubble__close:hover { background: #e0e0e0; }
.wsp-bubble__divider {
  height: 1px;
  background: #f0f0f0;
  margin: 0 0 10px;
}
.wsp-bubble__msg {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #333;
  margin: 0 0 12px;
}
.wsp-bubble__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #25D366;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 9px 15px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.2s;
  width: 100%;
  justify-content: center;
}
.wsp-bubble__cta:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
.wsp-bubble__cta svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}

/* Main button */
.wsp-btn-wrap {
  position: relative;
  width: 60px;
  height: 60px;
}
.wsp-btn {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(145deg, #25D366, #1ebe5d);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 28px rgba(37,211,102,0.40), 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.22s ease;
  z-index: 2;
  animation: wspWiggle 8s ease-in-out infinite;
}
.wsp-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 36px rgba(37,211,102,0.50), 0 4px 12px rgba(0,0,0,0.15);
  animation: none;
}
.wsp-btn:hover ~ .wsp-ring,
.wsp-btn:hover ~ .wsp-ring-2 {
  animation-play-state: paused;
}
.wsp-btn svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
  position: relative;
  z-index: 1;
}

/* Sonar rings */
.wsp-ring,
.wsp-ring-2 {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37,211,102,0.3);
  animation: wspSonar 2.4s ease-out infinite;
  pointer-events: none;
}
.wsp-ring-2 {
  animation-delay: 0.9s;
}

@keyframes wspSonar {
  0%   { transform: scale(1);   opacity: 0.55; }
  70%  { transform: scale(2.0); opacity: 0; }
  100% { transform: scale(2.0); opacity: 0; }
}

@keyframes wspWiggle {
  0%,  90%, 100% { transform: rotate(0deg) scale(1); }
  92%            { transform: rotate(-8deg) scale(1.05); }
  94%            { transform: rotate(8deg) scale(1.05); }
  96%            { transform: rotate(-5deg) scale(1.03); }
  98%            { transform: rotate(5deg) scale(1.03); }
}

/* Tooltip */
.wsp-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10,10,10,0.88);
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.wsp-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right: none;
  border-left-color: rgba(10,10,10,0.88);
}
.wsp-btn-wrap:hover .wsp-tooltip { opacity: 1; }

/* Notification dot */
.wsp-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 13px;
  height: 13px;
  background: #ff3b3b;
  border-radius: 50%;
  border: 2px solid #fff;
  z-index: 3;
  animation: wspDotPulse 2s ease-in-out infinite;
}
@keyframes wspDotPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.25); }
}

/* Mobile */
@media (max-width: 576px) {
  .wsp-float { bottom: 80px; right: 20px; }
  .wsp-bubble { width: 240px; }
  .wsp-btn, .wsp-btn-wrap { width: 54px; height: 54px; }
  .wsp-btn svg { width: 24px; height: 24px; }
}
