body {
  font-family: "Segoe UI", Arial, sans-serif;
}

/* Floating Button */
/* Floating Button */
.chat-btn {
  position: fixed;
  bottom: 20px;
  background: var(--wa-theme, #25d366);
  color: white;
  border-radius: 50%;
  padding: 16px;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 999;
  transition: transform 0.2s ease;
}

.chat-btn:hover { transform: scale(1.1); }
.chat-btn.right { right: 20px; }
.chat-btn.left { left: 20px; }

/* Greeting Bubble */
.greeting-bubble {
  position: fixed;
  bottom: 85px;
  background: #fff;
  padding: 12px 18px;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  font-size: 14px;
  font-weight: 500;
  color: #333;
  animation: bounceIn 0.8s ease;
  z-index: 999;
}
.greeting-bubble.right { right: 80px; }
.greeting-bubble.left { left: 80px; }
@keyframes bounceIn {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}

/* Chat Popup */
.chat-popup {
  position: fixed;
  bottom: 80px;
  width: 360px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: fadeInUp 0.4s ease;
  z-index: 999;
}
.chat-popup.right { right: 20px; }
.chat-popup.left { left: 20px; }

@keyframes fadeInUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* .chat-header {
  background: #25d366;
  color: white;
  padding: 15px 18px;
  font-weight: bold;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
} */

.chat-header {
  background: var(--wa-theme, #25d366);
  color: white;
  padding: 15px 18px;
  font-weight: bold;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* Section Wrappers */
.section {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.section:last-child { border-bottom: none; }

/* Agent Cards */
.agent-card {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  background: #fafafa;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.agent-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.agent-card.bubbling {
  animation: bubble 1.5s infinite ease-in-out;
}
@keyframes bubble {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.agent-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
}
.agent-info { flex: 1; }
.agent-name { font-weight: 600; font-size: 14px; }
.agent-status { font-size: 12px; color: gray; }
/* .agent-online { color: #25d366; font-weight: bold; margin-left: 6px; } */

.agent-online {
  background: var(--wa-theme, #25d366);
  color: var(--wa-theme, #25d366);
}

/* Typing Animation */
.typing {
  font-size: 13px;
  margin: 8px 0;
  display: flex;
  align-items: center;
}
.typing span {
  display: inline-block;
  width: 6px;
  height: 6px;
  /* background: #25d366; */
    background: var(--wa-theme, #25d366);

  border-radius: 50%;
  margin: 0 3px;
  animation: blink 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* Typing text animation */
.animated-greeting {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: #333;

}

/* Quick Replies */
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.quick-replies button {
  background: #8a8d8b;
  border: none;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.quick-replies button:hover {
  background: var(--wa-theme, #25d366);
  color: white;
}

/* Contact Section */
.contact-info {
  font-size: 14px;
  color: #444;
}
.contact-item {
  margin: 6px 0;
  display: flex;
  align-items: center;
}
.contact-item i {
  margin-right: 8px;
  /* color: #25d366; */
    color: var(--wa-theme, #25d366);
  font-size: 16px;
}

/* Socials */
.socials {
  display: flex;
  justify-content: center;
  gap: 14px;
}
.socials a {
  font-size: 20px;
  color: #555;
  transition: color 0.2s;
}
/* .socials a:hover { color: #25d366; } */

.socials a:hover { color: var(--wa-theme, #25d366); }

.chat-body{
    max-height: fit-content;
}

.agent-avatar-wrapper {
  position: relative;
  display: inline-block;
}

.agent-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid var(--wa-theme, #062206) ; /* WhatsApp green border */
}

.agent-online {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: var(--wa-theme, #25d366);
  color: var(--wa-theme, #25d366);
  font-size: 7px;
  padding: 2px 6px;
  border-radius: 9px;
  font-weight: bold;
}


.whatsapp-channel {
  text-align: center;
  margin: 10px 0;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 8px;
}

.channel-title {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 14px;
  color: #333;
}


.channel-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  /* background: #25D366; */
    background: var(--wa-theme, #25d366);
  color: white;
  font-weight: 600;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.channel-link i {
  font-size: 18px;
}

.channel-link:hover {
  background: #1ebe57; /* optional darker shade, or keep var(--wa-theme) */
  transform: translateY(-2px);
}

