.pmPreviewContainer {
    display: flex;
    padding: 10px;
    cursor: pointer;
}

@keyframes selected {
    from {
        background-color: initial;
    }
    to {
        background-color: #e4f4fc;
    }
}

.pmPreviewContainer.selected {
    background-color: #e4f4fc;
    animation: selected 0.8s;
}

.pmPreviewContainer .senderImg {
    display: flex;
    height: 60px;
    width: 60px;
    border-radius: 50%;
    background-size: cover;
}

.bottomLine {
    margin: 0;
    border-top: solid 1px #f0f0f0;
}

.pmPreviewContainer .senderBody {
    display: flex;
    width: calc(100% - 70px);
    flex-direction: column;
    padding-left: 10px;
}

.pmPreviewContainer .senderBody .senderNameAndTime {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.pmPreviewContainer .senderNameAndTime .senderName {
    font-family: "Metropolis Bold";
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.18px;
    color: #0d4962;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 77%;
}

.pmPreviewContainer .senderNameAndTime .senderTimestamp {
    font-family: "Metropolis Regular";
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.18px;
    color: #333;
}

.pmPreviewContainer .senderBody .lastMsgAndNotification {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.pmPreviewContainer .senderBody .lastMsgAndNotification .lastMessagePreview {
    display: block;
    display: -webkit-box;
    width: 80%;
    font-family: "Metropolis Regular";
    font-size: 16px;
    line-height: normal;
    letter-spacing: 0.24px;
    color: #333;
    height: 40px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pmPreviewContainer .senderBody .lastMsgAndNotification .notificationsCounter {
    align-self: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-family: "Metropolis Bold";
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.18px;
    align-items: center;
    justify-content: space-evenly;
    color: #0d4962;
    background-color: #aed8eb;
    display: none;
}
.pmPreviewContainer .senderBody .lastMsgAndNotification .notificationsCounter.show {
    display: flex;
}

.pmPreviewContainer.unread .senderNameAndTime .senderTimestamp {
    font-family: "Metropolis Bold";
    color: #0d4962;
    animation: none;
}

/* DARK MODE */
.dark .pmPreviewContainer .senderBody .lastMsgAndNotification .notificationsCounter {
    color: rgba(255, 255, 255, 0.87);
    background-color: #0d4962;
}
.dark .pmPreviewContainer .senderNameAndTime .senderName,
.dark .pmPreviewContainer .senderNameAndTime .senderTimestamp,
.dark .pmPreviewContainer .senderBody .lastMsgAndNotification .lastMessagePreview,
.dark .pmPreviewContainer.unread .senderNameAndTime .senderTimestamp {
    color: rgba(255, 255, 255, 0.87);
}
.dark .bottomLine {
    border-top: solid 1px rgba(255, 255, 255, 0.14);
}
.dark .dark .pmPreviewContainer.selected {
    background-color: #0d4962;
    animation: none;
}
