

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;
}

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

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

#submit_message 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 {color: var(--erocms-color-green);}

#submit_message 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.7rem 0 0.7rem 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;
}

#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: 1rem;
    width: fit-content;
    align-items: flex-start;
    position:relative;
}

#chat_box .chat_message.flex {
    display:flex;
}
    
#chat_box .chat_message .padding {
    padding:0.75rem;
}

#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.from_actor {
    background-color: rgb(255 185 233 / 50%);
    color: var(--erocms-color-dark);
}

#chat_box .chat_message.from_member {
    background-color: rgb(0 0 0 / 40%);
    color: #9f9f9f;
}


#chat_box .chat_message.from_actor a {
    color: var(--erocms-color-dark);
}

#chat_box .chat_message.from_member a {
    color: var(--erocms-link-color);
    font-weight: bold;
}

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

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

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

#chat_box .chat_message.from_member .message_info small {
    color: #9f9f9f;
}


#chat_box .chat_message.from_actor .message_info small {
    color: #242424;
}

#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: var(--erocms-color-green);
}

.dot {
  display:none;
}


#chat_box .new_day {
    color: var(--erocms-color-light);
    display:flex;
    align-items: center;
}

#chat_box .new_day div:nth-child(2) {
    width: -webkit-fill-available;
    width: -moz-available;
    width: fill-available;
    white-space: nowrap;
    padding: 0 10px;
}

#chat_box .new_day div:nth-child(1),
#chat_box .new_day div:nth-child(3) {
    width:100%;
}

@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;
    }
    */
}