/* 🔹 Floating Chat Icon */
img.vesa_chat_bot_creator {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 90px;
  z-index: 9999;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img.vesa_chat_bot_creator:hover {
  transform: scale(1.08);
}

/* 🔹 Chat Container */
#vesa_chat_container {
  position: fixed;
  bottom: 26px;
  left: 118px;
  width: 340px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  font-family: "Inter", "Segoe UI", sans-serif;
  overflow: hidden;
  z-index: 99999;
  display: none;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🟦 Header */
#vesa_chat_header {
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 12px 15px;
  position: relative;
  border-radius: 18px 18px 0 0;
}

.vesa_agent_avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin-right: 10px;
  border: 2px solid #fff;
}

.vesa_header_text h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff !important;
}

.vesa_header_text p {
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
}

#vesa_chat_close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.3s;
}

#vesa_chat_close:hover {
  opacity: 0.7;
}

/* 🔸 Chat Box */
#vesa_chat_box {
  height: 340px;
  overflow-y: auto;
  padding: 15px;
  background: #f6f8fc;
  display: flex;
  flex-direction: column;
}

#vesa_chat_box::-webkit-scrollbar {
  width: 6px;
}

#vesa_chat_box::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/* 🧍 User Message */
.user_msg {
  align-self: flex-end;
  background: #000;
  color: #fff;
  padding: 10px 14px;
  border-radius: 16px 16px 0 16px;
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.4;
  max-width: 75%;
  box-shadow: 0 2px 6px rgba(0, 115, 170, 0.2);
  animation: fadeIn 0.3s ease;
}

/* 🤖 Bot Message */
.bot_msg {
  align-self: flex-start;
  background: rgba(209, 121, 62, 0.15);
  color: #333;
  padding: 10px 14px;
  border-radius: 16px 16px 16px 0;
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.4;
  max-width: 80%;
  box-shadow: 0 2px 6px rgba(209, 121, 62, 0.15);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🔹 Input Area */
#vesa_chat_input_container {
  display: flex;
  align-items: center;
  border-top: 1px solid #eee;
  padding: 8px;
  background: #fff;
}

#vesa_chat_input {
  flex: 1;
  border: none;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f3f5f9;
  outline: none;
  font-size: 14px;
  transition: background 0.3s;
}

#vesa_chat_input:focus {
  background: #e9edf6;
}

#vesa_chat_send {
  border: none;
  background: #cd5536;
  color: #fff;
  padding: 10px 16px;
  margin-left: 8px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.3s ease, transform 0.2s ease;
}

#vesa_chat_send:hover {
  background: rgba(205, 85, 54, 0.89);
  transform: scale(1.05);
}

/* 🔔 Welcome Bubble */
#vesa_welcome_bubble {
  position: fixed;
  bottom: 120px;
  left: 20px;
  background: #1a1a1a;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  padding: 12px 14px;
  width: 260px;
  z-index: 99998;
  animation: fadeInUp 0.4s ease;
  cursor: pointer;
}

#vesa_welcome_bubble.vesa_hide {
  display: none;
}

#vesa_welcome_inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vesa_welcome_avatar_wrap {
  position: relative;
  flex-shrink: 0;
}

.vesa_welcome_avatar_wrap img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.vesa_online_dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 11px;
  height: 11px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #1a1a1a;
}

.vesa_welcome_text {
  flex: 1;
}

.vesa_welcome_text strong {
  display: block;
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 3px;
  font-weight: 600;
}

.vesa_welcome_text p {
  margin: 0;
  font-size: 13px;
  color: #ccc;
  line-height: 1.4;
}

#vesa_welcome_close {
  flex-shrink: 0;
  align-self: flex-start;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #aaa;
  line-height: 1;
  padding: 0;
}

#vesa_welcome_close:hover {
  color: #fff;
}

/* 🪶 Responsive */
@media (max-width: 500px) {
  #vesa_chat_container {
    left: 10px;
    right: 10px;
    width: auto;
  }
}