/**
 * Created by PhpStorm.
 * User: NickBai
 * Email: 876337011@qq.com
 * Date: 2019/2/16
 * Time: 8:19 PM
 */

.chat-container{
    font-family: Mulish, sans-serif;
    letter-spacing: -0.24px;
    -webkit-font-smoothing: antialiased;
    color: rgb(6, 19, 43);
    box-sizing: border-box;
    width: 372px;
    position: absolute;
    bottom: 26px;
    border-radius: 16px;
    pointer-events: auto;
    overflow: hidden;
    z-index: 1;
    right: 48px;
    left: auto;
    max-height: calc(100% - 47px);
    display: flex;
    flex-direction: column;
    box-shadow: rgba(0, 18, 46, 0.16) 0px 8px 36px 0px;
}
.chat-system{
    padding: 8px 15px;
    background-color: #e2e2e2;
    border-radius: 3px;
    color: #333;
    word-break: break-all;
    font-size: 13px;
    cursor: pointer;
}
.chat-container .chat-header{
    letter-spacing: -0.24px;
    -webkit-font-smoothing: antialiased;
    pointer-events: auto;
    box-sizing: inherit;
    padding: 24px 28px;
    position: relative;
    z-index: 4;
    flex: 0 0 auto;
    color: rgb(255, 255, 255);
    background: linear-gradient(266deg, rgb(255, 78, 111) 0%, rgb(251, 145, 104) 100%);
}

.chat-container .chat-header::after{
    content: "";
    position: absolute;
    width: calc(100% + 10px);
    bottom: -8px;
    left: -5px;
    border-image-source: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNzIgMTUiPgogIDxwYXRoIGQ9Ik0zNDkuOCAxLjRDMzM0LjUuNCAzMTguNSAwIDMwMiAwaC0yLjVjLTkuMSAwLTE4LjQuMS0yNy44LjQtMzQuNSAxLTY4LjMgMy0xMDIuMyA0LjctMTQgLjUtMjggMS4yLTQxLjUgMS42Qzg0IDcuNyA0MS42IDUuMyAwIDIuMnY4LjRjNDEuNiAzIDg0IDUuMyAxMjguMiA0LjEgMTMuNS0uNCAyNy41LTEuMSA0MS41LTEuNiAzMy45LTEuNyA2Ny44LTMuNiAxMDIuMy00LjcgOS40LS4zIDE4LjctLjQgMjcuOC0uNGgyLjVjMTYuNSAwIDMyLjQuNCA0Ny44IDEuNCA4LjQuMyAxNS42LjcgMjIgMS4yVjIuMmMtNi41LS41LTEzLjgtLjUtMjIuMy0uOHoiIGZpbGw9IiNmZmYiLz4KPC9zdmc+Cg==);
    border-image-slice: 0 0 100%;
    border-image-width: 0 0 15px;
    border-image-repeat: stretch;
    border-width: 0px 0px 15px;
    border-bottom-style: solid;
    border-color: initial;
    border-top-style: initial;
    border-left-style: initial;
    border-right-style: initial;
}

.chat-header .chat-header-avatar{
    letter-spacing: -0.24px;
    -webkit-font-smoothing: antialiased;
    pointer-events: auto;
    color: rgb(255, 255, 255);
    box-sizing: inherit;
    width: 52px;
    height: 52px;
    margin: 0px 18px 0px 0px;
    float: left;
}
.chat-header .chat-header-avatar .agent-avatar{
    letter-spacing: -0.24px;
    -webkit-font-smoothing: antialiased;
    pointer-events: auto;
    color: rgb(255, 255, 255);
    box-sizing: inherit;
    width: 52px;
    height: 52px;
    border-radius: 24px;
    background-size: cover;
    background-position: center center;
    float: left;
}
.chat-header .chat-header-title{
    font-size: 19px;
    font-weight: 600;
    color: currentcolor;
    margin: 4px 0px 0px;
    padding: 0px;
    display: inline-block;
    position: relative;
    max-width: calc(100% - 148px);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    vertical-align: bottom;

    margin-top: 0px;
    line-height: 52px;
    min-height: 52px;
}
.chat-header .chat-header-tool{
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    margin: 15px 0 0 15px;
    float: right;

    color: rgb(255, 255, 255);
}

