.chat_open span {
    position: absolute;
    top: -10px;
    right: -10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    display: flex;
    border-radius: 6px 6px 6px 0px;
    color: var(--text-default);
    font-size: 14px;
    background: rgba(219, 0, 0, 1);
    justify-content: center;
    align-items: center;
}
#exit_chat {
    cursor: pointer;
    position: absolute;
    right: 25px;
}
#exit_chat > svg {
    width: 25px;
    height: 25px;
    fill: #888888;
    transition: .3s;
}
#exit_chat > svg:hover {
    fill: var(--text-default);
}
.time_sec_msg {
    color: var(--text-default);
}
.chat_peoples {
    display: flex;
    gap: 5px;
    height: 25px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}
.chat_peoples .ava {
    cursor: pointer;
    width: 25px;
    height: 25px;
    border-radius: 6px;
    opacity: .6;
    transition: .5s;
    object-fit: cover;
}
.chat_peoples .ava:hover {
    opacity: 1;
}
.block-chat-back {
    background: rgba(37, 31, 41, 1);
    padding: 15px;
    border-radius: 20px;
    height: max-content;
    position: relative;
}
.block-chat-back .text-center {
    display: flex;
    gap: 10px;
    padding: 0 10px 15px 10px;
    align-items: center;
}
.block-chat-back > h1 > img {

filter: invert(1);

height: 25px;
}
.chat_footer_send {
    display: flex;
    padding: 10px;
    gap: 10px;
    margin-top: -60px;
    padding-bottom: 20px;
    border-radius: 20px;
    position: relative;
    align-items: center;
    background-color: rgba(34, 28, 37, 1);
}
.chat_footer_send > form {
    width: 100%;
}
.chat_smile_btn {
    cursor: pointer;
    position: absolute;
    display: flex;
    right: 80px;
    height: 40px;
    transition: .5s;
    align-items: center;
    user-select: none;
}
.chat_smile_btn svg {
    fill: var(--text-custom);
    transition: .5s;
    width: 20px;
    height: 20px;
    user-select: none;
    z-index: 1;
}
.chat_smile_btn:hover svg {
    fill: var(--span);
}
.chat_menu_smile {
    opacity: 0;
    pointer-events: none;
    bottom: 0px;
    right: 10px;
    display: flex;
    position: absolute;
    width: 290px;
    flex-wrap: wrap;
    border-radius: 8px;
    padding: 10px;
    user-select: none;
    background-color: rgba(39, 34, 44, 1);
    transition: opacity 0.3s, bottom 0.3s;
}
.chat_menu_smile.active {
    opacity: 1;
    pointer-events: auto;
    bottom: 75px;
}
.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-back > h2 {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}
#chat_main_content {
    display: flex;
    width: 100%;
    gap: 15px;
    padding: 15px 15px 80px 15px;
    height: 600px;
    overflow: hidden;
    background-color: rgba(34, 28, 37, 1);
    border-radius: 20px;
    flex-direction: column;
}
#chat_main_content::-webkit-scrollbar {
    height: 2px;
    width: 2px;
}
.chat_footer_send > button {
    z-index: 1;
    cursor: pointer;
    min-height: 40px;
    min-width: 40px;
    border-radius: 6px;
    transition: .5s;
    background: rgba(39, 34, 44, 1);
    color: var(--text-custom);
}
.chat_footer_send > button > svg {
    transition: .5s;
    fill: var(--text-custom);
    width: 15px;
    height: 15px;
}
.chat_footer_send > button:hover {
    color: var(--bg);
    background-color: var(--span);
}
.chat_footer_send > button:hover svg {
    fill: var(--bg);
}
.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 > textarea {
    outline: 0;
    resize: vertical;
    float: left;
    min-height: 40px;
    max-height: 100px;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 8px;
    line-height: 1.5;
    padding: 9px 50px 9px 15px;
    word-wrap: break-word;
    -webkit-box-sizing: border-box;
    background: rgba(39, 34, 44, 1);
    box-sizing: border-box;
    border: 0;
    color: var(--link-second-navbar-color);
    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;
    flex-wrap: wrap;
}
.chat_message_my {
    display: flex;
    gap: 0px;
    justify-content: flex-start;
    flex-direction: row-reverse;
    flex-wrap: wrap;
}
.chat_message .padding, .chat_message_my .padding {
    display: flex;
    gap: 10px;
    border-radius: 10px;
    position: relative;
    align-items: center;
}
.chat_message_my .padding {
    flex-direction: row-reverse;
}
.chat_message div > a >  img, .chat_message_my div > a > img {
    width: 30px;
    height: 30px;
    cursor: pointer;
    border-radius: 3px;
    transition: .5s;
    object-fit: cover;
}
.chat_message div > a > img {
    float: left;
}
.chat_message_my div > a > img  {
    float: left;
}
.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;
    line-height: 14px;
    flex-direction: column;
    justify-content: center;
}
.chat_message .chat_info {
    align-items: flex-start;
}
.chat_message_my .chat_info {
    align-items: flex-end;
}
.chat_message div > .chat_message_content, .chat_message_my div > .chat_message_content  {
    font-size: 14px;
    flex-grow: 1;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-right: 15px;
    font-weight: 500;
    letter-spacing: -0.02em;
    background: rgba(39, 34, 44, 1);
    white-space: pre-line;
    overflow-wrap: anywhere;
    font-family: Inter, sans-serif;
    text-align: left;
    color: var(--text-custom);
}
.chat_text .chat_message_content a, .chat_text_my .chat_message_content a {
    color: var(--purple);
    transition: .3s;
}
.chat_message .chat_message_content a:hover, .chat_message_my .chat_message_content a:hover {
    text-decoration: underline;
}
.chat_message .chat_message_date, .chat_message_my .chat_message_date {
    display: flex;
    font-size: 8px;
    width: 25px;
    color: rgba(72, 72, 72, 1);
    white-space: nowrap;
    align-items: center;
    justify-content: flex-end;
}
.chat_message .chat_message_date:hover, .chat_message_my .chat_message_date:hover {
    color: var(--text-default);
}
.chat_nickname {
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    color: #888888;
    transition: .5s;
    white-space: nowrap;
}
.chat_nickname:hover {
    color: var(--text-default);
}
.chat_message_date > stats {
    opacity: .1;
}
#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;
}
.chat_checkbox {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}
.chat_checkbox:disabled + .toggle-track {
    cursor: not-allowed;
    opacity: 0.7;
}
.toggle-track {
    background-color: var(--bg);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    height: 20px;
    position: relative;
    width: 40px;
    align-items: center;
}
.toggle-indicator {
    color: var(--bg);
    background-color: var(--span);
    border-radius: 6px;
    display: flex;
    position: absolute;
    transition: 0.25s;
}
.checkMark {
    fill: var(--text-custom);
    height: 20px;
    width: 20px;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}
