/*
    Theme Name: moban6
    Author: lr
    Description: Minimalist Ecommerce HTML Template
    Version: 1.0

*/



.header-logo-container {
    width: 100%;
    max-width: 260px;
    height: 60px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

/* 2. 图片处理：核心响应式逻辑 */
.responsive-logo {
    max-width: 100%;  /* 不超过容器宽度 */
    max-height: 100%; /* 不超过容器高度 */
    width: auto;      /* 保持比例 */
    height: auto;     /* 保持比例 */
    object-fit: contain; /* 确保图片完整显示在容器内 */
    display: block;
}

/* 3. 移动端适配 */
@media (max-width: 768px) {
    .header-logo-container {
        max-width: 180px; /* 手机端减小 Logo 宽度 */
        height: 40px;     /* 手机端减小高度 */
    }
}

@media (max-width: 480px) {
    .header-logo-container {
        max-width: 140px;
    }
}
/* 修复微型购物车图片显示不全及布局问题 */
.minicart-product-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.minicart-product-list li {
    display: flex !important; /* 强制使用弹性盒模型 */
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

/* 图片容器修复 */
.minicart-product-list li .image {
    flex: 0 0 80px; /* 这里的 80px 可以根据你需要的图片大小调整 */
    width: 80px;
    height: auto;
    margin-right: 15px;
    overflow: hidden;
    display: block;
}

.minicart-product-list li .image img {
    width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: contain; /* 确保图片完整显示不被裁剪 */
}

/* 文字内容区域修复 */
.minicart-product-list li .content {
    flex: 1; /* 自动填充剩余空间 */
    padding-right: 25px; /* 为右侧的关闭按钮留出空间 */
}

.minicart-product-list li .content .title {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
    color: #333;
    text-decoration: none;
}

.minicart-product-list li .content .quantity-price {
    font-size: 14px;
    color: #999;
}

.minicart-product-list li .content .amount {
    color: #d1a580; /* 匹配你图片中的金色/肤色 */
    font-weight: bold;
}

/* 删除按钮定位 */
.minicart-product-list li .content .remove {
    position: absolute;
    top: 15px;
    right: 0;
    font-size: 20px;
    color: #333;
    text-decoration: none;
    line-height: 1;
}
.coupon-accordion{
    display: none;
}

#ship-to-different-address{
    display: none;
}
     /* 页面基础容器 */
 .checkout-page-wrapper {
     background-color: #fcfcfc;
     padding: 40px 0;
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
 }

/* 隐藏不需要的部分 */
.coupon-accordion,
#ship-to-different-address,
.woocommerce-form-coupon-toggle {
    display: none !important;
}

/* 卡片式设计 */
.checkout-card, .order-review-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.sticky-sidebar {
    position: sticky;
    top: 20px;
}

/* 标题美化 */
.woocommerce-billing-fields h3,
.order-title,
.woocommerce-additional-fields h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

/* 表单控件美化 */
.woocommerce-checkout .form-row {
    margin-bottom: 20px;
    padding: 0;
}

.woocommerce-checkout label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    margin-bottom: 8px;
}

/* 输入框默认状态 */
.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #dcdcdc;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background-color: #fff;
    transition: all 0.2s ease-in-out;
    outline: none;
}

/* 输入框聚焦状态（类似高阶电商质感） */
.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
    border-color: #000; /* 或者你的品牌主色 */
    box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
    background-color: #fff;
}

/* 调整 Select2 (国家和省份下拉框) */
.select2-container--default .select2-selection--single {
    height: 48px;
    border: 1.5px solid #dcdcdc;
    border-radius: 8px;
    padding-top: 10px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
}
.select2-dropdown--below{
    width: auto;
}
/* 订单复盘区域表格 */
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    border-top: 2px solid #111;
    font-weight: 700;
    font-size: 18px;
    color: #000;
}

#place_order {
    width: 100%;
    background-color: #000;
    color: #fff;
    padding: 18px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s;
    border: none;
    margin-top: 20px;
}

#place_order:hover {
    background-color: #333;
    cursor: pointer;
}

#scrollUp{
    display: none;
}

.back-to-top, .scroll-to-top {
position: fixed !important;
bottom: 20px !important;

left: 50% !important;

transform: translateX(-50%) !important;
width: 50px !important;
height: 50px !important;
max-width: 100% !important;
box-sizing: border-box !important;
z-index: 9999 !important;
}
/* 通用容器防溢出 */
.checkout-page-wrapper, .sticky-sidebar {
    overflow-x: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 所有动态生成元素的兜底规则 */
.js-generated-element {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px !important;
}