#chatBot-researcher {
    position: fixed;
    bottom: 100px;
    z-index: 999;
    background: transparent;
    border: 0;
    color: #fff;
    right: 40px;
    font-size: 30px;
    font-weight: 900;
}
#chatBot-researcher::after, #chatBot-researcher::before {
    content: '';
    width: 50px;
    height: 50px;
    background: #8a2be2;
    top: -2px;
    z-index: -1;
    border-radius: 50%;
    left: 50%;
    transform: translate(-50%);
    position: absolute;
}
#chatBot-researcher::before {
    left: -9px;
    animation: chatbot-toggler 1.2s ease infinite;
}

@keyframes chatbot-toggler {
  from { opacity: 1; transform: scale3d(1,1,1); }
  to { opacity: 0; transform: scale3d(1.5,1.5,1); }
}
.chat-bot-yabesh,
.chat-bot-researcher {
  position: fixed;
  top: 94px;
  right: 0;
  width: 30%;
  min-height: calc(100% - 94px);
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 20px 0 0 20px;
}
.chat-bot-yabesh.show,
.chat-bot-researcher.show {
  transform: translateX(0); /* Move into view */
  opacity: 1; /* Fully visible */
}
.chatbot-yabesh_header,
.chatbot-researcher_header {
  display: flex;
  font-size: 16px;
  align-items: center;
  justify-content: space-between;
  border-bottom: solid 1px #8a2be2;
  padding: 5px 25px 0 5px;
  background: rgba(169, 169, 169,.3);
}
.chatbot-yabesh_header button, .chatbot-yabesh_header button:hover,
.chatbot-researcher_header button, .chatbot-researcher_header button:hover{
	background: none;
    border: 0;
}
.chat-bot-yabesh .chatbox,
.chat-bot-researcher .chatbox {
  margin: 15px 20px;
  padding: 0;
  overflow: auto;
  max-height: 34em;
}
.chat-bot-yabesh .chatbox li.incoming span,
.chat-bot-researcher .chatbox li.incoming span {
  background: none;
  /* border: solid 1px #222;
  border-radius: 50%; */
}
.chatbot-yabesh_header img,
.chatbot-researcher_header img {
    transition: transform 0.3s ease; /* Smooth transition for rotation */
}
.chatbot-yabesh_header:hover img,
.chatbot-researcher_header:hover img {
    transform: rotate(180deg); /* Rotate the image 180 degrees */
}
.chatbot-yabesh_footer,
.chatbot-researcher_footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 15px;
  padding: 8px;
  position: fixed;
  bottom: 20px;
  width: 90%;
  background: #f6f6f6;
  border-radius: 5px;
  box-shadow: 0 2px 4px 0 rgba(0,0,0,.14),0 0 2px 0 rgba(0,0,0,.12);
}
.chatbot-yabesh_footer::after,
.chatbot-researcher_footer::after {
	content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,#8a2be2 .65%, #0ff 100.65%);
}
.chatbot-yabesh_footer textarea,
.chatbot-researcher_footer textarea{
	line-height: 1;
	background: none;
	border: none;
	outline: none;
	resize: none;
	box-shadow: none;
}
.chatbot-yabesh_footer textarea:focus,
.chatbot-researcher_footer textarea:focus{
	background: none;
}
.chatbot-yabesh_footer button,
.chatbot-researcher_footer button{
	line-height: 0;
	background: none;
    border: 0;
}



/* Import Google font - Poppins */

.chatbot-toggler {
  position: fixed;
  bottom: 30px;
  right: 35px;
  outline: none;
  border: none;
  height: 50px;
  width: 50px;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #FE9602;
  transition: all 0.2s ease;
}

body.show-chatbot .chatbot-toggler {
  transform: rotate(90deg);
}

.chatbot-toggler span {
  color: #fff;
  position: absolute;
}

.chatbot-toggler span:last-child,
body.show-chatbot .chatbot-toggler span:first-child {
  opacity: 0;
}

body.show-chatbot .chatbot-toggler span:last-child {
  opacity: 1;
}

.chatbot {
  position: fixed;
  right: 35px;
  bottom: 90px;
  width: 420px;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
  transform-origin: bottom right;
  box-shadow: 0 0 128px 0 rgba(0, 0, 0, 0.1),
    0 32px 64px -48px rgba(0, 0, 0, 0.5);
  transition: all 0.1s ease;
}

