.--chat-theme {
    --chat-background: #F8F8F8;
    --chat-panel-background: white;
    --chat-bubble-background: #F1F1F1;
    --chat-add-button-background: white;
    --chat-send-button-background: #0A4C9A;
    --chat-text-color: #36475A;
    --chat-options-svg: #a3a3a3;
}

.chat-box {
    bottom: 0;
    display: none;
    position: fixed;
    right: 70px;
	z-index:10000;
}

#chat {
    background: var(--chat-background);
    max-width: 600px;
    min-width: 600px;
    margin: 25px auto;
    box-sizing: border-box;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

#chat .btn-icon {
    position: relative;
    cursor: pointer;
}

#chat .chat__conversation-header {
    background-color: #222222;
    padding: 24px;
}

#chat .chat__conversation-header h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: white;
}

#chat .chat__conversation-header button {
    background: transparent none repeat scroll 0 0;
    font-size: 18px;
    color: white;
}

#chat .chat__conversation-board {
    padding: 1em 1em 2em 1em;
    height: 500px;
    overflow: auto;
    margin-bottom: 2em;
}

#chat .chat__conversation-board.public {
    margin-bottom: 5em;
}

#chat .chat__conversation-setting-alert {
    background-color: white;
    box-shadow: 0 5px 10px 0 rgba(0,0,0,0.1);
    font-family: "kanit";
    position: absolute;
    top: 6em;
    left: 0;
    padding: 1em 2em;
    width: 100%;
    z-index: 10001;
}

#chat .chat__conversation-setting-alert p {
    font-size: 16px;
    color: #36475A;
    margin: 0;
}

#chat .chat__conversation-question-panel {
    display: none;
    overflow: scroll;
    height: auto;
    max-height: 400px;
    width: calc(100% - 2em);
    padding: 1em 1em 2em 1em;
    margin: 1em;
    background-color: white;
    border: 1px solid #f5f5f5;
    border-radius: 4px;
    position: absolute;
    bottom: 8em;
    z-index: 10001;
}

#chat .chat__conversation-question-panel.public {
    bottom: 5em;
}



#chat .chat__conversation-board__message-container.reversed {
    flex-direction: row-reverse;
}

#chat .chat__conversation-board__message-container.reversed .chat__conversation-board__message__bubble {
    position: relative;
}

#chat .chat__conversation-board__message-container.reversed .chat__conversation-board__message__bubble span:not(:last-child) {
    margin: 0 0 2em 0;
}

#chat .chat__conversation-board__message-container {
    position: relative;
    display: flex;
    flex-direction: row;
}

#chat .chat__conversation-board__message-container-single {
    position: relative;   
    display: flex;
    justify-content: center;
    margin: 0 0 1.5em 0;
}

#chat .chat__conversation-board__message__single {
    font-size: 16px;
    color: #BA9745;
}

#chat .chat__conversation-board__message-container:not(:last-child) {
    margin: 0 0 2em 0;
}

#chat .chat__conversation-board__message__context {
    max-width: 55%;
    align-self: flex-end;
    display: flex;
    flex-direction: column;
}

#chat .chat__conversation-board__message__header__name {
    color: #BA9745;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0.25em;
}

#chat .chat__conversation-board__message__footer__name {
    color: #BA9745;
    font-size: 12px;
    font-weight: 400;
    text-align: right;
    margin-top: 0.25em;
}

#chat .chat__conversation-board__message__bubble__file {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    background-color: white;
    padding: 0.5em 0.8em;
    border-radius: 6px;
    font-family: "kanit";
}

#chat .chat__conversation-board__message__bubble__file a {
    color: #36475A;
}

#chat .chat__conversation-board__message__bubble__file span {
    font-size: 12px;
    color: #86868B;
    text-transform: uppercase;
}


#chat .chat__conversation-board__message__bubble__file  h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
}

#chat .chat__conversation-board__message__bubble__file .square {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: #0A4C9A;
    color: white;
}

#chat .chat__conversation-board__message__bubble span {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    display: inline-table;
    word-wrap: break-word;
    background: var(--chat-bubble-background);
    font-size: 16px;
    color: var(--chat-text-color);
    padding: 0.5em 0.8em;
    line-height: 1.5;
    border-radius: 6px;
    font-family: "kanit";
}

#chat .chat__conversation-board__message__bubble:not(:last-child) {
    margin: 0 0 0.3em;
}

#chat .chat__conversation-board__message__bubble:active {
    background: var(--chat-bubble-active-background);
}

#chat .chat__conversation-panel {
    background: var(--chat-panel-background);
    border-radius: 12px;
    padding: 0 1em;
    position: relative;
    height: 55px;
    margin: 0.5em 1em 1em 1em;
}

#chat .chat__conversation-panel__question {
    position: absolute;
    bottom: 5em;
}

#chat .chat__conversation-panel.public {
    height: 0px;
}

#chat .chat__conversation-panel.public .chat__conversation-panel__question {
    position: absolute;
    bottom: 2em;
}


#chat .chat-badge {
    background-color: white;
    border: 1px solid #D2D2D7;
    border-radius: 25em;
    font-family: "kanit";
    font-size: 14px;
}

#chat .chat-badge:hover {
    background-color: #f5f5f5;
    border: 1px solid #D2D2D7;
    border-radius: 25em;
}

#chat .chat__conversation-panel__container {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
}
#chat .chat__conversation-panel__container .panel-item:not(:last-child) {
    margin: 0 1em 0 0;
}
#chat .chat__conversation-panel__button {
    background: grey;
    height: 20px;
    width: 30px;
    border: 0;
    padding: 0;
    outline: none;
    cursor: pointer;
}
#chat .chat__conversation-panel .add-file-button {
    height: 23px;
    min-width: 23px;
    width: 23px;
    background: var(--chat-add-button-background);
    border-radius: 50%;
}

#chat .chat__conversation-panel .send-message-button {
    background: var(--chat-send-button-background);
    height: 40px;
    min-width: 40px;
    border-radius: 4px;
    transition: 0.3s ease;
    color: white;
}

#chat .chat__conversation-panel .send-message-button:active {
    transform: scale(0.97);
}

#chat .chat__conversation-panel__input {
    width: 100%;
    height: 100%;
    outline: none;
    position: relative;
    color: var(--chat-text-color);
    font-size: 16px;
    background: transparent;
    border: 0;
    font-family: "kanit";
    resize: none;
}

@media only screen and (max-width: 600px) {
    .chat-box {
        right: 20px;
    }

    #chat {
        margin: 0;
        border-radius: 0;
        min-width: calc(100vw - 50px);
    }
}