.mytext {
    border: 0;
    padding: 10px;
    background: whitesmoke;
}

.text {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.text>p:first-of-type {
    width: 100%;
    margin-top: 0;
    margin-bottom: auto;
    line-height: 20px;
    font-size: 14px;
    padding: 17px;
}

.text>p:last-of-type {
    width: 100%;
    text-align: right;
    color: silver;
    margin-bottom: -7px;
    margin-top: auto;
    display: none;
}

.text-l {
    float: left;
    padding-right: 10px;
}

.text-r {
    float: right;
    padding-left: 0px;
}

.avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25%;
    float: left;
    padding-right: 0px;
}

.macro {
    margin-top: 5px;
    width: 85%;
    border-radius: 5px;
    padding: 5px;
    display: flex;
}

.msj-rta {
    float: right;
    background: #e2e2e2;
    color: #292929;
    width: 100%;
}

.msj {
    float: left;
    background: #25c4ea;
    color: #ffffff;
}

.frame {
    /*background: #f8f8f8;
    height: 89vh;
    overflow-y: auto;
    padding: 0;
    position: relative;*/
    /*height:90vh;*/
    height:97vh;
}
.frame>div:last-of-type {
    position: absolute;
    /* bottom: 0px;*/
    bottom:15px;
    width: 100%;
    display: flex;
}

ul.chatbox {
    width: 100%;
    list-style-type: none;
    padding: 18px;
    position: absolute;
    bottom: 0px;
    top: 0px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: auto;
}

.send-button {
    position: absolute;
    right: 25px;
    top: 9px;
    bottom: 0;
}

.msj:before {
    width: 0;
    height: 0;
    content: "";
    top: -5px;
    left: -14px;
    position: relative;
    border-style: solid;
    border-width: 0 13px 13px 0;
    border-color: transparent #25c4ea;
    transparent transparent;
}

.msj-rta:after {
    width: 0;
    height: 0;
    content: "";
    top: -5px;
    left: 14px;
    position: relative;
    border-style: solid;
    border-width: 13px 13px 0 0;
    border-color: #e2e2e2 transparent transparent transparent;
}

input:focus {
    outline: none;
}

::-webkit-input-placeholder {
    /* Chrome/Opera/Safari */
    color: #d4d4d4;
}

::-moz-placeholder {
    /* Firefox 19+ */
    color: #d4d4d4;
}

:-ms-input-placeholder {
    /* IE 10+ */
    color: #d4d4d4;
}

:-moz-placeholder {
    /* Firefox 18- */
    color: #d4d4d4;
}
.chatmain{
    width: 61%;
    position: fixed;
    top: 0;
    right: 0;
    background-color: white;
}
.message-sendbtn{    
    position: fixed !important;
    width: 61% !important;
    bottom: 10px !important;
}
.loadmore{text-align: center;margin: 10px 0;}
.loadmore button{background: rgba(221,221,221,0.5);}
.chat_username{font-size: 1.4rem;}
.chat_contactno{font-size: 1.0rem !important;}
.chat_text_title{font-weight: 600;}
.info-circle{
    color: #FFF !important;
    background: #007bff!important;
    width: 15px;
    border-radius: 50px;
    font-size: 12px;
    height: 15px;
    line-height: 16px;
}
.mob_chat_section{z-index: 1;width:300px;}
/*.mob_chat_icon{position: absolute;top: 23px;z-index: 1100;right: 25px;cursor: pointer;display: none;}
.mob_chat_icon i{color: #FFF;}*/

.mob_chat_icon{position: relative;top: 0px;z-index: 1100;right: 0px;cursor: pointer;float: right;display: none;}
.mob_chat_icon i{color: #FFF;}

@media screen and (max-width: 1023px) and (min-width: 320px) {
    .recent-text-chat{margin-top: 70px;}
}
@media screen and (max-width: 480px) and (min-width: 320px) {
    .contact_div2{display: none;}
    .contact_tab{display: block;}
}
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .message-box{height: 80vh;}
    .chatmain{width:56%;}
    .message-sendbtn{width:55% !important;}
}
@media screen and (max-width: 1023px) and (min-width: 768px) {
    .message-box{height: 75vh;}
    .chatmain{width: 74%;}
    .message-sendbtn{width:72% !important;}
}
@media screen and (max-width: 767px) and (min-width: 414px) {
    .message-box{height: 55vh;}
    .search-box-main{}
    .search-box-main{/*width:120px;*/padding: 0;}
    .chatmain{width:100%;}
    .message-sendbtn{width: 100% !important;}
    .mob_chat_icon{display: block;}
    .text-small span{font-size: 0.8rem;}    
    .fc-day-grid-event > .fc-content {font-size: 12px;}
}
@media screen and (max-width: 413px) and (min-width: 375px) {
    .message-box{height: 58vh!important;}
    .search-box-main{}
    .search-box-main{/*width:120px;*/padding: 0;}
    .chatmain{width:100%;}
    .message-sendbtn{width: 100% !important;}
    .mob_chat_icon{display: block;}
    .text-small span{font-size: 0.8rem;}
    .fc-day-grid-event > .fc-content {font-size: 10px;}
}
@media screen and (max-width: 374px) and (min-width: 360px) {
    .message-box{height: 52vh;}
    .search-box-main{}
    .search-box-main{/*width:120px;*/padding: 0;}
    .chatmain{width:100%;}
    .message-sendbtn{width: 100% !important;}
    .mob_chat_icon{display: block;}
    .text-small span{font-size: 0.8rem;}
    .fc-day-grid-event > .fc-content {font-size: 10px;}
}
@media screen and (max-width: 359px) and (min-width: 320px) {
    .message-box{height: 57vh;}
    .search-box-main{}
    .search-box-main{/*width:120px;*/padding: 0;}
    .chatmain{width:100%;}
    .message-sendbtn{width: 100% !important;}
    .mob_chat_icon{display: block;}
    .searchbox{padding-left: 0;}    
    .searchbox #inlineFormInputGroup{width:110px !important;}
    .text-small span{font-size: 0.8rem;}
    .fc-day-grid-event > .fc-content {font-size: 10px;}
}