.messages-holder {
    max-width: 982px;
    margin: 30px auto;
    border: 1px solid #e9edf0;
    border-radius: 10px;
    display: flex;
}
.ms-aside {
    border-right: 1px solid #e9edf0;
    display: inline-block;
    vertical-align: top;
    padding: 15px;
    width: 30%;
}
.ms-content {
    display: inline-block;
    vertical-align: top;
    padding: 15px;
    width: calc(100% - 30%);
}

.ms-search-form input[type="text"] {
    width: 100%;
    height: 45px;
    border: 1px solid #ecedef;
    border-radius: 10px;
    padding: 0 15px;
}
.ms-search-form input[type="text"]::-webkit-input-placeholder {
    color: #c0c0c8;
}
.ms-search-form input[type="text"]::-moz-placeholder {
    color: #c0c0c8;
}
.ms-search-form input[type="text"]:-ms-input-placeholder {
    color: #c0c0c8;
}
.ms-search-form input[type="text"]:-moz-placeholder {
    color: #c0c0c8;
}
.ms-search-form {
    margin: 0 0 10px;
}
.ms-users-list .ms-user-field {
    box-shadow: 0 6px 4px -5px rgba(0 0 0 / 20%);
}
.ms-users-list li {
    width: 100%;
    margin: 0 0 10px;
    list-style-type: none;
}
.ms-users-list .ms-img figure {
    background-color: #ccc;
    border-radius: 100%;
    height: 100%;
    width: 100%;
    margin: 0;
    display: inline-block;
    text-align: center;
}
.ms-users-list .ms-img figure img {
    width: 100%;
    height: 100%;
    border-radius: 100%;
}
.ms-users-list .ms-img {
    display: inline-block;
    vertical-align: middle;
    margin: 0 -4px 0 0;
    width: 37px;
    height: 37px;
    position: relative;
}
.ms-users-list .ms-user-field .ms-text {
    width: calc(100% - 37px);
    display: inline-block;
    vertical-align: middle;
    margin: 0 -4px 0 0;
    padding: 0 0 0 10px;
    position:relative;
}
.ms-users-list .ms-user-field a {
    padding: 10px;
    display: block;
    position: relative;
}
.ms-users-list .ms-user-field .ms-text h6 {
    font-size: 14px;
    color: #302720;
    font-weight: 700;
    text-transform: capitalize;
    line-height: normal;
    margin: 0 0 5px;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: calc(100% - 40px);
}
.ms-users-list .ms-user-field .ms-text span {
    font-size: 13px;
    color: #666;
    display: block;
    line-height: normal;
}
.ms-users-list .ms-user-field .ms-text .ms-date {
    position: absolute;
    right: 0px;
    top: 7px;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    color: #222;
    font-size: 11px;
    font-weight: 400;
}
.ms-content-header .ms-img {
    display: inline-block;
    vertical-align: middle;
    margin: 0 -4px 0 0;
    width: 56px;
    height: 56px;
}
.ms-content-header .ms-img figure {
    background-color: #ccc;
    margin: 0;
    width: 56px;
    height: 56px;
    border-radius: 10px;
}
.ms-content-header .ms-img figure img {
    width: 100%;
    height: 100%;
    border-radius: 100%;
}
.ms-content-header .ms-text {
    width: calc(100% - 56px);
    display: inline-block;
    vertical-align: middle;
    margin: 0 -4px 0 0;
    padding: 0 0 0 20px;
}
.ms-content-header .ms-text h6 {
    font-size: 16px;
    color: #302720;
    font-weight: 700;
    text-transform: capitalize;
    line-height: normal;
    margin: 0 0 5px;
}
.ms-content-header .ms-text  span {
    font-size: 14px;
    color: #999;
    display: block;
    line-height: normal;
}
.ms-content-header {
    margin: 0 0 20px;
}
.ms-conversation {
    border: 1px solid #ecedef;
    border-left: 0;
    height: 315px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px 0;
    margin: 0 0 15px;
}
.ms-conversation li {
    width: 100%;
    margin: 0 0 30px;
    list-style-type: none;
}
.ms-conversation .ms-img {
    display: inline-block;
    vertical-align: middle;
    margin: 0 -4px 0 0;
    width: 40px;
    height: 40px;
}
.ms-conversation .ms-img figure {background-color: #ccc;border-radius: 100%;height: 100%;width: 100%;margin: 0 0 5px;display: inline-block;text-align: center;}

.ms-conversation .ms-img figure img {
    border-radius: 100%;
    height: 100%;
    width: 100%;
}
.ms-conversation .ms-text {
    border-radius: 18px;
    display: inline-block;
    vertical-align: middle;
    margin: 0 0 0 20px;
    padding: 10px 15px;
}
.ms-conversation .ms-text h6 {font-size: 14px;font-weight: 700;text-transform: capitalize;line-height: normal;margin: 0 0 5px;}

.ms-conversation .ms-sender-list .ms-text h6 {
    color: #302720;
}
.ms-conversation .ms-sender-list .ms-text {
    background-color: #f1f5fe;
}
.ms-conversation .ms-receiver-list .ms-text {
    background-color: rgba(241,245,251,0.8);
    margin: 0 20px 0 0;
    text-align: left;
}
.ms-conversation .ms-receiver-list .ms-text h6 {
    color: #222;
}
.ms-conversation .ms-receiver-list .ms-text span {
    color: #222;
}
.ms-conversation .ms-text span {
    font-size: 13px;
    color: #222;
    display: block;
    line-height: normal;
}
.ms-receiver-list li {
    text-align: right;
    list-style-type: none;
}
.ms-receiver-list li .ms-user-field {
    display: flex;
    align-items: center;
    justify-content: end;
    flex-direction: row-reverse;
}
.ms-time {
    display: block;
    font-size: 11px;
    color: #222;
    text-align: center;
    line-height: normal;
}
.ms-type-form .search-field {
    position: relative;
    padding: 0 0 0 10px;
}
.ms-type-form .search-field input[type="text"] {
    border: 1px solid #dddbf1;
    height: 40px;
    padding: 0 10px 0 10px;
    border-radius: 10px;
    width: calc(100% - 100px);
    font-size: 13px;
}
.ms-type-form .search-field input[type="text"]::-webkit-input-placeholder {
    color: #e6e6ff;
}
.ms-type-form .search-field input[type="text"]::-moz-placeholder {
    color: #e6e6ff;
}
.ms-type-form .search-field input[type="text"]:-ms-input-placeholder {
    color: #e6e6ff;
}
.ms-type-form .search-field input[type="text"]:-moz-placeholder {
    color: #e6e6ff;
}
.ms-type-form .search-field button {
    border: 0;
    background-image: var(--leafyGradient);
    width: 100px;
    display: inline-block;
    margin-right: -4px;
    height: 40px;
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
}
.ms-type-form .search-field button:hover
{
    background-image:var(--orangeGradient);
}
.messages-holder input[type="text"]:focus {
    outline: none;
}
.ms-users-list .ms-status {
    background-color: #222;
    border-radius: 100%;
    position: absolute;
    right: 0px;
    top: 90%;
    height: 10px;
    width: 10px;
    margin-top: -7px;
}
.ms-users-list .ms-status.offline {
    background-color: #d60012;
}
.messages-holder ul {
    margin: 0;
    padding: 0;
    max-height: 390px;
    overflow-x:hidden;
    overflow-y:scroll;
    padding-right: 4px;
}

.messages-holder ul::-webkit-scrollbar {
    width: 4px;
    background-color: transparent;
    position: absolute;
}

.messages-holder ul::-webkit-scrollbar-thumb {
    background-color: var(--lime);
    border-radius: 0;
    -webkit-transition: 0.2s linear;
    transition: 0.2s linear;
    border-radius: 10px;
}

.messages-holder ul::-webkit-scrollbar-track {
    background-color: transparent;
}