* {
    padding: 0;
    border: 0;
    margin: 0;
}

.timely-header {

    height: 40px;
    padding-left: 20px;
    padding-top: 10px;
    background-color:#1e9fff;
}

.timely-header p {
    height: 100%;
    line-height: 35px;
    /*padding: 0 115px 0 0;*/
    font-weight: 300;
    color: #FFF;
    overflow: hidden;
}

.timely-header .iconbox {
    display: block;
    opacity: 1;
    position: absolute;
    right: 20px;
    top: 15px;
    text-align: center;
    cursor: pointer;
}

.timely-header .iconbox i {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 10px;
}

.timely-chat-context {
    position: absolute;
    left: 0;
    top: 50px;
    right: 0px;
    bottom: 121px;
    width: 100%;
    height: auto;
    background-color: #FCFCFC;
    overflow: auto;
    padding: 5px 0;
}

.mine {
    margin-left: 20%;
    padding: 5px 0;
    text-align: right;
}

.mineCont {
    display: inline-block;
    margin-right: 15px;
    margin-left: 15px;
}

.mineText {
    position: relative;
    display: inline-block;
    padding: 8px;
    color: #000;
    background-color: #F5F5F5;
    min-width: 50px;
    min-height: 20px;
    line-height: 20px;
    border-radius: 2px;
    word-break: break-all;
    text-align: left;
    margin-top: 3px;
}
.mineTop{
    margin-bottom: 5px;
    margin-left: 10px;
}
.mineTop span {
    color: #BBB;
    font-weight: 300;
}
.is-tipsdot{
    padding: 8px 15px;
    font-size: 14px;
    text-align: center;
}
.is-tipsdot p{
    display: inline-block;
    padding: 0 10px;
    height: 26px;
    line-height: 26px;
    font-size: 12px;
    background-color: #EEE;
    color: #AAA;
}
.mineTips {
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 0;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #1e9fff;
}

.is-read {
    margin-right: 5px;
    color: #FF5722;
    font-size: 12px;
}

.is-read.active {
    color: #DDD;
}

.is-left .mineTips {
    top: 0;
    left: 42px;
    border-color: transparent #FFFFFF transparent transparent;
}

.timely-chat-footer {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #EEE;
    height: 120px;
    background-color: #FFF;
}

.timely-chat-footer ul {
    padding-top: 0;
    padding-left: 5px;
    height: 30px;
    line-height: 30px;
    color: #bdd0d1;
}

.timely-chat-footer ul li {
    display: inline-block;
    padding-left: 5px;
}

.timely-chat-footer ul li i {
    font-size: 24px;
}

.chat-text {
    padding: 0 10px;
    margin-top: 5px;
    width: calc(100% - 100px);
    height: 80px;
    line-height: 20px;
    outline: 0;
}

.send-btn {
    position: absolute;
    bottom: 10px;
    width: 60px;
    height: 30px;
    line-height: 30px;
    background-color: #e6e6e6;
}

.kefu-head-right {
    position: absolute;
    height: 20px;
    line-height: 20px;
    margin-top: -10px;
    top: 50%;
    right: 30px;
}

.listmore {
    margin-top: 5px;
    margin-bottom: 5px;
    height: 20px;
    line-height: 20px;
    font-size: 12px;
    text-align: center;
}

.listmore a {
    color: #54B0E5;
    cursor: pointer;
}

.chat-content .layui-timely-photos {
    height: 100px;
    width: 100px;
}

.timely-chat-area-shadeFull {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: #FFF;
    text-align: center;
    line-height: 120px;
}

.timely-chat-area-shadeFull a {
    color: #56b7c7;
    cursor: pointer;
}

.timely-chat-system-message {
    padding: 5px 0;
    text-align: center;
}

.timely-chat-system-message p {
    display: inline-block;
    padding: 0 10px;
    height: 26px;
    line-height: 26px;
    font-size: 12px;
    background-color: #EEE;
    color: #AAA;
}

.chat-iframe-write {
    position: relative;
    padding: 15px 20px 0;
    text-align: center;
}

.chat-iframe-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.chat-iframe-write h4 {
    line-height: 50px;
    font-size: 16px;
}

.chat-iframe-writeCont {
    height: 320px;
    padding-right: 10px;
    margin-bottom: 30px;
    overflow-y: scroll;
}

.chat-iframe-write p {
    margin-bottom: 10px;
    color: #999;
    line-height: 22px;
    font-size: 12px;
    text-align: left;
    text-indent: 1em;
}

.layui-form-item {
    margin-bottom: 15px;
    clear: both;
    *zoom: 1;
}

.chat-iframe-write .layui-form-label {
    padding: 5px 15px 5px 0;
    width: 80px;
    color: #a1c0c5;
}

.chat-iframe-write .layui-form-label span {
    color: red;
}

.chat-iframe-write [lay-submit] {
    height: 30px;
    padding: 0 25px;
    margin-top: 20px;
    background-color: #56b7c7;
    line-height: 30px;
    margin-bottom: 10px;
}

