

/* @font-face {

    font-family: "askana";

    src: url(../fonts/coopbold.otf);

    font-weight: bold;

}

@font-face {

    font-family: "askana";

    src: url(../fonts/coopheavy.otf);

    font-weight: normal;

}

@font-face {

    font-family: "askana";

    src: url(../fonts/cooplight.otf);

    font-weight: lighter;

} */

* {

    box-sizing: border-box;

    font-family: "mr-eaves-modern","mr-eaves-sans",BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";

}



body {

    background-color: #edeff2;

    font-family:"mr-eaves-modern","mr-eaves-sans",BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji", sans-serif;

}



html, body {

    -webkit-overflow-scrolling: touch;

    overscroll-behavior: none; /* 这是关键属性 */

}

.chat_window {

    position: absolute;

    width: 100%;

    max-width: 800px;

    height: 100%;

    /* border-radius: 10px; */

    background-color: #fff;

    left: 50%;

    top: 50%;

    transform: translateX(-50%) translateY(-50%);

    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);

    background-color: #ededed;

    overflow: hidden;

}



.chat_window .top_menu {

    background-color: #ee2737;

    width: 100%;

    padding: 10px 0 7px;

    padding-top:20;

    padding-top:safe-area-inset-top;

    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);

    color:#fff;

    position: relative;

}

.chat_window .top_menu .buttons {

    margin: 3px 0 0 20px;

    position: absolute;

    top:50%;

    transform: translateY(-50%);

}

.chat_window .top_menu .buttons .button {

    width: 16px;

    height: 16px;

    border-radius: 50%;

    display: inline-block;

    margin-right: 10px;

    position: relative;

}

.chat_window .top_menu .buttons .button.close {

    background-color: #f5886e;

}

.chat_window .top_menu .buttons .button.minimize {

    background-color: #231f20;

}

.chat_window .top_menu .buttons .button.maximize {

    background-color: #00ecb9;

}

.chat_window .top_menu .title {

    text-align: center;

    color: #777;

}

.chat_window .top_menu .title img{

    width: 100px;

}

.chat_window .chat_messages {

    position: relative;

    list-style: none;

    padding: 20px 10px 0 10px;

    margin: 0;

    height: calc(100% - 162px);

    overflow: scroll;

}

.chat_messages .message {

    clear: both;

    overflow: hidden;

    margin-bottom: 20px;

    transition: all 0.5s linear;

    opacity: 0;

}

.chat_messages .message.left .avatar {

    /* background-color: #00ecb9; */

    background-image: url(../img/crops/2-1.png);

    float: left;

}



.chat_messages .message.left .avatar::after {

    /* content: 'AI'; */

    display: inline-block;

    color: #000;

    width: 100%;

    text-align: center;

    height: 100%;

    font-size: 1.6em;

    line-height: 60px;

}

.chat_messages .message.left .text_wrapper {

    background-color: #edf5f5;

    margin-left: 10px;

}

.chat_messages .message.left .text_wrapper::after,

.chat_messages .message.left .text_wrapper::before {

    right: 100%;

    border-right-color: #edf5f5;

}

.chat_messages .message.left .text {

    color: #000;

}

.chat_messages .message .footer{

    display: none;

}

.chat_messages .message.left .footer{

    margin-top:10px;

    padding: 10px 0px 5px;

    border-top: 1px solid #fff;

    color:#00ecb9;

    /* display: block; */

}



.chat_messages .message.left .footer .icon{

    height: 20px;

    margin: 5px 10px;

}

.fl{

    float: left;

}

.fr{

    float: right;

}

.trace {

    font-size: 18px;

    cursor: pointer;

}

.chat_messages .message.left .footer::after{

    content: '';

    clear: both;

}

.chat_messages .message.right .avatar {

    /* background-color: #231f20; */

    background-image: url(../img/crops/1.png);

    float: right;

}

.chat_messages .message.right .avatar::after {

    content: '';

    display: inline-block;

    color: #fff;

    width: 100%;

    text-align: center;

    height: 100%;

    font-size: 1.6em;

    line-height: 60px;

}

.chat_messages .message.right .text_wrapper {

    background-color: #64CCC9;

    margin-right: 10px;

    float: right;

}

.chat_messages .message.right .text_wrapper::after,

.chat_messages .message.right .text_wrapper::before {

    left: 100%;

    border-left-color: #64CCC9;

}

.chat_messages .message.right .text {

    color: #fff;

}

.chat_messages .message.appeared {

    opacity: 1;

}

.chat_messages .message .avatar {

    width: 50px;

    height: 50px;

    display: inline-block;

    background: no-repeat center;

    background-size: contain;

}

.chat_messages .message .text_wrapper {

    display: inline-block;

    padding: 12px;

    border-radius: 14px;

    width: calc(100% - 120px);

    min-width: 100px;

    position: relative;

}

.chat_messages .message .text_wrapper::after,

.chat_messages .message .text_wrapper:before {

    top: 18px;

    border: solid transparent;

    content: " ";

    height: 0;

    width: 0;

    position: absolute;

    pointer-events: none;

}

.chat_messages .message .text_wrapper::after {

    border-width: 7px;

    margin-top: 0px;

}

.chat_messages .message .text_wrapper::before {

    border-width: 8px;

    margin-top: -2px;

}

