﻿.chat_small {
    position: fixed;
    right: 10px;
    bottom: 10px;
    font-size: 14px;
    min-height: 40px;
    border: 1px solid #AF8D81;
    background-color: #EFE5DC;
    color: #AF8D81;
    cursor: pointer;
    border-radius: 10px;
    vertical-align: middle;
    padding: 0 8px;
    outline: none;
}

    .chat_small:hover {
        color: #FEFEFE;
        background-color: #816860;
    }

.chat_small_img {
    width: 20px;
    margin-right: 3px;
}

.chat_small_close, .chat_small_notice {
    position: relative;
    top: -8px;
    right: -10px;
    color: #fefefe;
    background-color: #AF8D81;
    border-radius: 10px;
    padding: 0 4px;
    font-size: 12px;
    border: 0;
}

    .chat_small_close:hover {
        background-color: red;
    }

.chat_small_notice {
    width: 35px;
    height: 28px;
    left: -10px;
    top: -30px;
    background: #DACDC5;
    cursor: default;
    position: absolute;
}

.chat_container {
    position: fixed;
    right: 10px;
    bottom: 0;
    width: 400px;
    height: 400px;
    max-height: 100%;
    max-width: 100%;
    background-color: #fff;
    border: 1px solid #CCBAB0;
}

.chat_title_div {
    height: 40px;
    line-height: 40px;
    vertical-align: middle;
    border-bottom: 1px solid #CCBAB0;
    background: #DACDC5;
}

.chat_title_div_back {
    background-color: #2A4456;
    color: #fefefe;
}

.chat_title {
    margin: 0 5px;
}

.chat_return {
    color: red;
    cursor: pointer;
    margin-left: 5px;
}

.chat_close {
    float: right;
    margin-right: 8px;
    cursor: pointer;
}

    .chat_close:hover {
        color: red;
    }

.chat_add_quote_div {
    float: right;
    padding: 5px;
    line-height: 30px;
}

.chat_add_quote_top {
    border: none;
    margin: 0 5px;
}

    .chat_add_quote_top:hover {
        border: none;
    }

.chat_plz_login {
    text-align: center;
    margin-top: 35%;
    font-size: 150%;
    font-weight: bolder;
    color: #D96A4F;
}

.chat_list {
    overflow: auto;
    height: 355px;
}

.chat_list_inner {
    margin: 5px;
    background-color: #eee;
    padding: 5px;
    border-radius: 10px;
    cursor: pointer;
}

.chat_nodata {
    position: absolute;
    width: 100px;
    height: 50px;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
}

.chat_msg {
    overflow: auto;
    height: 320px;
    padding-bottom: 5px;
}

.chat_msg_inner {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.chat_prod_div, .chat_prod_div_back {
    min-height: 55px;
    margin: 5px;
    background-color: #eee;
    border-radius: 10px;
    width: 265px;
    padding: 5px 0;
}

.chat_prod_div {
    cursor: pointer;
}

    .chat_prod_div:hover {
        background-color: #ddd;
    }

.chat_prod_img {
    width: 50px;
    padding: 3px;
    border: 1px solid #ccc;
    background-color: #fff;
    margin: 2px;
    border-radius: 10px;
}

.chat_prod_name_div {
    display: inline-block;
    width: 203px;
    margin: 0 1px;
    vertical-align: middle;
    font-size: 12px;
}

.chat_prod_name_div_noimg {
    display: inline-block;
    width: 253px;
    margin: 0 1px;
    vertical-align: middle;
    font-size: 12px;
}

.chat_prod_name, .chat_message_short {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat_prod_price {
    margin: 2px;
}

.chat_add_quote {
    float: right;
    font-size: 12px;
    margin-right: 5px;
}

.chat_send_div {
    position: fixed;
    bottom: 0;
    width: 398px;
    border-top: 1px solid #CCBAB0;
}

.chat_send_btn {
    line-height: 30px;
    vertical-align: middle;
    cursor: pointer;
}

    .chat_send_btn img {
        width: 20px;
        margin: 0 5px;
    }

.chat_right {
    align-items: center;
    justify-content: flex-end;
}

.chat_left {
    justify-content: flex-start;
}

.chat_msg_div {
    margin: 5px;
    border-radius: 10px;
    padding: 8px 10px;
    max-width: 250px;
}

.chat_left .chat_msg_div {
    background-color: #dde7ee;
}

.chat_right .chat_msg_div {
    background-color: #fef5e6;
}

.chat_time_div {
    color: #888;
    font-size: 8px;
}

.chat_quote {
    color: #888;
}

.chatbar {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
    -webkit-align-items: stretch;
    -moz-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    height: 2.5rem;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: .1875rem;
    border-radius: 2px;
    height: 40px;
}

.chatbar_front {
    background-color: #EFE5DC;
}

.chatbar_back {
    background-color: #2A4456;
}

.chatbar-input, .chatbar_main {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -moz-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.chatbar-input_input {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -moz-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    outline: none;
    border: none;
    padding: 0 10px;
    margin: 0;
    border-radius: 20px;
    background: #AF8D81;
    color: #fefefe;
}

    .chatbar-input_input::placeholder {
        color: #fefefe;
    }

.chatbar-input_input-back {
    color: #2A4456;
    background: #fefefe;
}

    .chatbar-input_input-back::placeholder {
        color: #2A4456;
    }

@media (max-width: 480px) {
    /*.chat_small {
        display: none !important;
    }*/

    .chat_container {
        width: 100%;
        right: 0;
        height: 100%;
        z-index: 1001;
    }

    .chat_list {
        height: 365px;
    }

    .chat_msg {
        margin-top: 1px;
    }

    .chat_send_div {
        width: 100%;
    }
}
