/*
 Theme Name: BeautiSo Theme
 Theme URI:
 Description: Beautiso official EC shop theme
 Author: Wei Li
 Author URI:https://www.beautiso.com
 Template: sage
 Version: 1.6.0
 Text Domain: beautiso
 History:
*/

/* WooCommerce订单页面样式优化 */
.woocommerce-table--order-details tbody tr,
.woocommerce-table--order-details tfoot tr,
.woocommerce-table--order-details thead {
    border-top: none !important;
    border-bottom: none !important;
}

.woocommerce table.my_account_orders .woocommerce-orders-table__row-items table tr:nth-child(2n),
.woocommerce table.shop_table tr:nth-child(odd) {
    background: white !important;
}

address {
    font-size: 16px;
}

.member-account-title {
    display: none;
}

/* ========================================
   订单详情页面卡片式布局
   ======================================== */

/* 订单详情区域容器 */
.woocommerce-order-details {
    background: white;
    padding: 12px;
    margin: 0 -20px 20px -20px;
}

/* 卡片样式 */
.bso-order-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.bso-order-card h2 {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

/* 订单状态横幅样式 */
.bso-order-status {
    background: linear-gradient(135deg, #FF6B9D 0%, #FFA5C4 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 0 0 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.bso-order-status .status-label {
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.bso-order-status .status-wechat {
    color: white;
    font-size: 14px;
    margin-top: 8px;
    font-weight: normal;
}

/* 不同状态的配色 */
.bso-order-status.status-pending {
    background: linear-gradient(135deg, #FFC107 0%, #FFD54F 100%);
}

.bso-order-status.status-on-hold {
    background: linear-gradient(135deg, #E53A40 0%, #FF6B6B 100%);
}

.bso-order-status.status-processing {
    background: linear-gradient(135deg, #2196F3 0%, #64B5F6 100%);
}

.bso-order-status.status-shipped {
    background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
}

.bso-order-status.status-completed {
    background: linear-gradient(135deg, #28a745 0%, #5cb85c 100%);
}

.bso-order-status.status-cancelled,
.bso-order-status.status-failed {
    background: linear-gradient(135deg, #999 0%, #bbb 100%);
}

/* 物流信息卡片 - 排除订单状态横幅 */
.woocommerce-order-details > div:not(.bso-order-status) {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.woocommerce-order-details h2 {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.woocommerce-order-details h2 .fa {
    color: #E53A40;
    margin-right: 8px;
}

/* 客户详情卡片 */
.woocommerce-customer-details {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin: 0 -20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.woocommerce-customer-details .woocommerce-column__title {
    font-weight: bold;
    color: #333;
    margin: 0 0 12px 0 !important;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

/* 信息行样式 */
.bso-info-row {
    display: flex;
    font-size: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.bso-info-row:last-child {
    border-bottom: none;
}

.bso-info-label {
    color: #666;
    min-width: 20px;
    flex-shrink: 0;
    text-align: left;
}

.bso-info-label i {
    font-size: 20px;
}

.bso-info-value {
    color: #333;
    flex: 1;
}

/* 商品列表样式 */
.bso-product-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.bso-product-item:last-of-type {
    border-bottom: none;
    margin-bottom: 12px;
}

.bso-product-image {
    flex-shrink: 0;
}

.bso-product-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.bso-product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 60px;
}

.bso-product-name {
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    margin-bottom: 4px;
}

.bso-product-meta {
    font-size: 12px;
    color: #999;
    /* line-height: 1.4; */
    margin-bottom: 4px;
}

.bso-product-attr {
    margin-right: 8px;
}

.bso-product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.bso-product-quantity {
    color: #666;
    font-size: 14px;
}

.bso-product-price {
    color: #E53A40;
    font-size: 16px;
    font-weight: bold;
}

/* 订单备注容器 */
.bso-order-notes-container {
    margin-top: 20px;
}

/* 订单备注标题 */
.bso-notes-title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin: 0 0 16px 0;
}

/* 每条备注的卡片 */
.bso-note-card {
    background: linear-gradient(135deg, #FFFAF5 0%, #FFF3F0 100%);
    border-left: 1px solid #E53A40;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(229, 58, 64, 0.08);
}

/* 备注内容 */
.bso-note-text {
    color: #2C2C2C;
    font-size: 12px;
    line-height: 1.6;
}

.bso-note-text p {
    margin: 0;
}

/* 备注元信息 (作者和日期) */
.bso-note-meta {
    color: #E53A40;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    padding: 0 4px;
}

/* 订单汇总区域 */
.bso-order-summary {
    border-top: 2px solid #f0f0f0;
    padding-top: 12px;
}

.bso-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.bso-summary-label {
    color: #666;
    font-size: 14px;
    font-weight: 800;
}

.bso-summary-value {
    color: #333;
    font-size: 14px;
}

/* 订单合计行 */
.bso-order-total {
    padding-top: 8px;
}

/* ========================================
   订单完成页面优化
   ======================================== */

/* 隐藏默认的订单概览表格 */
ul.woocommerce-order-overview,
.woocommerce-order-overview {
    display: none !important;
}

/* 隐藏订单完成页面的默认标题 "提交订单成功" */
.woocommerce-order-received .woocommerce-notice--success,
.woocommerce-thankyou-order-received {
    display: none !important;
}

/* 订单成功提示卡片 */
.bso-order-success-card {
    background: linear-gradient(135deg, #4285f4 0%, #5a9bf7 100%);
    border-radius: 12px;
    padding: 24px;
    margin: 0 0 16px 0;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
    text-align: center;
    color: white;
}

.bso-success-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.bso-success-icon::before {
    content: "✓";
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-weight: bold;
}

.bso-success-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.bso-success-tips {
    font-size: 13px;
    margin-top: 12px;
    opacity: 0.9;
    line-height: 1.6;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .woocommerce-order-details {
        margin: 0 -10px 10px -10px;
        padding: 8px;
    }

    .woocommerce-customer-details {
        margin: 0 -10px;
    }

    .bso-order-success-card {
        padding: 20px 16px;
    }

    .bso-success-title {
        font-size: 20px;
    }

    .bso-order-number-value {
        font-size: 16px;
    }

    /* 订单卡片适配移动端 */
    .bso-order-card {
        margin-bottom: 12px;
    }

    /* 商品项目保持横向布局 */
    .bso-product-item {
        gap: 8px;
    }

    /* 商品图片在移动端稍微缩小 */
    .bso-product-image img {
        width: 60px;
        height: 60px;
    }

    /* 商品信息区域高度自适应 */
    .bso-product-info {
        height: auto;
        min-height: 60px;
    }

    /* 商品名称在移动端只显示1行 */
    .bso-product-name {
        font-size: 13px;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    /* 商品属性字体缩小 */
    .bso-product-meta {
        font-size: 11px;
    }

    /* 数量和价格字体调整 */
    .bso-product-quantity {
        font-size: 12px;
    }

    .bso-product-price {
        font-size: 14px;
    }
}

/* ========================================
   我的订单页面 - 卡片式布局
   ======================================== */

/* 隐藏默认的表格布局 */
.woocommerce-account .woocommerce-orders-table {
    display: none !important;
}

/* 订单容器 */
.bso-orders-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 12px 0;
}

/* 订单卡片 */
.bso-order-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 16px;
}

/* 订单头部：左侧（订单号+状态badge）| 右侧（日期） */
.bso-order-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

/* 左侧区域：订单号 + 状态badge */
.bso-order-left {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

/* 订单编号 */
.bso-order-number {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    margin: 2px;
    display: flex;
    align-items: center;
}

/* 订单日期（在header右侧） */
.bso-order-header .bso-order-date {
    color: #666;
    font-size: 13px;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

/* 商品列表区域 */
.bso-order-items {
    margin-bottom: 12px;
}

/* 订单总价 */
.bso-order-total {
    font-size: 14px;
    color: #666;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    text-align: right;
}

/* 订单底部：操作按钮 */
.bso-order-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 12px;
}

/* 订单状态badge - 圆角胶囊型纯色背景 */
.bso-order-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 20px;
    color: white;
    font-size: 11px;
    font-weight: 500;
    background: #999; /* 默认灰色背景 */
    white-space: nowrap;
}

/* 待付款 - 黄色 */
.bso-order-status-badge.status-pending {
    background: #FFC107;
}

/* 暂挂-联系客服 - 红色 */
.bso-order-status-badge.status-on-hold {
    background: #E53A40;
}

/* 等待卖家发货 - 蓝色 */
.bso-order-status-badge.status-processing {
    background: #2196F3;
}

/* 已发货 - 橙色 */
.bso-order-status-badge.status-shipped {
    background: #FF9800;
}

/* 已签收 - 绿色 */
.bso-order-status-badge.status-completed {
    background: #28a745;
}

/* 已取消/失败 - 灰色 */
.bso-order-status-badge.status-cancelled,
.bso-order-status-badge.status-failed {
    background: #999;
}

/* 分箱发货badge - 橙黄色 */
.bso-multi-shipment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 5px;
    color: white;
    font-size: 11px;
    font-weight: 500;
    background: #2282d0;
    white-space: nowrap;
    margin-left: 6px;
}

.bso-total-price {
    color: #E53A40;
    font-size: 18px;
    font-weight: bold;
    margin-left: 4px;
}

/* 操作按钮区域 */
.bso-order-actions {
    display: flex;
    gap: 8px;
}

.bso-order-action {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
}

.bso-order-action.view {
    background: #E53A40;
    color: white;
}

.bso-order-action.view:hover {
    background: #d02a30;
    color: white;
}

.bso-order-action.pay {
    background: #FFC107;
    color: #333;
}

.bso-order-action.pay:hover {
    background: #FFB300;
}

.bso-order-action.cancel {
    background: #f5f5f5;
    color: #666;
}

.bso-order-action.cancel:hover {
    background: #e0e0e0;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .bso-orders-container {
        padding: 8px 0;
        gap: 12px;
    }

    .bso-order-card {
        margin-bottom: 12px;
        padding: 12px;
    }

    .bso-total-price {
        font-size: 16px;
    }
}
                :root{--theme-color:#F55F5F;--theme-hover:#07c;}
                    .header .logo img{max-height: 30px;}
            .header.fixed .logo img{max-height: 30px;}
                    @media (max-width: 767px){
            .header .logo img{max-height: 30px;}
            .header.fixed .logo img{max-height: 30px;}
            }
        .woocommerce .address-item.default:before{content:"默认地址";}#modules-6{margin-top: 0;margin-bottom: 0;padding: 50px 0px 50px 0px;background-image: url('https://tokyoxz.com/wp-content/uploads/2019/09/contactus.jpg');position: relative;background-repeat: no-repeat;background-size: cover;background-position: center center;}
@media (max-width: 767px){#modules-6{}}
@media (min-width: 768px){#modules-6{}}
#modules-9{margin-top: 0;margin-bottom: 20px;padding: 10px;}
@media (max-width: 767px){#modules-9{padding: 0px 10px 0px 10px;}}
#modules-2{margin-top: 0;margin-bottom: 0;padding: 5px 0 5px 0;background-color: #ffffff;background-repeat: no-repeat;background-size: cover;background-position: center center;}
#modules-3{margin-top: 20px;margin-bottom: 20px;}
#modules-3 .j-modules-inner{padding: 0 15px;}
#modules-3 .row{margin-left: -15px;margin-right: -15px;}
#modules-5{margin-top: 15px;margin-bottom: 20px;}
#modules-4{margin-top: 30px;margin-bottom: 20px;padding: 10px;}
