.chat_open span {
    position: absolute;
    top: -10px;
    right: -10px;
    font-weight: 700;
    width: 25px;
    height: 25px;
    display: flex;
    border-radius: 50%;
    color: var(--span);
    border: solid 2px var(--span);
    font-size: 12px;
    background-color: var(--bg);
    justify-content: center;
    align-items: center;
}
.block-chat-back {
    background-color: var(--card);
    border-radius: var(--br-10);
    height: max-content;
    position: relative;
    overflow: hidden;
}
.chat_footer_send {
    height: 40px;
    gap: .5rem;
    border-top: 1px solid var(--transparent-10-w);
    display: flex;
    background-color: var(--card);
    position: relative;
    align-items: center;
}
.chat_footer_send > form {
    width: 100%;
}
.chat_smile_btn {
    cursor: pointer;
    display: flex;
    height: 100%;
    transition: .5s;
    align-items: center;
    user-select: none;
}
.chat_smile_btn svg {
    fill: var(--text-custom);
    transition: .3s;
    width: 1.25rem;
    height: 1.25rem;
    user-select: none;
    z-index: 1;
}
.chat_smile_btn:hover svg {
    fill: var(--text-default);
}
.chat_menu_smile {
    opacity: 0;
    pointer-events: none;
    bottom: 0px;
    right: 10px;
    display: flex;
    position: absolute;
    width: 290px;
    flex-wrap: wrap;
    border-radius: 6px;
    padding: 10px;
    user-select: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    background-color: var(--card);
    transition: opacity 0.3s, bottom 0.3s;
}
.chat_menu_smile.active {
    opacity: 1;
    pointer-events: auto;
    bottom: 62px;
}
.chat_menu_smile .smiley_js {
    cursor: pointer;
    width: 30px;
    height: 30px;
    font-size: 20px;
    opacity: .5;
    transition: .5s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.chat_menu_smile .smiley_js:hover {
    opacity: 1;
}
.block-chat-my {
    display: flex;
    gap: 15px;
    background-color: var(--card);
    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);
}
.onlines_mess div h4 {
    cursor: pointer;
    transition: .5s;
}
.onlines_mess div h4:hover {
    color: var(--span);
}
.block-chat-header {
    color: var(--text-custom);
    font-size: var(--font-size-default);
    padding: 1rem;
    height: 3rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--transparent-10-w);
}
#chat_main_content {
    padding-block: .5rem;
    padding-inline: 1rem;
    display: flex;
    width: 100%;
    gap: 15px;
    height: 332px;
    overflow: auto;
    flex-direction: column;
}
#chat_main_content::-webkit-scrollbar {
    height: 2px;
    width: 2px;
}
.chat_footer_send > button {
    padding: unset;
    cursor: pointer;
    border-radius: 6px;
    width: 3rem;
    transition: .5s;
    background-color: var(--card);
    color: var(--text-custom);
    border: unset;
}

.chat_footer_send > button > svg {
    transition: .3s;
    fill: var(--text-custom);
}

.chat_footer_send > button:hover svg {
    fill: var(--text-default);
}

