/* Import Google font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  
}
.chatbot-toggler {
  position: fixed;
  bottom: 100px;
  right: 25px;
  outline: none;
  border: none;
  height: 50px;
  width: 50px;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  transition: all 0.2s ease;
}
body.show-chatbot .chatbot-toggler {
  transform: rotate(90deg);
  background:rgb(254,80,0);
}
.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: relative;
  transform: translate(-50%, -50%);
  left:50%;
  top: 50%;
  width: 100%;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  border:1px solid lightgrey;
/*
  box-shadow: 0 0 128px 0 rgba(0,0,0,0.1),
              0 32px 64px -48px rgba(0,0,0,0.5);
			  
	*/		  

}
body.show-chatbot .chatbot {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  
}
.chatbot header {
  padding: 16px;
  position: relative;
  text-align: left;
  color: grey;
  background: whitesmoke;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.chatbot header span {
  position: absolute;
  right: 15px;
  top: 50%;
  display: none;
  cursor: pointer;
  transform: translateY(-50%);
}
header h2 {
  font-size: 1.4rem;
}
.chatbot .chatbox {
  overflow-y: auto;
  height: 510px;
  width:100%;
  padding: 30px 20px 100px;
  
  border:0px solid lime;
}
.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: none;
  border-radius: 4px;
  margin: 0 10px 7px 0;
  
}
.chatbox .chat p {
  white-space: pre-wrap;
  text-align:left;
  padding: 12px 16px;
  border-radius: 10px 10px 0 10px;
  max-width: 100%;
  color: #fff;
  font-size: 0.95rem;
  background: rgb(254,80,0);
}
.chatbox .incoming p {
  border-radius: 10px 10px 10px 0;
  width:100%;
}
.chatbox .chat p.error {
  color: #721c24;
  background: #f8d7da;
}
.chatbox .incoming p {
  color: #000;
  background: #f2f2f2;
}
.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;
}
.chat-input span {
  align-self: flex-end;
  color: rgb(254,80,0);
  cursor: pointer;
  height: 55px;
  display: flex;
  align-items: center;
  visibility: hidden;
  font-size: 1.35rem;
}
.chat-input textarea:valid ~ span {
  visibility: visible;
}




.preloader__box {
  width: 40px;
  height: 40px;
  display: inine-block;
  position: relative;
  background:green;
}
.preloader__box section {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  border: 2px solid #fff;
  pointer-events: none;
  animation: preloader 1.5s linear infinite;
}
.preloader__box section:nth-of-type(1) {
  border-radius: 48% 52% 68% 32%/46% 40% 60% 54%;
  box-shadow: 0px 0px 10px 0px rgba(254,80,0, 0.8), inset 0px 0px 10px 0px rgba(254,80,0, 0.8);
}
.preloader__box section:nth-of-type(2) {
  animation-direction: reverse;
  border-radius: 27% 73% 64% 36%/69% 39% 61% 31%;
  box-shadow: 0px 0px 10px 0px rgba(254,80,0, 0.5), inset 0px 0px 10px 0px rgba(251, 184, 53, 0.5);
}
.preloader__box section:nth-of-type(3) {
  animation-duration: 3s;
  border-radius: 58% 42% 30% 70%/38% 59% 41% 62%;
  box-shadow: 0px 0px 10px 0px rgba(254,80,0, 0.7), inset 0px 0px 10px 0px rgba(253, 100, 67, 0.7);
}

@keyframes preloader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}












@media (max-width: 490px) {
  .chatbot-toggler {
    right: 20px;
    bottom: 20px;
  }
  .chatbot {
    right: 0;
    bottom: 0;
    height: 100%;
    border-radius: 0;
    width: 100%;
  }
  .chatbot .chatbox {
    height: 90%;
    padding: 25px 15px 100px;
  }
  .chatbot .chat-input {
    padding: 5px 15px;
  }
  .chatbot header span {
    display: block;
  }
}