.chat__input__text {
    border: none;
    background: #f3f3f3;
    padding: 0.5rem 10px;
    border-radius: 9px;
    flex-grow: 2;
    font-family: Red hat Display, sans-serif;
    font-weight: 400;
    letter-spacing: 0.025em;
    outline: none;
    font-size: 18px;
    grid-area: input;
}

.chat__input__files {
    grid-area: file;
    padding-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chat-message .chat__input__files .chat__file_wrapper_ul:last-child:not(:empty){
    border-bottom: 1px solid silver;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.chat__file__img {
    max-width: 150px;
}

.chat__file_wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
    border: 1px solid silver;
    padding: 15px 7px 8px 1px;
    border-radius: 5px;
    font-size: 22px;
    position: relative;
}

.chat__file_icon {
    font-size: 28px;
    background: #e1e1e1;
    padding: 8px 12px;
    border-radius: 50%;
}

.chat-message__file__img {
    max-height: 100%;
    object-fit: cover;
    max-width: 100%;
    width: 100%;
    vertical-align: bottom;
}

.chat__file_wrapper_ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


.chat-message .chat__input__files {
    display: block;
}

.chat-message__input__wrapper {
    display: grid;
    align-items: center;
    grid-template-areas: "input button"
                         "action action"
                         "code code"
                         "file file";
    grid-template-columns: 1fr 40px;
}

.chat__code-mirror-wrapper {
    grid-area: code;
    position: relative;
}

.chat__code-mirror-wrapper .CodeMirror {
    max-height: 200px;
}

.chat-message .chat__code-mirror-wrapper{
    margin: 0 -10px;
}

.chat__code-mirror-language-selector{
    color: white;
    background: #2e3440;
    right: 1px;
    top: 3px;
    position: absolute;
    border: none;
    outline: none;
}

.chant__actions {
    grid-area: action;
    margin: 15px 0;
}

.chat__record_wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    overflow: hidden;
    position: relative;
    height: 30px;
}

.chat__record_wrapper i {
    font-size: 25px;
    cursor: pointer;
}

.chat__send__button {
    font-size: 22px;
    margin: 0 10px;
    color: #a3a3a3;
    cursor: pointer;
    grid-area: button;
    width: fit-content;
}


.chat-message__list__ul, .chat__file_wrapper_ul {
    padding: 0;
    list-style: none;
}

.chat-message {
    width: fit-content;
    padding: 10px;
    position: relative;
    border: 1px solid #d7dde4;
    margin-top: 2px;
    text-align: left;
    max-width: 50%;
    white-space: normal;
    border-radius: 2px 16px 16px 16px;
    background: #c9fcc48c !important;
    margin-right: auto;
}

.chat-message.chat-message__owner {
    border-radius: 7px 7px 2px 7px !important;
    background: #f6f9fc !important;
    margin-left: auto;
    margin-right: 0;
}

.chat__file_wrapper_ul li {
    flex-grow: 1;
}

.chat__input__text:empty:before {
    content: attr(placeholder);
    pointer-events: none;
    display: block;
    color: #b1b1b1;
}

/*///*/

body {
    background: silver;
}

.chat-js {
    background: white;
    width: 50%;
    border: 1px solid red;
    margin: auto;
    border-radius: 5px;
    margin-top: 100px;
    padding: 30px;
}


.chat-message__time {
    text-align: right;
}

.chat__message-text-wrapper{
    width: 100%;
}

.chat__message-text-wrapper:not(:empty){
    border-bottom: 1px solid silver;
    padding: 5px 0 10px;
}

.chat__audio-analyzer {
    min-height: 3px;
    width: 5px;
    background: red;
    border-radius: 5px;
    max-height: 24px;
}

.chat__analyzer-html-wrapper {
    display: flex;
    align-items: center;
    gap: 1px;
    transition: all .7s;
}

audio {
    height: 20px;
}

.chat__input__audio-wrapper audio{
    margin: 10px 0;
    height: 30px;
}

.chat__input__audio-wrapper:not(:empty){
    margin-bottom: 10px;
}

.chat__stop-record {
    margin-left: 5px;
}

.chat__pause-record {
    margin-left: 5px;
}

.chat__resume-record{
    font-size: 22px !important;
    margin-top: 1px;
    margin-left: 5px;
}

.audio-player-wrapper{
    border-bottom: 1px solid silver;
    padding: 12px 0;
}

#comments-js .hide {
    display: none !important;
}

.chat__image-wrapper{
    position: relative;
}

.chat__image-wrapper .fas.fa-times{
    position: absolute;
    right: 0;
    top: 4px;
    background: #ff4e4e;
    color: white;
    border-radius: 3px;
    font-size: 13px;
    padding: 1px 3px;
    cursor: pointer;
}

.chat__file_wrapper .fas.fa-times{
    position: absolute;
    right: 0;
    top: 4px;
    background: #ff4e4e;
    color: white;
    border-radius: 3px;
    font-size: 13px;
    padding: 1px 3px;
    cursor: pointer;
}

.chat__messages__list{
    flex: 1 1 auto;
    padding: 0px 3px;
    margin: 10px 0;
    overflow: auto;
}

.chat__messages__list .dropdown{
    position: initial;
}


.chat-message__list__ul li .user-name{
    display: flex;
    align-items: center;
    justify-content: left;
    margin-top: 20px;
}

.chat-message__list__ul li .activity__avatar{
    margin-left: 0;
}

.chat-message__list__ul li .user-name img{
    width: 40px;
}

.chat-message__list__ul li .user-name.user-name-personal {
    justify-content: right;
}

.chat-message__input__wrapper .audio-player-wrapper{
    border: none !important;
}

.chat-message__time{
    font-size: 10px;
    text-align: right;
    width: 100%;
}

.comments-container  {
    max-height: 750px;
}

.chat__messages__list .dropdown-toggle{
    position: absolute;
    left: -24px;
    transform: rotate(90deg) translate(-50%, 0);
    top: 50%;
}

.chat__messages__list .dropdown-menu{
    padding: 0;
    min-width: 100px;
    width: 100px;
}

.chat__messages__list .dropdown-menu a{
    margin: 0;
}

.chat-message.w-full{
    width: 100% !important;
}

.chat-block .info .form-settings-item-subtitle {
    padding-left: 15px;
}

.chat-block{
    height: 100%;
    padding: 0 !important;
}

.chat-block .info {
    margin: 0;
    padding: 4px 15px;
    background-color: #e8eef6;
    border-radius: 0;
    webkit-box-shadow: 1px 1px 5px rgba(126, 142, 159, 0.1);
    border-bottom: none;
    box-shadow: 0px 0px 3px rgb(183 189 197);
    display: flex;
    justify-content: space-between;
}

.chat-block .info .form-group{
    min-height: fit-content;
    margin-top: 0;
}

#comments-js {
    display: flex;
    width: 100%;
    flex-direction: column;
    height: 100%;
}

.chat-block > div,
.chat-block > div > div:first-child
{
    height: 100%;
}

.chat-wrapper{
    padding:  0 15px;
    height: 100%;
}

.chat-container{
    min-height: 380px;
}
.chat-container .active-chat {
    background: #f5f5f5;
}

