.wa-widget-wrap {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.wa-widget-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-widget-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.55);
}
.wa-popup {
  display: none;
  flex-direction: column;
  width: 300px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  animation: waSlideIn 0.25s ease;
}
.wa-popup.wa-popup-open {
  display: flex;
}
@keyframes waSlideIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}
.wa-popup-header {
  background: #075E54;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wa-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wa-agent-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wa-agent-name {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wa-agent-title {
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
}
.wa-close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 18px;
  padding: 2px 4px;
  line-height: 1;
  flex-shrink: 0;
}
.wa-close-btn:hover { color: #fff; }
.wa-popup-body {
  background: #ECE5DD;
  padding: 16px;
  min-height: 90px;
}
.wa-bubble {
  background: #fff;
  border-radius: 8px;
  border-top-left-radius: 0;
  padding: 10px 12px;
  max-width: 85%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.wa-bubble p {
  margin: 0;
  font-size: 13px;
  color: #333;
  line-height: 1.5;
}
.wa-time {
  display: block;
  font-size: 10px;
  color: #999;
  text-align: right;
  margin-top: 4px;
}
.wa-popup-footer {
  padding: 12px;
  background: #f0f0f0;
}
.wa-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: #25D366;
  color: #fff !important;
  border-radius: 50px;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease;
  box-sizing: border-box;
}
.wa-send-btn:hover {
  background: #1fba58;
  color: #fff !important;
}