#messenger{
    /*border: 2px solid #e07002;*/
    border-radius: 3px;
    /*background: #f7f7e9;*/
    position: relative;
    margin: 0 15px 50px;
}
#mes-ex{
    display: none;
}
#mes-ex-btn{
    background: #f5780b;
    margin: 7px;
    color: #fff;
    transition: .5s;
}
#mes-ex-btn:hover{
    background: #b1590c;
}
.mes-head{
    padding: 8px !important;
    line-height: 1.42857143;
    border-top: 1px solid #ddd;
    font-weight: bold;
    margin: 0 15px;
}
.mes-head span:first-child{
    width: 6.5%;
    min-width: 20px;
    display: inline-block;
    margin-left: 10px;
}
/*#messenger >div{*/
    /*padding: 10px;*/
/*}*/
#messenger div:after{
    content: '';
    clear: both;
    display: block;
}
#messenger ul{
    /*padding: 10px;*/
    list-style-type: none;
    /*background: #fdfdfd;*/
    border-radius: 3px;
    /*max-height: 300px;*/
    /*overflow-y: scroll;*/
}
.messenger-chat .messenger-user-name{
    width: 135px;
    font-weight: 700;
    color: #D2691E;
    text-align: left;
    /*background: #fdfff9;*/
    padding: 3px 15px 3px 15px;
}
.messenger-chat .messenger-content{
    color: #8B008B;
    text-align: left;
    background: #fff;
    padding: 3px 0 3px 15px;
    width: 100%;
    margin-right: 5px;
}
#messenger textarea{
    width: 100%;
    max-width: 100%;
    border-radius: 3px;
    /*box-shadow: inset 0 0px 12px -5px rgba(0, 0, 0, 0.5);*/
    /*text-indent: 15px;*/
    padding: 10px;
}
#messenger textarea:active, #messenger textarea:visited, #messenger textarea:focus{
    outline: none;
    box-shadow: 0 0px 12px -5px rgba(0, 0, 0, 0.5);
    border-color: #ccc !important;
}
#messenger button{
    background: #6495ED;
    border: none;
    border-radius: 3px;
    padding: 6px 25px;
    color: #fff;
    margin: 15px 0 15px auto;
    float: right;
}
#messenger button:hover{
    background: #AFC9F9;
}
.messenger-window{
    /*padding: 10px 0 10px 0px;*/
    padding: 0;
    background: #fdfdfd;
    border-radius: 3px;
    margin-bottom: 10px;
    /*box-shadow: inset 0 0px 12px -5px rgba(0, 0, 0, 0.5);*/
}
#messenger-window{
    /*border: 1px solid #e07002;*/
    /*box-shadow: inset 0 0px 12px -5px rgba(0, 0, 0, 0.5);*/
    margin: 0;
    padding: 0;
    overflow: auto;
}
.messenger-history li{
    border-top: 1px solid #ddd;
    padding: 10px 0;
    white-space: nowrap;
    overflow: hidden;
    /*text-align: center;*/
    /*cursor: pointer;*/
    margin: 0;

    -webkit-transition: .5s;
    -moz-transition: .5s;
    -ms-transition: .5s;
    -o-transition: .5s;
    transition: .5s;
}

/*.messenger-history li:hover{*/
    /*background: #f7f7e9;*/
/*}*/
.messenger-history li:first-child{
    /*cursor: text;*/
    /*font-weight: 700;*/
     border-top: none;
}
.messenger-chat li{
    padding: 10px 0;
}
/*.messenger-history li:first-child:hover{*/
    /*background: none;*/
