/* Larger ticket text for both placed items and items being added. */
.cashier-ticket-lines article strong,
.cashier-ticket-lines .cashier-ticket-line-copy strong {
  font-size:18px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.cashier-ticket-lines article small,
.cashier-ticket-lines .cashier-ticket-line-copy small {
  font-size:14px;
  line-height:1.4;
  color:#526a78;
  overflow-wrap:anywhere;
}
.cashier-ticket-line > .ticket-line-price > b { font-size:18px; }
.cashier-existing-order > header strong,
.cashier-new-items-head strong { font-size:15px; }
.cashier-existing-order > header small,
.cashier-new-items-head small { font-size:12px; line-height:1.4; }
.cashier-existing-order > header > b { font-size:17px; }
/* The ticket owns scrolling, including long placed orders. */
.cashier-existing-order > div { max-height:none; overflow:visible; }
.cashier-ticket-lines .cashier-existing-line {
  grid-template-columns:minmax(0,1fr) auto;
  gap:6px 12px;
  padding:12px 0;
}
.cashier-existing-line > span { grid-column:1 / -1; }
.cashier-existing-line > em {
  grid-column:1;
  justify-self:start;
  font-size:16px;
  line-height:1.35;
}
.cashier-existing-line > b {
  grid-column:2;
  align-self:center;
  font-size:17px!important;
  line-height:1.35;
}
.cashier-catalog-layout > .cashier-dock-bottom { order:4; }
.cashier-catalog-layout.product-editor-open > .cashier-dock-bottom { display:none; }

/* Let the ticket reach the bottom while shortcuts use the menu's columns. */
@media (min-width:901px) {
  html:not([data-screen="phone"]) .cashier-stage.cashier-stage-with-ticket-dock {
    grid-template-rows:64px minmax(0,1fr);
  }
  html:not([data-screen="phone"]) .cashier-stage-with-ticket-dock > .cashier-catalog-layout {
    grid-template-rows:minmax(0,1fr) auto;
  }
  html:not([data-screen="phone"]) .cashier-stage-with-ticket-dock > .cashier-catalog-layout > #cart-panel {
    grid-column:1;
    grid-row:1 / 3;
  }
  html:not([data-screen="phone"]) .cashier-stage-with-ticket-dock .cashier-catalog-board { grid-column:2; grid-row:1; }
  html:not([data-screen="phone"]) .cashier-stage-with-ticket-dock .cashier-catalog-categories { grid-column:3; grid-row:1; }
  html:not([data-screen="phone"]) .cashier-stage-with-ticket-dock .cashier-catalog-layout > .cashier-dock-bottom {
    grid-column:2 / -1;
    grid-row:2;
  }
  html:not([data-screen="phone"]) .cashier-catalog-layout.product-editor-open > .cashier-product-editor {
    grid-column:2 / -1;
    grid-row:1 / -1;
  }
  html:not([data-screen="phone"]) .cashier-stage-with-ticket-dock .cashier-ticket { overflow:hidden; }
  html:not([data-screen="phone"]) .cashier-stage-with-ticket-dock .cashier-ticket > :not(.cashier-ticket-lines) { flex-shrink:0; }
  html:not([data-screen="phone"]) .cashier-stage-with-ticket-dock .cashier-ticket-lines {
    flex:1 1 0;
    min-height:0;
    overflow-y:auto;
  }
}
@media (max-width:900px) {
  .cashier-stage.cashier-stage-with-ticket-dock { grid-template-rows:58px auto; }
}
