.floating-contact {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-contact-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.floating-contact-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  color: #fff;
}

.floating-contact-btn.whatsapp {
  background: #25D366;
}

.floating-contact-btn.wechat {
  background: #07C160;
}

.floating-contact-btn .tooltip {
  position: absolute;
  left: 62px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8125rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.floating-contact-btn:hover .tooltip {
  opacity: 1;
}

.floating-contact-btn .tooltip::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: rgba(15, 23, 42, 0.9);
  border-left: none;
}

/* WeChat QR popup */
.wechat-qr-popup {
  position: absolute;
  left: 64px;
  bottom: 0;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
  transition: all 0.25s ease;
  width: 200px;
  text-align: center;
}

.wechat-qr-popup.show {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

.wechat-qr-popup p {
  font-size: 0.8125rem;
  color: #334155;
  margin: 8px 0 0;
  font-weight: 600;
}

.wechat-qr-popup img {
  width: 160px;
  height: 160px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
  .floating-contact {
    bottom: 16px;
    left: 16px;
  }

  .floating-contact-btn {
    width: 46px;
    height: 46px;
    font-size: 1.3rem;
  }

  .wechat-qr-popup {
    left: 58px;
    width: 180px;
  }
}
