/* Final mobile order layout for the customer create page. */
@media (max-width:700px){
  body.codex-route-create #app>.user{
    padding-bottom:calc(128px + env(safe-area-inset-bottom))!important;
  }
  body.codex-route-create .create{
    padding:12px 12px calc(132px + env(safe-area-inset-bottom))!important;
  }
  body.codex-route-create .create .order-section--city>ul{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    align-items:stretch!important;
  }
  body.codex-route-create .create .order-section--city>ul>li{
    display:block!important;
    min-width:0!important;
    width:100%!important;
  }
  body.codex-route-create .create .order-section--city>ul>li>span{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    position:relative!important;
    width:100%!important;
    min-height:52px!important;
    padding:9px 28px 9px 9px!important;
    border:1px solid #d6dce5!important;
    border-radius:8px!important;
    background:#fff!important;
    color:#17263d!important;
    font-size:14px!important;
    font-weight:600!important;
    line-height:1.35!important;
    text-align:center!important;
    white-space:normal!important;
    word-break:break-word!important;
    overflow-wrap:anywhere!important;
    box-sizing:border-box!important;
  }
  body.codex-route-create .create .order-section--city>ul>li>span.active{
    border-color:#d43030!important;
    background:#fff4f4!important;
    color:#b51f2a!important;
    box-shadow:inset 0 0 0 1px #d43030!important;
  }
  body.codex-route-create .create .order-section--city>ul>li>span.active:after{
    content:""!important;
    position:absolute!important;
    top:7px!important;
    right:8px!important;
    width:6px!important;
    height:10px!important;
    border-right:2px solid #d43030!important;
    border-bottom:2px solid #d43030!important;
    transform:rotate(45deg)!important;
  }
  body.codex-route-create .create .order-section--city>ul>li[data-codex-empty-city="true"]{
    display:none!important;
  }
  body.codex-route-create .create .order-footer__bottom{
    display:block!important;
    width:100%!important;
    margin-top:8px!important;
  }
  body.codex-route-create .create .order-footer__remark{
    display:block!important;
    width:100%!important;
    margin:8px 0 12px!important;
    padding:9px 10px!important;
    border:1px solid #f1cccc!important;
    border-radius:7px!important;
    background:#fff8f8!important;
    color:#9d4a4a!important;
    box-sizing:border-box!important;
    line-height:1.45!important;
  }
  body.codex-route-create .create .order-footer__remark p{
    display:inline!important;
    margin:0!important;
    color:inherit!important;
    font-size:12px!important;
    line-height:1.45!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:anywhere!important;
  }
  body.codex-route-create .create .order-footer__remark p:first-child{
    display:inline-block!important;
    margin-right:6px!important;
    color:#d43030!important;
    font-size:13px!important;
    font-weight:700!important;
    white-space:nowrap!important;
  }
  body.codex-route-create .create .order-footer__checkout{
    position:sticky!important;
    bottom:calc(58px + env(safe-area-inset-bottom))!important;
    z-index:20!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr)!important;
    grid-template-rows:auto 48px!important;
    gap:8px!important;
    width:calc(100% + 24px)!important;
    margin:0 -12px!important;
    padding:10px 12px calc(10px + env(safe-area-inset-bottom))!important;
    border-top:1px solid #e7ebf0!important;
    background:rgba(255,255,255,.98)!important;
    box-shadow:0 -6px 18px rgba(23,38,61,.08)!important;
    box-sizing:border-box!important;
  }
  body.codex-route-create .create .order-footer__checkout>span{
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    line-height:1.2!important;
    align-self:center!important;
    white-space:nowrap!important;
  }
  body.codex-route-create .create .order-footer__checkout>span:first-child{
    grid-column:1!important;
    grid-row:1!important;
    justify-self:start!important;
    color:#111827!important;
    font-size:14px!important;
    font-weight:700!important;
  }
  body.codex-route-create .create .order-footer__checkout>span:nth-child(2){
    grid-column:2!important;
    grid-row:1!important;
    justify-self:center!important;
    color:#d43030!important;
    font-size:18px!important;
    font-weight:700!important;
  }
  body.codex-route-create .create .order-footer__checkout>span:nth-child(3){
    grid-column:3!important;
    grid-row:1!important;
    justify-self:end!important;
    color:#111827!important;
    font-size:14px!important;
    font-weight:700!important;
  }
  body.codex-route-create .create .order-footer__checkout .checkout-btn{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-width:0!important;
    height:48px!important;
    border-radius:7px!important;
    font-size:15px!important;
    font-weight:700!important;
    line-height:1!important;
    box-sizing:border-box!important;
  }
  body.codex-route-create .create .order-footer__checkout .checkout-btn.active{
    grid-column:1 / span 2!important;
    grid-row:2!important;
    background:#d43030!important;
    color:#fff!important;
    box-shadow:0 5px 14px rgba(212,48,48,.22)!important;
  }
  body.codex-route-create .create .order-footer__checkout .checkout-btn:not(.active){
    grid-column:3!important;
    grid-row:2!important;
    background:#f0f2f5!important;
    color:#4b5563!important;
  }
}

