.messageBox {
    position: fixed;
    width: 207px;
    height: 100%;
    right: 0;
    bottom: 0;
    z-index: 9;
    box-sizing: border-box;
    padding: 94px 0 28px;
}
.messageBox, .messageBox a { font-family: Arial, sans-serif; }
.messageBox .messageBox__header {
    position: absolute;
    top: 0; left: 0;
    height: 25px;
    width: 100%;
    background-color: #1c4d81;
    display: none;
}
.messageBox .messageBox__header_name {
    position: absolute;
    top: 8px;
    left: 12px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}
.messageBox .messageBox__header__minimize-button {
    position: absolute;
    top: 9px;
    right: 5px;
    height: 12px;
    width: 20px;
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: bold;
    cursor: pointer;
    /*background-color: #3FA742;*/
    display: none;
    /*text-align: center;*/
}

.messageBox .messageBox__chatBox {
    position: fixed;
    bottom: 0;
    right: 215px;
    background-color: #ffffff;
    width: 260px;
    height: 335px;
    -webkit-box-shadow: 1px 1px 2px 1px rgba(173,173,173,1);
    -moz-box-shadow: 1px 1px 2px 1px rgba(173,173,173,1);
    display: none;
}
.messageBox .messageBox__header {
    position: absolute;
    top: 0; left: 0;
    height: 28px;
    width: 100%;
    background-color: #4080ff;
    display: none;
}
.messageBox .messageBox__chatBox .messageBox__chatBox__header {
    position: absolute;
    top: 0; left: 0;
    height: 28px;
    width: 100%;
    background-color: #f4f5f8;

    -webkit-box-shadow: 0 3px 1px 0 rgba(173,173,173,0.4);
    -moz-box-shadow: 0 3px 1px 0 rgba(173,173,173,0.4)
}
.messageBox .messageBox__chatBox__header__cog-button {
    position: absolute;
    top: 6px;
    right: 21px;
    height: 12px;
    width: 20px;
    color: #6c6d6e;
    font-size: 0.7rem;
    font-weight: bold;
    cursor: pointer;
}
.messageBox .messageBox__chatBox__header__close-button{
    position: absolute;
    top: 6px;
    right: 0;
    height: 12px;
    width: 20px;
    color: #6c6d6e;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
}

.messageBox .messageBox__chatBox__header__cog-menu.hidden{
    display: none;
}

.messageBox .messageBox__chatBox__header__cog-menu{
    position: absolute;
    bottom: 28px;
    right: 0;
    width: auto;
    height: auto;
    border: 1px solid #646464;
    background-color: #ffffff;
    -webkit-box-shadow: 1px 1px 2px 1px rgba(173,173,173,1);
    -moz-box-shadow: 1px 1px 2px 1px rgba(173,173,173,1);
}

