/* Guest app — My tab (public/guest/tab.js) */
.tb-tag { font-family: var(--font-breakout); font-style: italic; font-size: 1.15rem; color: var(--muted); text-align: center; margin: 2px 0 14px; }
.tb-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; font-size: 0.92rem; }
.tb-seg { display: inline-flex; border: 1px solid var(--sand); border-radius: var(--radius-pill); overflow: hidden; background: var(--white); }
.tb-seg button { min-height: 40px; min-width: 72px; padding: 0 18px; border: 0; background: none; color: var(--fathom); font-size: 0.95rem; }
.tb-seg button.on { background: var(--fathom); color: var(--white-sand); font-weight: 400; }
.tb-seg button:focus-visible, .tb-opt:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }

.tb-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--fs-small); color: var(--muted); margin: 0 0 4px; }
.tb-key > span { display: inline-flex; align-items: center; gap: 6px; }
.tb-key .tb-mark { width: 20px; height: 20px; }
.tb-key .tb-mark svg { width: 12px; height: 12px; }

.tb-group { margin-top: 18px; }
.tb-gh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 2px 8px; }
.tb-gh h3 { font-size: var(--fs-h3); color: var(--fathom); }
.tb-gh .num { font-weight: 400; color: var(--fathom); }
.tb-list { list-style: none; margin: 0; padding: 2px 14px; }
.tb-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--sand-light); }
.tb-row:first-child { border-top: 0; }
.tb-mark { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.tb-mark svg { width: 16px; height: 16px; }
.st-done .tb-mark { background: #e6f1ea; color: #1f5a40; }
.st-pending .tb-mark { background: #fbf1dc; color: #7a5410; }
.st-booked .tb-mark { background: #e6eef1; color: var(--sea); }
.tb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tb-t { font-weight: 400; color: var(--fathom); overflow-wrap: anywhere; }
.tb-main small { color: var(--muted); font-size: 0.82rem; overflow-wrap: anywhere; }
.tb-end { flex: none; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.tb-amt { font-weight: 400; white-space: nowrap; }
.tb-st { font-size: 0.78rem; white-space: nowrap; }
.st-done .tb-st { color: #1f5a40; }
.st-pending .tb-st { color: #7a5410; font-weight: 600; }
.st-booked .tb-st { color: var(--sea); }
.tb-group.coming .tb-list { background: var(--white-sand); border-style: dashed; box-shadow: none; }
.tb-group.coming .tb-amt { color: var(--muted); }

.tb-totals { margin-top: 22px; padding: 12px 16px; }
.tb-bal { margin-top: 14px; }
.tb-opts { display: grid; gap: 10px; margin-top: 16px; text-align: left; }
.tb-opt { display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 14px 16px; text-align: left; background: var(--white); border: 1px solid var(--fathom); border-radius: var(--radius); color: var(--fathom); }
.tb-opt:first-child { background: var(--fathom); color: var(--white-sand); }
.tb-opt b { font-weight: 500; font-size: 1.05rem; }
.tb-opt small { font-size: 0.88rem; opacity: 0.85; }
.tb-opt:disabled { opacity: 0.6; }

/* three choices in the Orders / My bill / My tab switch */
#p-account .seg button { padding: 0 6px; }

/* tip: work it out in another currency */
.tipcur { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--sand); border-radius: var(--radius-pill); overflow: hidden; background: var(--white); margin: 2px 0 8px; }
.tipcur button { min-height: 40px; min-width: 52px; padding: 0 12px; border: 0; background: none; color: var(--fathom); font-size: 0.9rem; }
.tipcur button.on { background: var(--fathom); color: var(--white-sand); }
.tipcur button:focus-visible { outline: 2px solid var(--sea); outline-offset: -2px; }
.tipconv { margin: 0 0 6px; }
