/* Page navigation uses ordinary document scrolling and keeps the storefront mounted. */
.app-page[hidden] { display: none !important; }
.app-page { min-width: 0; }
[data-page-title]:focus { outline: none; }
.notice > a { display: flex; align-items: center; gap: 8px; margin-left: auto; color: #768e71; font-size: 10px; white-space: nowrap; }
.notice > a .icon { width: 14px; height: 14px; }
.utility-page { max-width: 960px; margin: 0 auto; padding-top: 28px; min-height: calc(100dvh - 210px); color: var(--app-text); }
.page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 25px; }
.page-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 13px; border: 1px solid var(--app-line); border-radius: 12px; background: var(--app-surface); color: var(--app-accent); font-size: 14px; transition: background .2s, transform .3s var(--ease); }
.page-back .icon { width: 17px; height: 17px; transform: rotate(180deg); }
.page-back:hover { background: var(--app-surface-alt); transform: translateX(-2px); }
.page-route-label { color: var(--app-muted); font-size: 13px; }
.page-heading { display: flex; gap: 16px; align-items: center; margin-bottom: 28px; }
.page-emblem { display: grid; place-items: center; width: 58px; height: 62px; border: 1px solid var(--app-line); border-radius: 18px; background: var(--app-surface-alt); color: var(--app-accent); flex-shrink: 0; }
.page-emblem .icon { width: 29px; height: 29px; }
.page-eyebrow { font-size: 10px; letter-spacing: 2px; color: var(--app-muted); margin-bottom: 4px; }
.page-heading h1 { font-size: 29px; font-weight: 600; line-height: 1.4; letter-spacing: .5px; margin: 0 0 5px; }
.page-heading p { font-size: 15px; color: var(--app-muted); line-height: 1.7; margin: 0; }
.orders-layout { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 22px; align-items: start; }
.utility-card { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 17px; padding: 24px; box-shadow: 0 8px 25px -20px #234a3220; min-width: 0; }
.utility-card > h2 { font-size: 19px; line-height: 1.5; font-weight: 550; margin: 0 0 10px; }
.page-description { font-size: 14px; color: var(--app-muted); line-height: 1.85; margin: 0 0 22px; }
.order-search-card form { margin: 0; }
.order-search-card .field-label { font-size: 14px; color: var(--app-text); margin-bottom: 10px; }
.order-search-card .text-input { font-size: 16px; min-height: 52px; background: var(--app-surface); color: var(--app-text); border-color: var(--app-line); padding: 13px 14px; border-radius: 11px; }
.order-search-card .text-input::placeholder { color: var(--app-muted); }
.order-search-card .button { margin-top: 14px; font-size: 15px; min-height: 50px; }
.order-search-card .local-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.8; color: var(--app-muted); padding-top: 17px; border-top: 1px solid var(--app-line); margin: 20px 0 0; }
.order-search-card .local-note .icon { width: 15px; height: 15px; margin-top: 3px; }
.order-results-region { min-width: 0; }
.order-results { display: grid; gap: 13px; min-width: 0; }
.orders-placeholder { text-align: center; padding: 44px 20px; min-height: 290px; display: flex; align-items: center; flex-direction: column; justify-content: center; }
.placeholder-emblem { display: grid; place-items: center; width: 65px; height: 65px; border: 1px solid var(--app-line); background: var(--app-surface-alt); border-radius: 21px; color: #8ca37c; margin-bottom: 20px; transform: rotate(-6deg); }
.placeholder-emblem .icon { width: 31px; height: 31px; }
.orders-placeholder h2 { font-size: 18px; margin: 0 0 9px; }
.orders-placeholder p { font-size: 14px; color: var(--app-muted); line-height: 1.85; margin: 0; }
.order-results .query-card { margin: 0; padding: 20px; background: var(--app-surface); border-color: var(--app-line); border-radius: 15px; }
.order-results .query-card > b { font-size: 16px; line-height: 1.6; font-weight: 550; }
.order-results .query-card > p { font-size: 13px; color: var(--app-muted); line-height: 1.8; margin: 8px 0; overflow-wrap: anywhere; }
.order-results .query-card-footer { font-size: 12px; color: var(--app-muted); line-height: 1.7; border-color: var(--app-line); }
.results-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 1px; }
.results-heading h2 { font-size: 16px; font-weight: 550; margin: 0; }
.results-heading > span { font-size: 12px; color: var(--app-muted); }
.order-results .query-empty { margin: 0; padding: 36px 20px; background: var(--app-surface); color: var(--app-muted); border: 1px solid var(--app-line); border-radius: 16px; font-size: 14px; }
.orders-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 200px; color: var(--app-muted); font-size: 14px; }
.help-card .faq { margin: 0; }
.help-card .faq details { border-color: var(--app-line); padding: 22px 0; }
.help-card .faq details:first-child { padding-top: 0; }
.help-card .faq details:last-child { border-bottom: 0; padding-bottom: 0; }
.help-card .faq summary { color: var(--app-text); font-size: 17px; line-height: 1.6; min-height: 34px; }
.help-card .faq details p { font-size: 15px; line-height: 1.9; color: var(--app-muted); margin-top: 13px; }
.help-footnote { display: flex; align-items: flex-start; gap: 9px; background: var(--app-surface-alt); color: var(--app-muted); border: 1px solid var(--app-line); border-radius: 12px; padding: 16px 18px; font-size: 13px; line-height: 1.7; margin-top: 18px; }
.help-footnote .icon { width: 17px; height: 17px; margin-top: 2px; }

