#chatbot_btn{
position:fixed;
right:20px;
bottom:20px;
width:70px;
height:70px;
border-radius:50%;
background:#dc2626;
color:#fff;
cursor:pointer;
z-index:999999;
display:flex;
justify-content:center;
align-items:center;
font-size:28px;
box-shadow:0 5px 20px rgba(0,0,0,.2);
}


#chatbot_box{
position:fixed;
right:20px;
bottom:100px;
width:380px;
height:520px;
background:#fff;
border-radius:20px;
display:none;
z-index:999999;
overflow:hidden;
box-shadow:0 5px 20px rgba(0,0,0,.2);
}


.chatbot_header{
background:#dc2626;
color:#fff;
padding:18px;
font-size:20px;
display:flex;
justify-content:space-between;
align-items:center;
font-weight:600;
}


#chatbot_refresh{
cursor:pointer;
font-size:20px;
}


#chatbot_close{
cursor:pointer;
font-size:28px;
line-height:1;
}


#chatbot_messages{
height:370px;
overflow-y:auto;
padding:20px;
background:#fafafa;
}


.bot_msg{
padding:15px;
border:1px solid #ddd;
border-radius:15px;
line-height:28px;
font-size:16px;
word-break:break-word;
background:#fff;
margin-bottom:18px;
}


.user_msg{
background:#dc2626;
color:#fff;
padding:12px 15px;
margin-top:18px;
margin-bottom:18px;
border-radius:15px;
text-align:right;
font-size:15px;
word-break:break-word;
}


.chatbot_footer{
display:flex;
align-items:center;
padding:15px;
background:#fff;
}


#chatbot_input{
flex:1;
height:50px;
border:1px solid #ddd;
border-radius:30px;
padding:0 20px;
outline:none;
font-size:15px;
}


#chatbot_send{
width:50px;
height:50px;
border:none;
border-radius:50%;
background:#dc2626;
color:#fff;
margin-left:10px;
cursor:pointer;
flex-shrink:0;
}


/* tablet */

@media(max-width:768px){

#chatbot_box{
width:340px;
height:500px;
right:15px;
bottom:95px;
}

#chatbot_messages{
height:350px;
}

}


/* mobile */

@media(max-width:576px){

#chatbot_btn{
right:15px;
bottom:15px;
width:60px;
height:60px;
font-size:24px;
}


#chatbot_box{
width:calc(100% - 20px);
height:75vh;
right:10px;
left:10px;
bottom:85px;
border-radius:18px;
}


.chatbot_header{
padding:15px;
font-size:16px;
}


#chatbot_messages{
height:calc(75vh - 130px);
padding:15px;
}


.bot_msg{
font-size:15px;
line-height:24px;
padding:12px;
}


.user_msg{
font-size:14px;
padding:10px 12px;
}


.chatbot_footer{
padding:10px;
}


#chatbot_input{
height:45px;
font-size:14px;
}


#chatbot_send{
width:45px;
height:45px;
}

}


/* small mobile */

@media(max-width:380px){

#chatbot_box{
width:calc(100% - 12px);
left:6px;
right:6px;
height:72vh;
}


.chatbot_header{
font-size:14px;
padding:12px;
}


#chatbot_messages{
height:calc(72vh - 120px);
}


#chatbot_btn{
width:55px;
height:55px;
font-size:22px;
}

}