.chat-header #ic-minimize {
    transform: rotate(270deg) translate(5px, 0);
}

.chat-container .chat-body{
    font-size: 15px;
    letter-spacing: -0.24px;
    -webkit-font-smoothing: antialiased;
    color: rgb(6, 19, 43);
    pointer-events: auto;
    box-sizing: inherit;
    padding: 0px 28px;
    width: 100%;
    height: 357px;
    overflow: hidden auto;
    background: rgb(255, 255, 255);
    transition: all 0.3s ease 0s;
    max-height: 357px;
    min-height: 160px;
    flex: 0 1 auto;
    scrollbar-color: #00173b29 transparent;
}

.chat-container .chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-container .chat-body::-webkit-scrollbar-thumb {
    background-color: #00173b29;
    border-radius: 4px;
}

.chat-container .chat-body .chat-box {
    margin-top: 10px;
    width: 100%;
    padding-bottom: 24px;
    float: left;
}
.chat-container .chat-footer{
    letter-spacing: -0.24px;
    -webkit-font-smoothing: antialiased;
    color: rgb(6, 19, 43);
    pointer-events: auto;
    box-sizing: inherit;
    padding: 0px 28px 6px;
    width: 100%;
    position: relative;
    background: rgb(255, 255, 255);
    z-index: 3;
    flex: 0 0 auto;
}
.clearfloat {
    padding: 10px 16px;
    border-radius: 20px;
    margin: 2px 0px;
    font-size: 15px;
    line-height: 20px;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 85%;
    clear: both;
    position: relative;
    transition: margin 0.28s ease-in-out 0s;

    color: rgb(6, 19, 43);
    background: rgb(240, 242, 247);
}
.clearfloat.message-image {
    padding: 0;
    overflow: hidden;
    background: white !important;
}
.clearfloat.timestamp-visible {
    margin-bottom: 28px;
}
.author-name {
    text-align: center;
    margin: 15px 0 5px 0;
    color: #888;
}

.clearfloat .chat-avatars {
    display: inline-block;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #eee;
    vertical-align: top;
    overflow: hidden;

    margin-right: 10px;
}
.clearfloat .chat-avatars>img {
    width: 35px;
    height: 35px;
}
img {
    display: inline-block;
    border: none;
    vertical-align: middle;
}
.clearfloat .chat-message {
    white-space: pre-line;
}
.clearfloat.timestamp-visible {
    margin-bottom: 28px;
}
.clearfloat .chat-date {
    bottom: -24px;
    font-size: 12px;
    color: rgb(136, 148, 171);
    position: absolute;
    transition: all 0.2s ease 0s;
    white-space: nowrap;

    height: 23px;
    display: none;
    -webkit-box-align: center;
    align-items: center;
    top: calc(100% + 4px);
}
.clearfloat.timestamp-visible .chat-date {
    display: flex;
}

.clearfloat.left {
    float: left
}
.clearfloat.right {
    background: linear-gradient(266deg, rgb(255, 78, 111), rgb(251, 145, 104));
    color: rgb(255, 255, 255);
    float: right;
}

.clearfloat.left .chat-date {
    left: 12px;
}

.clearfloat.right .chat-date {
    right: 12px;
}

.clearfloat.left + .clearfloat.right,
.clearfloat.right + .clearfloat.left {
    margin-top: 9px;
}

.chat-footer .text-holder {
    letter-spacing: -0.24px;
    -webkit-font-smoothing: antialiased;
    color: rgb(6, 19, 43);
    pointer-events: auto;
    box-sizing: inherit;
    transition: all 0.5s ease-in-out 0s;
    opacity: 1;
    transform: translateY(0px);
}
.chat-footer .text-holder #textarea {
    pointer-events: auto;
    box-sizing: inherit;
    border: 0px;
    width: 100%;
    font-size: 16px;
    padding: 20px 0px 14px;
    resize: none;
    line-height: 24px;
    overflow-x: hidden;
    letter-spacing: -0.24px;
    -webkit-font-smoothing: antialiased;
    color: rgb(6, 19, 43);
}
.chat-footer .send-bar{
    height: 42px;
}
.chat-footer .send-bar .tool-box{
}
.chat-footer .send-bar .tool-box i{
    margin-left: 10px;
    font-size: 20px;
    color: #c2c2c2;
    cursor: pointer;
}
.chat-footer .send-bar .tool-box i:nth-of-type(1){
    margin-left: 0;
}

