
.ds-chat-wrapper {
  position: absolute;
  z-index: 9999;
}

.ds-chat-wrapper .floating-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  background-color: #607AD6;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s, visibility 0.3s;
}

.ds-chat-wrapper #chat-icon {
  width: 23px;
}

.ds-chat-wrapper #close-icon {
  width: 15px;
}

.ds-chat-wrapper #login-title {
  font-weight: 500;
}

.ds-chat-wrapper .chat-popup {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 380px;
  height: 74%;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.ds-chat-wrapper .chat-header {
  background-color: #607AD6;
  color: #fff;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ds-chat-wrapper #avatar {
  border-radius: 10%;
  margin-right: 10px;
}

.ds-chat-wrapper #title {
  font-family: Poppins, sans-serif;
  flex: 1;
}

.ds-chat-wrapper .green-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: rgb(88, 241, 88);
  border-radius: 50%;
  vertical-align: middle;
}

.ds-chat-wrapper #chat-title {
  margin: 8px 0px;
  color: #ffffff;
}

.ds-chat-wrapper .status {
  margin: 5px 0px;
  color: #ffffff;
  font-size: small;
}

.ds-chat-wrapper #chatbox {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  margin-bottom: 10px;
  background-color: #ffffff;
  scrollbar-width: thin;
  scrollbar-color: #d3d3d3 #ffffff;
}

.ds-chat-wrapper #chatbox::-webkit-scrollbar {
  width: 6px;
}

.ds-chat-wrapper #chatbox::-webkit-scrollbar-track {
  background: #ffffff;
}

.ds-chat-wrapper #chatbox::-webkit-scrollbar-thumb {
  background: #d3d3d3;
  border-radius: 10px;
}

.ds-chat-wrapper #chatbox::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.ds-chat-wrapper #user-input-container {
  display: flex;
  align-items: center;
  padding: 5px;
  background-color: #f0f0f0;
}

.ds-chat-wrapper #user-input {
  flex: 1;
  padding: 10px;
  border: none;
  font-size: 16px;
  outline: none;
  background-color: transparent;
}

.ds-chat-wrapper #send-btn {
  background-color: transparent;
  color: #607ad6;
  border: none;
  margin-left: 5px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ds-chat-wrapper .loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}

.ds-chat-wrapper .dot {
  height: 8px;
  width: 8px;
  margin: 0 4px;
  background-color: #007bff;
  border-radius: 50%;
  display: inline-block;
  animation: loading 1.4s infinite ease-in-out both;
}

.ds-chat-wrapper .dot:nth-child(1) {
  animation-delay: -0.32s;
}

.ds-chat-wrapper .dot:nth-child(2) {
  animation-delay: -0.16s;
}

.ds-chat-wrapper .dot:nth-child(3) {
  animation-delay: 0s;
}

@keyframes loading {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

.ds-chat-wrapper .chat-status {
  display: flex;
  align-items: center;
}

.ds-chat-wrapper .status-dot {
  width: 10px;
  height: 10px;
  background-color: #28a745;
  border-radius: 50%;
  margin-right: 5px;
}

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

.ds-chat-wrapper .message {
  font-family: Poppins, sans-serif;
  margin: 5px 0;
  padding: 10px;
  border-radius: 10px;
  max-width: 80%;
  word-wrap: break-word;
  line-height: 1.5;
  animation: slideUp 0.5s ease-out;
}

.ds-chat-wrapper .user {
  background-color: #DC9F03;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 0;
  margin-left: 60px;
}

.ds-chat-wrapper .bot {
  background-color: #e9ecef;
  align-self: flex-start;
  border-bottom-left-radius: 0;
}

.ds-chat-wrapper .hidden {
  opacity: 0;
  visibility: hidden;
}

.ds-chat-wrapper .suggestions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.ds-chat-wrapper .suggestion {
  font-family: Poppins, sans-serif;
  background-color: #ffffff;
  border: 1px solid #d1d1d1;
  border-radius: 5px;
  padding: 10px 20px;
  text-align: left;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: #607AD6;
  transition: background-color 0.3s, border-color 0.3s;
  animation: slideUp 0.5s ease-out;
}

.ds-chat-wrapper .suggestion:hover {
  background-color: #f1f1f1;
  border-color: #a1a1a1;
}

.ds-chat-wrapper .bot-container {
  display: flex;
  align-items: flex-start;
  margin: 10px 0;
}

.ds-chat-wrapper .bot-icon {
  width: 40px;
  height: 40px;
  background: url('https://storage.googleapis.com/wms-stage/stack-bot/images/bot-circle-icon.jpg') no-repeat center center;
  background-size: cover;
  border-radius: 50%;
}

.ds-chat-wrapper .message.bot {
  background-color: #f1f1f1;
  padding: 10px;
  border-radius: 10px;
  max-width: 80%;
  display: inline-block;
}

.ds-chat-wrapper .typing-dots {
  display: flex;
}

.ds-chat-wrapper .typing-dots .dot {
  width: 8px;
  height: 8px;
  margin: 0 3px;
  background-color: #ccc;
  border-radius: 50%;
  animation: blink 1.4s infinite both;
}

.ds-chat-wrapper .typing-dots .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.ds-chat-wrapper .typing-dots .dot:nth-child(3) {
  animation-delay: 0.4s;
}

.ds-chat-wrapper .expand-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #333;
  margin-left: auto;
  display: flex;
  align-items: center;
}

.ds-chat-wrapper .chat-popup.expanded {
  width: 700px;
  height: 90%;
}

.ds-chat-wrapper .chat-popup {
  width: 380px;
  height: 74%;
  transition: width 0.3s ease, height 0.3s ease;
}

@keyframes blink {
  0%, 80%, 100% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
}
