.block-chat-back {
    background: var(--card);
    border-radius: 12px;
    height: max-content;
    position: relative;
}
.chat_header {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1rem;
    font-weight: 400;
    font-size: 16px;
    border-bottom: 1px solid var(--bg-table);
    color: var(--text-custom);
}
.chat_footer_send {
    display: flex;
    gap: 10px;
    padding: 0 25px 20px 20px;
}
.chat_footer_send > form {
    width: 100%;
}
.block-chat-my {
    display: flex;
    gap: 15px;
    background-color: var(--card-color);
    margin-bottom: 30px;
    padding: 15px;
    border-radius: 6px;
    align-items: center;
    position: relative;
}
.block-chat-my h5 {
    display: grid;
    gap: 5px;
}
.block-chat-my .block-chat-ava-my {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    opacity: .6;
    transition: .5s;
    object-fit: cover;
}
.block-chat-my .block-chat-ava-my:hover {
    opacity: 1;
}
.block-chat-my h5 div {
    font-size: 8px;
    color: var(--text-custom);
}
#chat_main_content {
    display: flex;
    width: 100%;
    gap: 10px;
    padding: 0 25px 0 20px;
    margin: 0 0 15px 0;
    height: 238px;
    overflow: auto;
    flex-direction: column;
}
#chat_main_content::-webkit-scrollbar {
    height: 2px;
    width: 2px;
}
.chat_footer_send > button {
    cursor: pointer;
    height: 40px;
    border-radius: 6px;
    width: 40px;
    transition: .5s;
    padding: 0;
    background-color: var(--input-form);
}
.chat_footer_send > button > svg {
    transition: .5s;
    fill: var(--text-custom);
    width: 15px;
    height: 15px;
}
.chat_footer_send > button:hover {
    color: var(--span);
}
.chat_footer_send > button:hover svg {
    fill: var(--span);
}
#chat_send_message > textarea {
    outline: 0;
    resize: none;
    float: left;
    min-height: 40px;
    max-height: 100px;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 6px;
    line-height: 1.5;
    padding: 9px 50px 9px 15px;
    word-wrap: break-word;
    -webkit-box-sizing: border-box;
    background-color: var(--input-form);
    box-sizing: border-box;
    border: 0;
    color: var(--text-custom);
    overflow-wrap: break-word;
}
[contentEditable=true]:empty:not(:focus):before {
    content: attr(data-text);
    color: var(--text-custom);
}
div:empty:before {
    content: attr(data-text);
    color: var(--text-custom);
}
.chat_message {
    display: flex;
    justify-content: flex-start;
    position: relative;
}
.chat_message_my {
    display: flex;
    justify-content: flex-end;
    position: relative;
}
.chat_message .padding, .chat_message_my .padding {
    z-index: 3;
    width: 100%;
    position: relative;
}
.chat_message div > a >  img, .chat_message_my div > a > img {
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 6px;
    opacity: .6;
    transition: .5s;
    object-fit: cover;
}
.chat_message div > a > img {
    float: left;
}
.chat_message_my div > a > img  {
    float: right;
}
.chat_message div > a > img:hover, .chat_message_my div > a > img:hover {
    opacity: 1;
}
.chat_message .chat_info, .chat_message_my .chat_info {
    display: flex;
    gap: 10px;
    height: 25px;
    justify-content: space-between;
    align-items: center;
}
.chat_message div > .chat_message_content {
    background: var(--bg);
    width: 100%;
    min-height: 39px;
    height: auto;
    padding: 8px 16px;
    border-radius: 10px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.chat_message_my div > .chat_message_content {
    background: var(--bg);
    width: 100%;
    min-height: 39px;
    height: auto;
    padding: 8px 16px;
    border-radius: 10px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.chat_message a:hover, .chat_message_my a:hover {
    color: var(--span-color);
}
.chat_role {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-custom) !important;
}
.chat_nickname {
    cursor: pointer;
    font-weight: 700;
    color: var(--default-text-color);
    transition: .5s;
    white-space: nowrap;
}
.chat_nickname:hover {
    color: var(--span-color);
}
.chat_message_block_info > stats {
    font-size: 8px;
    opacity: .1;
}
.reload-mess {
    position: relative;
    background: var(--input-form);
    overflow: hidden;
    height: 100%;
    border-radius: 0 0 12px 12px;
    z-index: 2;
}

.reload-mess::before {
    content: attr(data-text);
    color: var(--text-custom);
}

.reload-mess::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 2%), rgba(255, 255, 255, 0) 100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.chat_no_msg {
    display: flex;
    height: 100%;
    color: red;
    align-items: center;
    justify-content: center;
}
.loader-50px {
    width: 50px;
    height: 50px;
    border: 5px solid;
    border-color: var(--span) transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation-loader 1s linear infinite;
}
@keyframes rotation-loader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
.chat_message_block_info {
    display: flex;
    justify-content: space-between;
}

.chat_flex {
    display: flex;
    gap: 8px;
}

.chat_nickdate {
    display: flex;
    gap: 5px;
    align-items: center;
}

.chat_nicktext {
    display: grid;
    gap: 5px;
    width: 100%;
}

.chat_info .del_chat {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--button);
    border-radius: 4px;
    width: 25px;
    height: 25px;
    padding: 3px;
    cursor: pointer;
    transition: .5s;
}

.chat_info .del_chat svg {
    width: 10px;
    height: 10px;
    fill: var(--text-custom);
    transition: .5s;
}

.chat_info .del_chat:hover {
    background: var(--button-hover);
}

.chat_info stats {
    font-weight: 600;
    font-size: 12px;
    opacity: .3;
}

.chat-role-player svg {
    width: 15px;
    height: 15px;
}

.time_sec_msg {
    color: var(--text-default);
}