/* Keep H5 on the phone viewport.
   Do NOT set overflow-x:hidden on uni-page* — it creates a nested
   scroller and kills vertical swipe on many pages / popups. */
html, body {
  max-width: 100% !important;
  box-sizing: border-box !important;
}
uni-app,
uni-page,
uni-page-wrapper,
uni-page-body,
#app {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
uni-tabbar,
uni-tabbar .uni-tabbar,
.uni-navbar--fixed,
.uni-popup > uni-view,
.fixed_top,
.fixed_low,
.js-tabbar .u-tabbar--fixed {
  max-width: 100% !important;
}

/* 订单列表：文字换行，卡片不贴边 */
.page .group .group_2 .list {
  padding-left: 12px !important;
  padding-right: 12px !important;
}
.list-item {
  overflow: hidden !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.list-item .text_7,
.list-item .text_9,
.list-item .text_11,
.list-item .text_13 {
  white-space: normal !important;
  word-break: break-word !important;
}

/* 订单详情：按手机屏宽铺满（只作用于含进度条的订单详情，其它页不动）
   注意：该页套了两层 .page，不能给两层都加左右 padding，否则会越来越窄。 */
uni-page-body:has(.step__top),
uni-page-body:has(.step__top) > uni-view,
uni-page-body:has(.step__top) .page {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
/* 外层 .page 不再加左右内边距 */
.page:has(.step__top):not(.pd-20) {
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
/* 内层内容区：12px 边距，随屏幕变宽 */
.page.pd-20:has(.step__top) {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 12px 24px !important;
  box-sizing: border-box !important;
}
uni-page-body:has(.step__top) .uni-navbar,
uni-page-body:has(.step__top) .uni-navbar--fixed {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
uni-page-body:has(.step__top) .zy-fixed-bottom-area,
uni-page-body:has(.step__top) .zy-fixed-bottom-area__content,
uni-page-body:has(.step__top) .zy-fixed-bottom-area__fixed,
uni-page-body:has(.step__top) .order_tool {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  transform: none !important;
  -webkit-transform: none !important;
  box-sizing: border-box !important;
}
uni-page-body:has(.step__top) .zy-fixed-bottom-area__fixed {
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}
.page.pd-20:has(.step__top) .group_1 {
  margin: 0 -12px 12px !important;
  width: auto !important;
  padding: 18px 12px !important;
  box-sizing: border-box !important;
}
.page.pd-20:has(.step__top) .group_2,
.page.pd-20:has(.step__top) .group_4,
.page.pd-20:has(.step__top) .pd-20.radius20 {
  padding: 14px !important;
  margin-bottom: 12px !important;
  box-sizing: border-box !important;
}
.page.pd-20:has(.step__top) .group_3 {
  padding: 14px !important;
  margin-bottom: 12px !important;
  box-sizing: border-box !important;
}
.page.pd-20:has(.step__top) .group_3 .text_2,
.page.pd-20:has(.step__top) .group_3 .user_infos {
  max-width: 100% !important;
  word-break: break-word !important;
  white-space: normal !important;
}
.page.pd-20:has(.step__top) .cell {
  padding: 12px 0 !important;
  gap: 12px !important;
  box-sizing: border-box !important;
}
.page.pd-20:has(.step__top) .cell > uni-text:last-child,
.page.pd-20:has(.step__top) .cell uni-text:last-child {
  padding-right: 2px !important;
  word-break: break-word !important;
  white-space: normal !important;
}
.page.pd-20:has(.step__top) .step__top__right {
  font-size: 12px !important;
  padding-left: 8px !important;
  max-width: 48% !important;
  white-space: normal !important;
  word-break: break-all !important;
}
.page.pd-20:has(.step__top) .group_4 .group_right {
  min-width: 0 !important;
  padding-right: 4px !important;
}
.page.pd-20:has(.step__top) .group_4 .group_right .text_2 {
  white-space: normal !important;
}

/* 加钟弹窗：用普通 overflow 滚动，避开 uni-scroll-view 在弹层里失效 */
.u-popup__content,
.uni-popup__wrapper,
.u-transition {
  max-height: 85vh !important;
  overflow: visible !important;
}
.time-heads,
.jia-scroll {
  max-height: 65vh !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
}

/* 加钟去下单：按钮只负责样子，点击穿透到卡片（卡片已绑定下单跳转） */
.time-heads .zy-service-item .item-btn.disabled[data-v-182598f8],
.time-heads .zy-service-item .item-btn[data-v-182598f8],
.time-heads .item-btn,
.time-heads .item-btn.disabled,
.jia-scroll .item-btn,
.jia-scroll .item-btn.disabled {
  pointer-events: none !important;
  background: linear-gradient(97deg,#24d2a3 -4.89%,#22bea3 105.97%) !important;
  color: #fff !important;
  opacity: 1 !important;
}
