/* 我的订单：统一对齐与尺寸（2026-11-04） */
/* 只作用于顾客端 .shop-shell，不影响店员后台 */

/* 账户栏与订单卡使用同一内边距和间距，手机端保持横排 */
.shop-shell .account-order-banner{
  flex-direction:row;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin:20px 0 16px;
  padding:20px;
}
.shop-shell .account-order-banner strong{
  flex:1 1 auto;
  min-width:0;
  font-size:16px;
  line-height:1.5;
  overflow-wrap:anywhere;
}
.shop-shell .account-order-banner button{
  flex:0 0 auto;
  min-height:44px;
  padding:0 14px;
  font-size:11px;
}

/* 订单列表节奏 */
.shop-shell .list:has(.order){
  gap:12px;
}

/* 卡片：统一内边距 */
.shop-shell .order{
  padding:20px;
}

/* 订单摘要区：标签、金额、品名、送达时间统一基线 */
.shop-shell .order-brief{
  gap:4px;
}
.shop-shell .order-brief .top{
  gap:12px;
  align-items:center;
  min-height:24px;
}
.shop-shell .order-brief .top>span:first-child{
  display:inline-flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  min-width:0;
}
.shop-shell .order .tag,
.shop-shell .order .fulfil-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  height:22px;
  margin:0;
  padding:0 8px;
  border-radius:999px;
  font-family:var(--font-ui);
  font-size:10px;
  font-weight:600;
  line-height:20px;
  letter-spacing:.08em;
  vertical-align:middle;
}
.shop-shell .order .fulfil-tag{
  color:var(--pine);
  border:1px solid var(--pine);
  font-weight:500;
}
.shop-shell .order .price{
  margin-left:auto;
  font-size:20px;
  font-weight:500;
  line-height:1.2;
  white-space:nowrap;
}
.shop-shell .order-brief>strong{
  margin-top:2px;
  font-family:var(--font-ui);
  font-size:14px;
  font-weight:600;
  line-height:1.55;
  color:var(--ink);
}
.shop-shell .order-brief>small{
  font-family:var(--font-num);
  font-size:12px;
  line-height:1.6;
  letter-spacing:.02em;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
}

/* 明细折叠行：去掉缺字形的 ▾，改为 CSS 箭头 */
.shop-shell .order-more>summary{
  display:flex;
  align-items:center;
  min-height:44px;
  margin:2px 0 0;
  color:var(--muted);
  font-size:0;
  list-style:none;
}
.shop-shell .order-more>summary::-webkit-details-marker{
  display:none;
}
.shop-shell .order-more>summary::before{
  content:"明细";
  font-family:var(--font-ui);
  font-size:11px;
  line-height:1;
  letter-spacing:.08em;
}
.shop-shell .order-more>summary::after{
  content:"";
  width:6px;
  height:6px;
  margin-left:7px;
  border-right:1px solid currentColor;
  border-bottom:1px solid currentColor;
  transform:rotate(45deg) translateY(-2px);
  transition:transform .2s ease;
}
.shop-shell .order-more[open]>summary::after{
  transform:rotate(225deg) translate(-1px,-1px);
}

/* 订单明细内的字号与列对齐 */
.shop-shell .order-more>small.muted{
  font-size:11px;
  line-height:1.8;
  letter-spacing:.06em;
  color:var(--muted);
}
.shop-shell .order-time{
  margin-top:10px;
  padding:12px 0;
}
.shop-shell .order-time small,
.shop-shell .order-address>small{
  margin-bottom:4px;
  font-size:10px;
}
.shop-shell .order-time strong{
  font-size:15px;
  font-weight:500;
  line-height:1.5;
  font-variant-numeric:tabular-nums;
}
.shop-shell .order .items{
  padding:2px 12px;
}
.shop-shell .order .items>div{
  display:grid;
  grid-template-columns:minmax(0,1fr) 40px 76px;
  gap:10px;
  align-items:center;
  padding:9px 0;
}
.shop-shell .order .items b{
  font-size:14px;
  font-weight:500;
}
.shop-shell .order .items small{
  margin-top:2px;
  font-size:10px;
  line-height:1.5;
}
.shop-shell .order .items strong{
  min-width:0;
  font-size:13px;
  font-weight:500;
  text-align:right;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.shop-shell .order .items>div>span.muted{
  min-width:0;
  font-size:13px;
  text-align:right;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.shop-shell .order-address{
  padding:12px 0;
}
.shop-shell .order-address strong{
  font-size:14px;
  line-height:1.6;
}
.shop-shell .order-address p{
  margin-top:4px;
  font-size:11px;
  line-height:1.6;
}
.shop-shell .order-note{
  margin-top:6px;
  padding:7px 10px;
  font-size:11px;
  line-height:1.7;
}
.shop-shell .order-more>small.muted,
.shop-shell .order-address>small{
  display:block;
}
.shop-shell .order-more>.muted{
  font-size:11px;
}

/* 卡片底部说明统一为脚注，放在操作区上方 */
.shop-shell .order{
  display:flex;
  flex-direction:column;
}
.shop-shell .order-brief{order:1}
.shop-shell .order-more{order:2}
.shop-shell .order>p.muted{
  order:3;
  margin:8px 0 0;
  font-family:var(--font-ui);
  font-size:11px;
  line-height:1.6;
  letter-spacing:.02em;
  color:var(--muted);
}

/* 操作区：所有按钮同宽同高，右对齐；单按钮不再拉满整行 */
.shop-shell .order .actions{
  order:4;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  margin-top:12px;
}
.shop-shell .order .actions:empty{
  display:none;
}
.shop-shell .order .actions:not(:empty){
  margin-top:14px;
  padding-top:14px;
  border-top:1px dashed var(--line);
}
.shop-shell .order .actions>button,
.shop-shell .order .transit-cancel>button,
.shop-shell .order .contact-staff{
  flex:0 0 auto;
  box-sizing:border-box;
  width:112px;
  min-width:112px;
  min-height:44px;
  height:44px;
  margin:0;
  padding:0 10px;
  font-family:var(--font-ui);
  font-size:11px;
  line-height:1;
  letter-spacing:.04em;
  white-space:nowrap;
}
.shop-shell .order .contact-staff{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:2px;
  color:var(--pine);
  text-decoration:none;
}
.shop-shell .order .actions>small,
.shop-shell .order .transit-cancel small{
  flex:1 1 100%;
  margin:0;
  text-align:right;
  font-family:var(--font-ui);
  font-size:11px;
  line-height:1.6;
  letter-spacing:.02em;
  color:var(--muted);
}
.shop-shell .order .transit-cancel{
  display:contents;
}

@media (max-width:360px){
  .shop-shell .order .actions>button,
  .shop-shell .order .transit-cancel>button,
  .shop-shell .order .contact-staff{
    flex:1 1 100%;
    width:100%;
    min-width:0;
  }
}
