@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

::selection{
    color: #fff;
    background: #007bff;
}

::-webkit-scrollbar{
    width: 3px;
    border-radius: 25px;
}
::-webkit-scrollbar-track{
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb{
    background: #ddd;
}
::-webkit-scrollbar-thumb:hover{
    background: #ccc;
}
      
.chatbot__button {
  position: fixed;
  bottom: 35px;
  right: 40px;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #1239ac;
  color: #f3f7f8;
  border: none;
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  z-index: 1;
}
.chatbot__button span {
  position: absolute;
}
.show-chatbot .chatbot__button span:first-child,
.chatbot__button span:last-child {
  opacity: 0;
}
.show-chatbot .chatbot__button span:last-child {
  opacity: 1;
}
.show-chatbot .wrap {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}


.wrap{
    width: 370px;
    height: 382px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid lightgrey;
    border-top: 0px;
    position: fixed;
  bottom: 100px;
  right: 40px;
  width: 400px;
  background-color: #f3f7f8;
  border-radius: 15px;
  box-shadow: 0 0 128px 0 rgba(0, 0, 0, 0.1) 0 32px 64px -48px rgba(0, 0, 0, 0.5);
  transform: scale(0.5);
  transition: transform 0.3s ease;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
      z-index: 1;
}
.wrap .titl{
    background: #1239ac;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    line-height: 60px;
    text-align: left;
    padding-left: 23px;
    border-bottom: 1px solid #006fe6;
    border-radius: 5px 5px 0 0;
}
.wrap .forma{
    padding: 20px 15px;
    min-height: 250px;
    max-height: 250px;
    overflow-y: auto;
}
.wrap .forma .inbox{
    width: 100%;
    display: flex;
    align-items: baseline;
}
.wrap .forma .user-inbox{
    justify-content: flex-end;
    margin: 13px 0;
}
.wrap .forma .inbox .icon{
    height: 40px;
    width: 40px;
    color: #fff;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    font-size: 18px;
    background: #1239ac;
}
.wrap .forma .inbox .msg-header{
    max-width: 60%;
    margin-left: 10px;
}
.forma .inbox .msg-header p{
    color: #fff;
    background: #1239ac;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 14px;
    word-break: break-all;
}
.forma .user-inbox .msg-header p{
    color: #333;
    background: #ffb400;
}
.wrap .typing-field{
    display: flex;
    height: 60px;
    width: 100%;
    align-items: center;
    justify-content: space-evenly;
    background: #efefef;
    border-top: 1px solid #d9d9d9;
    border-radius: 0 0 5px 5px;
}
.wrap .typing-field .input-data{
    height: 40px;
    width: 335px;
    position: relative;
}
.wrap .typing-field .input-data input{
    height: 100%;
    width: 100%;
    outline: none;
    border: 1px solid transparent;
    padding: 0 80px 0 15px;
    border-radius: 3px;
    font-size: 15px;
    background: #fff;
    transition: all 0.3s ease;
}
.typing-field .input-data input:focus{
    border-color: rgba(0,123,255,0.8);
}
.input-data input::placeholder{
    color: #999999;
    transition: all 0.3s ease;
}
.input-data input:focus::placeholder{
    color: #bfbfbf;
}
.wrap .typing-field .input-data button{
    position: absolute;
    right: 5px;
    top: 50%;
    height: 30px;
    width: 65px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    outline: none;
    opacity: 0;
    pointer-events: none;
    border-radius: 3px;
    background: #1239ac;
    border: 1px solid #ffb400;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}
.wrap .typing-field .input-data input:valid ~ button{
    opacity: 1;
    pointer-events: auto;
}
.typing-field .input-data button:hover{
    background: #006fef;
}
@media screen and (max-width: 420px) {
  .wrap {
    right: 0;
    bottom: 90px;
    width: 100%;
    height: auto;
    border-radius: 0;
  }
  
}
@media screen and (max-width: 490px) {
  .wrap {
    right: 0;
    bottom: 90px;
    width: 100%;
    height: auto;
    border-radius: 0;
  }
  
}
@media screen and (max-width: 600px) {
  .wrap {
    right: 0;
    bottom: 90px;
    width: 100%;
    height: auto;
    border-radius: 0;
  }
}
@media screen and (max-width: 768px) {
  .wrap {
    right: 0;
    bottom: 90px;
    width: 100%;
    height: auto;
    border-radius: 0;
  }
}
