/* Order-list card only; this replaces the first orders-polish stylesheet. */
/* PullRefresh is the flex item; SwipeCells live two levels deeper. */
#app .orders-page .orders-content {
  display: block;
}

#app .orders-page .orders-content > .van-pull-refresh__track {
  display: block;
  flex: none;
  height: auto !important;
  min-height: 100%;
}

#app .orders-page .orders-content .order-container {
  flex: none;
  height: auto;
  min-height: max-content;
}

#app .orders-page .order-card {
  height: auto;
  min-height: 0;
  overflow: visible;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: none;
}

#app .orders-page .order-card::before {
  content: none;
}

#app .orders-page .order-card__head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 44px;
  padding: 8px 18px;
  box-sizing: border-box;
}

#app .orders-page .order-status {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
}

#app .orders-page .order-card__body {
  height: auto;
  min-height: 0;
  align-items: start;
  overflow: visible;
}

#app .orders-page .order-card__info {
  min-width: 0;
  height: auto;
  overflow: visible;
}

#app .orders-page .order-card__title {
  width: auto !important;
  min-width: 0;
  margin: 0;
  line-height: 1.4;
}

#app .orders-page .order-card__title .van-ellipsis {
  display: block !important;
  overflow: visible !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  -webkit-line-clamp: unset !important;
}

#app .orders-page .order-card__number-label,
#app .orders-page .order-card__number-value {
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#app .orders-page .order-card__metrics {
  width: 100%;
  height: auto;
  flex-wrap: wrap;
  overflow: visible;
}

#app .orders-page .order-card__metrics > div {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
}

#app .orders-page .order-card__metrics > .order-card__total {
  margin-left: auto;
  justify-content: flex-end;
  text-align: right;
}

#app .orders-page .order-card__metric-label {
  font-size: 12px;
  color: var(--order-muted);
}

#app .orders-page .order-card__metric-value {
  font-size: 14px;
  font-weight: 700;
}

#app .orders-page .order-card__total .order-card__metric-value {
  color: var(--order-accent);
  font-size: 1.08rem;
  white-space: nowrap;
}
