/* Import Google font - Poppins */
/* @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap'); */ 

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/poppin-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
 
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/poppin-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

.chatbot-toggler {
  position: fixed;
  bottom: 20px;
  right: 35px;
  outline: none;
  border: none;
  height: 50px;
  width: 50px;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #01152b;
  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: 30px;
  bottom: 19px;
  /* 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;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: normal;
  justify-content: space-between;
}
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: #01152b;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  height: 80px;
}

.chatbot header svg {
  height: 55px;
}

.chatbot header span {
  /* position: absolute; */
  right: 15px;
  top: 50%;
  /* display: none; */
  display: block;
  cursor: pointer;
  /* transform: translateY(-50%); */
}
header h2 {
  font-size: 1.4rem;
}
.chatbot .chatbox {
  overflow-y: auto;
  height: 76vh;
  padding: 18px 20px 100px;
  overflow-x: hidden;
}
.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: 0px 0px;
  justify-content: flex-end;
  padding: 20px 0px;
}
.chatbox .incoming span.material-symbols-outlined {
  width: 24px;
  height: 32px;
  color: #fff;
  cursor: default;
  text-align: center;
  line-height: 32px;
  align-self: flex-start;
  background: #01152b;
  border-radius: 4px;
  margin: 0 10px 7px 0;
}

.outgoing {
  display: flex;
  flex-direction: column;
  align-items: end;
}

.chatbox .chat.outgoing .u-question {
  white-space: pre-wrap;
  padding: 5px 13px;
  border-radius: 10px 10px 0 10px;
  max-width: 75%;
  color: #fff;
  font-size: smaller;
  background: #01152b;
  
}
.chatbox .incoming div {
  border-radius: 10px 10px 10px 0;
  
}
.chatbox .chat div.error {
  color: #721c24;
  background: #f8d7da;
}
.chatbox .incoming .bot-response  {
  color: #000;
  background: #f2f2f2;
  padding: 10px;
  word-wrap: break-word;
  text-wrap: wrap;
  word-break: break-word;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  font-size: smaller;
}
.chatbot .chat-input {
  display: flex;
  gap: 5px;
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #fff;
  padding: 0px 0px 0px 10px;
  border-top: 1px solid #ddd;
  position: relative;
  /* height: 12vh; */
}
.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: #01152b;
  cursor: pointer;
  height: 55px;
  display: flex;
  align-items: center;
  visibility: hidden;
  font-size: 1.35rem;
  /* background-color: #f2f2f2; */
  width: 50px;
  justify-content: center;
}
.chat-input textarea:valid ~ span {
  visibility: visible;
}

@media (max-width: 490px) {
  .chatbot-toggler {
    right: 20px;
    bottom: 20px;
  }
  .chatbot {
    right: 0;
    bottom: 0;
    /* height: 80%; */
    border-radius: 0;
    width: 100%;
    font-size: 0.9rem;
  }
  .chatbot .chatbox {
    /* height: 90%; */
    padding: 15px 15px 100px;
    font-size: 0.9rem;
  }
  .chatbot .chat-input {
    padding: 5px 15px;
  }
  .chatbot header span {
    display: block;
  }
  .chatbot .bot-btns{
    font-size: 0.9rem !important;
  }

  .chatbox .chat.outgoing .u-question{
    font-size: 0.9rem;
  }

  .chat-input textarea{
    font-size: 0.9rem;
  }
  #formdiv ,#formdiv label
  ,#formdiv input,#formdiv select,#formdiv textarea{
    font-size: 0.9rem;
  }
  
}