.chat-button {
    position: fixed;
    right: 0;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background-color: #0d6aad;
    cursor: pointer;
}

.chat-container {
    position: fixed;
    z-index: 1000;
    right: 50px;
    bottom: 50px;
    height: 400px;
    border: 1px solid white;
    width: 800px;
    display: flex;
    flex-direction: column;
    background-color: white;
    box-shadow: 0 10px 25px 0 rgb(0 0 0 / 20%);
    padding: 15px;
    border-radius: 0.55rem;
    transition: .5s;
}
.chat-menu {
    width: 100%;
    height: 25px;
    background-color: #fff;
}

.chat-content {
    display: flex;
    flex-direction: row;
    background-color: white;
    flex-grow: 1;
    flex-basis: 0;
}

.chat-contacts {
    display: flex;
    flex-grow: 2;
    flex-basis: 0;
    overflow-y: scroll;
    background-color: white;
    flex-direction: column;
    border-right: 1px solid #E6E6E6;
    border-top: 1px solid #E6E6E6;
}

.chat-contacts::-webkit-scrollbar {
    display: none;
}

.chat-messages {
    display: flex;
    flex-grow: 3;
    flex-basis: 0;
    flex-direction: column;
    border-top: 1px solid #E6E6E6;
}

.chat-messages-container {
    background-color: white;
    flex-grow: 8;
    overflow-y: scroll;
    padding: 5px;
    flex-basis: 0;
}

.chat-messages-container::-webkit-scrollbar {
    display: none;
}

.chat-input-container {
    background-color: white;
    flex-grow: 1;
    flex-direction: row;
    flex-basis: 0;
    padding: 20px 20px 0;
}

.chat-text-area-container {
    flex-grow: 10;
    flex-basis: 0;
}

.chat-send-container {
    background-color: #d1f1c4;
    display: flex;
    align-content: center;
    justify-content: center;
}

.chat-input {
    width: 100%;
    height: 100%;
    resize: none;
    border: none !important;
    outline: 0;
}

.chat-message {
    color: #000000;
    padding: 10px 20px;
    margin-right: 30px;
    margin-left: 0;
    margin-top: 10px;
    background-color: #dbdbdb;
    border-radius: 5px;
    border: 1px solid white;
    position: relative;
    line-height: 26px;
    font-size: 10pt;
}

.chat-message:after {
    bottom: 100%;
    left: 30px;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-bottom-color: #dbdbdb;
    border-width: 10px;
    margin-left: -10px;
}

.from-me {
    background-color: #d1f1c4;
    margin-right: 0;
    margin-left: 30px;
    text-align: right;
}

.from-me:after {
    bottom: 100%;
    left: unset;
    right: 30px;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-bottom-color: #d1f1c4;
    border-width: 10px;
    margin-left: -10px;
}

.btn-close {
    color: #5c5c5c !important;
}

.btn-close:hover {
    cursor: pointer;
}

.chat-send-container .btn,
.chat-send-container .btn:hover {
    border-radius: 0;
    background-color: #ccc;
    border-color: #ccc;
}

.chat-send-container .btn:hover {
    background-color: #3f8bd4;
    border-color: #3f8bd4;
}

.chat-contact {
    padding: 5px;
}

.chat-contact .btn {
    border-radius: 5px;
    background-color: #fff;
    color: #000;
    border: 1px solid #E6E6E6;
    width: 100%;
    text-align: left;
}

.chat-contact .btn.active {
    background-color: #0d6aad;
    border-color: #0d6aad;
}

.chat-contact .btn:hover,
.chat-contact .btn.active:hover {
    background-color: #3f8bd4;
    border-color: #3f8bd4;
}

.btn-chat-send {
    padding: 4px 12px !important;
}

.chat-message-data {
    padding-top: 5px;
    background-color: transparent;
    font-size: 10px;
    margin-top: 10px;
}

.chat-message-data-from-me {
    text-align: right;
    background-color: transparent;
    padding-top: 5px;
    font-size: 10px;
    margin-top: 10px;
}
/*MEDIA QUERIES*/
@media screen and (max-width: 768px) {
    .chat-container {
        position: fixed;
        z-index: 1000;
        bottom: 20vh;
        height: 50vh;
        border: 1px solid white;
        width: 90vw;
        display: flex;
        flex-direction: column;
        background-color: white;
        box-shadow: 0 10px 25px 0 rgb(0 0 0 / 20%);
        padding: 5px;
        border-radius: 0.55rem;
        transition: .5s;
        left: 5vw;
    }

    .chat-partner-select-button {
        padding: 0 5px !important;
        font-size: x-small !important;
        white-space: unset !important;
        text-align: left !important;
    }

    .chat-message {
        line-height: 15px;
        margin: 10px 0 0 0;
    }

    .chat-input-container {
        padding: 15px 5px 0;
    }

    .chat-contacts {
        flex-grow: 1;
    }

    .contact-name-span {
        float: unset;
    }
}

@media screen and (max-width: 992px) {
    .chat-container {
        bottom: 20vh;
        height: 50vh;
        border: 1px solid white;
        width: 90vw;
        left: 5vw;
    }
}
