.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;
}
.chat_peoples {
    display: flex;
    gap: 5px;
    height: 25px;
    flex-wrap: wrap;
}
.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 {
    overflow: hidden;
    background-color: var(--card);
    border-radius: var(--br-16);
    height: max-content;
    position: relative;
}
.chat_footer_send {
    border-top: 1px solid var(--bg-table);
    display: flex;
    position: relative;
    align-items: center;
}
.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: 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-back > h2 {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}
#chat_main_content {
    display: flex;
    width: 100%;
    gap: 15px;
    padding: 1rem;
    height: 450px;
    overflow: auto;
    background-color: var(--card);
    border-radius: 6px;
    flex-direction: column;
}
#chat_main_content::-webkit-scrollbar {
    height: 2px;
    width: 2px;
}
.chat_footer_send > button {
    border: unset;
    cursor: pointer;
    background-color: var(--card);
}
.chat_footer_send > button > svg {
    transition: .5s;
    fill: var(--text-custom);
    width: 15px;
    height: 15px;
}
.chat_footer_send > button:hover {
}
.chat_footer_send > button:hover svg {
    fill: var(--span);
}
.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 {
    font-size: var(--font-size-m);
    outline: 0;
    resize: vertical;
    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 60px 9px 15px;
    word-wrap: break-word;
    -webkit-box-sizing: border-box;
    background-color: var(--card);
    box-sizing: border-box;
    border: 0;
    color: var(--text-default);
    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 {
    gap: 0.4rem;
    width: 100%;
    display: flex;
}
.chat_message_my {
    display: flex;
}
.chat_message .padding, .chat_message_my .padding {
    padding: 10px;
    background-color: var(--card);
    border-radius: 6px;
    position: relative;
}
.chat_message div > a >  img, .chat_message_my div > a > img {
    width: 25px;
    height: 25px;
    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 {display: flex;justify-content: space-between;}
.chat_message_my .chat_info {
}
.chat_message div > .chat_message_content {
    width: 100%;
    border-radius: var(--br-10);
    padding: 0.3rem 0.5rem;
    font-size: var(--font-size-m);
    /* white-space: pre-line; */
    overflow-wrap: anywhere;
    text-align: left;
    color: var(--text-custom);
    background: var(--bg);
}
.chat_message_my div > .chat_message_content {
    padding: 5px 0px 10px 5px;
    margin-right: 35px;
    font-size: 10px;
    min-width: 150px;
    white-space: pre-line;
    overflow-wrap: anywhere;
    text-align: right;
    color: var(--text-custom);
}
.chat_role {
    gap: .25rem;
    display: flex;
    font-size: 13px;
    background-color: var(--bg);
    border-radius: var(--br-5);
    padding: 0 .5rem;
    align-items: center;
}

.chat_role svg {height: 0.8rem;width: 0.8rem;}
.chat_nickname {
    cursor: pointer;
    font-weight: 700;
    font-size: 11px;
    color: var(--text-custom);
    transition: .5s;
    white-space: nowrap;
}
.chat_nickname:hover {
    color: var(--span);
}
#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 {
    display: flex;
    fill: var(--text-default);
    height: 20px;
    width: 20px;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
    align-items: center;
    justify-content: center;
}

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

.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"] {
    justify-content: space-between;
}
.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;
}
.block-chat-online {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.margin-bottom-15px {
    /* margin-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(--span);
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-6);
}
.chat_no_msg {
    display: flex;
    height: 100%;
    color: var(--span);
    align-items: center;
    justify-content: center;
}
.chat_message_content emoji {
    font-size: 15px;
}

.chat_img_avatar img {
    transition: all .3s ease;
    border-radius: 20%;
    height: 2.5rem;
    width: 2.5rem;
}

.chat_img_avatar:hover img{
    transform: scale(1.05);
}

.chat_content {
    display: flex;
    gap: 0.15rem;
    width: 100%;
    flex-direction: column;
}

.chat_message_date {
    color: var(--text-custom);
    font-weight: var(--font-weight-7);
    font-size: var(--font-size-s);
}

.chat_header {
    font-weight: var(--font-weight-6);
    font-size: var(--font-size-default);
    display: flex;
    padding: 1rem 1rem 0.3rem 1rem;
    border-bottom: 1px solid var(--bg-table);
}

.chat_remember {
    display: flex;
    align-items: center;
}

.chat_massage_cont {
    position: relative;
    gap: 0.3rem;
    display: flex;
}

.button.put, .put {
    width: 2rem;
    height: 2rem;
    padding: unset;
}

.chat_message_buttons {
    position: relative;
    gap: 0.3rem;
    display: flex;
}

.flex {
    display: flex;
    flex-direction: column;
}

.flex-flex {
    display: flex;
    gap: 0.5rem;
}

.chat_footer_no_auth {
    border-top: 1px solid var(--bg-table);
    font-weight: var(--font-weight-6);
    font-size: var(--font-size-l);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat_info_name_role {
    gap: 0.5rem;
    display: flex;
    align-items: center;
    flex-direction: row;
}

.info-block-role {
  margin-bottom: .3rem;
  display: flex;
  position: relative;
  border-radius: var(--br-16);
  background-color: var(--transparent-2-w);
  height: 90px;
  padding-inline: 1.3rem;
  gap: 0.3rem;
  width: 100%;
  border: 1px solid var(--transparent-3-w);
  background-repeat: no-repeat;
  align-items: center;
  justify-content: center;
  flex-direction: row;
}

.info-block-role-role {
    padding: 0 .5rem;
    border-radius: var(--br-5);
}

.admin-buttons-container {
    border-radius: var(--br-10);
    padding: .5rem;
    z-index: 1;
    gap: 0.5rem;
    display: flex;
    border: 1px solid var(--transparent-5-w);
    background: var(--card);
    left: -8.5rem;
    top: -2rem;
    position: absolute;
    flex-direction: column;
}

.mt10 {
    margin-top: 55px;
}

#msg_input:placeholder-shown {
    animation: pulse-placeholder 2s ease-in-out infinite;
}

@keyframes pulse-placeholder {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

#msg_input::placeholder {
    color: var(--text-default);
    opacity: 1;
}

.mention_chat svg{
    cursor: pointer;
}