/* 2026-09-27 mobile order usability patch */
@media (max-width:700px){
  body.codex-route-create .create .order-section--city{overflow:visible!important;}
  body.codex-route-create .create .order-section--city>ul{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  body.codex-route-create .create .order-section--city>ul>li>span{min-height:56px!important;padding:10px 24px 10px 8px!important;font-size:15px!important;line-height:1.4!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;}
  body.codex-route-create .create .order-footer__remark{max-height:54px!important;overflow:hidden!important;margin:6px 0 8px!important;padding:6px 9px!important;font-size:11px!important;}
  body.codex-route-create .create .order-footer__checkout{position:fixed!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;margin:0!important;padding:8px 12px calc(8px + env(safe-area-inset-bottom))!important;z-index:1000!important;background:#fff!important;}
  body.codex-route-create .create .order-footer__checkout .checkout-btn{min-height:46px!important;height:46px!important;display:flex!important;visibility:visible!important;opacity:1!important;}
}

/* 2026-09-27 mobile order visibility and checkout fix */
@media (max-width:700px){
  body.codex-route-create .create{padding-top:24px!important;padding-bottom:190px!important;overflow:visible!important;}
  body.codex-route-create .create .order-section--city{margin-top:8px!important;padding-top:8px!important;scroll-margin-top:72px!important;}
  body.codex-route-create .create .order-section--city>ul>li{overflow:visible!important;}
  body.codex-route-create .create .order-section--city>ul>li>span{display:flex!important;align-items:center!important;justify-content:center!important;min-height:64px!important;height:auto!important;overflow:visible!important;clip-path:none!important;}
  body.codex-route-create .create .order-footer__checkout{position:fixed!important;left:0!important;right:0!important;bottom:58px!important;width:100%!important;min-height:104px!important;height:auto!important;display:grid!important;overflow:visible!important;z-index:10000!important;padding:8px 12px!important;background:#fff!important;box-shadow:0 -5px 18px rgba(23,38,61,.14)!important;}
  body.codex-route-create .create .order-footer__checkout .checkout-btn{position:relative!important;z-index:10001!important;display:flex!important;visibility:visible!important;min-height:46px!important;height:46px!important;}
  body.codex-route-create .create .order-footer__checkout>span{display:block!important;visibility:visible!important;}
}

/* 2026-09-27 definitive mobile order fixes */
@media (max-width:700px){
  body.codex-route-create,#app>.user,body.codex-route-create .create{overflow-x:hidden!important;overflow-y:visible!important;}
  body.codex-route-create .create{padding-top:36px!important;padding-bottom:230px!important;}
  body.codex-route-create .create .order-section--city{position:relative!important;z-index:2!important;overflow:visible!important;margin-top:12px!important;padding-top:12px!important;}
  body.codex-route-create .create .order-section--city>ul>li{position:relative!important;overflow:visible!important;}
  body.codex-route-create .create .order-section--city>ul>li>span,
  body.codex-route-create .create .order-section--city>ul>li>span.active,
  body.codex-route-create .create .order-section--city>ul>li.active>span,
  body.codex-route-create .create .order-section--city>ul>li.is-active>span,
  body.codex-route-create .create .order-section--city>ul>li>span.is-active{min-height:64px!important;height:auto!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:12px 28px 12px 10px!important;white-space:normal!important;line-height:1.45!important;overflow:visible!important;clip: auto!important;color:#17263d!important;background:#fff!important;border:1px solid #d6dce5!important;border-radius:8px!important;box-sizing:border-box!important;}
  body.codex-route-create .create .order-section--city>ul>li>span.active,
  body.codex-route-create .create .order-section--city>ul>li.active>span,
  body.codex-route-create .create .order-section--city>ul>li.is-active>span,
  body.codex-route-create .create .order-section--city>ul>li>span.is-active{color:#c5222b!important;background:#fff1f1!important;border-color:#d43030!important;box-shadow:inset 0 0 0 1px #d43030!important;}
  body.codex-route-create .create .order-footer__checkout{bottom:58px!important;z-index:30000!important;pointer-events:auto!important;min-height:122px!important;padding:10px 12px 12px!important;}
  body.codex-route-create .create .order-footer__checkout *{pointer-events:auto!important;}
  body.codex-route-create .el-dialog__wrapper,body.codex-route-create .el-message-box__wrapper{z-index:40000!important;}
  body.codex-route-create .el-dialog,body.codex-route-create .el-message-box{position:relative!important;z-index:40001!important;}
  body.codex-route-create .el-dialog .dialog-footer,body.codex-route-create .el-message-box__btns{position:relative!important;z-index:40002!important;pointer-events:auto!important;}
  body.codex-route-create .el-dialog .dialog-footer button,body.codex-route-create .el-message-box__btns button{pointer-events:auto!important;touch-action: manipulation!important;}
}

/* 2026-09-27 final mobile order interaction fix */
@media (max-width:700px){
  body.codex-route-create .create{width:100%!important;max-width:100%!important;min-width:0!important;padding:16px 12px 240px!important;overflow:visible!important;}
  body.codex-route-create .create .order-section--city{width:100%!important;margin:12px 0 18px!important;padding:12px 0 18px!important;overflow:visible!important;}
  body.codex-route-create .create .order-section--city>ul{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;width:100%!important;margin:0!important;padding:0!important;overflow:visible!important;}
  body.codex-route-create .create .order-section--city>ul>li{display:block!important;width:100%!important;min-width:0!important;margin:0!important;overflow:visible!important;}
  body.codex-route-create .create .order-section--city .el-badge{display:block!important;width:100%!important;min-width:0!important;overflow:visible!important;}
  body.codex-route-create .create .order-section--city .el-badge>span{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:58px!important;height:auto!important;padding:10px 24px 10px 10px!important;box-sizing:border-box!important;overflow:visible!important;white-space:normal!important;word-break:break-word!important;line-height:1.4!important;color:#17263d!important;background:#fff!important;border:1px solid #d6dce5!important;border-radius:8px!important;text-align:center!important;}
  body.codex-route-create .create .order-section--city .el-badge>span.active,
  body.codex-route-create .create .order-section--city .el-badge>span.grayed-out{color:#c5222b!important;background:#fff1f1!important;border:2px solid #d43030!important;box-shadow:inset 0 0 0 1px #d43030!important;}
  body.codex-route-create .create .order-footer__checkout{position:fixed!important;left:0!important;right:0!important;bottom:58px!important;z-index:110000!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:30px 48px!important;gap:6px!important;width:100%!important;min-height:96px!important;margin:0!important;padding:8px 12px!important;box-sizing:border-box!important;pointer-events:auto!important;background:#fff!important;border-top:1px solid #e4e8ee!important;box-shadow:0 -6px 18px rgba(23,38,61,.16)!important;}
  body.codex-route-create .create .order-footer__checkout>span{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;margin:0!important;padding:0!important;visibility:visible!important;pointer-events:auto!important;white-space:nowrap!important;}
  body.codex-route-create .create .order-footer__checkout>span:nth-child(1){grid-column:1!important;grid-row:1!important;justify-content:flex-start!important;font-size:14px!important;font-weight:700!important;}
  body.codex-route-create .create .order-footer__checkout>span:nth-child(2){grid-column:2!important;grid-row:1!important;color:#d43030!important;font-size:18px!important;font-weight:700!important;}
  body.codex-route-create .create .order-footer__checkout>span:nth-child(3){grid-column:3!important;grid-row:1!important;justify-content:flex-end!important;font-size:14px!important;font-weight:700!important;}
  body.codex-route-create .create .order-footer__checkout .checkout-btn{position:relative!important;z-index:110001!important;display:flex!important;grid-row:2!important;width:100%!important;height:48px!important;min-height:48px!important;margin:0!important;border-radius:8px!important;pointer-events:auto!important;touch-action:manipulation!important;}
  body.codex-route-create .create .order-footer__checkout .checkout-btn.active{grid-column:1 / span 2!important;background:#d43030!important;color:#fff!important;}
  body.codex-route-create .create .order-footer__checkout .checkout-btn:not(.active){grid-column:3!important;background:#eef1f5!important;color:#4b5563!important;}
  body.codex-route-create .el-dialog__wrapper,body.codex-route-create .el-message-box__wrapper{z-index:120000!important;pointer-events:auto!important;}
  body.codex-route-create .el-dialog,body.codex-route-create .el-message-box{z-index:120001!important;max-width:calc(100vw - 24px)!important;margin:0 auto!important;}
  body.codex-route-create .el-dialog__wrapper .el-dialog__footer,body.codex-route-create .el-dialog__wrapper .dialog-footer{position:relative!important;z-index:120002!important;display:flex!important;gap:10px!important;pointer-events:auto!important;}
  body.codex-route-create .el-dialog__wrapper .dialog-footer>span{display:flex!important;align-items:center!important;justify-content:center!important;flex:1 1 0!important;min-height:46px!important;border-radius:8px!important;pointer-events:auto!important;touch-action:manipulation!important;}
  body.codex-route-create .el-dialog__wrapper .dialog-footer>span.active{background:#d43030!important;color:#fff!important;}
  body.codex-route-create .v-modal{z-index:119999!important;}
}
@media (max-width:700px){
  body.codex-route-orders #app>.user .right,body.codex-route-orders #app>.user .right>*{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}
  body.codex-route-orders .el-table__body-wrapper,body.codex-route-orders .el-table__header-wrapper{max-width:100%!important;overflow-x:auto!important;}
}
