/* Break Point's invoice replaces only its Guest Orders sheet presentation.
   All order fetching, tracking, cancellation and payment state remain in guest-orders-hub.js. */
#guest-orders-sheet.is-bp-invoice {
  position: fixed !important;
  inset: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 1310;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column;
  padding: max(10px, env(safe-area-inset-top)) 16px max(10px, env(safe-area-inset-bottom)) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #000 !important;
  color: #fff !important;
  box-shadow: none !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
#guest-orders-sheet.is-bp-invoice[hidden] { display: none !important; }
/* Never let the handle or X consume vertical space above the receipt. */
#guest-orders-sheet.is-bp-invoice .guest-orders-handle {
  display: none !important;
}
#guest-orders-sheet.is-bp-invoice #guest-orders-close {
  position: absolute !important;
  z-index: 25 !important;
  display: grid !important;
  place-items: center;
  top: max(0px, env(safe-area-inset-top)) !important;
  right: max(14px, calc((100vw - 660px) / 2 + 12px)) !important;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  margin: 0 !important;
  padding: 0 !important;
  color: #000 !important;
  background: #fff !important;
  border: 1px solid #e6e6e6;
  border-radius: 50% !important;
  font-family: inherit;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  box-shadow: 0 3px 14px #0002;
  cursor: pointer;
  touch-action: manipulation;
}
#guest-orders-sheet.is-bp-invoice > .eyebrow,
#guest-orders-sheet.is-bp-invoice > h2,
#guest-orders-sheet.is-bp-invoice > .guest-orders-tabs,
#guest-orders-sheet.is-bp-invoice > .guest-orders-list,
#guest-orders-sheet.is-bp-invoice > .guest-orders-message,
#guest-orders-sheet.is-bp-invoice > .guest-orders-footer,
#guest-orders-sheet.is-bp-invoice > .bp-guest-help-actions {
  display: none !important;
}
#guest-orders-sheet.is-bp-invoice #bp-guest-invoice {
  display: block !important;
  flex: 0 0 auto;
  width: min(100%, 660px);
  margin: 0 auto;
  padding-bottom: 0;
}
#guest-orders-sheet.is-bp-invoice #bp-guest-invoice[hidden] { display: none !important; }
#guest-orders-sheet.is-bp-invoice .bp-invoice-receipt {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 25px clamp(16px, 5vw, 36px) 18px;
  border: 0;
  border-radius: 0 !important;
  background: #fff;
  color: #101010;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: clamp(11px, 2.8vw, 15px);
  line-height: 1.43;
  box-shadow: none;
}
#guest-orders-sheet.is-bp-invoice .bp-invoice-brand {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 3px;
  margin-bottom: 22px;
  color: #090909;
}
#guest-orders-sheet.is-bp-invoice .bp-invoice-icon {
  display: grid;
  place-items: center;
  width: 53px;
  height: 53px;
  margin: 0 0 5px;
  border: 1.5px solid #111;
  border-radius: 50%;
  font-size: 30px;
}
#guest-orders-sheet.is-bp-invoice .bp-invoice-icon svg { display: block; }
#guest-orders-sheet.is-bp-invoice .bp-invoice-brand strong {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(19px, 5vw, 27px);
  font-weight: 850;
  letter-spacing: .19em;
}
#guest-orders-sheet.is-bp-invoice .bp-invoice-brand small {
  font-size: clamp(9px, 2.5vw, 12px);
  letter-spacing: .2em;
}
#guest-orders-sheet.is-bp-invoice .bp-invoice-brand b {
  display: block;
  margin-top: 9px;
  font-size: 13px;
  letter-spacing: .2em;
}
#guest-orders-sheet.is-bp-invoice .bp-invoice-details {
  display: grid;
  gap: 1px;
  margin-bottom: 11px;
}
#guest-orders-sheet.is-bp-invoice .bp-invoice-details > div {
  display: grid;
  grid-template-columns: 32% minmax(0, 1fr);
  gap: 10px;
}
#guest-orders-sheet.is-bp-invoice .bp-invoice-tracking-entry { cursor: pointer; }
#guest-orders-sheet.is-bp-invoice .bp-invoice-tracking-entry span { text-decoration: underline; text-underline-offset: 3px; }
#guest-orders-sheet.is-bp-invoice .bp-invoice-tracking-entry:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
#guest-orders-sheet.is-bp-invoice .bp-invoice-details strong { font-weight: 800; }
#guest-orders-sheet.is-bp-invoice .bp-invoice-details span { overflow-wrap: anywhere; }
#guest-orders-sheet.is-bp-invoice .bp-invoice-divider {
  height: 0;
  margin: 11px 0;
  border-top: 1px dashed #333;
}
#guest-orders-sheet.is-bp-invoice .bp-invoice-columns,
#guest-orders-sheet.is-bp-invoice .bp-invoice-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) minmax(85px, auto);
  gap: 6px;
  align-items: baseline;
}
#guest-orders-sheet.is-bp-invoice .bp-invoice-columns {
  border-bottom: 1px solid #111;
  padding: 0 0 5px;
  margin-bottom: 8px;
}
#guest-orders-sheet.is-bp-invoice .bp-invoice-columns b:last-child,
#guest-orders-sheet.is-bp-invoice .bp-invoice-price {
  text-align: right;
}
#guest-orders-sheet.is-bp-invoice .bp-invoice-items {
  display: grid;
  gap: 8px;
  min-height: 20px;
}
#guest-orders-sheet.is-bp-invoice .bp-invoice-item {
  overflow-wrap: anywhere;
  line-height: 1.25;
}
#guest-orders-sheet.is-bp-invoice .bp-invoice-qty,
#guest-orders-sheet.is-bp-invoice .bp-invoice-price {
  white-space: nowrap;
}
#guest-orders-sheet.is-bp-invoice .bp-invoice-noitems {
  grid-template-columns: 1fr;
  color: #555;
}
#guest-orders-sheet.is-bp-invoice .bp-invoice-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0 0;
  border-top: 1px solid #111;
  font-size: clamp(18px, 4.9vw, 24px);
  font-weight: 900;
}
#guest-orders-sheet.is-bp-invoice .bp-invoice-thanks {
  margin: 23px auto 10px;
  font-weight: 750;
  text-align: center;
  font-size: 11px;
  letter-spacing: .12em;
  line-height: 1.55;
}
#guest-orders-sheet.is-bp-invoice .bp-invoice-barcode {
  width: min(65%, 250px);
  height: 34px;
  margin: 12px auto 2px;
  /* Decorative print texture only; the readable order number below is authoritative. */
  background: repeating-linear-gradient(90deg, #111 0 2px, #fff 2px 4px, #111 4px 5px, #fff 5px 9px, #111 9px 12px, #fff 12px 15px);
}
#guest-orders-sheet.is-bp-invoice .bp-invoice-code {
  display: block;
  text-align: center;
  letter-spacing: .03em;
  font-size: 11px;
}
#guest-orders-sheet.is-bp-invoice .bp-invoice-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  box-sizing: border-box;
  margin-top: 25px;
  border: 0;
  border-radius: 0 !important;
  padding: 12px 13px;
  background: #090909;
  color: #fff !important;
  text-decoration: none !important;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 750;
  cursor: pointer;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  touch-action: manipulation;
}
#guest-orders-sheet.is-bp-invoice .bp-invoice-swipe-note {
  margin: 12px 0 0;
  text-align: center;
  color: #747474;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  line-height: 1.35;
  pointer-events: none;
}
#guest-orders-sheet.is-bp-invoice .bp-invoice-empty {
  background: #fff;
  color: #111;
  padding: 36px 20px;
  border-radius: 0;
  text-align: center;
  font-weight: 650;
}
@media (max-width: 390px) {
  #guest-orders-sheet.is-bp-invoice {
    padding-left: 11px !important;
    padding-right: 11px !important;
  }
  #guest-orders-sheet.is-bp-invoice .bp-invoice-receipt { padding: 19px 13px 20px; }
  #guest-orders-sheet.is-bp-invoice .bp-invoice-columns,
  #guest-orders-sheet.is-bp-invoice .bp-invoice-item {
    grid-template-columns: 27px minmax(0,1fr) minmax(71px,auto);
    gap: 5px;
  }
}
