/* 新在线客服入口卡片 */
.new-online-box{
    box-sizing: border-box;
    width: 100%;
    padding: 18px 36px;
    background: url(/webapp/common/page/image/online-bg.png) no-repeat center / cover,
        linear-gradient(225deg, #b2d6ff 0%, #d4e9ff 28%, #eaf4ff 62%, #eff7ff 100%);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(88, 140, 220, 0.12);
}
.new-online-box__hd{
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}
.new-online-box__icon{
    width: 56px;
    height: 56px;
    margin-right: 12px;
    flex-shrink: 0;
    object-fit: contain;
}
.new-online-box__text{
    min-width: 0;
    line-height: 1.35;
    margin-left: 20px;
}
.new-online-box__title{
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #3f3f3f;
    font-family: initial;
}
.new-online-box__subtitle{
    margin: 2px 0 0;
    font-size: 16px;
    font-weight: 700;
    color: #2f7bff;
    font-family: initial;
}
.new-online-box__desc{
    margin: 10px 0 0;
    font-size: 12px;
    font-weight: 400;
    color: #9aa0a6;
    text-align: center;
}
.new-online-box__btn{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    border-radius: 6px;
    background: linear-gradient(270deg, #7b5cff 0%, #2f8fff 100%);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(80, 120, 255, 0.28);
}
.new-online-box__btn:hover,
.new-online-box__btn:focus{
    color: #fff !important;
    opacity: 0.92;
    text-decoration: none !important;
}
.new-online-box__arrow{
    margin-left: 2px;
    font-size: 12px;
    line-height: 1;
    margin-top: -6px;
    transform: scale(0.8);
}

/**
 * 新在线客服右侧侧边栏
 * @author waylon
 * @date 2026-07-27
 */
.new-online-side-mask {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.new-online-side-mask.is-open {
    opacity: 1;
    visibility: visible;
}

.new-online-side-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10051;
    display: flex;
    flex-direction: column;
    width: 600px;
    max-width: 100%;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.25s ease;
}

.new-online-side-panel.is-open {
    transform: translateX(0);
}

.new-online-side-panel__hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid #e8ecf0;
}

.new-online-side-panel__title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.new-online-side-panel__close {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #666;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.new-online-side-panel__close:hover {
    color: #222;
}

.new-online-side-panel__bd {
    flex: 1;
    min-height: 0;
}

.new-online-side-panel__iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

body.new-online-side-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .new-online-side-panel {
        width: 100%;
    }
}