.chat_checkbox:checked + .toggle-track .toggle-indicator {
    color: var(--bg);
    background-color: var(--span);
    transform: translateX(20px);
}
.chat_checkbox:checked + .toggle-track .toggle-indicator .checkMark {
    opacity: 1;
    transition: opacity 0.25s ease-in-out;
}
label[for="chat_checkbox_call"] {
    display: flex;
    gap: 15px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    align-items: center;
}
.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;
}
.modal_okno_chat {
    position: fixed;
    transform: translate(100%, -50%);
    z-index: 9999;
    padding: 0px 15px;
    transition: .5s;
    right: 0;
    top: 50%;
    max-height: 100%;
    width: 100%;
    max-width: 500px;
}
.modal_okno_chat.show {
    transform: translate(0%, -50%);
    transition: .5s;
}
.chat_background.show {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: var(--bg-modal);
    backdrop-filter: blur(5px);
    opacity: 1;
}
.chat_background {
    transition: .5s all;
    opacity: 0;
    position: fixed;
}
.block-chat-info {
    display: flex;
    height: 60px;
    gap: 15px;
    z-index: 1;
    padding: 15px;
    border-radius: 6px;
    margin-right: 15px;
    font-size: 10px;
    border: solid 2px var(--span);
    background-color: var(--bg);
    position: absolute;
    justify-content: center;
    align-items: center;
}
.block-chat-info > a {
    color: var(--span);
}
.block-chat-info > svg {
    width: 40px;
    height: 40px;
    fill: var(--span);
}
.block-chat-online {
    display: flex;
    padding: 0px 5px;
    justify-content: space-between;
    align-items: center;
}
.margin-bottom-15px {
    margin-bottom: 15px;
}
.chat_open {
    background: linear-gradient(93.43deg, #584578 0%, #412B67 99.99%);
    cursor: pointer;
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 50%;
    right: 25px;
    z-index: 1000;
    border-radius: 12px 0px;
}
.chat_open svg {
    fill: var(--text-default);
    width: 25px;
    height: 25px;
}
.reload-mess {
    display: flex;
    height: 100%;
    color: var(--text-default);
    align-items: center;
    justify-content: center; 
}
.chat_no_msg {
    display: flex;
    height: 100%;
    color: red;
    align-items: center;
    justify-content: center;
}
.chat_message_content emoji {
    font-size: 15px;
}
.chat_moderator {
    display: flex;
    gap: 15px;
    font-size: 12px;
    align-items: center;
    padding: 0 15px;
}
.chat_text {
    width: 100%;
    display: flex;
    padding-left: 40px;
    padding-right: 5px;
    position: relative;
    justify-content: flex-start;
    align-items: baseline;
}
.chat_info .status {
    font-size: 10px;
    font-weight: 700;
    color: rgba(72, 72, 72, 1);
}
.mention_chat, .del_chat {
    font-size: 10px;
    cursor: pointer;
    color: rgba(169, 126, 233, 0.5);
}
.mention_chat:hover, .del_chat:hover {
    color: rgba(169, 126, 233);
}
.chat_text_my {
    width: 100%;
    display: flex;
    position: relative;
    padding: 0px 5px;
    justify-content: flex-end;
    align-items: baseline;
}
.pos_relative {
    display: flex;
    position: relative;
    height: 30px;
}
.online_icon_ava, .offline_icon_ava {
    position: absolute;
    height: 6px;
    width: 6px;
    bottom: -2px;
    right: -2px;
    border-radius: 2px;
}
.online_icon_ava { 
    background: linear-gradient(315deg, #77FFBA 0%, #25C473 98.38%);
}
.offline_icon_ava {
    background: linear-gradient(315deg, #FF7779 0%, #C42528 98.38%);
}
.chat_role {
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    transform: translateY(-50%);
}
.chat_message .chat_role {
    right: -25px;
}
.chat_message_my .chat_role {
    left: -25px;
}
#chat_onlines {
    font-size: 18px;
    gap: 5px;
    margin-top: 5px;
    margin-left: 0px;
    display: flex;
    align-items: center;
}
.chat_text_my:first-child .chat_message_content, .chat_text:first-child .chat_message_content {
    padding-top: 10px;
    margin-top: 5px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.chat_text_my:last-child .chat_message_content, .chat_text:last-child .chat_message_content {
    padding-bottom: 10px;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
}
.back-to-bottom-link {
    display: flex;
    position: absolute;
    bottom: 35px;
    right: 25px;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background: rgba(39, 34, 44, 1);
    font-size: 14px;
    text-decoration: none;
    transition: .3s bottom ease-in-out;
    align-items: center;
    justify-content: center;
}

.back-to-bottom-link svg {
    height: 16px;
    width: 16px;
    transition: .3s;
    transform: rotate(180deg);
    fill: var(--text-default);
}
.back-to-bottom-link:hover {
    background-color: var(--span);
}

.back-to-bottom-link:hover svg {
    fill: var(--bg);
}
.chat_message_date {
    cursor: pointer;
    position: relative;
}
.del_chat {
    width: 0;
    opacity: 0;
    transition: opacity .3s ease;
    overflow: hidden;
}
.chat_message_date.show_del .del_chat {
    opacity: 1;
    width: 100%;
}
.chat_messange {
    width: 100%;
}

.chat_message {
    position: relative;
}
.date_block {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(34, 28, 37, 1);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
}
.chat_message:hover .date_block {
    display: block;
}
.chat_message_date.show_del {
    gap: 15px;
    width: 80px;
}