.ChatList, .ChatListBar {
    position: absolute;
    width: 270px;
    top: 0px;
    bottom: 0px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0px 1px 0 0;
    border-left: 1px solid #E5E5E5;
    background-color: #FFFFFF;
    visibility: hidden;
}

.ChatListBar {
    right: 0;
    visibility: visible;
}

/*Remove scrollbars for chatlist*/
.ChatList::-webkit-scrollbar, .ChatListBar::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

.ChatListCell {
    position: relative;
    width: 100%;
    height: 70px;

    background-color: white;
    border: 1px solid #FAFAFA;

    cursor: pointer;
    -moz-user-select:none;
    -webkit-user-select:none;
    -o-user-select:none;
    -ms-user-select:none;
    user-select: none;
}

.ChatListCell:hover, .ChatListCell.selected {
    border-left: 3px solid #e22a4c;
    -webkit-transition: all 120ms ease-in;
    -ms-transition: all 120ms ease-in;
    -moz-transition: all 120ms ease-in;
    transition: all 120ms ease-in;
}
                    
.ChatListCellImage {
    position: absolute;
    top: 13px;
    left: 6px;
    bottom: 6px;
    width: 44px;
    height: 44px;

    border-radius: 22px;
    background-size: cover;
}

.ChatListCellTitleLabel {
    position:absolute;
    left: 60px;
    right: 8px;
    top: 13px;
    height: 25px;

    color: #808080;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
}

.ChatListCellLastMessageLabel {
    position:absolute;
    left: 60px;
    right: 50px;
    bottom: 18px;

    color: #B8B8B8;
    font-size: 12px;
    white-space:nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ChatListCellDateLabel {
    position: absolute;
    left: 80px;
    right: 16px;
    bottom: -8px;
    height: 16px;

    color: #B8B8B8;
    font-size: 9px;
    text-align: right;
}

.ChatListCellMessageBadgeLabel {
    right: 24px;
    top: 6px;
}

.ChatListCellHeartImage {
    position: absolute;
    left: 6px;
    top: 10px;
    width: 17px;
    height: 15px;

    -ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/ic_chatlist_match@2x.png', sizingMethod='scale')";
    background-image: url('../images/ic_chatlist_match@2x.png'), linear-gradient(transparent, transparent);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.ChatListCellTopChatImage {
    position: absolute;
    right: -1px;
    top: -1px;
    width: 35px;
    height: 35px;

    -ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/ic_topchat@2x.png', sizingMethod='scale')";
    background-image: url('../images/ic_topchat@2x.png'), linear-gradient(transparent, transparent);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.ChatListCellLastMessageImage {
    position: absolute;
    left: 60px;
    top: 38px;
    bottom: 6px;
    width: 25px;
    height: 25px;

    background-size: contain;
    background-repeat: no-repeat;
}

/* Fonts */

.ChatListCellTitleLabel, .ChatListCellLastMessageLabel, .ChatListCellDateLabel, .ChatListCellMessageBadgeLabel {
    font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
    font-weight: 300;
}

/* Responsive */

@media screen and (max-width: 1023px) {
    /* Make chat and messages slimmer */
    .ChatList, .ChatListBar{
        width: 240px;
    }
}

@media screen and (max-width: 767px) {
    .ChatList, .ChatDetail {
        top: 0px;
        bottom: 0px;
        margin: 0;
        padding: 0;
        width: 100%;
        visibility: visible;
    }
    .ChatList {
        position: relative;
        height: auto;
    }

    .ChatListBar {
        visibility: hidden;
    }

    .ChatDetail {
        position: relative;
        height: auto;
        left: 0px;
        right: 0px;
        bottom: 56px;
    }
    .ChatDetailMessages {
        position: relative;
        top: 0px;
        height: auto;
        float: left;
        margin-bottom: 36px;
    }

    .ChatListCell:hover {
        box-shadow: none;
        border-left: none;
    }
}


