#chatWindow {
  position: fixed;
  bottom: 0px;
  right: 20px;
  width: 380px;
  height: 500px;
  z-index: 9999;
  border: none;
  overflow: hidden;
  font-size: 15px;
  border: 2px solid #6666666e;
}

.chatbot-icon-front {
  position: fixed;
  bottom: 70px;
  right: 20px;
  width: 60px;
  height: 60px;
  z-index: 9999;
  font-size: 25px !important;
  text-align: center;
  color: #fff;
  background: #0094d3 !important;
}

.form-control:focus {
  box-shadow: none;
}

.user-ask-message .timestamp {
  color: #fff;
}

/* .dots span {
  animation: blink 1.2s infinite;
  font-weight: bold;
  font-size: 18px;
  padding: 0 2px;
}
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0% { opacity: 0.2; }
  20% { opacity: 1; }
  100% { opacity: 0.2; }
} */
#chatWindow .card-header {
  background-color: #0094d3 !important;
}

#chatWindow .btn.btn-link {
  color: #0094d3 !important;
}

.chat-close {
  float: right;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
}

button.chat-close {
  padding: 0;
  background-color: transparent;
  border: 0;
}

.chat-assistant-left>span {
  font-weight: 600;
}

/* ================== */

.chat-bubble {
  display: flex;
  align-items: flex-start;
  margin: 20px 0px;
  font-family: Arial, sans-serif;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  background-color: #ffe8cc;
  border-radius: 50%;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  flex-shrink: 0;
  color: #00529b;
}

.avatar-circle-start {
  background-color: #e6f0ff;
  border-radius: 50%;
  font-size: 18px;
  color: #00529b;
  padding: 5px;
  margin-right: 7px;
}

.message-wrapper {
  display: flex;
  flex-direction: column;
}

.sender-name {
  font-weight: bold;
  margin-bottom: 5px;
  color: #0094d3;
  line-height: 15px;
}

.message-bubble {
  background-color: #e5e7e9;
  border-radius: 12px;
  padding: 10px 11px;
  max-width: 290px;
}

.assitant-reply-message {
  color: #2c3e50;
  line-height: 1.4;
}

.assitant-reply-message a {
  color: #0056b3;
  text-decoration: underline;
}

.timestamp {
  font-size: 10px;
  color: #777;
  line-height: 1.2;
  margin-top: 10px;
}

.typing-style {
  display: flex;
  align-items: flex-start;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  background-color: #e6f0ff;
  color: #00529b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
}

.message-bubble.typing-bubble {
  background-color: #fff;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.typing-dot {
  width: 12px;
  height: 12px;
  border: 2px solid #007baf;
  border-radius: 50%;
  animation: pulse 1.2s infinite ease-in-out;
}

.typing-text {
  color: #555;
  font-style: italic;
  font-size: 12px;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.3);
    opacity: 1;
  }

  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
}


.chat-assistant-left {
  display: flex;
  align-items: flex-start;
}

.avatar-circle {
  width: 36px;
  height: 36px;
  background-color: #e6f0ff;
  color: #00529b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
}


.typing-dots {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 10px;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  background-color: #007baf;
  border-radius: 50%;
  animation: bounce 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {

  0%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-6px);
  }
}

/* user ask msg */
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #fff;
}

.user-ask-message {
  background-color: #0094d3;
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  display: inline-block;
  margin-top: 4px;
  max-width: 270px;
  text-align: left;
}

.user-ask-message>div {
  line-height: 1.4;
}

.chat-assistant {
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
  color: #0094d3;
  line-height: 15px;
}

#chatWindow .fas.fa-times {
  font-size: 21px;
  font-weight: 600;
}

.online-dot {
  position: absolute;
  bottom: 0px;
  right: 3px;
  width: 10px;
  height: 10px;
  background-color: #28a745;
  border: 2px solid white;
  border-radius: 50%;
}
#chatWindow.minimized .card-body,
#chatWindow.minimized .card-footer {
    display: none;
}
button.chat-minimize {
    background: transparent;
    border: none;
    padding: 0 20px;
}
@media screen and (max-width: 768px) {
  #chatWindow {
    width: 100%;
    bottom: 0;
    right: 0;
    border-radius: 0;
    margin: 0;
    z-index: 9999;
  }
  .chatbot-icon-front {
    display: none;
  }
  
}