.chatbot_container{
    position: fixed;
    right: 70px;
    bottom: 66px;
}

.chatbot{
    background-image: url(../images/bot.png);
    background-size: 70px;
    background-position: right center;
    background-repeat: no-repeat;
    cursor: pointer;
    font-size: 21px;
    height: 55px;
    line-height: 55px;
    padding-right: 68px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.chatbot .title{
    text-shadow: 1px 1px 2px white, 0 0 1em white, 0 0 0.2em white;
}
.chatbot_opened .chatbot_container .chatbot{
    background-size: 55px;
}

.chatbot_container .chatbot_inner{
    position: relative;
}
.chatbot_container .welcome_message{
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    right: 50px;
    width: 204.5px;
    height: 93.5px;
    /* background-image: url(../images/message_outline.png); */
    background-size: cover;

}
.chatbot_container .welcome_message a{
    display: block;
    text-align: center;
    font-size: 16px;
    padding-top: 26px;
    padding-bottom: 26px;
    color: #2c55a5;
    font-weight: bold;
}
.chatbot_container .welcome_message .btn_close{
    position: absolute;
    left: 5px;
    top: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.chatbot_container .message_box_container{
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background-color: white;
    width: 350px;
    height: 480px;
    box-shadow: -1px 7px 12px #b7b5b5;
    padding: 20px 0px 15px 15px;
}
.chatbot_opened .chatbot_container .message_box_container{
  display: none;
}

.chatbot_container .message_top_row{
    width: 100%;
    height: calc(100% - 44px);
    overflow: auto;
    padding-right: 15px;
    padding-top: 15px;
    -webkit-overflow-scrolling: touch;
}

.chatbot_container .message_bottom_row{
    position: relative;
    bottom: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 44px;
    padding-right: 38px;

}
.chatbot_container .message_bottom_row input{
    border: none;
    border-bottom: 2px solid #2c55a5;
    width: 100%;
    -webkit-box-shadow: none;
    box-shadow: none;
    border-radius: 0;
    height: 100%;
    margin-bottom: 0;
    padding: 0 0 5px 0;
    font-size: 20px;
}
.chatbot_container .message_bottom_row input:focus{
    border-color: #2c55a5;
    -webkit-box-shadow: none;
    box-shadow: none;
}
.chatbot_container .message_bottom_row .send_arrow{
	position: absolute;
    top: 50%;
    right: 10px;
    -ms-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    background-image: url(../images/arrow.png);
    width: 18.5px;
    height: 30px;
    background-size: cover;
}
.chatbot_container .message{
    font-size: 16px;
    max-width: 85%;
    clear: both;
    line-height: 1.5;
    margin-bottom: 5px;
    padding-top: 5px;
}
.chatbot_container .message a{
    word-break: break-all;
    color: #2c55a5;
}
.chatbot_container .message.client{
    float: right;
    color: #2c55a5;
    text-align: right;
}
.chatbot_container .message.bot{
    background-image: url(../images/bot.png);
    background-size: 51.5px;
    background-position: left top 5px;
    background-repeat: no-repeat;
    padding-left: 60px;
    min-height: 53px;
}
.chatbot_container.has_more_message .more_message_arrow{
    cursor: pointer;
    display: block;
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 100%;
    height: 30px;
    background-color: rgba(0,0,0,0.4);
    background-image: url(../images/bottom_arrow.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 25px;
}
@media(max-width: 989px), (max-height: 680px){
    .chatbot_opened .chatbot .title{
        text-shadow: none;
    }
    .chatbot_container{
        right: 10px;
    }
    .chatbot_opened, .chatbot_opened body{
        height: 100%;
        overflow: hidden;
    }
    .chatbot_opened .chatbot_container{
        width: 100%;
        right: 0;
        z-index: 99;
        width: 100%;
        height: 100%;
        bottom: 0;
        position: absolute;
    }
    .chatbot_opened .chatbot_container .chatbot{
        padding-right: 0;
        text-align: center;
        background-color: #2c55a5;
        color: white;
        background-position: right 14px center; 
        background-size: 22px;
        background-image: url(../images/icon-close.png);
    
        box-shadow: 0px 1px 8px #b7b5b5;

        z-index: 2;
        position: relative;
        font-size: 24px;

    }
    .chatbot_container .chatbot_inner{
        width: 100%;
        height: 100%;
    }
    .chatbot_container .message_box_container{
        width: 100%;
        height: 100%;
        bottom: auto;
        top: 0;
        right: 0;
        padding-top: 55px;
    }

    .chatbot_opened #scrollUp{
        display: none!important;
    }

}
@media(max-width: 767px){
    .chatbot_container{
        right: 20px;
    }
    .chatbot{
        height: 48px;
        line-height: 48px;
        background-size: 35px;
        padding-right: 44px;
        font-size: 18px;
    }
    .chatbot_opened .chatbot_container .chatbot{
        font-size: 19px;
        background-size: 18px;
    }
    .chatbot_container .message{
        font-size: 15px;
        line-height: 1.4;

    }
    .chatbot_container .message.bot{
        background-size: 30px;
        padding-left: 40px;
        min-height: 33px;
    }
    .chatbot_container .welcome_message{
        width: 160px;
        height: 72px;
        bottom: 100%;
        right: 45px;
    }
    .chatbot_container .welcome_message a{
        font-size: 13px;
        padding-top: 19px;
        padding-bottom: 19px;
    }
    .chatbot_container .message_box_container{
        padding: 43px 0 15px 10px;
    }
    .chatbot_container .message_bottom_row .send_arrow{
        width: 15px;
        height: 24px;
        right: 13px;
    }
}