:root {
    --borderColor: #e5e5e5;
    --chatThemeColor: #ec6961;
    --themecolor: #e50020;
}

.m-chat-btn {
    z-index: 1;
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 74px;
    box-sizing: border-box;
    background-color: #222222;
    cursor: pointer;
}

.m-chat-btn.new:after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    right: 13px;
    top: 13px;
    border-radius: 100%;
    background-color: var(--themecolor);
}

.m-chat-btn {
    display: flex;
    flex-direction: column;
}

.m-chat-btn img {
    width: 24px;
    height: 24px;
    margin: 2px 0 8px;
}

.m-chat-btn p {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: #fff;
}

.m-chat-wrap {
    z-index: 10;
    position: fixed;
    bottom: 20px;
    right: 90px;
    display: flex;
    flex-direction: column;
    width: 350px;
    height: 710px;
    box-sizing: border-box;
    background-color: #fff;
}

.m-chat-wrap-detail{
    z-index: 1000;
    bottom: 80px;
}

.m-chat-wrap.move {
    width: 700px;
    height: 530px;
    box-shadow: 0 0 100vw 100vw rgba(0, 0, 0, 0.4);
}

.m-chat-wrap.move video {
    max-width: 500px;
}

.chat-show {
    animation: chat-show 0.4s;
}

.chat-close {
    animation: chat-close 0.4s;
    animation-fill-mode: forwards;
}

@keyframes chat-show {
    from {
        transform: translateY(1000px);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes chat-close {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(1000px);
    }
}

.m-chat-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 16px;
    padding-right: 10px;
    height: 50px;
    background-color: #222;
    color: #fff;
}

.m-chat-header-title {
    font-size: 15px;
    white-space: nowrap;
    max-width: 250px;
    text-overflow: ellipsis;
    overflow: hidden;
    font-weight: 600;
}

.m-chat-header-btn {
    width: 24px;
    height: 24px;
    background-image: url("../image/icon-chat-copy.png");
    background-size: 24px 24px;
    background-position: right center;
}

.m-chat-online-num {
    display: flex;
    align-items: center;
    font-size: 15px;
}

.m-chat-header-close {
    width: 18px;
    height: 18px;
    margin-left: 10px;
    background: url("../image/icon-chat-close.png") no-repeat center / 18px 18px;
    cursor: pointer;
}

.m-chat {
    height: calc(100% - 106px);
    /* padding: 5px 0; */
    box-sizing: border-box;
    border-left: 1px solid var(--borderColor);
    border-right: 1px solid var(--borderColor);
}

.m-chat-list-wrap {
    height: 100%;
    overflow: auto;
}

.m-chat-item {
    margin-top: 10px;
    padding-left: 12px;
    padding-right: 10px;
    padding-bottom: 10px;
    line-height: 24px;
}

.m-chat-time {
    display: none;
    font-size: 12px;
    text-align: center;
    color: #666;
    line-height: 4;
}

.m-chat-time.active {
    display: block;
    width: 100%;
}

.m-chat-info {
    overflow: hidden;
}

.m-chat-avatar,
.m-chat-name {
    float: left;
    margin-right: 8px;
}

.m-chat-avatar {
    cursor: pointer;
}

.m-chat-name {
    font-size: 15px;
    font-weight: bold;
    color: #222222;
}

.m-chat-content {
    display: inline-block;
    min-width: 50px;
    margin-top: 5px;
    padding: 5px 6px;
    word-break: break-all;
    color: #222;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.8;
    background-color: #f3f4f8;
    border-radius: 0 4px 4px 4px;
    box-sizing: border-box;
}

.m-chat-content a {
    color: var(--themecolor);
}

.m-chat-content img {
    max-width: 120px;
    margin: 0 3px;
    vertical-align: text-top;
}

.m-chat-content iframe {
    width: 100%;
    border: none;
}

.m-chat-content video {
    max-width: 260px;
}

.m-chat-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.m-chat-footer {
    position: relative;
    display: flex;
    align-items: center;
    height: 58px;
    box-sizing: border-box;
    background-color: #f8f8f8;
    border-top: 1px solid #e5e5e5;
}

.m-chat-footer-input-wrap {
    display: flex;
    align-items: center;
    width: 269px;
    height: 40px;
    margin-left: 5px;
    border-radius: 40px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    overflow: hidden;
}

.m-chat-footer-input-txt {
    width: 230px;
    height: 40px;
}

