li {
    list-style-type: none;
}

:root {
    --white: #fff;
    --black: #000;
    --bg: #f8f8f8;
    --grey: #999;
    --dark: #1a1a1a;
    --light: #e6e6e6;
    --wrapper: 1000px;
    --blue: #00b0ff;
}


.scroll-list {
    margin-bottom: 0px;
    margin-top: 0px;
    overflow-x: hidden;
    padding: 0;
}

.scroll-list-item {
    position: relative;
    padding: 10px 20px;
    cursor: pointer;
    background-color: var(--white);
}

.scroll-list-item:after {
    position: absolute;
    bottom: 0;
    left: 50%;
    display: block;
    width: calc(100% - 40px);
    height: 1px;
    content: '';
    background-color: var(--light);
    -webkit-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
}

.scroll-list-item .lidiv {
    float: left;
}


.scroll-list-item .lidiv img {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    border-radius: 50%;
    object-fit: cover;
}


.scroll-list-item .name, .fm-modal.contact .name {
    font-size: 14px;
    line-height: 22px;
    color: var(--dark);
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden !important;
    width: calc(100% - 55px);

}

.scroll-list-item .time {
    font-size: 14px;
    position: absolute;
    top: 15px;
    right: 20px;
    padding: 0 0 5px 5px;
    color: var(--grey);
    background-color: var(--white);
}

.scroll-list-item .preview {
    font-size: 14px;
    display: inline-block;
    overflow: hidden !important;
    width: fit-content;
    max-width:  calc(100% - 80px); /* roughly 50px for the thumbnail image +  20px for the blue tick + 10px for blue tick's right margin*/
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--grey);
}

.scroll-list-item svg {
    float: left;
    margin-right: 3px;
}

.scroll-list-item.active, .container  .scroll-list-item:hover {
    margin-top: -1px;
    margin-left: -1px;
    padding-top: 13px;
    border: 0;
    background-color: var(--blue);
    width: calc(100% + 2px);
    padding-left: calc(10% + 1px);
}

.scroll-list .scroll-list-item.active span, .container  .scroll-list .scroll-list-item:hover span {
    color: var(--white);
    background: transparent;
}

.scroll-list .scroll-list-item.active:after, .container  .scroll-list .scroll-list-item:hover:after {
    display: none;
}

.close-item {
    float: right;
    position: absolute;
    right: 25px;
    top: 15px;
}

.fm-close img {

    position: relative;
    top: 15px;
    left: 20px;

}
