:root {
    --live-chat-txt-bg-color-base-4: #ffffff;
    --backgroundColor: #ffffff;
    --color: #3E3F42;
    --live-chat-normal-color-12: #3D4A59;
}
[data-theme="dark"] {
    --live-chat-txt-bg-color-base-4: #3c3c3c;
    --live-chat-normal-color-12:  #ffffff;
}
body {
    font-family: 'SF Pro', 'Roboto', 'PingFang SC', 'Noto Sans CJK SC', sans-serif;
    background-color: transparent;
}
#ys-live-chat {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'SF Pro', 'Roboto', 'PingFang SC', 'Noto Sans CJK SC', sans-serif;
}

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
    background-color: transparent
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0);
    background-color: transparent
}

::-webkit-scrollbar-thumb {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0);
    background-color: #D5D5D5;
    border-radius: 5px
}


.ys-chat-warp {
    position: fixed;
    left:50%;
    top:50%;
    border-radius: 0px 0px 12px 12px;
    transform:translate(-50%,-50%);
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    width: 360px;
    height: 580px;
    border-radius: 12px;
    background-color: #fff;
    margin: 0 auto;
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.04), 0px 6px 12px 12px rgba(0, 0, 0, 0.04), 0px 6px 10px 0px rgba(0, 0, 0, 0.08);
}

.ant-dropdown {
    z-index: 99 !important;
    /* background-color: var(--live-chat-txt-bg-color-base-4);  */
}
.ant-dropdown-menu {
    padding: 0;
    background-color: var(--live-chat-txt-bg-color-base-4);
    color: var(--live-chat-normal-color-12)
}
.ant-dropdown-menu .ant-dropdown-menu-item {
    display: flex;
    align-items: center;
    color: var(--live-chat-normal-color-12);
    padding: 7px 12px;
}
.ant-dropdown-menu .ant-dropdown-menu-item:hover {
    background: var(--live-chat-hover-color-31);
}
.ant-dropdown-menu .ant-dropdown-menu-item .ant-switch-checked {
    background-color: var(--live-chat-switch-color-13) !important;
}
.ant-modal-content {
    background-color: var(--live-chat-txt-bg-color-base-4);
}
.ant-modal-confirm-title,
.ant-modal-confirm-content {
    color: var(--live-chat-normal-color-12);
}
.ant-btn.ant-btn-danger {
    background-color: #06AEFF !important;
    border-color: #06AEFF !important
}
.header-content {
    width: 100%;
    display: flex;
    align-items: center;
}
.header-content .content-left {
    display: flex;
}
.content-middle {
    width: 230px;
    text-align: center;
    flex: 1;
}
.content-middle .common-ellipsis {
    background-color: var(--live-chat-theme-color);
    color: var(--live-chat-icon-txt-color-3);
    font-weight: 500;
}
.content-middle .common-ellipsis span {
    color: var(--live-chat-icon-txt-color-3);
}
.content-right{
    line-height: 100%;
}
.default-avatar-wrap  {
    position: relative;
    display: inline-block;
}
.default-avatar {
    display: inline-block;
    vertical-align: middle;
    width: 36px;
    height: 36px;
    border-radius: 100%;
    overflow: hidden;
    margin-right: 12px;
    /* background-color: #fff; */
    text-align: center;
}
.agent-status-on {
    width: 12px;
    height: 12px;
    background: #1EBA62;
    position: absolute;
    border: 2px solid #fff;
    position: absolute;
    z-index: 8;
    bottom: -1px;
    right: 11px;
    border-radius: 100%;
}
.dark .agent-status-on,
.dark .agent-status-off {
    border-color: #2C2C2C;
}
.agent-status-off {
    width: 12px;
    height: 12px;
    background: #A4A8BA;
    border: 2px solid var(--live-chat-bg-color-2);
    position: absolute;
    z-index: 8;
    bottom: 0px;
    right: 12px;
    border-radius: 100%;
}
.default-avatar img {
    width: 100%;
    height: 100%;
    vertical-align: initial;
    object-fit: contain;
}
.default-name {
    display: inline-block;
    vertical-align: middle;
    font-size: 14px;
    font-style: normal;
    font-weight: 510;
    color: #fff;
    margin: 0;
    padding: 0;
}
.emojis-warp {
    padding: 8px;
    margin-bottom: 10px;
}
.emojis {
    box-sizing: border-box;
    height: 165px;
    width: 100%;
    overflow-y: auto;
    padding: 0;
    margin-bottom: 0px;
    white-space: pre-line;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
}
.emojis .emojis-item {
    list-style: none;
    font-size: 18px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    border: 1px solid transparent;
    user-select: none;
    color: #3D4A59;
}
.emojis .emojis-item:hover {
    border: 1px solid #eaeaea;
}
.emoji-content-popver {
    padding: 0;

    /* :global {

    } */
}
.ant-popover-inner-content {
    width: 340px;
    padding: 0;
    color: #fff;
}

/* .ant-popover-arrow {
    display: none;
} */

.ant-popover-content {
    transform: translateX(-10px);
}
.dataLoading {
    text-align: center;
    padding: 8px 0;
    color: #0081cc;
}
.ms-content-image {
    width: 100%;
    max-width: 200px;
}
.ms-content-image img {
    width: 100%;
}
.messageContentItem {
    display: flex;
    align-items: center;
}
.message-file-wrap {
    width: 200px;
    height: 64px;
}
.message-file-Icon .ys-icon{
    font-size: 40px;
    margin-right: 10px;
}
.messageContentFile .fileName {
    font-size: 14px;
    font-style: normal;
    font-weight: 590;
    line-height: 22px;
}
.fileSize {
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}
.message-time-line {
    text-align: center;
    margin-bottom: 16px;
    height: 18px;
    line-height: 18px;
}
.message-time-line .message-time {
    color: var(--live-chat-description-color-11);
    font-size:12px;
}

.close-sesssion-tip {
    width: 279px;
    color: var(--live-chat-auxiliary-color-10);
    text-align: center;
    margin: auto;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    border-radius: 2px;
    background: var(--live-chat-border-bottom-color-7);
    padding: 2px 8px;
}

/* .first-privacy-content-wrap > p{
    display: block;
    color: #3D4A59;
    font-feature-settings: 'clig' off, 'liga' off;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    border-radius: 8px;
    max-height: 192px;
    overflow-y: auto;
    background-color: transparent;
    margin-bottom: 0;
    border-radius: 0;
    word-break: break-word;
} */
.message-input-error {
    border: 1px solid #E6492D;
}
.message-input-max-len {
    width: 284px;
    margin-top: 2px;
    color: #E6492D;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
}
.ys-alert {
    position: fixed !important;
    top: 60px;
    width: 100%;
}
.ys-header-avatar-background {
    background-color: #ffffff;
}
.agent-avatar_info {
    width: 36px;
    height: 36px;
    line-height: 36px;
}
.default-avatar.ys-header-avatar-size,
.agent-avatar_info.ys-header-avatar-size {
    width: 32px;
    height: 32px;
}
.sending-rotate-animation{
    animation-name: rotate;
    animation-duration: 1s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    color: var(--live-chat-icon-txt-color-3);
}
.sending-icon{
    margin: 0 8px;
    display: flex;
    align-items: center;
    cursor: 'pointer',
}
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