.m-chat-footer-input-txt img {
    height: 20px;
    vertical-align: middle;
}

.m-chat-footer-input-menu {
    display: flex;
    align-items: center;
    width: 30px;
}

.m-chat-footer-input-txt .w-e-text p,
.m-chat-footer-input-txt .w-e-text h1,
.m-chat-footer-input-txt .w-e-text h2,
.m-chat-footer-input-txt .w-e-text h3,
.m-chat-footer-input-txt .w-e-text h4,
.m-chat-footer-input-txt .w-e-text h5,
.m-chat-footer-input-txt .w-e-text table,
.m-chat-footer-input-txt .w-e-text pre {
    line-height: 20px;
}

.m-chat-footer-input-txt .w-e-toolbar p,
.m-chat-footer-input-txt .w-e-text-container p,
.m-chat-footer-input-txt .w-e-menu-panel p {
    font-size: 13px !important;
    font-weight: 500;
}

.w-e-text-container .placeholder {
    color: rgb(109, 109, 109);
}
.m-chat-footer-input-txt .w-e-text-container .placeholder {
    font-size: 13px;
    line-height: 20px;
    color: rgb(109, 109, 109);
}

.m-chat-footer-input-menu .w-e-toolbar {
    padding: 0;
}

.m-chat-footer-input-menu .w-e-toolbar .w-e-menu {
    width: 30px;
}

.m-chat-upload,
.m-chat-submit {
    width: 24px;
    height: 100%;
    margin-left: 8px;
    background-size: 24px 24px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

.m-chat-upload {
    background-image: url("../image/icon-chat-upload.svg");
}

.m-chat-submit {
    background-image: url("../image/icon-chat-send.svg");
}

.m-chat-upload-inp {
    display: none !important;
}

.m-chat-upload-lable {
    display: block;
    width: 100%;
    height: 100%;
}

.w-e-icon-happy::before {
    font-size: 20px;
}

.m-chat-wrap .w-e-menu,
.m-private-chat .w-e-menu,
.m-chat-wrap .w-e-toolbar,
.m-private-chat .w-e-toolbar {
    position: static !important;
}

.m-chat-wrap .w-e-menu .w-e-panel-container,
.m-private-chat .w-e-menu .w-e-panel-container {
    bottom: 55px !important;
    left: 0 !important;
    bottom: 0;
    top: unset !important;
    margin: 0 !important;
    border: none;
    border-top: 1px solid var(--borderColor);
    box-sizing: border-box;
    box-shadow: unset;
}

.m-chat-wrap .w-e-menu .w-e-panel-container {
    width: 348px !important;
}

.m-private-chat .w-e-menu .w-e-panel-container {
    width: 348px !important;
}

.m-chat-wrap.move .w-e-menu .w-e-panel-container {
    width: 698px !important;
}

.m-chat-wrap .w-e-panel-tab-content,
.m-private-chat .w-e-panel-tab-content {
    height: 180px !important;
    padding: 6px 10px !important;
}

.m-chat-footer ::-webkit-scrollbar,
.m-chat-footer ::-webkit-scrollbar-track,
.m-chat-footer ::-webkit-scrollbar-thumb,
.m-chat-footer ::-webkit-scrollbar-thumb:window-inactive {
    display: none;
}

.m-icon-emoji-wrap {
    padding: 5px !important;
    display: inline-block;
    text-align: center;
}

.m-icon-emoji-wrap img {
    padding: 0 !important;
}

.m-chat-wrap .w-e-menu-tooltip,
.m-private-chat .w-e-menu-tooltip {
    display: none;
}

.m-scroll ::-webkit-scrollbar {
    width: 4px;
}

.m-scroll ::-webkit-scrollbar-track {
    border-radius: 4px;
}

.m-scroll ::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.1);
}
.m-scroll ::-webkit-scrollbar-thumb:window-inactive {
    background: var(--themecolor);
}

.m-chat-user {
    font-size: 12px;
    line-height: 24px;
    text-align: center;
    color: #666;
}

.mBigImg {
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 100000000000px;
    padding: 5px;
    box-sizing: border-box;
    background-color: #fff;
    box-shadow: 0 0 10px 4px rgba(0, 0, 0, 0.2);
}

.mBigImg img {
    max-width: 340px;
    vertical-align: middle;
}

.m-chat-user-info-wrap-2 {
    /* display: none; */
    z-index: 99999;
    position: absolute;
    top: 0;
    left: 50px;
}

