
/*chat*/
.room_chat {
    width: 40%;
    padding: 12px;
}

@media(max-width: 768px) {
    .room_chat {
        width: 100%;
        padding: 12px;
    }
}

@media(max-width: 480px) {
    .room_chat {
        padding: 10px 7px;
        position: fixed;
        bottom: 0;
        padding: 0;
    }
}

.room_chat_in {
    /* background-color: #eee; */
    border-radius: 4px;
    overflow: hidden;
}

.room_chat_top {
    padding: 12px 25px;
    background-color: #e1e1e1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
}

@media(max-width: 480px) {
    .room_chat_top {
        padding: 6px 25px;
        height: 40px;
    }
}

.room_chat_title {
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #000000;
}

.room_members_button {
    font-size: 16px;
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #ffffff;
    cursor: pointer;
    padding: 3px 10px;
    background-color: #00A658;
    position: relative;
}

@media(max-width: 768px) {
    .room_members_button {
        font-size: 14px;
        padding: 3px 8px;
    }
}

.room_member_item {
    padding: 11px 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #27668b;
    cursor: pointer;
    margin-bottom: 2px;
}

.room_member_item:last-child {
    border: 0;
}

.room_members_list {
    padding: 12px 0;
    display: none;
}

.room_member_img {
    border-radius: 50%;
    background-color: #ffffff;
    width: 35px;
    height: 35px;
    margin-right: 14px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.room_member_img img {
    width: 100%;
    /* height: inherit; */
    /* background-color: #fff; */
    background-color: #1A5476;
}

.room_member_online_circle {
    display: inline-flex;
    width: 14px;
    height: 14px;
    background-color: #00A658;
    border-radius: 50%;
    /* margin: 0 3px; */
    position: absolute;
    right: 2px;
    bottom: 0px;
    border: 2px solid #0C3147;
}

.room_member_title {
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.04em;
}

.room_chat_content {
    min-height: 330px;
    position: relative;
}

@media(max-width: 768px) {
    .room_chat_content {
        min-height: unset;
    }
}

.room_chat_bottom {
    padding: 16px 25px 12px;
    background-color: #e0e0e0;
    /* box-shadow: 0 0 3px #8f8f8fcf; */
}

@media(max-width: 480px) {
    .room_chat_bottom {
        padding: 8px 9px 3px;
        /* background-color: #091C27; */
        /* box-shadow: 0 0 3px #8f8f8fcf; */
    }
}

.room_chat_bottom_name {
    letter-spacing: 0.04em;
    font-weight: 800;
    color: #ffffff;
    font-size: 15px;
    font-size: 13px;
    margin-bottom: 7px;
}

.chat_msgs {
    height: 480px;
    background: #f0f0f0;
    padding: 0 17px;
    overflow: hidden;
    overflow-y: auto;
}

@media(max-width: 480px) {
    .chat_msgs {
        height: 240px;
    }
}

.chat_msgs_in {
    padding-bottom: 5px;
}

.chat_input_block {
    background-color: #fff;
    border-top: 1px solid #D2E6F2;
    position: relative;
}

.chat_input_block textarea {
    border: 0;
    width: 100%;
    height: 64px;
    padding: 22px 46px 22px 20px;
    box-sizing: border-box;
    display: block;
    outline: 0;
    resize: none;
}

.chat_top_l img {
    width: 100%;
    display: block;
}

.chat_message {
    /* max-width: 200px; */
    right: 0;
    padding: 10px 0 7px;
    display: flex;
}

.chat_message_in {
    max-width: 300px;
    padding: 8px 21px 8px 14px;
    background: #2181ba;
    border-radius: 6px;
    display: inline-block;
    vertical-align: top;
    color: #ffffff;
    font-weight: 500;
    word-break: break-word;
    min-width: 55px;
    position: relative;
}

@media(max-width: 480px) {
    .chat_message_in {
        padding: 4px 18px 4px 9px;
    }
}

.chat_message_author {
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 0.04em;
    cursor: pointer;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
}

@media(max-width: 480px) {
    .chat_message_author {
        font-size: 12px;
    }
}

.chat_message_text {
    line-height: 150%;
    font-size: 13px;
    text-align: left;
    user-select: text;
    /* font-weight: 300; */
}

.chat_message_photo {
    display: inline-block;
    background: #eee;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #ffffff;
    vertical-align: top;
    margin-right: 10px;
    cursor: pointer;
    overflow: hidden;
    min-width: 35px;
}

.chat_msg_bro .chat_message_photo {
    border: 3px solid #00A658;
}

.chat_message_photo img {
    width: 100%;
    display: block;
}

.chat_message_right {
    text-align: right;
}

.chat_message_left .chat_message_in {
    background-color: #ffffff;
    color: #000000;
    font-weight: 400;
}

.chat_send {
    position: absolute;
    right: 13px;
    top: 11px;
    width: 24px;
    height: 24px;
    background-size: 24px;
    background-color: transparent;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='535.5' height='535.5'%3E%3Cpath fill='%232B6B91' d='M0 497.25l535.5-229.5L0 38.25v178.5l382.5 51-382.5 51z'/%3E%3C/svg%3E");
}

.chat_message_time {
    text-align: right;
    font-size: 9px;
    font-weight: 300;
}

@media(max-width: 480px) {
    .chat_message_time {
        font-size: 8px;
    }
}

.chat_date {
    font-size: 13px;
    text-align: center;
    padding-top: 10px;
}

@media(max-width: 480px) {
    .chat_date {
        font-size: 11px;
    }
}

.chat_date_in {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 5px;
    background-color: #e1e1e1;
    font-weight: 300;
}

.chat_message_menu_button {
    width: 6px;
    height: 19px;
    position: absolute;
    right: 5px;
    top: 6px;
    cursor: pointer;
}

.chat_message_menu_button:after, .chat_message_menu_button:before, .chat_message_menu_button i {
    position: absolute;
    background-color: #b6b6b6;
    width: 4px;
    height: 4px;
    content: '';
    border-radius: 50%;
    right: 2px;
    top: 0;
}

.chat_message_menu_button:before {
    top: 6px;
}

.chat_message_menu_button i {
    top: 12px;
}

.chat_message_menu {
    position: absolute;
    top: 0;
    background-color: #d0caca6b;
    width: 100%;
    height: 100%;
    /* display: none; */
    /* visibility: hidden; */
    opacity: 0;
    transition: all 0.3s;
}

.chat_message_menu_in {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* position: relative; */
}

.chat_message_menu_leyer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.chat_message_menu_item {
    background-color: #00A658;
    padding: 13px 17px;
    width: 65%;
    margin-bottom: 16px;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    position: relative;
}

.room_chat_new_message {
    position: relative;
}

.room_chat_textarea {
    width: 100%;
    resize: none;
    height: 46px;
    padding: 10px 42px 10px 14px;
    box-sizing: border-box;
    outline: none;
    border: 2px solid #ffffff;
    border-radius: 2px;
    background-color: #ffffff;
    transition: all 0.3s;
    color: var(--main-color);
    font-size: 15px;
    min-height: 46px;
}

.room_chat_textarea:focus {
    border-color: #bebebe;
    height: 80px;
}

.chat_poll_button {
    font-size: 16px;
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #ffffff;
    cursor: pointer;
    padding: 3px 28px 3px 10px;
    background-color: #00A658;
    position: relative;
}

.chat_poll_button:after {
    width: 10px;
    height: 10px;
    content: '';
    position: absolute;
    right: 9px;
    top: calc(50% - 5px);
    background-size: 100%;
    transform: none;
    transition: all 0.2s linear;
    background-color: #ffffff;
    border-radius: 50%;
}

.chat_message .icon_check_green {
    display: none;
}

.chat_message.chat_msg_bro .icon_check_green {
    display: block;
}

/*/chat*/