/*}*/
.messenger-history li div{
    /*width: 33.33%;*/
    /*margin-top: 5px;*/
    text-align: left;
    line-height: 2.5em;
}
.messenger-history li div input{
    text-align: left;
    cursor: inherit;
}
.messenger-history li div:first-child{
    width: 8%;
    margin-left: 10px;
}
.messenger-history li div:nth-child(2){
    width: 13%;
}
.messenger-history li div:nth-child(3){
    width: 68%;
    white-space: nowrap;
    overflow: hidden;
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
}
#messenger-window li div input{
    background: none;
    border: none;
    font-weight: 700;
    color: red;
    outline: none;
    position: relative;
    /*top:-6px;*/
}
#messenger-window li div input:visited, #messenger-window li div input:active, #messenger-window li div input:focus{
    outline: none;
}
#messenger ul li{
    margin: 0;
    display: flex;
}
#messenger-back-button{
    display: block;
    margin-right: 0;
    position: absolute;
    left: 35px;
    bottom: 10px;
}
/*.messenger-chat-my-name{*/
    /*background: #00FFF5;*/
/*}*/
/*.messenger-chat-from-user{*/
    /*background: #00daff;*/
/*}*/
.unread-orders-list{
    list-style-type: none;
    /*border: 1px solid;*/
    padding: 0;
    position: absolute;
    right: 5px;
    background: #fff;
    z-index: 5;
    width: 300px;
    top: 43px;
    margin: 0;
}
.unread-orders-list li, .unread-orders-list a{
    display: flex;
}
.unread-orders-list li{
    display: flex;
    padding: 5px;
    border-bottom: 2px solid #fff;
    background: #eee;
    position: relative;
    z-index: 2;
}
.unread-orders-list li:first-child:after{
    content: '';
    position: absolute;
    top: -10px;
    right: 23px;
    width: 20px;
    height: 20px;
    background: #eee;
    z-index: 1;
    transform: rotate(45deg);
}
.unread-orders-list li:last-child{
    border-bottom: none;
}
.unread-orders-list a{
    display: flex;
    text-decoration: none;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    width: 100%;
    font-weight: 700;
}
.unread-orders-list a span:first-child{
    margin-left: 15px;
    margin-right: 15px;
    width: 220px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: left;
}
.unread-orders-list a span:last-child{
    padding: 1px 5px 1px;
    background: #435767;
    color: #fff;
    border-radius: 3px;
    font-weight: bold;
    margin: 0 15px 0 0;
    position: relative;
    z-index: 3;
}

#orders-block{
    display: flex;
    margin: auto;
}
#notification-icon{
    position: relative;
    display: flex;
    margin: auto 7px auto auto;
}
#notification-icon img{
    margin: auto;
    display: block;
    position: relative;
    width: 33px;
    height: 33px;
}
/*#notification-icon img:after{*/
    /*content: '';*/
    /*position: absolute;*/
    /*top: -10px;*/
    /*right: 23px;*/
    /*width: 20px;*/
    /*height: 20px;*/
    /*background: #eee;*/
    /*z-index: 1;*/
    /*transform: rotate(45deg);*/
/*}*/
#number-of-orders{
    position: relative;
    top: -20px;
    min-height: 20px;
    right: 5px;
    padding: 1px 6px 2px;
    background: #eee;
    border-radius: 3px;
    color: #000;
    font-weight: bold;
    font-size: 1.2em;
    cursor: pointer;
    z-index: 4;
}
.messenger-btn-more{
    cursor: pointer;
    padding: 6px 12px;
    background: #2d4373;
    color: #fff;
    margin: auto;
    min-width: auto !important;
}
.messenger-btn-more:hover{
    text-decoration: none;
    color: #fff;
    background: #2b67ea;
}
@media (max-width : 420px) {
    /*=====header=====*/
    .unread-orders-list{
        right: -85px;
        width: 200px;
            li:first-child{
                right: 113px;
            }
    }
}
@media (max-width : 540px){
    .unread-orders-list{
        right: -130px;
    }
}
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none){
    #number-of-orders{
        top:0px;
        height:20px;
    }
    .person-prof{
        margin: 20px 10px auto 0;
    }
}

/*Prelouder*/

#preloader-main {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.01);
    z-index: 100;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

#preloader-bg {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    width: 8rem;
    height: 8rem;
    border-radius: 1rem;
}

#preloader-main img {
    position: fixed;
    width: 15rem;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
}