.m-chat-user-info-wrap:after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -1px;
    left: -1px;
    right: -1px;
    background-color: var(--chatThemeColor);
    height: 40px;
    border-radius: 4px 4px 0 0;
}

.m-chat-user-avatar {
    float: left;
    width: 50px;
    height: 50px;
    border-radius: 4px;
}

.m-chat-user-name {
    margin-top: 20px;
    margin-left: 60px;
    font-size: 14px;
    white-space: nowrap;
    height: 30px;
    line-height: 30px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-chat-user-level,
.m-chat-user-point {
    width: 100%;
    font-size: 13px;
    line-height: 2;
}

.m-chat-user-level {
    margin-top: 10px;
}

.m-chat-user-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
}

.m-chat-user-btn button {
    padding: 0 10px;
    height: 30px;
    font-size: 12px;
    border: 1px solid var(--borderColor);
    border-radius: 2px;
}

.m-chat-user-btn button:hover {
    background-color: var(--chatThemeColor);
    color: #fff;
    border-color: var(--chatThemeColor);
}

.m-private-chat {
    z-index: 1;
    /* top: 2px;
    left: 589px; */
    bottom: 20px;
    right: 440px;
    height: 710px;
    position: fixed;
    width: 350px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
}

.m-private-chat-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    padding-left: 16px;
    margin: -1px -1px 0 -1px;
    background-color: #f62b2b;
    cursor: move;
}

.m-priviate-chat-msg {
    display: flex;
    align-items: center;
    height: 20px;
}

