/* Operational cards share a border-box and may grow vertically. Never hide
   overflow to make a broken layout appear fixed: every item stays reachable. */
.role-kitchen .kitchen-ticket,
.role-kitchen .kitchen-ticket *,
.pass-handoff-card,
.pass-handoff-card *,
.role-admin .ticket,
.role-admin .ticket *,
.work-dialog248 .configured-cart-line,
.work-dialog248 .configured-cart-line * {
  box-sizing: border-box;
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow-wrap: anywhere;
}
.role-kitchen .kitchen-ticket-grid .kitchen-ticket,
html[data-ui-font] .role-kitchen .kitchen-ticket-grid .kitchen-ticket {
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
}
.role-kitchen .kitchen-ticket :is(.ticket-head,.kitchen-item-head227,.kitchen-code-quantity227,.ticket-actions,.ticket-timing,.pizza-line208 header) {
  min-width: 0;
  flex-wrap: wrap;
}
.role-kitchen .kitchen-ticket .ticket-item:not(.kitchen-configured227):not(.pizza-line208) {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,max-content);
  align-items: start;
  gap: 8px;
}
.role-kitchen .kitchen-ticket :is(h3,strong,span,b,p,small,button,.time-badge,.kitchen-variant227) {
  overflow-wrap: anywhere;
  white-space: normal;
}
.role-kitchen .kitchen-ticket .qty-badge {
  min-width: 0 !important;
  max-width: 6ch;
}
.role-kitchen .kitchen-ticket .ticket-actions > * {flex-shrink: 1;}
.role-kitchen .kitchen-ticket :is(.kitchen-ticket-body,.kitchen-choices227,.pizza-choice208,.pizza-choice-values227) {min-width: 0;}
.role-kitchen .kitchen-ticket .pizza-choice208 {overflow: visible;}

/* Pass uses its own card, not .kitchen-ticket. The general kitchen note and
   change banner need the same wrapping as each item so long text is not clipped
   by the card border. Preserve line breaks that staff entered in the note. */
.pass-handoff-card :is(.pass-handoff-head,.pass-handoff-actions) {min-width: 0; flex-wrap: wrap;}
.pass-handoff-card :is(.ticket-note,.order-change-alert,.pass-ready-label) {overflow-wrap: anywhere;}
.ticket-note > strong {white-space: pre-wrap; overflow-wrap: anywhere;}

/* Payment state stays in its original position, independent of source colour. */
.payment-badge249,
.queue-row247 .payment-badge249,
.ticket-meta .payment-badge249 {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 7px 11px;
  border: 2px solid transparent;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  opacity: 1;
}
.payment-badge249.paid {background: #38e879 !important; color: #062714 !important; border-color: #70ffa4;}
.payment-badge249.unpaid {background: #c31b31 !important; color: #ffffff !important; border-color: #ff8190;}
.payment-badge249.neutral {background: #303b49 !important; color: #f4f7fc !important; border-color: #7b8a9c;}

.configured-cart-line .cart-line-main {min-width: 0;}
.configured-cart-line .cart-extra-button,
.work-dialog248 .configured-cart-line .cart-extra-button {
  display: inline-flex;
  width: auto !important;
  max-width: 100%;
  min-height: 44px !important;
  padding: 7px 11px !important;
  margin: 5px 6px 0 0 !important;
  border-width: 1px !important;
  font-size: 14px;
  font-weight: 650 !important;
  line-height: 1.3;
  white-space: normal;
  text-transform: none;
}
.compact-cart249 {display: grid; gap: 8px; margin-bottom: 16px;}
.compact-cart249 .configured-cart-line {margin: 0; padding: 10px 0;}
.compact-cart249 .configured-cart-line .cart-line-main > strong {font-size: 18px;}
.checkout-compact245 .checkout-block245 {min-width: 0;}
.checkout-compact245 .checkout-head {flex-wrap: wrap;}
@media (max-width: 600px) {
  .compact-cart249 .configured-cart-line {display: grid; grid-template-columns: minmax(0,1fr);}
  .compact-cart249 .qty {justify-self: start;}
}
