.elementor-21 .elementor-element.elementor-element-5f9648e0{--display:flex;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-widget-text-editor{font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );color:var( --e-global-color-text );}.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:var( --e-global-color-primary );}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap, .elementor-widget-text-editor.elementor-drop-cap-view-default .elementor-drop-cap{color:var( --e-global-color-primary );border-color:var( --e-global-color-primary );}.elementor-21 .elementor-element.elementor-element-afd75ec a:hover, .elementor-21 .elementor-element.elementor-element-afd75ec a:focus{color:#FF6565;}/* Start custom CSS for text-editor, class: .elementor-element-afd75ec *//* =========================================
   1. 全局布局与背景 (电脑端基础)
   ========================================= */

/* 页面背景色：浅灰，突出卡片 */
.woocommerce-cart {
    background-color: #f7f8fa;
}

/* 主容器布局：Flex 左右排版 */
.woocommerce-cart .woocommerce {
    max-width: 1600px;
    display: flex;
    flex-wrap: wrap;
}

/* 左侧商品列表容器 */
.woocommerce-cart .woocommerce-cart-form {
    flex: 1 1 70%; /* 占比 60% */
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    margin-right: 20px;
}

/* 右侧总计容器 */
.woocommerce-cart .cart-collaterals {
    flex: 1 1 20%; /* 占比 30% */
    min-width: 300px;
    
}

/* =========================================
   2. 商品列表美化 (去表格化)
   ========================================= */

.woocommerce-cart table.shop_table {
    border: none !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

/* 表头：大写灰色 */
.woocommerce-cart table.shop_table th {
    background: transparent !important;
    color: #999;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #f0f0f0;
    padding: 15px;
    font-weight: 600;
}

/* 表格行样式 */
.woocommerce-cart table.shop_table td {
    border-top: none !important;
    border-bottom: 1px solid #f9f9f9 !important;
    padding: 25px 10px !important;
    background-color: transparent !important;
    vertical-align: middle;
}



/* 商品标题 */
.woocommerce-cart table.shop_table .product-name a {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    display: block;
}

/* 数量输入框 */
.woocommerce-cart table.shop_table .quantity .qty {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px;
    color: #333;
    font-weight: 600;
    width: 60px;
    text-align: center;
}

/* 删除图标 (x)：红色圆形 */
.woocommerce-cart table.shop_table .product-remove a.remove {
    color: #ff4d4f !important;
    border: 1px solid #ffdada;
    background: #fff5f5;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    line-height: 26px;
    font-size: 16px;
    display: block;
    margin: 0 auto;
    transition: all 0.3s;
}
.woocommerce-cart table.shop_table .product-remove a.remove:hover {
    background: #ff4d4f !important;
    color: #fff !important;
    border-color: #ff4d4f;
}

/* =========================================
   3. 底部操作栏 (优惠券 & 更新按钮)
   ========================================= */

/* 去掉操作栏的线条 */
.woocommerce-cart table.shop_table tr:last-child td.actions {
    border-bottom: none !important;
    padding-top: 30px !important;
}

/* 优惠券区域布局 */
.woocommerce-cart td.actions .coupon {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 输入框样式 */
.woocommerce-cart .coupon input.input-text {
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    width: 150px !important;
        font-size: 14px !important;
    background: #fcfcfc;
    min-height: 45px; /* 统一高度 */
}

/* 按钮通用样式 */
.woocommerce-cart .button {
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 12px 24px !important;
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 次级按钮 (优惠券/更新) */
.woocommerce-cart button[name="apply_coupon"], 
.woocommerce-cart button[name="update_cart"] {
    background: #fff !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
}
.woocommerce-cart button[name="apply_coupon"]:hover, 
.woocommerce-cart button[name="update_cart"]:hover {
    background: #f5f5f5 !important;
    border-color: #999 !important;
}

/* =========================================
   4. 右侧悬浮结算栏 (Sticky Sidebar)
   ========================================= */

.woocommerce-cart .cart_totals {
    background: #fff;
    padding-top: 10px !important;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid #eff0f2 !important
    /* 核心悬浮代码 */
    position: sticky;
    top: 30px; 
    width: 100% !important;
    float: none !important;
}

/* 总计标题 */
.woocommerce-cart .cart_totals h2 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 10px !important;
    border-bottom: 1px !important;
    color: #222;
    background-color: #fff !important;
}

/* 总计表格内部 */
.woocommerce-cart .cart_totals table.shop_table {
    border: none;
    width: 100%;
}
.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
    padding: 15px 0 !important;
    text-align: right;
}
.woocommerce-cart .cart_totals table.shop_table th {
    text-align: left;
    font-weight: normal;
}
.woocommerce-cart .cart_totals table.shop_table tr.order-total th,
.woocommerce-cart .cart_totals table.shop_table tr.order-total td {
    border-bottom: none !important;
    padding-top: 20px !important;
    color: #FF1A1A;
    font-size: 20px;
    font-weight: bold;
}

/* 结账按钮 (CTA) */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background: #2563eb !important; /* 如果想换色，改这里，例如 #000 */
    color: #fff !important;
    font-size: 16px;
    padding: 18px 0;
    margin-top: 15px;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    display: block;
    text-align: center;
    transition: all 0.2s;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: #1d4ed8 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

/* =========================================
   5. 手机端深度适配 (卡片化模式)
   ========================================= */
@media (max-width: 1024px) {
    .woocommerce-cart .woocommerce-cart-form,
    .woocommerce-cart .cart-collaterals {
        flex: 1 1 100%;
        padding: 20px 15px; /* 稍微缩小内边距 */
        border:none;
    }



    /* 隐藏表头 */
    .woocommerce-cart table.shop_table thead {
        display: none;
    }

    /* 单个商品卡片 */
    .woocommerce-cart table.shop_table tr.cart_item {
        background: #fff;
        border: 1px solid #eee;
        border-radius: 12px;
        padding: 15px;
        padding-top: 35px; /* 留出顶部空间给删除按钮 */
        position: relative;
   
    }

    /* 删除按钮定位到卡片右上角 */
    .woocommerce-cart table.shop_table td.product-remove {
        position: absolute;
        top: 10px;
        right: 10px;
        width: auto !important;
        padding: 0 !important;
        border: none !important;
    }
    .woocommerce-cart table.shop_table .product-remove a.remove {
        margin: 0;
        background: #f5f5f5;
        border-color: #eee;
        color: #999 !important;
    }

    /* 图片居中显示 */
    .woocommerce-cart table.shop_table td.product-thumbnail {
        display: block !important;
        text-align: center !important;
        border: none !important;
        padding-bottom: 10px !important;
    }


    /* 标题居中 */
    .woocommerce-cart table.shop_table td.product-name {
        padding-bottom: 12px !important;
        border-bottom: 1px solid #f5f5f5 !important;
    }

    /* 价格、数量、小计：弹性布局左右对齐 */
    .woocommerce-cart table.shop_table td.product-price,
    .woocommerce-cart table.shop_table td.product-quantity,
    .woocommerce-cart table.shop_table td.product-subtotal {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0 !important;
        border-bottom: 1px dashed #eee !important;
        font-size: 14px;
    }




    /* 手机端取消悬浮 (避免遮挡) */
    .woocommerce-cart .cart_totals {
        position: static !important;
    }
}

/* ===== 只去掉 cart-collaterals / cart_totals 的外边框 ===== */
.woocommerce-cart .cart-collaterals,
.woocommerce-cart .cart_totals {
    border: none !important;
border-radius: 12px !important;
}
/* =========================================
   手机端强制修复：优惠券与更新按钮宽度对齐
   ========================================= */
@media (max-width: 768px) {

    /* 1. 强制重置优惠券区域的容器宽度 */
    .woocommerce-cart td.actions .coupon {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important; /* 垂直排列 */
        gap: 15px !important; /* 控件之间的间距 */
    }

    /* 2. 同时选中：输入框、使用按钮、更新按钮 */
    .woocommerce-cart .coupon input.input-text,
    .woocommerce-cart button[name="apply_coupon"],
    .woocommerce-cart button[name="update_cart"] {
        
        /* 核心修复：强制占满 */
        width: 100% !important; 
        
        /* 核心修复：把内边距算在宽度里，防止撑大 */
        box-sizing: border-box !important; 
        
        /* 统一高度 */
        height: 50px !important; 
        line-height: 1.2 !important;
        
        /* 统一外边距 (去掉多余的左右margin) */
        margin: 0 !important;
        
        /* 确保显示为块级元素 */
        display: block !important;
        
        /* 统一圆角和字体大小 */
        border-radius: 8px !important;
        font-size: 14px !important;
    }

    /* 3. 特别针对“更新购物车”按钮的独立位置修正 */
    /* 因为它有时候不在 coupon 容器里，所以需要单独抓取 */
    .woocommerce-cart button[name="update_cart"] {
        margin-top: 15px !important; /* 与上面的按钮拉开距离 */
    }
}

/* =========================================
   修复：右侧结账栏出现“双重线条”的问题
   ========================================= */

/* 1. 先把所有可能的边框都清空 (核弹级清除) */
.woocommerce-cart .cart_totals table.shop_table,
.woocommerce-cart .cart_totals table.shop_table tr,
.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
    border: none !important;
    border-bottom: none !important;
    background: transparent !important; /* 防止背景色遮挡 */
}

/* 2. 重新只给单元格底部加一根虚线 */
.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
    border-bottom: 1px dashed #d9d9d9 !important; /* 统一的虚线 */
}

