#chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 0px;
  z-index: 9999;
  width: auto;
  left: 0px;
  top: 30px;
}

#chatbot-button {
  padding: 10px;
  background-color: #007bff;
  color: #fff;
  cursor: pointer;
  width: 50px;
  text-align: center;
  position: absolute;
  bottom: 0;
  right: 70px;
}
#chatbot-window {
display: block;
width: auto ;
height: 100vh;
border: 1px solid #ccc;
border-radius: 4px;
overflow: hidden;
position: relative;
}

#chatbot-header {
padding: 10px;
background-color: #70AA26;
border-bottom: 1px solid #ccc;
display: flex;
align-items: center;
}

#close-button {
margin-left: auto;
cursor: pointer;
color: #fff;
}

#chatbot-content {
height: calc(100% - 40px);
display: flex;
flex-direction: column;
}

#chatbot-messages {flex-grow: 1;padding: 10px  20px;overflow-y: auto;word-wrap: break-word;height: calc(100% - 50px);scrollbar-width: thin;scrollbar-color: #ccc transparent;height: calc(100% - 70px);/* padding-bottom: 50px; */overflow-y: auto;bottom: 0;margin-top: 30px;margin-bottom: 30px;}

#chatbot-messages::-webkit-scrollbar {
width: 8px;
}

#chatbot-messages::-webkit-scrollbar-track {
background-color: transparent;
}

#chatbot-messages::-webkit-scrollbar-thumb {
background-color: #ccc;
border-radius: 4px;
}

#chatbot-messages::-webkit-scrollbar-thumb:hover {
background-color: #999;
}

#chatbot-input {
padding: 10px;
display: flex;
align-items: center;
position: fixed;
bottom: 0px;
left: 0;
right: 0;
width: auto;
}

#user-input {
flex-grow: 1;
margin-right: 5px;
padding: 5px;
height: 40px;
box-sizing: border-box;
border: 1px solid #e5e5e5;
background: #e5e5e5;
}
#user-input:focus{
  outline: none;
}
#send-button {
padding: 5px 20px;
height: 40px;
min-width: auto;
border: 1px solid rgb(112, 170, 38);
background: rgb(112, 170, 38);
color: #fff;
font-weight: 600;
}

.message-icon {
width: 100px;
height: auto;
/* background-color: #ccc; */
border-radius: 20%;
display: block;
align-items: center;
justify-content: center;
color: #000;
margin: 5px 0;
font-size: 15px;
font-weight: 700;
}
#chatbot-messages .message {
  background: #cccccc57;
  width: auto;
  left: 0;
  right: 0;
  padding: 10px;
  border-radius: 10px;
  max-width: max-content;
  position: relative;
  margin-left: 35px;
  margin-block: 15px;
}
#chatbot-messages .message:before {
  content: '';
  position: absolute;
  top: 0;
  left: -39px;
  width: 34px;
  height: 34px;
  background: #cccccc;
  border-radius: 50%;
}
#chatbot-messages .message-user {
  background: #cccccc57;
  width: auto;
  left: 0;
  right: 0;
  padding: 10px;
  border-radius: 10px;
  max-width: max-content;
  position: relative;
  margin-left: auto;
  margin-bottom: 15px;
  margin-right: 35px;
}
#chatbot-messages .message-user:before {
  content: '';
  position: absolute;
  top: 0;
  left: unset;
  width: 34px;
  height: 34px;
  background: #cccccc;
  border-radius: 50%;
  right: -39px;
}
.top_bar {
  text-align: center;
  padding: 15px  10px;
  background: #70AA26;
  color: #fff;
  font-size: 19px;
  line-height: 1;
  font-weight: 600;
}
#chatbot-messages span img {
  width: 34px;
  object-fit: contain;
  height: 34px;
  border: 1px solid #ccc;
  border-radius: 50%;
}
#chatbot-messages .message-user span {
  position: absolute;
  right: -40px;
  top: 0;
}
#chatbot-messages .CBL-Assistant span  {
  position: absolute;
  left: -40px;
  top: 0;
}