@media (max-width: 800px) {
  .notice > a { display: none; }
  .utility-page { padding-top: 16px; min-height: calc(100dvh - 310px - var(--app-safe-top) - var(--app-safe-bottom)); }
  .page-toolbar { margin-bottom: 24px; }
  .page-back { font-size: 15px; padding: 9px 12px; }
  .page-back .icon { width: 18px; height: 18px; }
  .page-back:hover { transform: none; }
  .page-route-label { font-size: 13px; }
  .page-heading { gap: 13px; margin-bottom: 24px; align-items: flex-start; }
  .page-emblem { width: 50px; height: 54px; border-radius: 16px; margin-top: 7px; }
  .page-emblem .icon { width: 27px; height: 27px; }
  .page-eyebrow { font-size: 11px; letter-spacing: 1.4px; margin-bottom: 5px; }
  .page-heading h1 { font-size: 28px; margin-bottom: 6px; }
  .page-heading p { font-size: 14px; line-height: 1.8; }
  .orders-layout { grid-template-columns: 1fr; gap: 20px; }
  .utility-card { border-radius: 17px; padding: 21px 18px; }
  .utility-card > h2 { font-size: 20px; margin-bottom: 10px; }
  .page-description { font-size: 14px; line-height: 1.8; margin-bottom: 22px; }
  .order-search-card .field-label { font-size: 16px; }
  .order-search-card .text-input { min-height: 54px; font-size: 16px; padding: 15px 14px; }
  .order-search-card .button { min-height: 52px; font-size: 16px; margin-top: 15px; }
  .order-search-card .local-note { font-size: 13px; line-height: 1.8; margin-top: 20px; }
  .order-search-card .local-note .icon { width: 16px; height: 16px; }
  .orders-placeholder { min-height: 235px; padding: 30px 20px; }
  .orders-placeholder h2 { font-size: 18px; }
  .orders-placeholder p { font-size: 14px; }
  .placeholder-emblem { width: 56px; height: 56px; border-radius: 18px; margin-bottom: 16px; }
  .placeholder-emblem .icon { width: 28px; height: 28px; }
  .results-heading { margin: 1px 2px 2px; }
  .results-heading h2 { font-size: 16px; }
  .results-heading > span { font-size: 13px; }
  .order-results .query-card { padding: 18px; }
  .order-results .query-card > b { font-size: 17px; }
  .order-results .query-card > p { font-size: 14px; line-height: 1.8; }
  .order-results .query-card-footer { font-size: 13px; gap: 8px; }
  .help-card .faq summary { font-size: 17px; min-height: 34px; }
  .help-card .faq details { padding: 20px 0; }
  .help-card .faq details p { font-size: 15px; line-height: 1.9; margin-right: 0; }
  .help-footnote { font-size: 13px; padding: 15px; }
}
@media (max-width: 360px) {
  .page-toolbar { margin-bottom: 20px; }
  .page-heading { gap: 11px; }
  .page-emblem { width: 45px; height: 50px; }
  .page-heading h1 { font-size: 26px; }
  .page-heading p { font-size: 14px; }
  .utility-card { padding: 20px 16px; }
}