.chat_footer_send > button:hover {
    border: unset;
}
.chat_line {
    font-weight: 700;
    color: var(--text-custom);
    font-size: 10px;
    display: flex;
    margin: 10px 5px;
    justify-content: space-between;
    align-items: center;
}
#chat_send_message > input {
    font-weight: var(--font-weight-5);
    border-radius: unset;
    font-size: var(--font-size-default);
    outline: 0;
    height: 40px;
    width: 100%;
    border-radius: 6px;
    line-height: 1.5;
    padding: 9px 15px 9px 15px;
    background-color: transparent;
    box-sizing: border-box;
    border: 0;
    color: var(--text-default);
}
#chat_send_message > input::placeholder {
    font-weight: var(--font-weight-5);
}
[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 {
    gap: .5rem;
    display: flex;
}
.chat_message .chat_message-flex {
    gap: .25rem;
    display: flex;
    width: 100%;
    position: relative;
    flex-direction: column;
}
.chat_message > a > img {
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    border-radius: 6px;
    opacity: .6;
    transition: .3s;
    object-fit: cover;
    float: left;
}
.chat_message > a > img:hover {
    opacity: 1;
}
.chat_message .chat_info {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}
.chat_message div > .chat_message_content {
    border-radius: var(--br-10);
    padding: .5rem 1rem;
    white-space: pre-line;
    overflow-wrap: anywhere;
    color: var(--text-default);
    background: var(--bg);
    font-size: var(--font-size-default);
}
.chat_message a:hover {
    color: var(--text-default);
}
.chat_message .chat_message_date {
    font-weight: var(--font-weight-6);
    color: var(--text-custom);
    display: flex;
    font-size: var(--font-size-s);
}
.chat_role {
    height: 100%;
    font-weight: var(--font-weight-7);
    font-size: var(--font-size-s);
    background-color: var(--transparent-5-w);
    border-radius: var(--br-10);
    padding-inline: .5rem;
}
.chat_nickname {
    cursor: pointer;
    font-weight: 700;
    font-size: var(--font-size-m);
    color: var(--text-custom);
    transition: .5s;
    white-space: nowrap;
}
.chat_nickname:hover {
    color: var(--text-default);
}
.chat_message_date > stats {
    opacity: .1;
}
.chat_message_date > .mention_chat {
    color: var(--span);
    cursor: pointer;
    transition: .5s;
}
.chat_message_date > .mention_chat:hover {
    color: green;
}
.chat_message_date > .del_chat {
    color: var(--span);
    cursor: pointer;
    transition: .5s;
}
.chat_message_date > .del_chat:hover {
    color: red;
}
#chat_profile {
    background-color: var(--bg);
    display: flex;
    padding: 10px;
    flex-direction: row;
    border-radius: 6px;
    position: relative;
}
#chat_profile > img {
    height: 30px;
    width: 30px;
    border-radius: 6px;
}
#chat_profile > .chat_profile_container {
    margin-left: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat_profile_close {
    position: absolute;
    right: 10px;
    cursor: pointer;
}
.chat_profile_container > h4 {
    margin: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.block-chat-my label {
    position: absolute;
    right: 0px;
    margin-right: 15px;
}
.margin-30-online {
    margin-left: 5px;
    margin-top: 30px;
    margin-bottom: 30px;
}
.wbold {
    display: flex;
    background-color: var(--bg);
    height: 40px;
    border-radius: 6px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: .5s;
}
.wbold:hover {
    color: var(--bg);
    background-color: var(--span);
}
@media (min-width: 1075px) {
    .position-block-sticky {
        height: fit-content;
        position: sticky;
        top: 75px;
    }
}
.role-chat-my {
    position: absolute;
    font-size: 8px;
    right: 5px;
    bottom: -15px;
}
.chat_open {
    background-color: var(--span);
    color: var(--bg);
    outline: none;
    cursor: pointer;
    position: fixed;
    width: 50px;
    height: 50px;
    box-sizing: border-box;
    bottom: 15px;
    right: 15px;
    z-index: 1000;
    font-size: 20px;
    border-radius: 6px;
}
.chat_open svg {
    fill: var(--button);
    width: 20px;
    height: 20px;
}
.reload-mess {
    display: flex;
    height: 100%;
    color: var(--text-custom);
    align-items: center;
    justify-content: center; 
}
.chat_no_msg {
    display: flex;
    height: 100%;
    color: var(--text-custom);
    align-items: center;
    justify-content: center;
}
.chat_message_content emoji {
    font-size: 15px;
}

.chat_message_buttons {
    gap: .25rem;
    display: flex;
}

.mention_chat,
.del_chat {
    height: 2rem;
}

.mention_chat {
    padding: unset;
    height: min-content;
    background: unset;
    border: unset;
}

.mention_chat:hover {
    background: unset;  
    border: unset;
}

.mention_chat::focus {
    border: unset;
    outline: unset;
}

.mention_chat svg {
    fill: var(--text-custom);
}

.mention_chat:hover svg {
    fill: var(--text-default);
}

.chat_message_content-flex {
    display: flex;
    gap: .25rem;
    align-items: center;
}

.chat_info-left {
    gap: .45rem;
    display: flex;
    align-items: center;
}

.chat_login_link {
    color: var(--text-custom) !important;
    height: 100% !important;
    width: 100% !important;
}

.chat_login_link:hover {
    color: var(--text-default) !important;
}