.chat-cover {
    font-size: 16px;
    position: absolute;
    z-index: 3;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 112px 28px;
    background: white;
}

.send-btn-div{
    letter-spacing: -0.24px;
    -webkit-font-smoothing: antialiased;
    color: rgb(6, 19, 43);
    box-sizing: inherit;
    position: absolute;
    width: 112px;
    height: 140px;
    bottom: 12px;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
    right: 0px;
    left: auto;
}
.send-btn-div #sendBtn {
    box-sizing: inherit;
    border: 0px;
    font-style: inherit;
    font-variant: inherit;
    font-weight: inherit;
    font-stretch: inherit;
    font-size: inherit;
    line-height: normal;
    overflow: visible;
    padding: 0px;
    user-select: none;
    outline: none;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    letter-spacing: -0.24px;
    -webkit-font-smoothing: antialiased;
    width: 60px;
    height: 60px;
    border-radius: 28px;
    display: inherit;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    pointer-events: initial;
    transition: all 0.2s ease-in-out 0s;
    position: relative;
    color: rgb(0, 125, 252);
    background: linear-gradient(266deg, rgb(255, 78, 111), rgb(251, 145, 104));
    box-shadow: rgba(255, 78, 111, 0.5) 0px 2px 16px;
}

body .layui-whisper-face{
    border: none;
    background: none;
}
body .layui-whisper-face  .layui-layer-content{
    padding:0;
    background-color:#fff;
    color:#666;
    box-shadow:none
}
.layui-whisper-face .layui-layer-TipsG{
    display:none;
}
.layui-whisper-face ul{
    position:relative;
    width:372px;
    padding:10px;
    border:1px solid #D9D9D9;
    background-color:#fff;
    box-shadow: 0 0 20px rgba(0,0,0,.2);
}
.layui-whisper-face ul li{
    cursor: pointer;
    float: left;
    border: 1px solid #e8e8e8;
    height: 22px;
    width: 26px;
    overflow: hidden;
    margin: -1px 0 0 -1px;
    padding: 4px 2px;
    text-align: center;
}
.layui-whisper-face ul li:hover{
    position: relative;
    z-index: 2;
    border: 1px solid #eb7350;
    background: #fff9ec;
}
.layui-unselect .close{
    position: relative;
    top: -24px;
    left: 36px;
    color:#2F4056
}

.read-flag {
    display: none;
}
.chat-box .no-read{
    color:#FF5722;
    font-size:12px;
    top:5px;
    left:-5px;
    position: relative;
}

.chat-box .already-read{
    color:#c2c2c2;
    font-size:12px;
    top:5px;
    left:-5px;
    position: relative;
}

.staff-service {
    font-size: 12px;
    padding: 3px 10px 3px 10px;
    margin-left: 10px;
    cursor: pointer;
    margin-top: -5px;
    top: -3px;
    position: relative;
    color: #fff;
    background: #1E9FFF;
    border-radius: 1px;
}

.right .chat-message a{
    color: inherit;
    text-decoration: underline;
}

hr {
    margin: 0;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
    color: #8894ab;
    opacity: 1
}

input::placeholder,
textarea::placeholder {
    color: #8894ab;
    opacity: 1
}

.mobile .chat-container {
    width: 100%;
    height: 100%;
    bottom: 0px;
    background: rgb(255, 255, 255);
    display: flex;
    flex-direction: column;
    border-radius: 0px;
    right: 0px;
    left: auto;
    max-height: none;
}

.mobile .chat-container .chat-body {
    max-height: none;
    flex: 1 1 auto;
    overflow-y: scroll;
}

.mobile .send-btn-div {
    width: 80px;
    height: 100px;
    bottom: 0px;
    transition: transform 0.2s ease 0s;
    transform: translateY(-12px);
    right: 0px;
    left: auto;
}

.system-notification {
    display: flex;
    width: 100%;
    justify-content: center;
    float: left;
    clear: both;
    margin: 15px 0 5px 0;
}