.m-priviate-chat-msg img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.m-priviate-chat-msg h4 {
    margin-left: 10px;
    width: 220px;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-private-chat-close {
    width: 50px;
    height: 50px;
    cursor: pointer;
    background: url("../image/icon-chat-close.png") no-repeat center / 18px 18px;
}

.m-private-chat-msg-wrap {
    height: 600px;
    padding: 0 16px;
    overflow: auto;
}

.m-private-chat-item {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    margin-bottom: 10px;
}

.m-private-me {
    flex-direction: row-reverse;
}

.m-private-chat-item .m-chat-info {
    width: 100%;
}

.m-private-me .m-chat-info {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
}

.m-private-me .m-chat-avatar {
    margin-right: 0;
}

.m-private-chat-avatar {
    margin-top: 7px;
    width: 20px;
    height: 20px;
    border-radius: 100%;
}

.m-private-chat-msg-msg {
    display: inline-block;
    min-width: 50 px;
    margin-top: 5 px;
    padding: 5 px 10 px;
    word-break: break-all;
    color: #222;
    font-size: 12px;
    line-height: 1.8;
    background-color: #f3f4f8;
    border-radius: 4 px;
    box-sizing: border-box;
}

.m-private-chat-time {
    line-height: 32px;
    font-size: 12px;
    color: #adadad;
}

.shake {
    animation: shake-slow 0.4s;
}

@keyframes shake-slow {
    2% {
        transform: translate(6px, -6px) rotate(2.5deg);
    }
    4% {
        transform: translate(-5px, 1px) rotate(1.5deg);
    }
    6% {
        transform: translate(7px, -3px) rotate(-2.5deg);
    }
    8% {
        transform: translate(-7px, -5px) rotate(2.5deg);
    }
    10% {
        transform: translate(-3px, 2px) rotate(-1.5deg);
    }
    12% {
        transform: translate(3px, 6px) rotate(3.5deg);
    }
    14% {
        transform: translate(-7px, 2px) rotate(-1.5deg);
    }
    16% {
        transform: translate(-6px, 6px) rotate(-2.5deg);
    }
    18% {
        transform: translate(6px, 0px) rotate(1.5deg);
    }
    20% {
        transform: translate(9px, 9px) rotate(2.5deg);
    }
    22% {
        transform: translate(7px, -9px) rotate(2.5deg);
    }
    24% {
        transform: translate(2px, 1px) rotate(0.5deg);
    }
    26% {
        transform: translate(10px, 4px) rotate(-0.5deg);
    }
    28% {
        transform: translate(-9px, 3px) rotate(3.5deg);
    }
    30% {
        transform: translate(10px, 5px) rotate(1.5deg);
    }
    32% {
        transform: translate(6px, 8px) rotate(-2.5deg);
    }
    34% {
        transform: translate(9px, 9px) rotate(3.5deg);
    }
    36% {
        transform: translate(-5px, 0px) rotate(-0.5deg);
    }
    38% {
        transform: translate(-2px, -2px) rotate(0.5deg);
    }
    40% {
        transform: translate(-3px, 8px) rotate(2.5deg);
    }
    42% {
        transform: translate(-7px, 8px) rotate(3.5deg);
    }
    44% {
        transform: translate(6px, -6px) rotate(0.5deg);
    }
    46% {
        transform: translate(1px, -2px) rotate(3.5deg);
    }
    48% {
        transform: translate(-5px, 7px) rotate(-2.5deg);
    }
    50% {
        transform: translate(-8px, 1px) rotate(2.5deg);
    }
    52% {
        transform: translate(-9px, -2px) rotate(1.5deg);
    }
    54% {
        transform: translate(4px, -9px) rotate(3.5deg);
    }
    56% {
        transform: translate(-6px, -1px) rotate(0.5deg);
    }
    58% {
        transform: translate(-3px, -6px) rotate(-0.5deg);
    }
    60% {
        transform: translate(8px, 4px) rotate(-0.5deg);
    }
    62% {
        transform: translate(0px, -9px) rotate(0.5deg);
    }
    64% {
        transform: translate(9px, -2px) rotate(3.5deg);
    }
    66% {
        transform: translate(-7px, 10px) rotate(3.5deg);
    }
    68% {
        transform: translate(-7px, -9px) rotate(-1.5deg);
    }
    70% {
        transform: translate(9px, -2px) rotate(-2.5deg);
    }
    72% {
        transform: translate(-4px, 0px) rotate(2.5deg);
    }
    74% {
        transform: translate(1px, -2px) rotate(-1.5deg);
    }
    76% {
        transform: translate(-8px, -5px) rotate(2.5deg);
    }
    78% {
        transform: translate(-9px, 2px) rotate(1.5deg);
    }
    80% {
        transform: translate(-4px, 1px) rotate(-1.5deg);
    }
    82% {
        transform: translate(-6px, 10px) rotate(2.5deg);
    }
    84% {
        transform: translate(6px, -3px) rotate(-0.5deg);
    }
    86% {
        transform: translate(-1px, -2px) rotate(1.5deg);
    }
    88% {
        transform: translate(1px, 9px) rotate(1.5deg);
    }
    90% {
        transform: translate(3px, 9px) rotate(-0.5deg);
    }
    92% {
        transform: translate(-3px, -1px) rotate(0.5deg);
    }
    94% {
        transform: translate(-7px, 4px) rotate(1.5deg);
    }
    96% {
        transform: translate(6px, 1px) rotate(0.5deg);
    }
    98% {
        transform: translate(-8px, 2px) rotate(-0.5deg);
    }
    0%,
    100% {
        transform: translate(0, 0) rotate(0);
    }
}

.m-chat-msg-box {
    z-index: 1;
    position: fixed;
    right: 20px;
    bottom: 96px;
    max-height: 634px;
    overflow: auto;
}

.m-chat-msg-box::-webkit-scrollbar,
.m-chat-msg-box::-webkit-scrollbar-track,
.m-chat-msg-box::-webkit-scrollbar-thumb,
.m-chat-msg-box::-webkit-scrollbar-thumb:window-inactive {
    display: none;
}

.m-chat-msg-box-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 66px;
    height: 64px;
    box-sizing: border-box;
    background-color: #222222;
    cursor: pointer;
    color: #fff;
    margin-bottom: 2px;
}

.m-chat-msg-box-item img {
    width: 24px;
    height: 24px;
    margin: 2px 0 4px;
    object-fit: cover;
    border-radius: 30px;
    animation-name: avatar-twinkle;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

@keyframes avatar-twinkle {
    0% {
        opacity: 1;
    }
    20% {
        opacity: 0;
    }
}

.m-chat-msg-box-item p {
    font-size: 12px;
}

.m-chat-user-info-wrap-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 140px;
    padding-bottom: 10px;
    border-radius: 12px;
    background-color: rgb(33, 33, 33, 0.8);
    backdrop-filter: blur(10px);
}

.m-chat-user-level-2 {
    width: 100%;
    margin-left: 20px;
    height: 33px;
    line-height: 33px;
    font-size: 12px;
    color: rgb(255, 255, 255);
}

.m-chat-user-avatar-2 {
    width: 50px;
    height: 50px;
    border-radius: 50px;
}

