/*body,
input,
textarea {
    font: 1em "Helvetica", sans-serif;
}*/

/* for fixed chat */
/*.chat-widget {
    position: fixed;
    bottom: 0;
    right: 85px;
    width: 300px;
    background-color: #edeff0;
    font-size: .9em;
    z-index: 1;
}*/

.chat-widget {
    width: auto;
    background-color: #f1f1f1;
    border: 3px solid #c62433;
    padding-top: 5px;
    margin-bottom: 20px;
    overflow-wrap: anywhere;
}

.chat-messages {
    background-color: #fff;
    margin: 10px;
    padding: 10px 0;
    line-height: 1.2em;
    height: 300px;
    max-height: 300px;
    /*overflow-y: scroll;*/
    /*https://stackoverflow.com/questions/18614301/keep-overflow-div-scrolled-to-bottom-unless-user-scrolls-up*/
    overflow: auto;
    display: flex;
    flex-direction: column-reverse;
}

.chat-message span {
    display: block; /*force content after date onto new line*/
    color: #9ca4ad;
    margin-right: 4px;
    font-size: 11px;
}

.chat-message {
    padding: 10px;
}

.chat-message:nth-child(even) {
    background-color: #f9f9f9;
}

.chat-widget,
.chat-messages {
    /*border-top-right-radius: 5px;
    border-top-left-radius: 5px;*/
}

.chat-name,
.chat-entry {
    box-sizing: border-box;
    padding: 10px;
    margin: 0 10px 10px;
    width: calc(100% - 20px);
    border: none;
}

.chat-entry {
    height: 100px;
    resize: none;
}

button#send-chat {
    margin: 10px 10px 10px;
    background-color: #C62433;
    color: #fff;
    padding: 5px 10px;
    border: none;
    font-size: 1rem;
}

#scroll-to-top {
    display: none;
}
