.message-list{
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    padding-left: 10px;
    max-height: 500px;
    min-height: 200px;
}
.message-list::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 7px;
}
.message-list::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background-color: rgba(0,0,0,0.3);
    -webkit-box-shadow: 0 0 1px rgba(255,255,255,0.3);
}
.message-item {
    padding: 10px 10px 20px 10px;
    margin: 10px 0;
    display: block;
    border-radius: 4px;
    position: relative;
    max-width: 80%;
    min-width: 190px;
    clear: both;
    position: relative;
    width: fit-content;
}
.message-item.message-outgoing {
    background-color: #9fd2ff;
    margin-left:auto;
}
.message-item.message-outgoing.read:before{
    content: "";
    background-image: url('/img/icon/double-check.svg');
    background-size: 15px;
    position: absolute;
    z-index: 2;
    left: -18px;
    bottom: 0;
    height: 15px;
    width: 15px;
    background-repeat: no-repeat;
}
.message-item.message-outgoing.sent:before{
    content: "";
    background-image: url('/img/icon/check.svg');
    background-size: 12px;
    position: absolute;
    z-index: 2;
    left: -18px;
    bottom: 0;
    height: 12px;
    width: 12px;
    background-repeat: no-repeat;
}
.message-item.message-outgoing:after{
    content: "";
    position: absolute;
    background: #9fd2ff;
    right: -3px;
    top: 2px;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    display: block;
}
.message-item.message-incoming {
    background-color: #aaffb3;
}
.message-item.message-incoming:before{
    content: "";
    position: absolute;
    background: #aaffb3;
    left: -3px;
    top: 2px;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    display: block;
}
.message-time{
    position: absolute;
    font-size: 11px;
    right: 15px;
    bottom: 2px;
    color: gray;
}
.message-text{
    font-size:13px;
    color: #0c0c0c;
}
.message-form{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: white;
}
.message-form button{
    outline: none;
    border: none;
    box-shadow: none;
    background: none;
    color: #328200;
    padding: 3px 0;
    font-size: 15px;
}
.message-form textarea{
    width: calc(100% - 20px);
    padding: 5px;
    border: none;
    font-size: 12px;
    background-color: beige;
    outline: none;
    box-shadow: none;
    min-height: 23px;
}
.message-image{
    object-fit: contain;
    width: 270px;
    height: 270px;
}
.message-delete {
    position: absolute;
    bottom: 4px;
    right: 2px;
    font-size: 13px;
    cursor: pointer;
    color: darkgray;
}
.message-delete:hover{
    color:gray;
}
.message-wrapper{
    /*max-width: 700px;*/
    margin: auto;
    border: 1px solid darkgray;
    border-radius: 5px;
}
.message-form-wrapper{
    position: sticky;
    bottom: 0;
    width: 100%;
    max-width: inherit;
    border-top: 1px solid darkgray;
}
.dropzone {
    min-height: 110px;
}
#drpzone{
    margin-bottom: 15px;
}
.scroll-to-bottom {
    position: absolute;
    bottom: 2px;
    right: 50%;
    border-radius: 50%;
    box-shadow: none;
    outline: none;
    background-color: rgba(255,255,255,0.5);
    border: 1px solid lightgray;
    width: 30px;
    height: 30px;
    left: 50%;
}
