/* 自 order-confirm.html 摘取 · 仅视觉 · 易丰红灰白 */
.xhs-page {
  background: var(--page-bg, #f8f8f8);
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
}

.xhs-progress {
  height: 3px;
  background: var(--border, #eee);
}
.xhs-progress > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--yf-red, #ff3b30);
  transition: width 0.2s ease;
}

.yf-confirm-distance {
  padding: 0 14px 8px;
  font-size: 13px;
  color: var(--text-2, #666);
}
.yf-confirm-distance:empty { display: none; }

.yf-confirm-card {
  margin: 0 var(--yf-content-inset-x, 12px) 10px;
  background: var(--card, #fff);
  border-radius: 14px;
  overflow: hidden;
}
.yf-confirm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  position: relative;
  cursor: pointer;
  border: none;
  background: #fff;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
}
.yf-confirm-card--move .yf-confirm-row__side {
  flex: 0 0 76px;
  min-width: 76px;
  margin-left: 0;
  text-align: right;
  white-space: nowrap;
}
.yf-confirm-row::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 1px;
  background: #f5f5f5;
}
.yf-confirm-route .yf-confirm-row:last-child::after { display: none; }
.yf-confirm-row:active { opacity: 0.92; }
.yf-confirm-row__icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}
.yf-confirm-row__icon--from { background: #47b3ff; }
.yf-confirm-row__icon--to { background: var(--yf-red); }
.yf-confirm-row__main { flex: 1; min-width: 0; }
.yf-confirm-row__name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text, #222);
  line-height: 1.35;
}
.yf-confirm-row__name.is-placeholder { font-weight: 400; color: var(--text-3, #999); }
.yf-confirm-row__sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-3, #999);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.yf-confirm-row__side {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--text-3, #999);
  padding-left: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.yf-confirm-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--border, #eee);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  z-index: 20;
}
.yf-confirm-dock__cs {
  flex: 0 0 auto;
  border: none;
  background: none;
  font-size: 12px;
  color: var(--text-2);
  padding: 4px 0;
  white-space: nowrap;
}
.yf-confirm-dock__price { flex: 1; min-width: 0; }
.yf-confirm-dock__estimate-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--yf-red);
  line-height: 1.1;
}
.yf-confirm-dock__estimate-label {
  font-size: 12px;
  color: var(--text-3);
  margin-right: 4px;
}
.yf-confirm-dock__vehicle {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}
.yf-confirm-dock__pay {
  flex: 0 0 auto;
  border: none;
  border-radius: 8px;
  background: var(--yf-red);
  color: #fff;
  padding: 0 18px;
  min-height: 48px;
  font-size: 16px;
  font-weight: 600;
  max-width: 46%;
  white-space: nowrap;
}
.yf-confirm-dock__pay:disabled,
.yf-confirm-dock__pay.is-cta-blocked {
  background: var(--yf-confirm-disabled, #ffc9c9);
}

/* 地址 sheet */
.yf-addr-sheet .xhs-sheet-panel {
  background: #fff;
  border-radius: 16px 16px 0 0;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}
.yf-addr-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #f5f5f5;
}
.yf-addr-search__city {
  flex-shrink: 0;
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  padding: 0;
  cursor: pointer;
}
.yf-addr-search__input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: #f5f5f5;
  padding: 0 12px;
  font-size: 14px;
}
.yf-addr-list { list-style: none; margin: 0; padding: 0; overflow: auto; }
.yf-addr-list__pick {
  width: 100%;
  border: none;
  background: #fff;
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  box-sizing: border-box;
}
.yf-addr-list__name { font-size: 15px; font-weight: 600; color: var(--text); display: block; }
.yf-addr-list__addr { font-size: 12px; color: var(--text-3); margin-top: 4px; display: block; }

.xhs-sheet-mask {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw - 24px, var(--shell-max, 390px));
  max-width: var(--shell-max, 390px);
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-end;
  z-index: 50;
}
.xhs-sheet-mask__panel { width: 100%; }

/* 费用/车型 hero */
.yf-quote-hero {
  margin: 0 12px 10px;
  padding: 16px 14px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.yf-quote-hero__label {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 6px;
}
.yf-quote-hero__vehicle {
  font-size: 26px;
  font-weight: 800;
  color: var(--yf-red);
  line-height: 1.15;
}
.yf-quote-hero__meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.45;
}

.yf-fee-line {
  padding: 12px 14px;
  border-bottom: 1px solid #f5f5f5;
}
.yf-fee-line:last-child { border-bottom: none; }
.yf-fee-line__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.yf-fee-line__name { font-size: 14px; color: var(--text-2); }
.yf-fee-line__price { font-size: 16px; font-weight: 700; color: var(--text); }

.yf-warn {
  margin: 0 12px 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: #996600;
  background: #fff8e6;
  border-radius: 10px;
  line-height: 1.45;
}

.yf-help { margin: 0 12px 12px; font-size: 12px; color: var(--text-3); line-height: 1.45; }

.xhs-sheet-panel {
  background: #fff;
  border-radius: 16px 16px 0 0;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
}

.xhs-native-demo #phone .xhs-sheet-mask {
  position: absolute;
  inset: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  transform: none;
  z-index: 80;
}

.xhs-cat { padding: 0 12px 16px; max-height: 60vh; overflow: auto; }
.xhs-cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.xhs-cat-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.xhs-cat-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 10px 6px;
  font-size: 13px;
  text-align: center;
}

.xhs-native-demo #foot.yf-confirm-dock,
.xhs-native-demo #foot .yf-confirm-dock {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
}