body.show-chatbot .chatbot {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.chatbot header {
  padding: 16px 0;
  position: relative;
  text-align: center;
  color: #fff;
  background: #FE9602;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chatbot header span {
  position: absolute;
  right: 15px;
  top: 50%;
  cursor: pointer;
  transform: translateY(-50%);
}

header h2 {
  font-size: 1.4rem;
}

.chatbot .chatbox {
  overflow-y: auto;
  height: 510px;
  padding: 30px 20px 100px;
  margin: 0;
}

.chatbot :where(.chatbox, textarea)::-webkit-scrollbar {
  width: 6px;
}

.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-track {
  background: #fff;
  border-radius: 25px;
}

.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 25px;
}

.chatbox .chat {
  display: flex;
  list-style: none;
}

.chatbox .outgoing {
  margin: 20px 0;
  justify-content: flex-end;
}

.chatbox .incoming span {
  /* width: 32px;
  height: 32px;
  color: #fff;
  cursor: default;
  text-align: center;
  line-height: 32px; */
  align-self: flex-end;
  /* background: #FE9602;
  border-radius: 4px; */
  margin: 0 0 7px 10px;
  /* padding: 4px; */
}

.chatbox .chat p {
  white-space: pre-wrap;
  padding: 12px 16px;
  border-radius: 10px 10px 10px 0;
  max-width: 75%;
  color: #fff;
  font-size: 14px;
  background: #8a2be2;
}

.chatbox .incoming p {
  border-radius: 10px 10px 0 10px;
}

.chatbox .chat p.error {
  color: #721c24;
  background: #f8d7da;
}

.chatbox .incoming p {
  color: #000;
  background: #f2f2f2;
  margin: 0;
}
.chatbot .chat-input {
  display: flex;
  gap: 5px;
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #fff;
  padding: 3px 20px;
  border-top: 1px solid #ddd;
}

.chat-input textarea {
  height: 55px;
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  max-height: 180px;
  padding: 15px 15px 15px 0;
  font-size: 0.95rem;
  background: transparent;
  box-shadow: none;
}

.chat-input textarea:focus {
  background-color: transparent;
}

.chat-input span {
  align-self: flex-end;
  color: #FE9602;
  cursor: pointer;
  height: 55px;
  display: flex;
  align-items: center;
  visibility: hidden;
  font-size: 1.35rem;
}

.chat-input textarea:valid~span {
  visibility: visible;
}

.chatBot-defaultQ {
  font-size: 12px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  border-radius: 18px;
  cursor: pointer;
  word-break: break-word;
  border: solid 1px;
  max-width: calc(100% - 140px);
  margin: 10px 40px;
}
.chatBot-defaultQ:hover{
	background: #f0f0f0;
}

#chatBotYabesh .bg{
  animation: chatbot-toggler 1.2s ease infinite;
  background: rgb(255,204,109);
  display: block;
  width: 50px;
  height: 50px;
  position: fixed;
  right: 35px;
  bottom: 30px;
  border-radius: 50%;
}

@keyframes chatbot-toggler {
  from { opacity: 1; transform: scale3d(1,1,1); }
  to { opacity: 0; transform: scale3d(1.5,1.5,1); }
}

.typing{
  animation-name: typing;
  animation-duration: 1s;
  animation-timing-function: steps(200, end);
  animation-iteration-count: 1;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; visibility: visible; }
}

@media (max-width: 490px) {
  .chatbot-toggler, #chatBotYabesh .bg {
    right: 20px;
    bottom: 80px;
    z-index: 999999;
  }

  .chatbot {
    right: 0;
    bottom: 0;
    height: 100%;
    border-radius: 0;
    width: 100%;
	z-index: 99999;
  }

  .chatbot .chatbox {
    height: 90%;
    padding: 25px 15px 100px;
  }

  .chatbot .chat-input {
    padding: 5px 15px;
  }

  .chatbot header span {
    display: block;
  }
  
  .chatBot-defaultQ { 
	max-width: calc(100% - 100px); 
  }
  .chat-bot-yabesh,
  .chat-bot-researcher {
	  width: 100%;
	  z-index: 99999;
	}
}