/* GAINVO Storefront v0.10.44 — Orders stability authority */
.screen[data-screen="orders"]{
  width:min(100%, 760px);
  margin-inline:auto;
  overflow:visible;
  overflow-anchor:auto;
}
.screen[data-screen="orders"] #ordersList,
.screen[data-screen="orders"] .orders-stack,
.screen[data-screen="orders"] .orders-list,
.screen[data-screen="orders"] .orders-history-list,
.screen[data-screen="orders"] .orders-group{
  width:100%;
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}
.screen[data-screen="orders"] .orders-list,
.screen[data-screen="orders"] .orders-history-list{display:grid;gap:12px}

/* The Orders page must not animate or scale its layout while the customer scrolls. */
.screen[data-screen="orders"] .customer-order-card,
.screen[data-screen="orders"] .order-history-card,
.screen[data-screen="orders"] .order-summary-strip>div,
.screen[data-screen="orders"] .order-timeline,
.screen[data-screen="orders"] .order-step,
.screen[data-screen="orders"] .order-history-toggle,
.screen[data-screen="orders"] .customer-pay-button,
.screen[data-screen="orders"] .order-complete-button,
.screen[data-screen="orders"] .post-purchase-actions button{
  transform:none!important;
  animation:none!important;
  transition:none!important;
}
.screen[data-screen="orders"] .customer-order-card.customer-order-card-v2{
  contain:none!important;
  overflow:hidden;
  isolation:isolate;
}

/* A fixed two-by-two summary is more stable than a horizontal rail on phones. */
@media (max-width:759px){
  .screen[data-screen="orders"] .order-summary-strip{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    grid-auto-columns:auto!important;
    overflow:visible!important;
    gap:8px!important;
  }
  .screen[data-screen="orders"] .order-summary-strip>div{
    min-height:68px;
    padding:11px 12px!important;
  }
}

/* One stable five-column timeline. Nothing scrolls horizontally or changes row height. */
.screen[data-screen="orders"] .order-timeline{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  grid-auto-flow:row!important;
  grid-auto-columns:auto!important;
  align-items:start;
  min-height:86px!important;
  height:86px!important;
  padding:12px 2px 8px!important;
  margin:12px 0!important;
  overflow:hidden!important;
  overscroll-behavior:none;
  scroll-snap-type:none!important;
}
.screen[data-screen="orders"] .order-step{
  min-width:0!important;
  width:100%!important;
  height:66px;
  display:grid;
  grid-template-rows:27px auto;
  justify-items:center;
  align-content:start;
  gap:6px!important;
}
.screen[data-screen="orders"] .order-step-dot{
  width:26px!important;
  height:26px!important;
  min-width:26px;
  min-height:26px;
}
.screen[data-screen="orders"] .order-step:not(:last-child)::after{
  top:13px!important;
  left:58%!important;
  width:84%!important;
  height:2px!important;
}
.screen[data-screen="orders"] .order-step>div{width:100%;min-width:0;text-align:center}
.screen[data-screen="orders"] .order-step strong{
  display:block!important;
  width:100%!important;
  padding:0 1px;
  font-size:11px!important;
  line-height:1.15!important;
  font-weight:800;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:clip!important;
}
.screen[data-screen="orders"] .order-step small{display:none!important}

/* Normal readable type and predictable card geometry. */
.screen[data-screen="orders"] .customer-order-card.customer-order-card-v2{padding:14px!important;border-radius:18px!important}
.screen[data-screen="orders"] .order-business-copy>.micro,
.screen[data-screen="orders"] .orders-group-head .micro,
.screen[data-screen="orders"] .order-confirmation-banner .micro,
.screen[data-screen="orders"] .order-handover-card .micro,
.screen[data-screen="orders"] .history-order-copy .micro,
.screen[data-screen="orders"] .order-history-head .micro{font-size:11px!important}
.screen[data-screen="orders"] .customer-order-head h3{font-size:18px!important;line-height:1.2!important}
.screen[data-screen="orders"] .customer-order-subtitle{font-size:13px!important}
.screen[data-screen="orders"] .customer-payment-badge,
.screen[data-screen="orders"] .customer-order-status{font-size:12px!important;min-height:30px!important}
.screen[data-screen="orders"] .customer-order-lines>div{font-size:13px!important;line-height:1.4!important}
.screen[data-screen="orders"] .customer-order-total{min-height:54px;align-items:center!important}
.screen[data-screen="orders"] .customer-order-total strong{font-size:22px!important}
.screen[data-screen="orders"] .customer-order-help{font-size:13px!important;line-height:1.45!important}

/* History stays compact, but not cramped. */
.screen[data-screen="orders"] .order-history-toggle{
  width:100%;
  min-height:76px!important;
  padding:12px!important;
  box-sizing:border-box;
}
.screen[data-screen="orders"] .history-order-copy strong{font-size:14px!important;line-height:1.25!important}
.screen[data-screen="orders"] .history-order-copy small{font-size:12px!important;line-height:1.35!important}
.screen[data-screen="orders"] .history-order-meta>strong{font-size:14px!important}
.screen[data-screen="orders"] .history-status{font-size:11px!important}
.screen[data-screen="orders"] .order-history-row strong{font-size:13px!important}
.screen[data-screen="orders"] .order-history-row small{font-size:12px!important}
.screen[data-screen="orders"] .order-history-row time{font-size:11px!important}

/* Stable page spacing above the rebuilt bottom navigation. */
@media (max-width:759px){
  .screen[data-screen="orders"]{padding-bottom:calc(106px + env(safe-area-inset-bottom))!important}
  .screen[data-screen="orders"] .orders-native-head{margin-bottom:12px!important}
  .screen[data-screen="orders"] .orders-native-head h1{font-size:23px!important}
  .screen[data-screen="orders"] .orders-native-head p{font-size:13px!important;line-height:1.45!important}
  .screen[data-screen="orders"] .orders-group-head{align-items:center!important}
  .screen[data-screen="orders"] .orders-group-head h2{font-size:18px!important}
  .screen[data-screen="orders"] .orders-group-head p{font-size:12.5px!important}
}

@media (max-width:359px){
  .screen[data-screen="orders"] .customer-order-card.customer-order-card-v2{padding:12px!important}
  .screen[data-screen="orders"] .order-step strong{font-size:10px!important}
  .screen[data-screen="orders"] .order-timeline{height:82px!important;min-height:82px!important}
}

@media (min-width:760px){
  .screen[data-screen="orders"]{width:min(100%,940px)}
  .screen[data-screen="orders"] .order-timeline{height:92px!important;min-height:92px!important;padding-inline:10px!important}
  .screen[data-screen="orders"] .order-step strong{font-size:12px!important}
}

@media (prefers-reduced-motion:reduce){
  .screen[data-screen="orders"] *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
