@charset "UTF-8";
#memberOrderDetail .member-order-qrcode img {
  max-width: 150px;
}
#memberOrderDetail .notice {
  display: flex;
  border: #7E4980 1px solid;
  border-radius: 1rem;
  padding: 16px;
}

#memberOrderDetail .steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin: 40px 0;
}

#memberOrderDetail .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

#memberOrderDetail .step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  margin-bottom: 10px;
}

#memberOrderDetail .step-title {
  font-size: 16px;
  font-weight: normal;
  text-align: center;
  color: #666;
  max-width: 80px;
  margin-bottom: 5px;
}

/* 新增：步驟描述樣式 */
#memberOrderDetail .step-description {
  font-size: 11px;
  text-align: center;
  color: #999;
  max-width: 80px;
  line-height: 1.2;
}

#memberOrderDetail .step.completed .step-circle {
  background: #7E4980;
}

#memberOrderDetail .step.completed .step-circle::after {
  content: "✓";
}

#memberOrderDetail .step.completed .step-circle span {
  display: none;
}

#memberOrderDetail .step.completed .step-title {
  color: #7E4980;
}

#memberOrderDetail .step.completed .step-description {
  color: #7E4980;
}

#memberOrderDetail .step.current .step-circle {
  background: #7E4980;
}

#memberOrderDetail .step.current .step-title {
  color: #7E4980;
  font-weight: bold;
}

#memberOrderDetail .step.current .step-description {
  color: #7E4980;
}

#memberOrderDetail .step.pending .step-circle {
  width: 20px;
  height: 20px;
  background: #ddd;
  color: #999;
}

/* 連接線 - 階段 1 */
#memberOrderDetail .stage-1 .steps::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 30px;
  right: 25px;
  height: 2px;
  background: linear-gradient(to right, #7E4980 0%, #7E4980 12.5%, #ddd 12.5%, #ddd 100%);
  z-index: 1;
}

/* 連接線 - 階段 2 */
#memberOrderDetail .stage-2 .steps::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 30px;
  right: 25px;
  height: 2px;
  background: linear-gradient(to right, #7E4980 0%, #7E4980 37.5%, #ddd 37.5%, #ddd 100%);
  z-index: 1;
}

/* 連接線 - 階段 3 */
#memberOrderDetail .stage-3 .steps::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 30px;
  right: 25px;
  height: 2px;
  background: linear-gradient(to right, #7E4980 0%, #7E4980 50%, #ddd 50%, #ddd 100%);
  z-index: 1;
}

/* 連接線 - 階段 4 */
#memberOrderDetail .stage-4 .steps::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 30px;
  right: 25px;
  height: 2px;
  background: linear-gradient(to right, #7E4980 0%, #7E4980 75%, #ddd 75%, #ddd 100%);
  z-index: 1;
}

/* 連接線 - 階段 5 */
#memberOrderDetail .stage-5 .steps::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 30px;
  right: 25px;
  height: 2px;
  background: linear-gradient(to right, #7E4980 0%, #7E4980 100%);
  z-index: 1;
}

/* 手機版 */
@media (max-width: 768px) {
  #memberOrderDetail .step-box {
    display: flex;
    justify-content: center;
  }
  #memberOrderDetail .steps {
    flex-direction: column;
    align-items: flex-start;
  }
  #memberOrderDetail .step {
    flex-direction: row;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
  }
  #memberOrderDetail .step:last-child {
    margin-bottom: 0;
  }
  #memberOrderDetail .step-circle {
    margin-bottom: 0;
    margin-right: 15px;
    flex-shrink: 0;
  }
  #memberOrderDetail .step-content {
    flex: 1;
  }
  #memberOrderDetail .step-title {
    text-align: left;
    font-size: 16px;
    max-width: none;
    margin-bottom: 3px;
  }
  #memberOrderDetail .step-description {
    text-align: left;
    font-size: 13px;
    max-width: none;
  }
  #memberOrderDetail .step.pending .step-circle {
    margin-left: 6px;
  }
  /* 手機版連接線 - 階段 1 */
  #memberOrderDetail .stage-1 .steps::before {
    content: "";
    position: absolute;
    top: 25px;
    bottom: 20px;
    left: 15px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(to bottom, #7E4980 0%, #7E4980 12.5%, #ddd 12.5%, #ddd 100%);
    z-index: 1;
  }
  /* 手機版連接線 - 階段 2 */
  #memberOrderDetail .stage-2 .steps::before {
    content: "";
    position: absolute;
    top: 25px;
    bottom: 20px;
    left: 15px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(to bottom, #7E4980 0%, #7E4980 37.5%, #ddd 37.5%, #ddd 100%);
    z-index: 1;
  }
  /* 手機版連接線 - 階段 3 */
  #memberOrderDetail .stage-3 .steps::before {
    content: "";
    position: absolute;
    top: 25px;
    bottom: 20px;
    left: 15px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(to bottom, #7E4980 0%, #7E4980 50%, #ddd 50%, #ddd 100%);
    z-index: 1;
  }
  /* 手機版連接線 - 階段 4 */
  #memberOrderDetail .stage-4 .steps::before {
    content: "";
    position: absolute;
    top: 25px;
    bottom: 20px;
    left: 15px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(to bottom, #7E4980 0%, #7E4980 75%, #ddd 75%, #ddd 100%);
    z-index: 1;
  }
  /* 手機版連接線 - 階段 5 */
  #memberOrderDetail .stage-5 .steps::before {
    content: "";
    position: absolute;
    top: 25px;
    bottom: 20px;
    left: 15px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(to bottom, #7E4980 0%, #7E4980 100%);
    z-index: 1;
  }
}
/* === 會員訂單 / 帳單列表共用 === */
#orders-container .order-row {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 2.2fr 1fr 1.4fr 0.6fr;
  gap: 0.75rem;
  align-items: center;
}
#orders-container .order-row [data-label]::before {
  display: none;
}
#orders-container .order-col-status .small {
  line-height: 1.3;
}
#orders-container .order-item-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #f5f5f5;
  display: inline-block;
}
#orders-container .order-item-thumb-empty {
  background: #f0f0f0 url("../images/default.svg") center/cover no-repeat;
}
#orders-container .order-item-summary {
  line-height: 1.35;
  word-break: break-word;
}

