img.emojione {
    width: 20px;
    height: auto;
    vertical-align: text-top;
}

#text_input_box {
    position: absolute;
    width: 100%;
    z-index: 2;
    bottom: 0;
    display: none;
    bottom: -120px;
}

#text_input_box .gradient-bar {
    width: 100%;
    height: 10px;
    background: linear-gradient(to top, #212529, transparent);
}

#text_input_box .text_input_area {
    padding: 0rem 2rem 0.5rem 2rem;
    background-color: #212529;
}

#text_input_box .text_input_area>div:nth-child(2),
#text_input_box .text_input_area #message_textarea_box {
    display: flex;
    align-items: flex-end;
}

#text_input_box .text_input_area #message_textarea_box>div:first-of-type {
    display: flex;
    width: 100%;
    align-items: flex-end;
    border-radius: 1.5rem;
}

#text_input_box #attach_file {
    margin-right: 1rem;
    transform: rotate(-45deg);
    cursor: pointer;
}

#text_input_box #attach_file .material-symbols-outlined {
    font-size: 2rem;
    margin-top: -1.5rem;
    margin-right: -0.8rem;
}

/*
#text_input_box .text_input_area #user_short_inofs {
    margin-left:0.5rem;
}
*/

#open-emoji-picker span {
    font-size: 1.8rem;
}

#emoji-picker {
    display: none;
    position: absolute;
    cursor: pointer;
    z-index: 3;
}


#message_price_info {
    font-size: 0.8rem;
    display: flex;
}

#message_price_info>div:first-child {
    padding-left: 1rem;
}

#message_price_info #online_status {
    margin-left: 1rem;
    color: var(--erocms-color-green);
    font-weight: 500;
    display: none;
}

#voice_msg_area {
    display: none;
    width: 100%;
    border-radius: 1.5rem;
    padding: 15px;
}

/* #toggle_user_infos {display:none;} */
#submit_message {
    display: none;
}

#submit_message,
#submit_voice_msg {
    /* #toggle_user_infos { */
    padding-left: 0.5rem;
}

#submit_message div,
#submit_voice_msg div {
    /* #toggle_user_infos div { */
    padding: 0.5rem;
    background-color: var(--erocms-bg-color-light);
    width: 2rem;
    height: 2rem;
    box-sizing: content-box;
    cursor: pointer;
}

#submit_message div span,
#submit_voice_msg div span {
    color: var(--erocms-color-green);
}

#submit_message div span,
#submit_voice_msg div span {
    /* #toggle_user_infos div span { */
    font-size: 2.1rem;
    font-weight: bold;
}

#text_input_box #message {
    width: 100%;
    height: 46px;
    max-height: 110px;
    padding: 0.65rem 0 0.65rem 0.7rem;
    margin-right: 1.3rem;
    overflow-x: hidden;
    overflow-y: auto;
    resize: none;
    outline: none;
    border: none;

}

#chat_box {
    cursor: default;
    transition: 1s;
    left: 0px;
    position: absolute;
    width: 50%;
    padding-left: 1rem;
    z-index: 1;
    top: 0;
    bottom: 0;
    /*
    bottom: 40px;
    max-height: calc(100% - 40px);
    
    */
    height: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-x: hidden;
    overflow-y: scroll;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    gap: .5rem;
}

#chat_box::-webkit-scrollbar {
    width: 0;
    background-color: transparent;
}

#chat_box a {
    text-decoration: none;
    color: var(--erocms-color-light);
}

#chat_box a:hover {
    color: var(--erocms-color-green);
}



#chat_box .chat_message {
    font-size: 0.95rem;
    width: fit-content;
    align-items: flex-start;
    position: relative;
    gap: .5rem;
    padding: .5rem;
    word-wrap: break-word;
    border-radius: 16px;
}

#chat_box .chat_message.flex {
    display: flex;
}

#chat_box .chat_message .padding {
    padding: 0.5rem 1rem;
}

#chat_box .chat_message .image_preview {
    min-width: 25%;
    max-width: 25%;
}

#chat_box .chat_message .image_preview img {
    border-top-left-radius: 0.375rem !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    cursor: pointer
}

#chat_box .chat_message .btn,
#chat_box .chat_message .btn:hover,
#chat_box .chat_message .btn:focus {
    border: 1px solid transparent;
    box-shadow: none;
    transform: none;
    transition: none;
}

#chat_box .chat_message .audio-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

#chat_box .chat_message audio[disabled] {
    filter: grayscale(.35);
    opacity: .6;
    pointer-events: none;
}

#chat_box .chat_message .audio-row .bi-trash3 {
    cursor: pointer;
}

#chat_box .chat_message.from_actor {
    background: linear-gradient(135deg, #3a2855 0%, #4a3568 100%);
    color: #ede6f5;
    max-width: 75%;
    min-width: min-content;
    align-self: flex-start;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease;
}


#chat_box .chat_message.from_actor:hover {
    background: linear-gradient(135deg, #443060 0%, #553f75 100%);
}

#chat_box .chat_message.from_member {
    background: linear-gradient(135deg, #1a2940 0%, #243650 100%);
    color: #e0eaf5;
    max-width: 75%;
    align-self: flex-end;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease;
}

#chat_box .chat_message.from_actor a {
    color: #c4b5d9;
}

#chat_box .chat_message.from_member a {
    color: #8bbde0;
    text-decoration: underline;
}

#chat_box .chat_message.from_member:hover {
    background: linear-gradient(135deg, #213352 0%, #2d4060 100%);
}

#chat_box .chat_message a:hover {
    color: var(--erocms-color-green);
}

#chat_box .message_info {
    text-align: right;
    margin-top: -5px;
    min-width: 100px;
}

#chat_box .message_info small {
    font-size: 0.75rem;
}

#chat_box .chat_message.from_member .message_info small {
    color: rgba(255, 255, 255, 0.5);
}


#chat_box .chat_message.from_actor .message_info small {
    color: rgba(255, 255, 255, 0.5);
}

#chat_box .chat_message.from_member .message_info small:nth-child(1) {
    vertical-align: bottom;
}

#chat_box .chat_message.from_member .message_info small .material-symbols-outlined {
    font-size: 1rem;
    padding-left: 0.3rem;
    vertical-align: middle;
}

#chat_box .chat_message.from_member .message_info small .material-symbols-outlined.hed_read {
    color: currentColor;
    opacity: .9;
}

.dot {
    display: none;
}


#chat_box .new_day {
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#chat_box .new_day::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

#chat_box .new_day div:nth-child(2) {
    width: auto;
    white-space: nowrap;
    padding: 4px 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%), #131820;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

#chat_box .new_day div:nth-child(1),
#chat_box .new_day div:nth-child(3) {
    display: none;
}

@media only screen and (max-width: 776px) {
    #chat_box {
        width: 100%;
        box-sizing: border-box;
        padding: 0 1%;
        /* max-height: 35vh; */
    }

    #chat_box .chat_message {
        font-size: 1rem;
        width: fit-content;
    }

    #chat_box .chat_message .padding {
        padding: 0.2rem 0.75rem;
    }

    #text_input_box .text_input_area {
        padding: 0rem 0.5rem 0.5rem 0.5rem;
    }

    #text_input_box .text_input_area>div:nth-child(2) {
        display: block;
        align-items: unset;
    }

    /*
    #text_input_box .text_input_area #user_short_inofs {
        margin-left:0;
        display:none;
    }
    #toggle_user_infos {
        display:block;
    }
    */
}