/* 备用方案：直接给标题加圆角 */
.woocommerce-cart .cart_totals h2 {
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
}

/* =========================================
   移动端 & iPad 深度适配 (垂直布局 + 边缘对齐)
   ========================================= */
/* 这里的 1024px 包含了 iPad 和大部分平板 */
@media (max-width: 1024px) {

    /* 1. 主容器：垂直排列，统一外边距 */
    .woocommerce-cart .woocommerce {
        display: flex !important;
        flex-direction: column !important; /* 强制上下排列 */
        gap: 20px !important; /* 上下两个大块之间的间距 */
    }

    /* 2. 核心对齐：让“上面的表单”和“下面的总计”外观属性完全一致 */
    .woocommerce-cart .woocommerce-cart-form,
    .woocommerce-cart .cart-collaterals .cart_totals {
        width: 100% !important;
        max-width: 100% !important;
        
        /* 关键：统一内边距，保证内容左右对齐 */
        padding: 20px !important; 
        
        margin: 0 !important;
        border-radius: 12px !important;
        box-sizing: border-box !important; /* 确保宽度计算包含边框 */
        
        /* 确保背景和阴影一致 */
        background: #fff !important;
    }

    /* 修复总计栏容器可能存在的额外间距 */
    .woocommerce-cart .cart-collaterals {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    
    .woocommerce-cart td.actions .coupon {
        width: 100% !important;
        padding-bottom: 10 !important;
    }

    /* 4. 输入框和三个按钮：整齐划一 */
    .woocommerce-cart .coupon input.input-text,
    .woocommerce-cart button[name="apply_coupon"],
    .woocommerce-cart button[name="update_cart"],
    .woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
        width: 100% !important;
        height: 8px !important; /* 统一高度 */
        margin: 0 0 6px 0 !important; /* 统一底部间距 */
        box-sizing: border-box !important;
        border-radius: 8px !important;
        display: block !important;
    }
    


    /* 5. 隐藏不必要的表格元素，只保留内容 */
    .woocommerce-cart table.shop_table, 
    .woocommerce-cart table.shop_table tbody, 
    .woocommerce-cart table.shop_table tr, 
    .woocommerce-cart table.shop_table td {
        display: block !important;
        width: 100% !important;
        box-shadow:none !important;
    }

    
    /* 6. 修复总计栏内部的边距，使其不贴边 */
    .woocommerce-cart .cart_totals table.shop_table th,
    .woocommerce-cart .cart_totals table.shop_table td {
        padding: 10px 0 !important; /* 上下留空 */
    }
}

/* =========================================
   修复补丁：手机/iPad端 产品名称强制左对齐
   ========================================= */
@media (max-width: 1024px) {
    .woocommerce-cart table.shop_table td.product-name {
        text-align: left !important;  /* 核心：改为左对齐 */
        padding-left: 0 !important;   /* 清除左侧缩进 */
        padding-bottom: 15px !important;
    }

    /* 同时确保里面的文字链接也是左对齐 */
    .woocommerce-cart table.shop_table td.product-name a {
        text-align: right !important;
        display: block; /* 占满一行 */
    }
}/* End custom CSS */