@import "font-icon.css";

.chat_box {
    height: 500px;
    width: 740px;
    overflow: hidden;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background: #fff;
    border: none;
    border-radius: 2px 2px 0 0;
    -webkit-box-shadow: 0 0 7px 0 #999;
    box-shadow: 0 0 7px 0 #999;
    position: fixed;
    bottom: 0;
    right: 100px;
    z-index: 1000000;
    -webkit-transform-origin: right bottom;
    -ms-transform-origin: right bottom;
    transform-origin: right bottom;
}

.chat_cover {
    opacity: 0.2;
    height: 500px;
    width: 740px;
    overflow: hidden;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background: #000;
    border: none;
    border-radius: 2px 2px 0 0;
    -webkit-box-shadow: 0 0 7px 0 #999;
    box-shadow: 0 0 7px 0 #999;
    position: fixed;
    bottom: 0;
    right: 100px;
    z-index: 1000001;
    -webkit-transform-origin: right bottom;
    -ms-transform-origin: right bottom;
    transform-origin: right bottom;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

.chat_box_minimum {
    width: 160px;
    height: 40px;
    -webkit-box-shadow: none;
    box-shadow: none;
    color: #ffffff;
    cursor: pointer;
    bottom: 29px;
    border-radius: 40px;
    background-color: #017eff;
}

.chat_box>.btn {
    width: 100%;
    color: #b31f1d;
    font-weight: bold;
}

.chat_box .chat-form {
    display: -ms-flexbox;
    display: flex;
    height: 100%;
}

.chat_box .chat-form .chat-left {
    width: 35%;
    height: 100%;
    border-right: 1px solid #e6e7eb;
    background: #fff;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
}

.chat_box .chat-form .chat-left .title {
    background: #fff;
    border-bottom: 1px solid #e6e7eb;
    height: 50px;
    line-height: 50px;
    padding: 0 21px;
}

.chat_box .chat-form .chat-left .channel-list {
    width: 100%;
    min-width: 0;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
}

.chat_box .chat-form .chat-left .channel-list .channel {
    display: -ms-flexbox;
    display: flex;
    position: relative;
    padding: 6px 12px 6px 12px;
    height: 64px;
    -ms-flex-align: center;
    align-items: center;
    cursor: pointer;
    border: none;
}

.chat_box .chat-form .chat-left .channel-list .channel:hover {
    background: #eee;
}

.chat_box .chat-form .chat-left .channel-list .channel.active {
    background: #eee;
}

.chat_box .chat-form .chat-left .channel-list .channel .img_box {
    width: 36px;
    height: 36px;
}

.chat_box .chat-form .chat-left .channel-list .channel .detail {
    min-width: 0;
    margin-left: 12px;
    -ms-flex: 1 1;
    flex: 1 1;
    -ms-flex-direction: column;
    flex-direction: column;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.chat_box .chat-form .chat-left .channel-list .channel .detail .row {
    min-width: 0;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin: 0;
}

.chat_box .chat-form .chat-left .channel-list .channel .detail .row:before {
    display: none;
    content: "";
}

.chat_box .chat-form .chat-left .channel-list .channel .detail .seller {
    -ms-flex: 1 1;
    flex: 1 1;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
}

.chat_box .chat-form .chat-left .channel-list .channel .detail p {
    margin: 0;
}

.chat_box .chat-form .chat-left .channel-list .channel .detail .date {
    margin: 0;
    font-size: 12px;
}

.chat_box .chat-form .chat-left .channel-list .channel .detail .last-message {
    -ms-flex: 3 1;
    flex: 3 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat_box .chat-form .chat-content {
    display: -ms-flexbox;
    display: flex;
    -ms-flex: 1 1;
    flex: 1 1;
    -ms-flex-direction: column;
    flex-direction: column;
    position: relative;
}

.chat_box .chat-form .chat-content .title {
    background: #fff;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-align: center;
    align-items: center;
    border-bottom: 1px solid #e6e7eb;
    height: 50px;
    padding: 0 16px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.chat_box .chat-form .chat-content .close-action {
    border: 0;
    background: #fff;
}

.chat_box .chat-form .chat-content .message-view {
    -ms-flex: 1 1;
    flex: 1 1;
    overflow: auto;
    position: relative;
    width: 100%;
    padding-top: 30px;
}

.chat_box .chat-form .chat-content .message-info {
    -ms-flex-direction: row;
    flex-direction: row;
    display: -ms-flexbox;
    display: flex;
    padding: 0 10px 10px;
}

.chat_box .chat-form .chat-content .message-info.shop {
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
}

.chat_box .chat-form .chat-content .message-info .icon {
    width: 40px;
    min-width: 40px;
    height: 40px;
    margin: 0 10px;
}

.chat_box .chat-form .chat-content .message-info .message {}

.chat_box .chat-form .chat-content .message-info .message .message-box {
    padding: 5px;
    height: auto;
    width: auto;
    background: #f9f9f9;
    border-radius: 4px;
    max-width: 750px;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}

.chat_box .chat-form .chat-content .message-info .message .img-box {
    padding: 5px;
    height: auto;
    width: auto;
    background: #f9f9f9;
    border-radius: 4px;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}

.chat_box .chat-form .chat-content .message-info .message .time {
    font-size: 9px;
    color: #c2c2c2;
}

.chat_box .chat-form .chat-content .message-info .readed {
    -ms-flex-item-align: end;
    align-self: flex-end;
    margin: 0 6px 4px;
    color: #999;
    font-size: 14px;
}

.chat_box .chat-form .chat-content .message-view .message-date {
    background: none;
    margin: 0 auto 16px;
    font-size: 14px;
    color: #9299a2;
    word-break: break-word;
    text-align: center;
    line-height: 20px;
}

.chat_box .chat-form .chat-content .message-view .message-date .date-box {
    background: #f9f9f9;
    border-radius: 10px;
    display: inline-block;
    padding: 2px 5px;
}

.chat_box .chat-form .chat-content .message-form {
    display: -ms-flexbox;
    display: flex;
    padding: 8px 10px;
    background: #f9f9f9;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    border-top: 1px solid #ebecf0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.chat_box .chat-form .chat-content .message-form .file-upload {
    display: inline-block;
    position: relative;
    margin: 0;
    font-size: 25px;
}

.chat_box .chat-form .chat-content .message-form .input-form {
    -ms-flex-positive: 1;
    flex-grow: 1;
    display: -ms-flexbox;
    display: flex;
    background: #fff;
    padding: 2px 6px 2px 22px;
    -ms-flex-align: center;
    align-items: center;
    border: 1px solid #cdced2;
    border-radius: 20px;
    position: relative;
    margin-left: 11px;
}

.chat_box .chat-form .chat-content .message-form .input-form input {
    border: 0;
    margin: 0 5px;
}

.chat_box .chat-form .chat-content .message-form .submit-action {
    padding: 5px;
}

.chat_box .chat-form .chat-content .message-form .submit-action .submit-btn {
    border: 0;
    font-size: 20px;
    background: transparent;
}

.catalog-view_op1 .product-info-main .payment-options .payment-option .payment-price .chat-requet-btn {
    font-size: 17px;
    padding: 3px 10px;
    line-height: 22px;
    padding-left: 28px;
    cursor: pointer;
}

.catalog-view_op1 .product-info-main .payment-options .payment-option .payment-price .chat-requet-btn::before {
    content: " ";
    position: absolute;
    left: 0;
    top: 0;
    width: 25px;
    background: url(/img/icon/communication.png);
    background-size: 100%;
    height: 25px;
}

.catalog-view_op1 .product-info-main .payment-options .payment-option.chat-option {
    background-size: 25px;
    padding-left: 0;
}

.chat_box .chat-form .chat-content .message-info .message {
    max-width: 300px;
}

.chat_box .chat-form .chat-content .message-info .message .order-message {
    border: 3px solid #0898ff;
    padding: 5px;
    width: 300px;
}

.chat_box .chat-form .chat-content .message-info .message .order-message .item-detail {
    display: -ms-flexbox;
    display: flex;
    position: relative;
    padding: 6px 12px 6px 12px;
    -ms-flex-align: center;
    align-items: center;
}

.chat_box .chat-form .chat-content .message-info .message .order-message .item-detail .item-img {
    width: 50px;
    min-width: 50px;
}

.chat_box .chat-form .chat-content .message-info .message .order-message .item-detail .item-img img {
    width: 100%;
}

.chat_box .chat-form .chat-content .message-info .message .order-message .item-form {
    margin: 0 8px;
    -ms-flex: 3 1;
    flex: 3 1;
    overflow: hidden;
}

.chat_box .chat-form .chat-content .message-info .message .order-message .item-form .item-name {
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-all;
}

.chat_box .chat-form .chat-content .message-info .message .order-message .item-detail .item-img {
    width: 50px;
    min-width: 50px;
}

.chat_box .chat-form .chat-content .message-info .message .order-message .item-detail .item-img img {
    width: 100%;
}

.chat_box .chat-form .chat-content .message-info .message .order-message .item-form {
    margin: 0 8px;
    -ms-flex: 3 1;
    flex: 3 1;
    overflow: hidden;
}

.chat_box .chat-form .chat-content .message-info .message .order-message .item-form .item-name {
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-all;
}

.chat_box .chat-form .chat-content .message-info .message .product-message {
    border: 3px solid #0898ff;
    padding: 5px;
}

.chat_box .chat-form .chat-content .message-info .message .message-title {
    border-bottom: 1px solid;
    font-size: 12px;
    line-height: 20px;
}

.chat_box .chat-form .chat-content .message-info .message .product-item {
    display: -ms-flexbox;
    display: flex;
    position: relative;
    padding: 6px 12px 6px 12px;
    -ms-flex-align: center;
    align-items: center;
    cursor: pointer;
    border: none;
    height: 92px;
    min-height: 92px;
}

.chat_box .chat-form .chat-content .message-info .message .product-img {
    width: 70px;
    padding: 3px 10px;
}

.chat_box .chat-form .chat-content .message-info .message .product-img img {
    width: 100%;
}

.chat_box .chat-form .chat-content .message-info .message .product-detail {
    -ms-flex: 1 1;
    flex: 1 1;
    margin-left: 10px;
    min-width: 0;
}

.chat_box .chat-form .chat-content .message-info .message .product-detail .product-name {
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-all;
}

.chat_box .chat-form .chat-content .message-info .message .product-item .product-detail .product-price {
    display: -ms-flexbox;
    display: flex;
    position: relative;
    font-size: 14px;
    padding-top: 5px;
    color: #ff5d84;
}

.chat_box .chat-form .chat-content .message-info .message .product-item .product-detail .product-orign-price {
    display: -ms-flexbox;
    display: flex;
    position: relative;
    font-size: 9px;
}

.chat_box .chat-form .chat-content .message-info .message .product-item .product-detail .product-orign-price .orign-price {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -ms-flex: 1 1;
    flex: 1 1;
    text-decoration: line-through;
}

.chat_box .chat-form .chat-content .message-info .message .product-item .product-detail .product-orign-price .price-discount {
    min-width: 20px;
    margin-left: 6px;
    display: inline-block;
}

.chat-content .product-form {
    position: absolute;
    z-index: 2;
    margin: 10px;
    width: calc(100% - 20px);
    padding-top: 16px;
    top: 50px;
    overflow: hidden;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background-image: -webkit-linear-gradient(233deg, #ff8763, #ff330c);
    background-image: -o-linear-gradient(233deg, #ff8763 0, #ff330c 100%);
    background-image: linear-gradient(217deg, #ff8763, #ff330c);
    -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, .12);
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .12);
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    border-radius: 13px;
}

.chat-content .product-form .product-info {
    -ms-flex: 1 1;
    flex: 1 1;
    display: -ms-flexbox;
    display: flex;
    padding-bottom: 10px;
}

.chat-content .product-form .product-info .product-img img {
    width: 60px;
    height: 60px;
    margin: 4px 12px 0;
    border-radius: 2px;
}

.chat-content .product-form .product-info .product-detail {
    -ms-flex: 1 1;
    flex: 1 1;
}

.chat-content .product-form .product-info .product-name {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    overflow-wrap: break-word;
    font-size: 14px;
    color: #fff;
    line-height: 18px;
    min-height: 36px;
    max-height: 36px;
    -ms-flex: 1 1;
    flex: 1 1;
}

.chat-content .product-form .product-info .product-price {
    color: #fff;
    font-weight: bold;
}

.chat-content .product-form .product-info .product-origin-price {
    color: #fff;
    font-size: 12px;
    display: -ms-flexbox;
    display: flex;
}

.chat-content .product-form .product-info .product-origin-price .origin-price {
    text-decoration: line-through;
    flex: 1 1;
}

.chat-content .product-form .product-info .product-origin-price .discount {
    margin-right: 10px;
}

.chat-content .product-form .product-action {
    -ms-flex: 1 1;
    flex: 1 1;
    display: -ms-flexbox;
    display: flex;
    background: #fff;
    padding: 5px 0;
    align-items: center;
    justify-content: center;
}

.chat-content .product-form .product-action .btn {
    background: #268ce9;
    color: #fff;
    border-radius: 13px;
    padding: 5px 20px;
    height: auto;
}


/* emoticon */

.chat_box .chat-form .chat-content .message-form .emoticon {
    font-size: 25px;
    margin-left: 10px;
}

.chat_box .chat-form .chat-content .message-form .shortcut {
    font-size: 25px;
    margin-left: 10px;
}

.icon-field {
    display: none;
    bottom: 49px;
    background: #fff;
    left: 0;
    position: absolute;
    width: 280px;
    border: 2px solid #0898ff;
    text-align: center;
    padding: 10px;
    display: none;
    transition: opacity 1s ease-out;
    opacity: 0;
    border-radius: 15px !important;
}

.icon-field.active {
    opacity: 1;
    display: block;
}

.icon-field::after {
    bottom: -7px;
    left: 44px;
    border-top: none;
    border-left: none;
    -webkit-box-shadow: 1px 1px 1px 0 rgba(0, 0, 0, .1);
    box-shadow: 1px 1px 1px 0 rgba(0, 0, 0, .1);
    position: absolute;
    width: 12px;
    height: 12px;
    content: " ";
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    border-right: 2px solid #0898ff;
    border-bottom: 2px solid #0898ff;
    background-color: #fff;
}

i.face-normal {
    background: url(https://supertstore.com/img/app_icon/emoticon.jpg);
    background-size: 300px;
    background-position: -32px -27px;
    width: 55px;
    height: 55px;
    display: inline-block;
}

i.face-smile-1 {
    background: url(https://supertstore.com/img/app_icon/emoticon.jpg);
    background-size: 300px;
    background-position: -92px -27px;
    width: 55px;
    height: 55px;
    display: inline-block;
}

i.face-smile-2 {
    background: url(https://supertstore.com/img/app_icon/emoticon.jpg);
    background-size: 300px;
    background-position: -152px -27px;
    width: 55px;
    height: 55px;
    display: inline-block;
}

i.face-smile-3 {
    background: url(https://supertstore.com/img/app_icon/emoticon.jpg);
    background-size: 300px;
    background-position: -212px -27px;
    width: 55px;
    height: 55px;
    display: inline-block;
}

i.face-melong {
    background: url(https://supertstore.com/img/app_icon/emoticon.jpg);
    background-size: 300px;
    background-position: -32px -90px;
    width: 55px;
    height: 55px;
    display: inline-block;
}

i.face-love {
    background: url(https://supertstore.com/img/app_icon/emoticon.jpg);
    background-size: 300px;
    background-position: -92px -90px;
    width: 55px;
    height: 55px;
    display: inline-block;
}

i.face-ho {
    background: url(https://supertstore.com/img/app_icon/emoticon.jpg);
    background-size: 300px;
    background-position: -152px -90px;
    width: 55px;
    height: 55px;
    display: inline-block;
}

i.face-normal-ppizil {
    background: url(https://supertstore.com/img/app_icon/emoticon.jpg);
    background-size: 300px;
    background-position: -212px -90px;
    width: 55px;
    height: 55px;
    display: inline-block;
}

i.face-kkya {
    background: url(https://supertstore.com/img/app_icon/emoticon.jpg);
    background-size: 300px;
    background-position: -32px -154px;
    width: 55px;
    height: 55px;
    display: inline-block;
}

i.face-smile-oishi {
    background: url(https://supertstore.com/img/app_icon/emoticon.jpg);
    background-size: 300px;
    background-position: -92px -154px;
    width: 55px;
    height: 55px;
    display: inline-block;
}

i.face-kkya-melong {
    background: url(https://supertstore.com/img/app_icon/emoticon.jpg);
    background-size: 300px;
    background-position: -152px -154px;
    width: 55px;
    height: 55px;
    display: inline-block;
}

i.face-normal-oishi {
    background: url(https://supertstore.com/img/app_icon/emoticon.jpg);
    background-size: 300px;
    background-position: -212px -154px;
    width: 55px;
    height: 55px;
    display: inline-block;
}

i.face-hilkkm {
    background: url(https://supertstore.com/img/app_icon/emoticon.jpg);
    background-size: 300px;
    background-position: -32px -218px;
    width: 55px;
    height: 55px;
    display: inline-block;
}

i.face-smile-ppizil {
    background: url(https://supertstore.com/img/app_icon/emoticon.jpg);
    background-size: 300px;
    background-position: -92px -218px;
    width: 55px;
    height: 55px;
    display: inline-block;
}

i.face-wink {
    background: url(https://supertstore.com/img/app_icon/emoticon.jpg);
    background-size: 300px;
    background-position: -152px -218px;
    width: 55px;
    height: 55px;
    display: inline-block;
}

i.face-close-eyes {
    background: url(https://supertstore.com/img/app_icon/emoticon.jpg);
    background-size: 300px;
    background-position: -212px -218px;
    width: 55px;
    height: 55px;
    display: inline-block;
}

.chat_box_minimum .chat-btn {
    font-size: 17px;
    padding: 3px 10px;
    line-height: 22px;
    padding-right: 28px;
    cursor: pointer;
    font-weight: normal;
    background-color: #017eff;
    color: #fff;
}

.chat_box_minimum .chat-btn::after {
    content: " ";
    position: absolute;
    right: 26px;
    width: 22px;
    margin-top: -11px;
    top: 50%;
    background: url(/assets/images/media/theme/chat-icon.png);
    background-size: 100%;
    height: 22px;
}

.chat_box .chat-form .chat-content .login-view {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.chat_box .chat-form .chat-content .login-view p {
    font-size: 13px;
    font-weight: 400;
    margin: 0;
    margin-bottom: 10px;
}

.chat_box .chat-form .chat-content .login-view a {
    font-size: 20px;
    font-weight: 600;
}