﻿.message-content-wrapper {
    width: 100%;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    gap: 10px;
}

.message-content-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #d5d5d5;
}
.message-content-header-name {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 10px;
}

.message-content-header-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.message-content-header-username {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.message-content-header-username p {
    font-size: 18px;
    font-weight: 600;
}
.message-content-header-username small {
    font-size: 13px;
    color: #999;
}
    .message-content-header-username small.isOnline {
        color: green;
        font-weight: 600;
    }

    .message-content-header-buttons {
        display: flex;
        gap: 10px;
        position: relative;
    }
.message-content-body {
    overflow-y: scroll;
    height: calc(100vh - 255px);
}
.message-content-item {
    display: flex;
    padding: 0 10px;
    margin-bottom: 40px;
}
.owner {
    flex-direction: row-reverse;
}

.msg-cont {
    margin-left: 10px;
    max-width: 70%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.msg-profile-container {
    margin-top: auto;
    margin-bottom: -15px;
}

.msg-profile-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.msg-p {
    background: #e7e7e7;
    padding: 10px;
    border-radius: 10px;
    word-break: break-word;
    position: relative;
    font-size: 14px;
}

    .msg-p + .msg-p {
        margin-top: 10px;
    }

.owner .msg-cont {
    margin-right: 10px;
    margin-left: 0;
    align-items: flex-end;
}

.owner .msg-p {
    background: #3b3b3b;
    color: #FFF;
}

.message-content-footer {
    position: fixed;
    bottom: 0;
    height: 70px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-column-gap: 5px;
    max-width: 960px;
    width: 100%;
    padding: 10px;
    background-color: #FFF;
    border-top: 1px solid #d5d5d5;
}

.message-content-footer-button,
.message-content-footer-input {
    display: flex;
    align-items: center;
}
.message-content-footer-button {
    border: none;
    background: none;
}

    .message-content-footer-button svg {
        height: 25px;
        fill: #666;
    }

.message-content-footer-input textarea {
    width: 100%;
    border: 1px solid #666;
    padding: 10px;
    font-size: 14px;
    border-radius: 5px;
    outline: none;
    position: relative;
}

.msg-img {
    width: 150px;
    object-fit: contain;
    border-radius: 10px;
}


.owner .msg-p a {
    color: #fff;
}

.message-content-footer-reply {
    position: fixed;
    bottom: 0;
    height: 70px;
    max-width: 960px;
    width: 100%;
    padding: 10px;
    background-color: #FFF;
    border-top: 1px solid #d5d5d5;
}

.message-reply-btn {
    font-weight: 600;
    background: #FFB606;
    padding: 10px;
    border: none;
    border-radius: 10px;
    width: 100%;
    color: #fff;
    cursor: pointer;
}

.message-content-header-buttons i {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

}

.message-content-header-buttons svg {
    height: 25px;
    fill: #222;
}

.message-option-ul {
    position: absolute;
    top: 90%;
    list-style-type: none;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    right: 0;
    z-index: 99;
    min-width: 250px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    padding: 10px;
}
.message-option-ul li {
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    gap: 10px;
}
.message-option-ul li i {
    display: flex;
    align-items: center;
}
.message-option-ul li i svg {
    fill: #000;
    height: 15px;
}

.message-option-ul li a {
    color: #000;
    font-size: 13px;
    text-decoration: none;
}

.message-option-ul li:hover {
    background: #d5d5d5;
}


@media screen and (max-width: 767px) {
    .message-content-header {
        padding: 10px;
    }
}