/* 用户端共用视觉变量，限定原型业务视图。 */
#app {
  --trade-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --trade-action: #69c915;
  --trade-action-text: #173000;
  --trade-card-radius: 12px;
}
#app.gift-ui .mf-phone:not(.mf-reference) :is(.mf-checkout,.mf-order-detail,.mf-service-detail,.mf-paid,.mf-refund-form,.mf-pending) .mf-row {
  font-size: 14px;
  line-height: 20px;
}
#app.gift-ui .mf-phone:not(.mf-reference) :is(.mf-checkout,.mf-order-detail,.mf-service-detail,.mf-paid,.mf-refund-form,.mf-pending) .mf-card {
  border-radius: var(--trade-card-radius);
}
#app.gift-ui .mf-phone:not(.mf-reference) :is(.mf-checkout,.mf-order-detail,.mf-service-detail,.mf-paid) .mf-row > :last-child {
  font-variant-numeric: tabular-nums;
}

#app.gift-ui .mf-phone:not(.mf-reference) .mf-paid h2 {
  font-size: 20px !important;
  line-height: 28px;
}
#app.gift-ui .mf-phone:not(.mf-reference) .mf-paid > div:last-child button {
  min-height: 44px;
  border: 1px solid #cbd8ca !important;
  border-radius: 22px !important;
  background: #fff !important;
  color: #253921 !important;
  font-size: 14px !important;
}
#app.gift-ui .mf-phone:not(.mf-reference) .mf-paid > div:last-child button:first-child {
  border-color: var(--trade-action) !important;
  background: var(--trade-action) !important;
  color: var(--trade-action-text) !important;
}

/* 购物金和活动页沿用同一字体与操作层级。 */
#app.gift-ui .mf-phone:not(.mf-reference) .mf-credit-sheet {
  border-radius: 16px 16px 0 0;
}
#app.gift-ui .mf-phone:not(.mf-reference) .mf-credit-sheet > header {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}




/* 用户端共用字号及操作样式 */
#app.gift-ui .mf-phone:not(.mf-reference),
#app.credit-ui.credit-user .phone,
#app.gift-ui .phone.activity-landing {
  font-family: var(--trade-font);
}





/* 采用工作台同等选择器优先级，避免基础页旧字体覆盖。 */
.wb #app.gift-ui .phone.mf-phone:not(.mf-reference) {
  font-family: var(--trade-font);
}
/* 确认订单金额行使用统一字号。 */
.wb #app.gift-ui .mf-phone:not(.mf-reference) .mf-checkout .cost-card .mf-row {
  font-size: 14px;
  line-height: 20px;
}

/* 商品和购物车使用紧凑型主操作，沿用相同的颜色语义。 */
#app.gift-ui .mf-phone:not(.mf-reference) :is(.mf-buy-footer,.mf-cart-total) .mf-green {
  min-height: 44px;
  background: var(--trade-action) !important;
  color: var(--trade-action-text) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}
#app.gift-ui .mf-phone:not(.mf-reference) .mf-buy-footer .mf-pale {
  min-height: 44px;
  font-size: 14px !important;
}

/* 交易、账户和弹层的主要操作共享同一规则。 */
#app.gift-ui .mf-phone:not(.mf-reference)[data-foundation-page="确认订单"] .mf-footer .mf-green,
#app.gift-ui .mf-phone:not(.mf-reference) .mf-credit-sheet .mf-sheet-content > .mf-green,
#app.credit-ui.credit-user .phone:has(:is(.wallet-balance,.expiry-details)) .phonefoot .primary,
#app.gift-ui .mf-phone:not(.mf-reference):is([data-foundation-page="申请售后"],[data-foundation-page="待付款"]) .mf-footer .mf-green,
#app.gift-ui .mf-phone:not(.mf-reference) :is(.mf-reward-sheet,.mf-order-reward-sheet) .mf-sheet-content > .mf-green {
  min-height: 48px;
  border-radius: 12px !important;
  background: var(--trade-action) !important;
  color: var(--trade-action-text) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}