.messageBox .messageBox__chatBox__header__cog-menu ul { margin: 0; padding: 0;}
.messageBox .messageBox__chatBox__header__cog-menu ul li {
    margin: 0; list-style: none;
    width: 150px;
    padding: 4px 10px;
    cursor: default;
}
.messageBox .messageBox__chatBox__header__cog-menu ul li a {color: #111111; text-decoration: none; font-weight: normal; }
.messageBox .messageBox__chatBox__header__cog-menu ul li:hover { background-color: #3453a5; }
.messageBox .messageBox__chatBox__header__cog-menu ul li:hover a { color: #ffffff; text-decoration:none; }

.messageBox .messageBox__chatBox__header__cog-menu__conner {
    position: absolute;
    bottom: -10px;
    right: 4px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;

    border-top: 10px solid #646464;
}

.messageBox .messageBox__userList {
    height: 100%; width: 100%; overflow-y: auto;
    font-size: 12px;
    background-color: #f6f7f9;
    -webkit-box-shadow: 0 0 6px 0 rgba(173,173,173,1);
    -moz-box-shadow: 0 0 6px 0 rgba(173,173,173,1);
}

.messageBox .messageBox__userList ul{
    list-style: none;
    padding: 0;
    margin: 0;
}

.messageBox .messageBox__userList li{
    cursor: pointer;
}

.messageBox .messageBox__userList table{
    width: 100%;
}

.messageBox .messageBox__userList table, .messageBox .messageBox__userList table td {
    border: none;
    background-color: transparent;
    color: #333333;
}

.messageBox .messageBox__userList table tr:hover {
    background-color: #e4e6ea;
}

.messageBox .messageBox__userList td {
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
}
.messageBox .messageBox__userList td.messageBox__userList__photo {
    width: 32px;
    height: 32px;
    overflow: hidden;
    text-align: center;
    vertical-align: middle;
    padding: 5px 5px 0;
    position: relative;
}
.messageBox .messageBox__userList td.messageBox__userList__photo img {
    width: 32px;
    border: 1px solid #eeeeee;
}

.messageBox .messageBox__userList td.messageBox__userList__name {
    /*width: 130px;*/
    height: 32px;
    padding: 15px 6px 0;
    overflow-x: hidden;
}

.messageBox .messageBox__userList td.messageBox__userList__status {
    width: 22px;
    height: 32px;
    padding: 20px 0 0;
    line-height: 9px;
    color: #8f8f8f;
}

.messageBox .messageBox__userList td.messageBox__userList__status div.on{
    background-color: #3FA742;
    border-radius: 50%;
    display: inline-block;
    height: 6px;
    margin-left: 4px;
    width: 6px;
}

.messageBox .messageBox__userList__new-message { padding-left: 1px; }

.messageBox .messageBox__userList__search {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 28px;
    background-color: #f4f5f8;
    -webkit-box-shadow: 0 0 6px 0 rgba(173,173,173,1);
    -moz-box-shadow: 0 0 6px 0 rgba(173,173,173,1);
}

.messageBox .messageBox__userList__search input {
    width: 100%;
    height: 100%;
    background-color: #f4f5f8;
    border-top: 1px solid #d2d7e5;
    padding-left: 28px;
    padding-right: 20px;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
}
.messageBox .messageBox__userList__search input:focus {
    /*border: 1px solid #3FA742;*/
    box-shadow: none;
    outline: none;
}

.messageBox .messageBox__userList__search-icon {
    position: absolute;
    left: 10px;
    top: 7px;
    font-size: 0.7rem;
}

.messageBox .messageBox__userList__clear-search-icon {
    position: absolute;
    right: 10px;
    top: 7px;
    font-size: 0.7rem;
    cursor: pointer;
    display: none;
}

.messageBox .messageBox__chatBox__messages {
    position: absolute;
    top: 30px;
    left: 0;
    height: 247px;
    width: 100%;
    background-color: #eaeaea;
    overflow-y: scroll;
}

.messageBox .messageBox__chatBox__messageInput {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 44px;
    width: 100%;
    /*background-color: #1b2c4e;*/
    border: none;
    border-top: 1px solid #e0e0e0;
}

.messageBox .messageBox__chatBox__messageInput input{
    color: #1d2129;
    height: 20px;
    width: 100%;
    padding: 12px 10px;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
}

.messageBox .messageBox__chatBox__messageInput input::-webkit-input-placeholder {color: #d5d7db;}
.messageBox .messageBox__chatBox__messageInput input::-moz-placeholder {color: #d5d7db;}
.messageBox .messageBox__chatBox__messageInput input:-moz-placeholder {color: #d5d7db;}
.messageBox .messageBox__chatBox__messageInput input:-ms-input-placeholder {color: #d5d7db;}

.messageBox .messageBox__chatBox__messageInput_buttons{
    position: absolute;
    bottom: 0;
    left: 0;
    height: 24px;
    width: 100%;
    /*background-color: #00a8ec;*/
}

.messageBox .messageBox__chatBox__messageInput_buttons i {
    margin: 6px 15px 0 0;
    font-size: 12px;
    cursor: pointer;
    color: #80848d;
}

.messageBox .messageBox__chatBox__messageInput_buttons i:first-child {
    margin-left: 10px;
}


.messageBox .messageBox__chatBox__messageInput2 {
    position: absolute; bottom: 25px; width: 100%; min-height: 32px; max-height: 80px; overflow-y: auto; border-top: 1px solid #DFDFDF;
}

.messageBox .messageBox__chatBox__messageInput2_input {
    width: 100%; min-height: 32px; padding: 12px 10px 0; box-sizing: border-box; font-size: 12px; word-wrap: break-word; white-space: pre-wrap; color: #4b4f56;
}
.messageBox .messageBox__chatBox__messageInput2_input:focus {
    outline: 0 solid transparent;
}


.messageBox .messageBox__chatBox__messages_table {
    height: 100%;
    width: 100%;
}
.messageBox .messageBox__chatBox__messages_table td {
    vertical-align: bottom;
}

.messageBox .messageBox__chatBox__messages_table_show_more {
    text-align: center;
    margin-bottom: 10px;
}
.messageBox .messageBox__chatBox__messages_table_show_more span {
    cursor: pointer;
    border-bottom: 1px dashed #91a0b7;
    color: #91a0b7;
}

.messageBox .messageBox__chatBox__messages_table td div.messageBox__chatBox__messages_table_item{
    font-size: 0.8rem;
    color: #4c4c4c;
    padding: 5px 8px 4px;
    word-wrap: break-word;
    white-space: pre-wrap;
    max-width: 177px;
}
.messageBox .messageBox__chatBox__messages_table td div.messageBox__chatBox__messages_table_item,
.messageBox .messageBox__chatBox__messages_table td div.messageBox__chatBox__messages_table_item a {font-size: 12px;}
.messageBox .messageBox__chatBox__messages_table td div.messageBox__chatBox__messages_table_item .btn  {
    padding: 5px 9px;
    margin-bottom: 5px;
}
.messageBox .messageBox__chatBox__messages_table td div.messageBox__chatBox__messages_table_me {
    margin: 5px 25px 0 3px;
    border-radius: 0 5px 5px 0;
    /*background-color: #edecec;*/
    background-color: #326aff;
    /*color: #4b4f56;*/
    color: #ffffff;
}

.messageBox .messageBox__chatBox__messages_table td div.messageBox__chatBox__messages_table_interlocutor {
    margin: 5px 3px 0 25px;
    border-radius: 5px 0 0 5px;
    /*background-color: #326aff;*/
    background-color: #edecec;
    /*color: #ffffff;*/
    color: #4b4f56;
}
/*.messageBox .messageBox__chatBox__messages_table td div.messageBox__chatBox__messages_table_interlocutor,*/
/*.messageBox .messageBox__chatBox__messages_table td div.messageBox__chatBox__messages_table_interlocutor a { color: #ffffff; }*/
.messageBox .messageBox__chatBox__messages_table td div.messageBox__chatBox__messages_table_me,
.messageBox .messageBox__chatBox__messages_table td div.messageBox__chatBox__messages_table_me a { color: #ffffff; }

/*.messageBox .messageBox__chatBox__messages_table_interlocutor .messageBox__chatBox__messages_table_item_date { font-size: 9px; color: #8db7ff; }*/
.messageBox .messageBox__chatBox__messages_table_interlocutor .messageBox__chatBox__messages_table_item_date { font-size: 9px; color: #8d9695; }
/*.messageBox .messageBox__chatBox__messages_table_me .messageBox__chatBox__messages_table_item_date { font-size: 9px; color: #8d9695; }*/
.messageBox .messageBox__chatBox__messages_table_me .messageBox__chatBox__messages_table_item_date { font-size: 9px; color: #8db7ff; }

.messageBox .messageBox__chatBox__header__fl {
    overflow: hidden;
    width: 200px;
    height: 15px;
    font-size: 0.8rem;
    color: #4b4f56;
    position: absolute;
    top: 6px; left: 15px;
    border: none;
    /*border: 1px solid #ffffff;*/
}

.messageBox .messageBox__chatBox__header__user-online {
    background-color: #3FA742;
    border-radius: 50%;
    display: inline-block;
    height: 6px;
    width: 6px;
    margin: 11px 0 0 5px;
}

/*.messageBox .messageBox__chatBox__messages_table_ul {*/
    /*margin: 0;*/
    /*padding: 0;*/
/*}*/

/*.messageBox .messageBox__chatBox__messages_table_ul li {*/
    /*padding: 0;*/
    /*margin: 0;*/
    /*line-height: 1rem;*/
    /*width: 100%;*/
/*}*/


/*@media screen and (max-width: 1364px) {*/
@media screen and (max-width: 1400px) {
    .messageBox { height: 350px; right: 0; width: 274px; padding: 28px 0; }
    .messageBox .messageBox__header {display: block;}
    .messageBox .messageBox__header__minimize-button { display: block; }

    .messageBox__minimized { bottom: -321px; }

    .messageBox .messageBox__chatBox { right: 280px; }
}

