@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;
}

.chatTextButton{
  /* text-decoration: none;
  padding:2px 7px 3px 7px;
  border-radius: 10px;
  background: #70aca9;
  color: white; */
  display: inline-block;
  padding: 10px 20px;
  background-color: #70aca9;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;

}

.customLeftAlign{
    text-align: left;
}
.chatTextButtonHome{
    display: inline-block;
    padding: 10px 20px;
    background-color: #70aca9;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    text-align: left;
}
.chatTextButton:hover{
    color:#fff;
}

.chatTextButtonHome:hover{
    color:#fff;
}

.chatbot-agent-div{
    position: relative;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #70aca9;
  background-color: #70aca9;
  width: 44px;
  height: 44px;
  top: -15px;
  left:-5px;
}

.chatbot-agent-div img{
    width: 40px !important;
  height: 40px;
  vertical-align: middle;
}

.chatbot-toggler{
    position: fixed;
    right:40px;
    bottom:35px;
    /* height:50px;
    width:50px; */
    height:60px;
    width:60px;
    color:#fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    cursor: pointer;
    /* background:#70aca9; */
    background:#fff;

    border-radius:50%;
    transition: all 0.2s ease;
    z-index: 1000 !important;
}


.show-chatbot .chatbot-toggler {
    transform: rotate(90deg);
}

.chatbot-toggler span{
    position: absolute;
}

.show-chatbot .chatbot-toggler span:first-child, .chatbot-toggler span:last-child{
    opacity: 0;
}
.show-chatbot .chatbot-toggler span:last-child{
    opacity: 1;
}

.chatbot{
    position: fixed;
    width:420px;
    transform: scale(0.5);
    opacity: 0;
    pointer-events: none;
    right:40px;
    bottom:100px;
    overflow: hidden;
    border-radius:15px;
    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;
    box-shadow: 0 5px 31px rgba(0,0,0,.3);
    background: #deebe9 url('../../../assets/background.png') no-repeat top center;
    background-size: contain;
    z-index: 1000 !important;
}

.show-chatbot .chatbot{
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chatbot header{
    background:#70aca9;
    padding:16px 0;
    text-align: center;
    position: relative;
}

.chatbot header span{
    position: absolute;
    right:20px;
    top:50%;
    color:#fff;
    cursor: pointer;
    /* display: none; */
    font-size:24px;
    font-weight: 300;
    transform: translateY(-50%);
}

.chatbot header h2{
    color:#fff;
    font-size:1.4em;  
    font-weight: 700; 
}
.hidden{
    display: none !important;
}

.chatbot .chatbox{
    height:480px;
    overflow-y: auto;
    padding:15px 20px 100px;
}

.chatbox .chat{
    display: flex;
    margin-top:10px
}

.chatbox .incoming span{
    height:32px;
    width:32px;
    align-self: flex-end;
    /* color:#fff; */
    /* background: #70aca9; */
    color:#000;
    text-align:center;
    /* line-height: 32px; */
    line-height: 20px;
    border-radius: 4px;
    margin:0 10px 7px 0;
}

.chatbox .outgoing{
    margin:20px 0;
    justify-content: flex-end;
}

.chatbox .chat p {
    color:#fff;
    max-width: 75%;
    white-space:pre-wrap;
    /* font-size:0.95rem; */
    /* font-size:15px; */
    font-size:14px;
    padding:12px 16px;
    border-radius:10px 10px 0 10px;
    background: #70aca9;
    line-height: 18px !important;
}

.chatbox .chat p.error{
    color:#721c24;
    background:#f8d7da;
}

.chatbox .incoming p{
    color:#000;
    background-color: #fff;
    border-radius:10px 10px 10px 0;
    word-wrap: break-word;
}

.chatbot .chat-input{
    position: absolute;
    bottom:0;
    width:100%;
    display: flex;
    gap: 5px;
    /* background: #fff; */
    background: #9ec3c0 url('../../../assets/area-background.png');
    padding: 5px 20px;
    border-top: 1px solid #ccc;
}

.chat-input textarea{
    height: 55px;
    width: 100%;
    border:none;
    max-height: 180px;
    outline:none;
    font-size:0.95em;
    resize: none;
    padding:16px 15px 16px 0;
    background: transparent;
}

.chat-input span{
    align-self: flex-end;
    height:55px;
    line-height: 55px;
    color:#70aca9;
    font-size:1.35rem;
    cursor: pointer;
    visibility: hidden;
}

.chat-input textarea:valid ~ span{
    visibility: visible;
}

@media(max-width:490px) {
    .chatbot{
        right: 0;
        bottom: 0;
        width:100%;
        height:100%;
        border-radius:0;
        z-index: 1000 !important;
    }

    .chatbot .chatbox{
        height:90%;
    }

    .chatbot header span{
        display: block;
    }
}

#send-btn{
    color:#888 !important
}

.closeBtn{
    position: absolute;
  right: 25px;
  top: 50%;
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  font-size: 21px;
}

.home{
  position: absolute;
  left: 25px;
  top: 50%;
  color: #fff;
  cursor: pointer;
  font-size:24px;
  font-weight: 300;
  transform: translateY(-50%);
}

.home:hover{
    color:#fff
}

.spanText{
    height: 32px;
    width: 32px;
    align-self: flex-end;
    color: black;
    text-align: center;
    line-height: 8px;
    border-radius: 4px;
    margin: 0 10px 7px 0;
  }