/* Floating WhatsApp Icon */
#wa-floating-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

#wa-floating-icon img {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  border-radius: 0 !important;
}

.wa-notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  background: red;
  border-radius: 50%;
}

/* Main Widget Box */
#whatsapp-widget {
  position: fixed;
  bottom: 95px;
  right: 20px;
  width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  overflow: hidden;
  z-index: 99998;
  font-family: Arial, sans-serif;
}

.wa-hidden {
  display: none;
}

/* Header */
.wa-top-bar {
  /*background: #075E54;*/
  background: #128C7E;
  color: white;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.wa-agent-info {
  display: flex;
  gap: 10px;
  align-items: center;
}

.wa-avatar {
  width: 45px !important;
  height: 45px !important;
  max-width: 45px !important;
  border-radius: 50% !important;
  object-fit: cover;
}

.wa-top-bar strong {
  color: white;
  font-size: 15px;
}

.wa-top-bar small {
  color: rgba(255,255,255,0.85);
  font-size: 12px;
}

.close-btn {
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: white;
}

/* Chat Body */
.wa-chat-body {
  background: #ECE5DD;
  padding: 18px;
}

/* WhatsApp-style message bubble */
.wa-message-box {
  background: #ffffff;
  padding: 10px 12px 8px;
  border-radius: 8px 8px 8px 2px;
  max-width: 190px;
  width: fit-content;
  min-width: 160px;
  position: relative;
  box-shadow: 0 1px 1px rgba(0,0,0,0.08);
  font-size: 14px;
  line-height: 1.4;
  color: #303030;
  display: inline-block;
}

/* Bubble tail */
.wa-message-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: -6px;
  width: 0;
  height: 0;
  border-top: 8px solid #ffffff;
  border-right: 8px solid transparent;
}

/* Sender name */
.wa-msg-name {
  font-size: 12px;
  font-weight: 600;
  color: #9a9a9a;
  margin-bottom: 4px;
  line-height: 1.2;
}

/* Message text */
.wa-msg-text {
  font-size: 14px;
  color: #303030;
  line-height: 1.5;
  word-break: break-word;
}

/* Timestamp */
.wa-time {
  text-align: right;
  font-size: 11px;
  color: #999;
  margin-top: 4px;
  line-height: 1;
}

/* Footer */
.wa-footer {
  padding: 14px;
  background: white;
}

.wa-start-chat {
  display: block;
  text-align: center;
  background: #25D366;
  color: white !important;
  padding: 14px;
  border-radius: 30px;
  text-decoration: none !important;
  font-weight: bold;
  font-size: 15px;
}

.wa-start-chat:hover {
  background: #20ba5a;
}

/* Remove bubble tail */
.wa-message-box::before {
  display: none;
}

.wa-message-box .wa-agent-name {
  font-size: 13px;
  color: #999;
}

.wa-avatar-wrapper {
  position: relative;
}

.wa-avatar-wrapper::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: #25D366;
  border: 2px solid white;
  border-radius: 50%;
}