.m-chat-user-name-2 {
    font-size: 15px;
    line-height: 40px;
    color: #fff;
}

.m-chat-user-point-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 18px;
}

.m-chat-user-point-2 img {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.m-chat-user-point-2 span {
    font-size: 12px;
    color: #eb8d1f;
}

.m-chat-user-btn-2 {
    height: 30px;
    width: 77px;
    margin-top: 10px;
    background-color: #2e2e2e;
    color: #fff;
    font-size: 12px;
    border-radius: 30px;
    border: none;
}
.m-chat-user-btn-3 {
    height: 30px;
    width: 77px;
    margin-top: 10px;
    background-color: #2e2e2e;
    color: #fff;
    font-size: 12px;
    border-radius: 30px;
    border: none;
}

.m-video-btn {
    width: 77px;
    height: 47px;
    background-image: url("../image/icon-chat-video.png");
    background-repeat: no-repeat;
    background-color: #222;
    background-position: center;
    background-size: 22px 22px;
    cursor: pointer;
}

.m-video-plus-wrap {
    z-index: 11;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 868px;
    height: 467px;
    margin-left: -434px;
    margin-top: -233px;
    background-color: #222;
}

.m-video-plus-close {
    position: absolute;
    top: 15px;
    right: 10px;
    width: 18px;
    height: 18px;
    background: url("../image/m-chat-video-close.png") no-repeat center / 18px
        18px;
    cursor: pointer;
}

.m-video-plus-iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.m-chat-file {
    display: block;
    height: 20px;
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 20px 20px;
    padding-left: 25px !important;
    font-size: 12px;
    color: #222 !important;
}

.m-chat-item .m-chat-file {
    height: 40px;
    background-size: 40px 40px;
    padding-left: 45px !important;
}

.m-chat-file-doc,
.m-chat-file-docx {
    background-image: url("../image/icon-doc.png");
}

.m-chat-file-xls,
.m-chat-file-xlsx {
    background-image: url("../image/icon-xls.png");
}

.m-chat-file-rar {
    background-image: url("../image/icon-rar.png");
}

.m-chat-file-pdf {
    background-image: url("../image/icon-pdf.png");
}

.m-chat-btn-detail {
    z-index: 1000;
    right:19px;
    bottom: 360px;
    width: 62px;
    border-radius: 6px;
    background-color: #222;
}
  
@media (max-width: 980px) {
    .m-chat-wrap {
        width: 100%;
        height: 100%;
        z-index: 1000;
        right: 0;
        bottom: 0;
    }
    .m-private-chat {
        width: 100%;
        height: 100%;
        top: 0 !important;
        left: 0 !important;
        z-index: 1002;
    }
    .m-private-chat-msg-wrap {
        height: calc(100% - 106px);
    }

    .m-chat-btn.new:after {
        top: 8px;
        right: 2px;
    }

    .m-chat-btn {
        background-color: rgba(34, 34, 34, 0.9);
        backdrop-filter: blur(10px);
        right: 18px;
        bottom: 80px;
        height: 46px;
        width: 41px;
        z-index: 1002;
    }

    .m-chat-btn-detail{
        bottom: 320px;
        right: 20px;
      }
    
    .m-chat-msg-box {
        z-index: 1001;
        right: 18px;
        bottom: 128px;
        max-height: 72vh;
        overflow: auto;
    }

    .m-chat-msg-box-item {
        width: 41px;
        height: 41px;
    }

    .m-chat-msg-box-item p {
        display: none;
    }

    .m-chat-btn p {
        display: none;
    }
    .m-chat-btn img {
        margin: 2px 0 2px;
    }

    .mBigImg img {
        max-width: 70vw;
    }

    .m-video-plus-wrap {
        z-index: 1001;
        width: 100vw;
        height: 75vw;
        margin-left: 0;
        margin-top: -35vw;
        left: 0;
    }

    .m-chat-footer-input-wrap {
        width: calc(100vw - 80px);
    }

    .m-private-chat,
    .m-chat-wrap {
        border: none;
    }

    .m-chat-footer-input-txt {
        width: calc(100% - 36px);
    }

    .m-chat-wrap .w-e-menu .w-e-panel-container,
    .m-private-chat .w-e-menu .w-e-panel-container {
        width: 100vw !important;
        z-index: 1003;
    }
}

.fixed {
    position: fixed;
    top: 0;
    left: 0;
}