.chat_messages .message .text_wrapper .text {

    font-size: 22px;

    font-weight: 300;

}



.chat_window .bottom_wrapper {

    position: relative;

    width: 100%;

    background-color: #F2CD00;

    padding: 10px 15px 40px;

    position: absolute;

    bottom: 0;

}

.chat_window .bottom_wrapper .message_input_wrapper {

    display: inline-block;

    height: 40px;

    border-radius: 5px;

    border: 1px solid #bcbdc0;

    width: calc(100% - 160px);

    position: relative;

    padding: 0;

    background-color: #fff;

}

.chat_window .bottom_wrapper .message_input_wrapper .message_input {

    border: none;

    height: 100%;

    box-sizing: border-box;

    width: 100%;

    position: absolute;

    outline-width: 0;

    color: gray;

    font-size: 20px;
    padding: 0 10px;

}

.chat_window .bottom_wrapper .send_message {

    width: 90px;

    height: 40px;

    display: inline-block;

    border-radius: 5px;

    background-color: #ee2737;

    border: 1px solid #ee2737 ;

    color: #fff;

    cursor: pointer;

    transition: all 0.2s linear;

    text-align: center;

    float: right;

}

/* .chat_window .bottom_wrapper .send_message:hover {

    color: #00ecb9;

    background-color: #fff;

} */

.chat_window .bottom_wrapper .send_message .text {

    font-size: 26px;

    font-weight: bold;

    display: inline-block;

    line-height: 38px;

    letter-spacing: 3px;

}



.message_template {

    display: none;

}

.chat_window .top_menu .buttons .btnback{

    border: 2px solid;

    border-top-width: 0;

    border-right-width: 0;

    transform: rotate(45deg);

    border-radius: 0;

}



.chat_messages .loadingmessage .text_wrapper{

    width: auto;min-width: none;

}

.loadingmessage .dot{

    display: inline-block;

    width: 15px;

    height: 15px;

    background-color: gray;

    margin: 0px 6px;

    border-radius: 20px;

}

.loadingmessage .dot.act{

    background-color: #00ecb9;

}

.chat_messages .message.left .text .tipi{

    font-weight: bold;

    padding: 0 10px;

    display: inline-block;

    font-style: normal;

    color:#00ecb9;

    font-size: 18px;

}

.btn_language{
    width: 60px;
    margin: 0 2px;
    padding-left: 5px;
    display: inline-block;
    height: 40px;
    vertical-align: top;
    line-height: 37px;
    text-align: left;
    font-size: 1.2em;
    background: #edf5f5;
    border-radius: 5px;
    border: 1px solid #bcbdc0;
}
.btn_language .btn-icon{
    width: 26px;
    height: 26px;
    display: inline-block;
    vertical-align: middle;
    background-size: cover;
    background-repeat: no-repeat;
    border: 1px solid #64ccc9;
    border-radius: 50%;
    
}
.btn_language .btn-arr{
    width: 17px;
    height: 17px;
    background-color: #64ccc9;
    display: inline-block;
    border-radius: 10px;
    vertical-align: middle;
    position: relative;
}
.btn_language .btn-arr::before{
    content: '';
    position: absolute;
    top: 6px;
    left: 5px;
    width: 7px;
    height: 7px;
    border: 2px solid #fff;
    border-right-width: 0;
    border-bottom-width: 0;
    transform: rotate(45deg);
}
.language-list li{
    padding: 5px;
    margin: 5px;
    cursor: pointer;
    /* border-bottom: 1px solid #ccc; */
    font-size: 14px;
    display: flex;
    align-items: center;
    border-radius: 50px;
    
}

.language-list li span{
    width: 111px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.language-list li.active{
    background-color: #64ccc9;
    color: #fff;
}
#mode_language{
    background-color: transparent;
}
#mode_language .content{    
    position: absolute;
    bottom: 110px;
    right: 80px;
    width: 167px;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    background-color: #edf5f5; 
    padding: 12px 0;
}
/* .mode_arr{
    position: absolute;
    bottom: 4px;
    right: 45px;
    width: 10px;
    height: 10px;
    border: 2px solid #000;
    border-left-width:0;
    border-top-width: 0;
    transform: rotate(45deg);
} */
.mode_scroll{
    position: relative;
    max-height: 235px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* #mode_language .content::before{
    content: '';
    position: absolute;
    top: 4px;
    right: 45px;
    width: 10px;
    height: 10px;
    border: 2px solid #000;
    border-right-width:0;
    border-bottom-width: 0;
    transform: rotate(45deg);
    
} */
#mode_language .content.hidearr::before{
    display: none;
}
#mode_language .content::after{
    content: '';
    position: absolute;
    border: 10px solid transparent;
    border-left-width: 8px;
    border-right-width: 8px;
    border-top-color: #edf5f5;
    transform: translate(100%, 10px);
}
#mode_language .content .language-list{
    padding: 0;
    margin: 0;
    list-style: none;
}

.icon-flag{
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 5px;
    display: inline-block;
    background-size: cover;
    background-repeat: no-repeat;
    border:1px solid #64ccc9;
    border-radius: 50%;
    /* object-fit: cover; */
}

.language-list li.active .icon-flag{
    border-color: #fff;
}