:root {
    --chat: var(--button-bg);
    --radius: 3px;
}
.chat-container {
    position: fixed;
    border: 1px solid var(--chat);
    bottom: 10px;
    right: 10px;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    background-color: var(--bg);
}
.chat-container .icon-button {
    font-size: smaller;
}
.chat-header {
    border-bottom: 1px solid var(--chat);
    font-weight: bold;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 5em;
}
.chat-container .chat-header span button.icon-button {
    margin-left: 6px;
}
.chat-messages {
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    width: 50vh;
    height: 55vh;
}
.chat-container form {
    bottom: 0;
    display: flex;
    justify-content: space-between;
    padding: 5px;
    border-top: 1px solid var(--chat);
    align-items: center;
}
.chat-container input {
    flex: 1px;
    padding: 5px;
    border: 1px solid var(--chat);
    border-radius: var(--radius);
    margin-right: 5px;
}
.msg {
    padding: 5px;
    border-radius: var(--radius);
    overflow-wrap: break-word;
}
.msg-ts {
    font-size: x-small;
}
.chat-charcounter {
    text-align: end;
    min-width: 80px;
}

@media (max-width: 70em) {
    .chat-container {
        position: sticky;
        bottom: 0;
    }
}