@charset "utf-8";

#banner{display: none;}

.chat_wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 80vh;
}

.chat_wrap .header { 
    font-size: 14px; 
    padding: 15px 0; 
    background: #F18C7E; 
    color: white; 
    text-align: center; 
}

.chat_wrap .chat {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 10px;
    height: calc(80vh - 100px);
}

.chat_wrap .chat ul { 
    width: 100%; 
    list-style: none; 
}

.chat_wrap .chat ul li { 
    width: 100%; 
}

.chat_wrap .chat ul li.left { 
    text-align: left; 
}

.chat_wrap .chat ul li.right { 
    text-align: right; 
}

.chat_wrap .chat ul li > div { 
    font-size: 13px; 
}

.chat_wrap .chat ul li > div.sender { 
    margin: 10px 20px 0 20px; 
    font-weight: bold; 
}

.chat_wrap .chat ul li > div.message {
    display: inline-block;
    word-break: break-all;
    margin: 5px 20px;
    max-width: 75%;
    padding: 10px;
    border-radius: 5px;
    text-align: left;
    position: relative;
}

.chat_wrap .left .message {
    background-color: #E2E2E2;
    margin-left: 10px;
}

.chat_wrap .left .message::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #E2E2E2;
}

.chat_wrap .right .message {
    background-color: #EA771F;
    color: white;
    border: 1px solid #EA771F;
    margin-right: 10px;
    align-self: flex-end;
}

.chat_wrap .right .message::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid #EA771F;
}

.chat_wrap .input-div {
    border-top: 1px solid #F18C7E;
    background-color: #FFF;
}

.chat_wrap .input-div > textarea {
    width: 100%;
    height: 80px;
    border: none;
    padding: 10px;
    resize: none;
    margin-bottom: 10px;
}

.format { 
    display: none; 
}

.message-date {
    font-size: 0.8em;
    color: #888;
    margin-left: 10px; 
}
.right .message-date {
    text-align: right; 
    margin-right: 20px;
}
.left .message-date {
    text-align: left;
    margin-left: 20px;
}