/* ========== 买家订单面板私有样式（!important强制置顶） ========== */

/* 不再写 position: relative 覆盖全局 .main-page-panel 的 position: fixed！
   全局 <style> 块已经把激活的面板设为 position:fixed; top:0; left:0; right:0; bottom:0
   这里只补充订单面板特有的背景色和 box-sizing */

#mainPanel-order .bo-toolbar {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 0 !important;             /* 高度 0，空占位不占空间 */
    display: none !important;         /* 完全隐藏"我的订单"标题 */
}

  #mainPanel-order .bo-filter-bar {
    flex-shrink: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 6px 8px !important;
    background: #fff !important;
    border-bottom: 1px solid #f0f0f0 !important;
    z-index: 1 !important;
  }
#mainPanel-order .bo-filter-bar::-webkit-scrollbar { display: none !important; }

#mainPanel-order .bo-filter-btn {
    flex: 0 0 auto !important;
    padding: 3px 8px !important;
    min-height: 28px !important;
    border: none !important;
    background: none !important;
    font-size: 12px !important;
    color: #888 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    position: relative !important;
    transition: color 0.2s !important;
    display: inline-flex !important;
    align-items: center !important;
}
#mainPanel-order .bo-filter-btn.active {
    color: #0088ff !important;
    font-weight: 600 !important;
}
#mainPanel-order .bo-filter-btn.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: 1px !important;
    left: 8px !important;
    right: 8px !important;
    height: 2px !important;
    background: #0088ff !important;
    border-radius: 1px !important;
}

  #mainPanel-order.active {
    display: flex !important;
    flex-direction: column !important;
  }
  #mainPanel-order .bo-list {
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 12px 12px 70px 12px !important;
    background: #f5f5f5 !important;
    -webkit-overflow-scrolling: touch !important;
  }
#mainPanel-order .bo-list::-webkit-scrollbar { width: 5px !important; }
#mainPanel-order .bo-list::-webkit-scrollbar-thumb { background: #ccc !important; border-radius: 3px !important; }
#mainPanel-order .bo-list::-webkit-scrollbar-track { background: transparent !important; }
#mainPanel-order .mch-order-filter {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 2px !important;
  padding: 4px 8px !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

#mainPanel-order .bo-card {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
#mainPanel-order .bo-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}
#mainPanel-order .bo-card-order-no {
    font-size: 12px;
    color: #999;
    word-break: break-all;
}
#mainPanel-order .bo-card-status {
    font-size: 13px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
    flex-shrink: 0;
    margin-left: 8px;
}
#mainPanel-order .bo-card-status.待支付 { color: #e6a23c; background: #fdf6ec; }
#mainPanel-order .bo-card-status.已支付 { color: #07c160; background: #f0fff4; }
#mainPanel-order .bo-card-status.已发货 { color: #0088ff; background: #e8f4ff; }
#mainPanel-order .bo-card-status.已取消 { color: #999; background: #f5f5f5; }
  #mainPanel-order .bo-card-status.已完成 { color: #27ae60; background: #f0fff4; }

#mainPanel-order .bo-item-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
}
#mainPanel-order .bo-item-img {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: contain;
    background: #f5f5f5;
    flex-shrink: 0;
}
#mainPanel-order .bo-item-info {
    flex: 1;
    min-width: 0;
}
#mainPanel-order .bo-item-name {
    font-size: 15px;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 2px;
}
#mainPanel-order .bo-item-spec {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 2px;
}
#mainPanel-order .bo-item-qty {
    font-size: 14px;
    color: #888;
}
#mainPanel-order .bo-item-price {
    font-size: 16px;
    font-weight: 600;
    color: #e63946;
    flex-shrink: 0;
    margin-left: auto;
}

#mainPanel-order .bo-shop-name {
    font-size: 14px;
    color: #07c160;
    margin-bottom: 4px;
}
#mainPanel-order .bo-shop-name::before { content: '🏪 '; }

#mainPanel-order .bo-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}
#mainPanel-order .bo-total-amount {
    font-size: 14px;
    color: #333;
}
#mainPanel-order .bo-total-amount b {
    color: #e63946;
    font-size: 16px;
}
#mainPanel-order .bo-footer-info {
    font-size: 11px;
    color: #bbb;
}

#mainPanel-order .bo-ship-info {
    font-size: 14px;
    color: #666;
    padding: 8px 0 4px 0;
    line-height: 1.5;
}

#mainPanel-order .bo-empty {
    text-align: center;
    padding: 60px 20px;
    color: #ccc;
    font-size: 14px;
}
#mainPanel-order .bo-empty .bo-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

#mainPanel-order .bo-load-more {
    text-align: center;
    padding: 6px;
}
#mainPanel-order .bo-load-more button {
    padding: 4px 20px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
#mainPanel-order .bo-load-more button:hover {
    border-color: #0088ff;
    color: #0088ff;
}

#mainPanel-order .bo-action-btn {
    padding: 8px 20px;
    min-height: 38px;
    border-radius: 19px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#mainPanel-order .bo-btn-pay { background: #e63946; color: #fff; border: none; }
#mainPanel-order .bo-btn-pay:hover { background: #d62d3a; }

#mainPanel-order .bo-delivery-info { margin-top: 4px; font-size: 12px; }
#mainPanel-order .bo-delivery-wait { color: #e6a23c !important; }

#mainPanel-order .bo-item-link {
    cursor: pointer !important;
    color: #0088ff !important;
    position: relative;
}
#mainPanel-order .bo-item-link:hover { text-decoration: underline; }
#mainPanel-order .bo-item-link::after { content: ' ›'; color: #0088ff; font-size: 11px; margin-left: 2px; }

#mainPanel-order .bo-btn-aftersales { background: #ff8c00; color: #fff; border: none; }
#mainPanel-order .bo-btn-aftersales:hover { background: #e67e00; }

#mainPanel-order .bo-as-status {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 600;
}
#mainPanel-order .bo-as-status-pending { background: #fdf6ec; color: #e6a23c; }
#mainPanel-order .bo-as-status-agreed  { background: #e8f4ff; color: #0088ff; }
#mainPanel-order .bo-as-status-rejected { background: #fef0f0; color: #f56c6c; }
#mainPanel-order .bo-as-status-done    { background: #f0fff4; color: #27ae60; }