.message-footer {
    font-size: 12px;
    color: hsla(0, 0%, 80%, .8);
    text-align: center;
    bottom: 0;
    /*position: fixed;*/
    transform: translate(-50%, -50%);
    margin-left: 50%;
    margin-top: 10px;
}

.chat-text-right i {
    font-size: 30px;
}

.chat-item {
    width: 100%;
    padding-bottom: 15px;
}

.chat-item.is-left .msg {
    text-align: left;
}

.chat-item .msg {
    position: relative;
}

.chat-item .avatar {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 0;
    border: 1px solid #e6e6e6;
    border-radius: 2px;
}

.chat-item.is-left .avatar {
    left: 5px;
}
.chat-item.is-left .avatar img{
    border-style: none;
    vertical-align: middle;
    max-width: 100%;
    max-height: 100%;
}
img {
    border-style: none;
    vertical-align: middle;
    max-width: 100%;
}

.chat-item .content {
    position: relative;
    /*display: inline-block;*/
    vertical-align: top;
}

.chat-item.is-left .content {
    padding-right: 20.5px;
}

.chat-item.is-left .avatar ~ .content {
    padding-left: 45px;
}

.chat-item.is-right .msg {
    text-align: right;
}

.chat-item.is-right .content {
    padding-left: 20.5px;
}

.chat-item.is-right .bubble {
    background: #1e9fff;
    margin-right: 12px;
    color: #fff;
}
.chat-item.is-right .mineTop {
    text-align: right;
    margin-right: 10px;
    margin-bottom: 5px;
}
.chat-item .bubble {
    position: relative;
    display: inline-block;
    background: #fff;
    word-wrap: break-word;
    word-break: break-all;
    border-radius: 4px;
    text-align: left;
    max-width: 85%;
}

.chat-item.is-left .bubble {
    margin-left: 10px;
}

.chat-item .bubble .chat-content {
    padding: 8px;
    text-align: justify;
    font-size: 13px;

}
.chat-item .bubble pre {
    padding: 10.5px 0px;


}
.chat-item .is-right .bubble:before {
    left: 100%;
    border-left-color: #4979ff;
    border-left-width: 8px;
}
.chat-item .bubble:before {
    position: absolute;
    top: 8px;
    border: 6px solid transparent;
    content: " ";
}

.chat-issues {
    border-top: 1px solid #e6e6e6;

}
.chat-issues ul {

}



.chat-issues .item {
    padding: 0 20px;
    height: 40px;
    line-height: 40px;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    font-size: 13px;
}

.chat-issues .item:before {
    content: "";
    position: absolute;
    display: inline-block;
    width: 5px;
    height: 5px;
    top: 50%;
    margin-top: -2.5px;
    left: 5px;
    border-radius: 50%;
    background: #4979ff;
}

.chat-issues .item:after {
    content: "";
    display: block;
    right: 5px;
    position: absolute;
    top: 15px;
    border-top: 1px solid #000;
    border-right: 1px solid #000;
    transform: rotate(45deg);
    width: 8px;
    height: 8px;
}
.chat-issues .item.select:after {
    content: "";
    display: block;
    right: 5px;
    position: absolute;
    top: 15px;
    border-top: 1px solid #1e9fff;
    border-right: 1px solid #1e9fff;
    transform: rotate(45deg);
    width: 8px;
    height: 8px;
}
.chat-item .tips {
    font-size: 12px;
    color: #999;
    text-align: center;
    padding: 10px 0 15px;
}

.chat-issues .more-help {
    margin-top: 5px;
    padding-bottom: 5px;
    border-top: 1px solid #e6e6e6;
    padding-top: 10px;
}
.on {
    display: none;
}
.timely-chat-footer .tool-view {
    position: absolute;
    bottom: 51px;
    z-index: 999;
    width: 100%;
    height: 50px;
    background-color: #FCFCFC;;
    opacity: 0.85;
}
.timely-chat-footer .tool-view .item {
    width: 15%;
    padding: 10px 0;
    display: inline-block;
    text-align: center;
}
.timely-chat-footer .tool-view .item  i{
 font-size: 25px;
}
@media (max-height: 600px), (max-width: 1000px) {
    .timely-chat-footer {
        height: 120px;
        min-height: 120px;
        background-color: #FCFCFC;;
    }

    .timely-chat-footer .chat-text {
        height: 0;
        width: calc(100% - 85px);
        padding: 2px 10px;
    }

    .timely-chat-context {
        bottom: 52px;
    }

    .chat-item .bubble {
        border-radius: 1px;
    }
    .send-btn{
        position: static;
    }
}

@media (max-height: 500px), (max-width: 1000px) {
    .timely-chat-footer {
        height: 51px;
        min-height: 51px;
        background-color: #FCFCFC;;
    }

    .timely-chat-footer .chat-text {
        height: 0;
        width: calc(100% - 120px);
        padding: 2px 10px;
    }

    .timely-chat-context {
        bottom: 52px;
    }

    .chat-item .bubble {
        border-radius: 1px;
    }
    .send-btn{
        position: static;
    }
}
