/* ============================================================
 * cartTour.css — 购物车分步引导教程（高亮遮罩 + 气泡）
 * 步骤：左右滑动看包邮 / 同仓推荐拼包邮 / 优惠券与券说明
 * ============================================================ */
#cart-tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: none;
}
#cart-tour-overlay.show {
    display: block;
}

#cart-tour-overlay .ct-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

/* 克隆的高亮目标：由 JS 内联定位（position:fixed + left/top/width/height + 白底） */
#cart-tour-overlay .ct-clone {
    pointer-events: none !important;
    background: #fff !important;
    border-radius: 0.2rem !important;
}
/* 提交订单按钮点亮为蓝色，模拟真实按钮效果 */
#cart-tour-overlay .ct-clone.ct-checkout-clone {
    background: #1976d2 !important;
    color: #fff !important;
    border: 1px solid #1976d2 !important;
}
/* 分类按钮高亮：白底、无描边 */
#cart-tour-overlay .ct-clone.ct-category-clone {
    background: #fff !important;
    border: none !important;
    box-shadow: 0 0.02rem 0.1rem rgba(25, 118, 210, 0.25) !important;
}

#cart-tour-overlay .ct-tip {
    position: fixed;
    z-index: 20002;
    left: 50%;
    transform: translateX(-50%);
    width: 6.4rem;
    max-width: 92vw;
    background: #fff;
    border-radius: 0.22rem;
    padding: 0.34rem 0.36rem 0.28rem;
    box-shadow: 0 0.1rem 0.5rem rgba(0, 0, 0, 0.28);
    text-align: left;
    color: #333;
    box-sizing: border-box;
}
#cart-tour-overlay .ct-tip-title {
    font-size: 0.37rem;
    font-weight: 700;
    color: #1976d2;
    margin-bottom: 0.16rem;
}
#cart-tour-overlay .ct-tip-text {
    font-size: 0.31rem;
    line-height: 1.62;
    color: #555;
    word-break: break-word;
}
#cart-tour-overlay .ct-tip-foot {
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#cart-tour-overlay .ct-tip-step {
    font-size: 0.26rem;
    color: #aaa;
}
#cart-tour-overlay .ct-tip-next {
    border: none;
    background: #1976d2;
    color: #fff;
    font-size: 0.3rem;
    padding: 0.18rem 0.56rem;
    border-radius: 999px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
#cart-tour-overlay .ct-tip-next:active {
    opacity: 0.82;
}

#cart-tour-overlay .ct-skip {
    position: fixed;
    z-index: 20003;
    top: calc(0.3rem + env(safe-area-inset-top, 0px));
    right: 0.3rem;
    border: none;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.28rem;
    padding: 0.14rem 0.4rem;
    border-radius: 999px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
#cart-tour-overlay .ct-skip:active {
    background: rgba(255, 255, 255, 0.4);
}

/* 自动示范模式：隐藏所有教程 UI（遮罩/高亮/气泡/跳过），露出真实页面观看自动操作 */
#cart-tour-overlay.ct-demo .ct-mask,
#cart-tour-overlay.ct-demo .ct-clone,
#cart-tour-overlay.ct-demo .ct-tip,
#cart-tour-overlay.ct-demo .ct-skip {
    display: none;
}

/* ===== 「使用教程」入口按钮（三点图标，列表头部最右） ===== */
.cart-list-header .cart-tour-btn {
    margin-left: auto;
    margin-top: 0.12rem;
    margin-right: 0.2rem;
    border: none;
    background: transparent;
    color: rgb(153, 153, 153);
    padding: 0.12rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
    line-height: 0;
    outline: none;
}
.cart-list-header .cart-tour-btn:active {
    background: rgba(0, 0, 0, 0.05);
}