#bills-container .bill-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr 1.4fr 0.6fr;
  gap: 0.75rem;
  align-items: center;
}
#bills-container .bill-row [data-label]::before {
  display: none;
}

/* 訂單詳情頁：商品列表 grid + RWD 卡片堆疊（與列表頁同模式） */
#order-items .order-item-row {
  display: grid;
  grid-template-columns: 2.4fr 0.6fr 1fr;
  gap: 0.75rem;
  align-items: center;
}
#order-items .order-item-row [data-label]::before {
  display: none;
}
#order-items .order-item-row:not(:has(~ .order-item-row)) {
  border-bottom: 0 !important;
}
#order-items .order-item-col-amount {
  text-align: right;
}

@media (max-width: 991.98px) {
  #order-items .order-item-row {
    display: block;
    padding: 12px 0 !important;
  }
  #order-items .order-item-row.order-item-row-head {
    display: none !important;
  }
  #order-items .order-item-row > [data-label] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px dashed #f0f0f0;
  }
  #order-items .order-item-row > [data-label]:last-child {
    border-bottom: none;
  }
  #order-items .order-item-row > [data-label]::before {
    content: attr(data-label);
    display: inline-block;
    color: #888;
    font-size: 0.85rem;
    flex-shrink: 0;
  }
  #order-items .order-item-col-amount {
    text-align: right;
  }
  #order-items .order-item-col-name > div {
    flex-direction: row-reverse;
    text-align: right;
  }
}
/* 訂單詳情頁：訂單資訊區左側縮圖（沿用列表頁視覺錨點） */
#order-info .order-info-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #f5f5f5;
  display: inline-block;
}

#order-items .order-item-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #f5f5f5;
  display: inline-block;
}

#order-info .order-item-thumb-empty,
#order-items .order-item-thumb-empty {
  background: #f0f0f0 url("../images/default.svg") center/cover no-repeat;
}

/* 最後一列（後面沒有同類列）拿掉下邊框，避免與容器邊界重疊 */
#orders-container .order-row:not(:has(~ .order-row)),
#bills-container .bill-row:not(:has(~ .bill-row)) {
  border-bottom: 0 !important;
}

@media (max-width: 991.98px) {
  #orders-container .order-row,
  #bills-container .bill-row {
    display: block;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 12px !important;
  }
  #orders-container .order-row.order-row-head, #orders-container .order-row.bill-row-head,
  #bills-container .bill-row.order-row-head,
  #bills-container .bill-row.bill-row-head {
    display: none !important;
  }
  #orders-container .order-row > [data-label],
  #bills-container .bill-row > [data-label] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px dashed #f0f0f0;
  }
  #orders-container .order-row > [data-label]:last-child,
  #bills-container .bill-row > [data-label]:last-child {
    border-bottom: none;
  }
  #orders-container .order-row > [data-label]::before,
  #bills-container .bill-row > [data-label]::before {
    content: attr(data-label);
    display: inline-block;
    color: #888;
    font-size: 0.85rem;
    flex-shrink: 0;
  }
  #orders-container .order-col-items > div {
    justify-content: flex-end;
    text-align: right;
  }
}

/*# sourceMappingURL=style-member.css.map */
