.guest-orders-sheet{
  position:fixed;left:50%;bottom:0;z-index:1310;
  width:min(100%,680px);height:min(86dvh,820px);
  transform:translateX(-50%);
  display:flex;flex-direction:column;
  padding:18px 22px calc(18px + env(safe-area-inset-bottom));
  border-radius:34px 34px 0 0;
  background:#fbfaf7;color:#171717;
  box-shadow:0 -22px 70px rgba(20,20,20,.22);
}
.guest-orders-sheet[hidden]{display:none!important}
#guest-orders-backdrop{z-index:1300}
.guest-orders-handle{width:74px;height:6px;border-radius:999px;background:#d5d2cc;margin:0 auto 16px}
.guest-orders-close{
  position:absolute;right:20px;top:18px;width:52px;height:52px;border-radius:999px;
  border:1px solid rgba(20,20,20,.10);background:#fff;font:inherit;font-size:34px;line-height:1;cursor:pointer
}
.guest-orders-sheet>.eyebrow{margin:4px 0 4px;font-size:11px;letter-spacing:.18em}
.guest-orders-sheet>h2{margin:0 0 18px;font-size:38px;line-height:1;letter-spacing:-.045em}
.guest-orders-tabs{
  display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:5px;
  border-radius:18px;background:#ebe9e4;margin-bottom:14px
}
.guest-orders-tab{
  min-height:48px;border:0;border-radius:14px;background:transparent;color:#706e68;
  font:inherit;font-size:14px;font-weight:850;cursor:pointer
}
.guest-orders-tab span{
  display:inline-grid;place-items:center;min-width:24px;height:24px;margin-left:6px;padding:0 6px;
  border-radius:999px;background:rgba(0,0,0,.06);font-size:11px
}
.guest-orders-tab.is-active{background:#171717;color:#fff;box-shadow:0 6px 16px rgba(0,0,0,.12)}
.guest-orders-tab.is-active span{background:rgba(255,255,255,.16)}
.guest-orders-list{flex:1;min-height:0;overflow:auto;padding:2px 1px 18px;overscroll-behavior:contain}
.guest-order-card{
  padding:17px 18px;margin-bottom:11px;border:1px solid rgba(20,20,20,.09);border-radius:20px;
  background:#fff;box-shadow:0 7px 24px rgba(25,25,25,.045)
}
.guest-order-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.guest-order-card-top>div{min-width:0}
.guest-order-ref{display:block;margin-bottom:5px;font-size:11px;font-weight:900;letter-spacing:.08em;color:#74716b}
.guest-order-items{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:17px;line-height:1.2}
.guest-order-status{
  flex:none;padding:7px 10px;border-radius:999px;background:#f1efe9;color:#5f5d57;
  font-size:10.5px;font-weight:900;white-space:nowrap
}
.guest-order-status.is-ready{background:#e8f7ed;color:#17633a}
.guest-order-status.is-completed{background:#e8f7ed;color:#17633a}
.guest-order-status.is-cancelled{background:#fbeceb;color:#a3382d}
.guest-order-status.is-preparing{background:#fff2de;color:#8b570d}

/* Completed vs cancelled history styling only. */
.guest-order-card[data-order-status="cancelled"]{
  background:#fbf8f7;
  border-color:rgba(120,104,97,.10);
  box-shadow:none;
}
.guest-order-card[data-order-status="cancelled"] .guest-order-ref,
.guest-order-card[data-order-status="cancelled"] .guest-order-items,
.guest-order-card[data-order-status="cancelled"] .guest-order-meta,
.guest-order-card[data-order-status="cancelled"] .guest-order-payment,
.guest-order-card[data-order-status="cancelled"] .guest-order-total,
.guest-order-card[data-order-status="cancelled"] .guest-order-total strong{
  color:#aaa39d;
}
.guest-order-card[data-order-status="cancelled"] .guest-order-items,
.guest-order-card[data-order-status="cancelled"] .guest-order-total strong{
  font-weight:650;
}
.guest-order-card[data-order-status="cancelled"] .guest-order-status.is-cancelled{
  background:#f3edeb;
  color:#b29b96;
  font-weight:750;
}
.guest-order-card[data-order-status="cancelled"] .guest-order-total{
  border-top-color:rgba(120,104,97,.07);
}

.guest-order-card[data-order-status="completed"]{
  background:linear-gradient(180deg,#f8fff9 0%,#eff9f2 100%);
  border-color:#cfe7d6;
  box-shadow:0 8px 24px rgba(35,112,72,.07);
}
.guest-order-card[data-order-status="completed"] .guest-order-ref{
  color:#5a8068;
}
.guest-order-card[data-order-status="completed"] .guest-order-items,
.guest-order-card[data-order-status="completed"] .guest-order-total,
.guest-order-card[data-order-status="completed"] .guest-order-total strong{
  color:#173d29;
}
.guest-order-card[data-order-status="completed"] .guest-order-items,
.guest-order-card[data-order-status="completed"] .guest-order-total strong{
  font-weight:850;
}
.guest-order-card[data-order-status="completed"] .guest-order-meta{
  color:#688174;
}
.guest-order-card[data-order-status="completed"] .guest-order-payment{
  color:#237048;
}
.guest-order-card[data-order-status="completed"] .guest-order-status.is-completed{
  background:#dff3e5;
  color:#17633a;
  font-weight:900;
}
.guest-order-card[data-order-status="completed"] .guest-order-total{
  border-top-color:rgba(35,112,72,.12);
}
.guest-order-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;color:#817f78;font-size:12px}
.guest-order-payment{font-weight:800;color:#34704e}
.guest-order-total{
  display:flex;align-items:center;justify-content:space-between;margin-top:13px;padding-top:12px;
  border-top:1px solid rgba(20,20,20,.08);font-size:14px
}
.guest-order-total strong{font-size:17px}
.guest-orders-empty{
  display:grid;place-items:center;text-align:center;min-height:220px;padding:30px 18px;color:#77746e
}
.guest-orders-empty strong{display:block;color:#2a2926;font-size:18px}
.guest-orders-empty span{display:block;max-width:280px;margin-top:7px;font-size:13px;line-height:1.45}
.guest-orders-message{min-height:18px;margin:0 0 6px;color:#74716b;font-size:12px;text-align:center}
.guest-orders-message[data-tone="error"]{color:#b23b31}
.guest-orders-footer{
  flex:none;padding-top:10px;border-top:1px solid rgba(20,20,20,.08);background:#fbfaf7
}
.guest-orders-new{
  width:100%;min-height:58px;border:0;border-radius:18px;background:#191919;color:#fff;
  font:inherit;font-size:17px;font-weight:900;cursor:pointer
}
.guest-dock .dock-action[data-action="orders"] .rc8-dock-icon{
  width:44px;height:44px;margin-top:-20px;border-radius:50%;background:var(--rc8-orange);color:#fff;
  box-shadow:0 9px 25px rgba(242,106,33,.34)
}
.guest-dock .dock-action[data-action="orders"] .rc8-dock-icon svg{width:29px;height:29px}
@media(max-width:470px){
  .guest-orders-sheet{height:88dvh;padding:16px 16px calc(14px + env(safe-area-inset-bottom));border-radius:30px 30px 0 0}
  .guest-orders-sheet>h2{font-size:34px}
  .guest-orders-close{right:16px;top:16px;width:48px;height:48px}
  .guest-order-card{padding:15px}
}


.guest-order-actions{
  display:flex;justify-content:flex-end;margin-top:12px;padding-top:12px;border-top:1px solid rgba(20,20,20,.08)
}
.guest-order-cancel{
  min-height:38px;padding:0 14px;border:1px solid #e2d8d4;border-radius:999px;
  background:#fff7f5;color:#a43d31;font:inherit;font-size:12px;font-weight:850;cursor:pointer
}
.guest-order-cancel:disabled{opacity:.55;cursor:wait}
.guest-orders-message[data-tone="success"]{color:#2c6d47}


/* Per-order ETA: compact, visible, and separate from payment/cancel actions. */
.guest-order-eta{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  min-width:0;margin-top:13px;padding:11px 13px;border-radius:14px;
  border:1px solid rgba(40,110,68,.10);background:#f1f8f3;
}
.guest-order-eta-copy{display:grid;gap:3px;min-width:0}
.guest-order-eta-label{font-size:12px;font-weight:850;line-height:1.25;color:#245a3b}
.guest-order-eta-note{font-size:10.5px;font-weight:500;line-height:1.3;color:#6c766c}
.guest-order-eta-value{
  flex:none;max-width:45%;font-size:22px;font-weight:900;letter-spacing:-.03em;
  line-height:1.1;font-variant-numeric:tabular-nums;color:#205a39;text-align:right;
}
.guest-order-eta.is-provisional{
  background:#f8f7f3;border-color:rgba(70,67,54,.08);
}
.guest-order-eta.is-provisional .guest-order-eta-label,
.guest-order-eta.is-provisional .guest-order-eta-value{color:#4d4a42}
.guest-order-eta.is-waiting{background:#fff8ed;border-color:#f2e0c5}
.guest-order-eta.is-waiting .guest-order-eta-label,
.guest-order-eta.is-waiting .guest-order-eta-value{color:#89570c}
.guest-order-eta.is-overdue{background:#fff3ed;border-color:#f0d5c7}
.guest-order-eta.is-overdue .guest-order-eta-label,
.guest-order-eta.is-overdue .guest-order-eta-value{color:#a74a2b}
.guest-order-eta.is-overdue .guest-order-eta-value{font-size:14px;letter-spacing:0}
.guest-order-eta.is-ready{background:#e9f7ed;border-color:#c6e7d0}
.guest-order-eta.is-ready .guest-order-eta-value{font-size:16px}
@media(max-width:360px){
  .guest-order-eta{padding:9px 10px;gap:8px}
  .guest-order-eta-value{font-size:19px}
}


/* Calm, helpful explanation when a BreakPoint order is cancelled. */
.guest-order-cancel-info{
  margin-top:13px;padding:13px 14px;border-radius:14px;
  border:1px solid #eae4da;background:#f9f7f2;color:#3d3933;
}
.guest-order-cancel-info>strong{display:block;font-size:12px;font-weight:850}
.guest-order-cancel-info p{font-size:12px;line-height:1.55;margin:5px 0 0;color:#676158}
.guest-order-cancel-alts{margin-top:10px;padding-top:9px;border-top:1px solid #e6e1d8}
.guest-order-cancel-alts>span{font-size:11px;font-weight:750;color:#76685d}
.guest-order-cancel-alts ul{display:flex;gap:6px;flex-wrap:wrap;list-style:none;padding:0;margin:7px 0 0}
.guest-order-cancel-alts li{padding:6px 9px;border-radius:8px;background:#fff;border:1px solid #e9e4dc;font-size:11px;font-weight:700}
.guest-order-browse-menu{margin-top:10px;min-height:38px;padding:8px 12px;background:#1b1b1b;color:#fff;border:0;border-radius:10px;font-size:11px;font-weight:800;cursor:pointer}

/* A cancellation never disappears from the guest's active Orders view without
   its explanation. It is also retained in the History tab. */
.guest-order-cancel-banner {
  display:grid;gap:6px;margin:2px 0 12px;padding:14px 15px;border-radius:16px;
  background:#fff5ed;border:1px solid #efd5c3;color:#4b362b;
}
.guest-order-cancel-banner strong {font-size:15px;line-height:1.25}
.guest-order-cancel-banner span {font-size:12px;line-height:1.5;color:#705e53}
.guest-order-cancel-banner button {
  width:max-content;min-height:38px;margin-top:3px;padding:8px 11px;border:0;
  border-radius:10px;background:#242424;color:white;font:750 12px system-ui,-apple-system,sans-serif;
}
.guest-order-cancel-reason {
  display:grid;gap:3px;padding:9px 0 5px;
}
.guest-order-cancel-reason span {font-size:11px;color:#827162;font-weight:600}
.guest-order-cancel-reason b {color:#8b371e;font-size:14px;line-height:1.3}
.guest-order-card[data-order-status="cancelled"] .guest-order-cancel-info {
  background:#fff8f0;border-color:#e9d8c6;
}

/* Also show cancellation context within the live ETA/order tracker. */
#wigo-tracker-cancel-details[hidden],#wigo-tracker-cancel-alternatives[hidden]{display:none!important}
.wigo-tracker-cancel-details {
  display:grid;gap:6px;margin:12px 0;padding:13px 14px;border:1px solid #eacfbf;
  border-radius:15px;background:#fff7ee;color:#513525;
}
.wigo-tracker-cancel-details>strong{font-size:14px}
.wigo-tracker-cancel-details>small{font-size:11px;color:#876c5c}
.wigo-tracker-cancel-details>b{font-size:14px;color:#943b22}
.wigo-tracker-cancel-details p{margin:0 0 5px;font-size:12px;line-height:1.5;color:#6e584a}
.wigo-tracker-cancel-details span{font-size:11px;font-weight:700}
.wigo-tracker-cancel-details ul{margin:7px 0;padding-left:20px;font-size:12px;line-height:1.6}
#wigo-tracker-cancel-history{justify-self:start;min-height:42px;padding:9px 12px;border-radius:11px;border:0;background:#242424;color:#fff;font:750 12px system-ui,-apple-system,sans-serif}
