/* 店铺前台 · 在线客服悬浮按钮与面板 */
.acg-cs-wrap{position:fixed;right:22px;bottom:26px;z-index:2147483000;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}

.acg-cs-btn{
    position:relative;width:64px;height:64px;border-radius:20px;
    background:linear-gradient(145deg,#8b5cf6,#6d28d9);
    box-shadow:0 14px 30px rgba(109,40,217,.35),inset 0 1px 0 rgba(255,255,255,.35);
    border:none;cursor:pointer;color:#fff;display:flex;flex-direction:column;
    align-items:center;justify-content:center;gap:2px;
    transition:transform .18s ease,box-shadow .18s ease;padding:0;
}
.acg-cs-btn:hover{transform:translateY(-2px);box-shadow:0 18px 36px rgba(109,40,217,.45)}
.acg-cs-btn:active{transform:translateY(0)}
.acg-cs-btn svg{width:22px;height:22px;display:block}
.acg-cs-btn span{font-size:12px;font-weight:700;letter-spacing:.5px;line-height:1}
.acg-cs-dot{position:absolute;right:6px;bottom:8px;width:12px;height:12px;border-radius:50%;
    background:#22c55e;border:2px solid #fff;box-shadow:0 0 0 2px rgba(34,197,94,.25)}

/* 面板 */
.acg-cs-panel{
    position:absolute;right:0;bottom:78px;width:344px;max-width:calc(100vw - 32px);
    background:#fff;border-radius:18px;overflow:hidden;
    box-shadow:0 24px 60px rgba(15,23,42,.28);border:1px solid rgba(15,23,42,.06);
    opacity:0;transform:translateY(12px) scale(.98);transform-origin:100% 100%;
    pointer-events:none;transition:opacity .2s ease,transform .2s ease;
    color:#0f172a;text-align:left;
}
.acg-cs-panel.open{opacity:1;transform:none;pointer-events:auto}

.acg-cs-head{display:flex;align-items:center;gap:10px;padding:14px 16px;
    background:linear-gradient(135deg,#7c3aed,#9333ea);color:#fff}
.acg-cs-head .ico{width:34px;height:34px;border-radius:10px;background:rgba(255,255,255,.18);
    display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.acg-cs-head .ico svg{width:18px;height:18px}
.acg-cs-head .meta{flex:1;min-width:0}
.acg-cs-head b{display:block;font-size:14px;font-weight:800;letter-spacing:.4px;line-height:1.2}
.acg-cs-head em{display:block;font-style:normal;font-size:11px;opacity:.9;margin-top:2px}
.acg-cs-close{background:transparent;border:none;color:#fff;opacity:.85;cursor:pointer;font-size:20px;line-height:1;padding:4px}
.acg-cs-close:hover{opacity:1}

.acg-cs-body{padding:16px;max-height:min(66vh,460px);overflow:auto}
.acg-cs-welcome{font-size:14px;font-weight:700;color:#111827;line-height:1.6;margin:0 0 14px}

.acg-cs-qr{background:#f8f7ff;border:1px solid #e9e5ff;border-radius:14px;padding:14px;text-align:center}
.acg-cs-qr img{width:180px;height:180px;object-fit:contain;background:#fff;border-radius:10px;display:block;margin:0 auto;
    box-shadow:0 6px 18px rgba(109,40,217,.12)}
.acg-cs-qr p{margin:10px 0 0;font-size:12px;color:#6b7280}

.acg-cs-row{display:flex;align-items:center;gap:10px;padding:11px 12px;margin-top:10px;
    background:#f6f5ff;border:1px solid #e9e5ff;border-radius:12px}
.acg-cs-row .k{font-size:12px;color:#6b7280;flex:0 0 auto}
.acg-cs-row .v{font-size:13px;font-weight:700;color:#4c1d95;word-break:break-all;flex:1;min-width:0}
.acg-cs-copy{background:#ede9fe;border:none;color:#6d28d9;font-size:12px;font-weight:700;
    padding:6px 11px;border-radius:8px;cursor:pointer;flex:0 0 auto}
.acg-cs-copy:hover{background:#ddd6fe}

.acg-cs-time{margin-top:12px;font-size:12px;color:#6b7280;display:flex;align-items:center;gap:6px}
.acg-cs-tip{margin:0;padding:12px 16px;background:#faf9ff;border-top:1px solid #eee9ff;
    font-size:11px;color:#8b8b9c;line-height:1.6;text-align:center}

@media (max-width:640px){
    /* 手机上店铺前台底部有固定导航栏，客服按钮要抬到导航栏上方，避免挡住「订单」等入口 */
    .acg-cs-wrap{right:14px;bottom:calc(96px + env(safe-area-inset-bottom,0px))}
    .acg-cs-btn{width:58px;height:58px;border-radius:18px}
    .acg-cs-panel{position:fixed;right:12px;left:12px;bottom:calc(174px + env(safe-area-inset-bottom,0px));width:auto}
    .acg-cs-body{max-height:52vh}
}
