/* Order & pay from the table (Table.tsx) + table reservations (Book.tsx). Apple-like: ink #111, cards #F5F5F7, hairlines #E5E5EA. */
.tb, .bk { max-width: 560px; margin: 0 auto; padding-bottom: 132px; min-height: 100vh; }
.tb-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px 0; }
.tb-head2 { justify-content: space-between; padding-bottom: 6px; }
.tb-head2 b { font-size: 17px; font-weight: 650; }
.tb-logo { width: 40px; height: 40px; border-radius: 11px; background: #111; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.tb-logo img { width: 100%; height: 100%; object-fit: cover; }
.tb-id { flex: 1; min-width: 0; }
.tb-id b { display: block; font-size: 17px; font-weight: 650; }
.tb-id span { color: #6E6E73; font-size: 13.5px; }
.tb-badge { background: #111; color: #fff; height: 32px; border-radius: 16px; padding: 0 13px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; white-space: nowrap; }
.tb-shared { margin: 14px 20px 0; padding: 12px 14px; display: flex; align-items: center; gap: 10px; background: #F5F5F7; border-radius: 16px; }
.tb-avs { display: flex; }
.tb-avs span { width: 30px; height: 30px; border-radius: 15px; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #F5F5F7; margin-inline-start: -8px; }
.tb-avs span:first-child { margin-inline-start: 0; }
.tb-shared-t { flex: 1; font-size: 13.5px; line-height: 1.3; min-width: 0; }
.tb-shared-t b { display: block; }
.tb-shared-t span { color: #6E6E73; }
.tb-me { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.tb-bar { position: fixed; inset-inline: 0; bottom: 0; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid #E5E5EA; display: flex; flex-direction: column; gap: 8px; align-items: stretch; max-width: 560px; margin: 0 auto; z-index: 20; }
.tb-bar:empty { display: none; }
.tb-cta { min-height: 56px; border-radius: 16px; border: 0; background: var(--brand, #111); color: #fff; font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; gap: 12px; cursor: pointer; }
.tb-cta.center { justify-content: center; }
.tb-cta:disabled { opacity: .45; }
.tb-cta-r { font-weight: 500; opacity: .9; }
.tb-link { background: none; border: 0; color: #1D1D1F; font-size: 14.5px; font-weight: 500; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tb-link.center { display: block; margin: 4px auto 0; }
.tb-lines { display: flex; flex-direction: column; }
.tb-line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #E5E5EA; }
.tb-line-n { flex: 1; font-weight: 500; }
.tb-line-p { font-weight: 600; }
.tb .stepper.sm button, .bk .stepper.sm button { width: 36px; height: 36px; }
.tb-gone { max-width: 420px; margin: 18vh auto 0; text-align: center; padding: 0 24px; }
.tb-gone .tb-logo { margin: 0 auto 14px; width: 56px; height: 56px; border-radius: 16px; font-size: 22px; }
.tb-gone h1 { font-size: 22px; margin: 0 0 8px; }
.tb-gone p { color: #6E6E73; line-height: 1.45; }
.tb-tabbody { padding: 6px 20px 20px; }
.tb-empty { color: #6E6E73; text-align: center; margin: 60px 20px; }
.tb-status { display: flex; gap: 12px; align-items: center; background: #F5F5F7; border-radius: 16px; padding: 14px 16px; margin: 8px 0 6px; }
.tb-status b { display: block; font-size: 15px; }
.tb-status span { color: #6E6E73; font-size: 13.5px; }
.tb-dot { width: 10px; height: 10px; border-radius: 5px; background: #34C759; flex: none; box-shadow: 0 0 0 4px rgba(52,199,89,.18); }
.tb-dot.wait { background: #8E8E93; box-shadow: 0 0 0 4px rgba(142,142,147,.18); }
.tb-person { padding: 14px 0 6px; border-bottom: 1px solid #E5E5EA; }
.tb-person-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tb-person-h b { font-size: 15.5px; }
.tb-amt { margin-inline-start: auto; font-weight: 600; }
.tb-tag { font-size: 12px; font-weight: 600; background: #F5F5F7; color: #6E6E73; border-radius: 10px; padding: 3px 8px; }
.tb-tag.ok { background: #E8F7EC; color: #1F7A36; }
.tb-row { display: flex; gap: 10px; padding: 5px 0; font-size: 14.5px; align-items: baseline; }
.tb-row.wait { color: #6E6E73; }
.tb-q { color: #6E6E73; min-width: 24px; }
.tb-rn { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tb-rn small { color: #6E6E73; font-size: 12.5px; }
.tb-rp { font-variant-numeric: tabular-nums; }
.tb-totals { padding: 14px 0 6px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.tb-totals > div { display: flex; justify-content: space-between; }
.tb-totals .tb-left { font-size: 18px; padding-top: 6px; border-top: 1px solid #E5E5EA; margin-top: 4px; }
.tb-done { text-align: center; font-weight: 600; margin: 18px 0; }
.tb .seg, .bk .seg { display: flex; background: #F5F5F7; border-radius: 12px; padding: 3px; margin: 14px 0 10px; }
.tb .seg button, .bk .seg button { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 6px; border: 0; background: none; min-height: 40px; border-radius: 10px; font-size: 14px; font-weight: 500; color: #1D1D1F; cursor: pointer; }
.tb .seg button.on, .bk .seg button.on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }
.tb .seg button:disabled, .bk .seg button:disabled { opacity: .4; }
.tb-split { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 10px; }
.tb-split > div, .tb-tips { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.tb-split .stepper span { min-width: 82px; text-align: center; font-weight: 600; font-size: 14px; }
.tb-tips { margin: 8px 0 12px; flex-wrap: wrap; }
.tb-tips .chips { display: flex; gap: 6px; }
.tb .chip, .bk .chip { border: 1px solid #E5E5EA; background: #fff; border-radius: 18px; min-height: 36px; padding: 0 14px; font-size: 14px; cursor: pointer; color: #1D1D1F; }
.tb .chip.on, .bk .chip.on { background: #111; border-color: #111; color: #fff; }
.tb .chip.lg, .bk .chip.lg { min-height: 44px; min-width: 76px; font-size: 15px; font-weight: 500; }
.tb .chip:disabled, .bk .chip:disabled { color: #C7C7CC; text-decoration: line-through; background: #fff; }
.tb-pay { min-height: 56px; margin-top: 6px; font-size: 16.5px; }
.tb-foot { text-align: center; color: #8E8E93; font-size: 12.5px; margin: 10px 0 0; }
.tb-calls { display: flex; gap: 10px; margin-top: 18px; }
.tb-calls .btn { flex: 1; min-height: 48px; }
.tb .hp, .bk .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.bk-h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 22px 20px 4px; }
.bk-h1.center, .tb .center, .bk .center { text-align: center; }
.bk-note { margin: 0 20px; }
.bk-sec { padding: 14px 20px 0; }
.bk-sec h2 { font-size: 13px; font-weight: 600; color: #6E6E73; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 10px; }
.bk-party { display: flex; align-items: center; gap: 20px; }
.bk-party b { font-size: 28px; min-width: 40px; text-align: center; font-variant-numeric: tabular-nums; }
.tb .round.lg, .bk .round.lg { width: 48px; height: 48px; border-radius: 24px; }
.bk-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.bk-day { flex: none; width: 60px; min-height: 64px; border-radius: 14px; border: 1px solid #E5E5EA; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; color: #1D1D1F; }
.bk-day span { font-size: 12px; color: #6E6E73; }
.bk-day b { font-size: 18px; }
.bk-day.on { background: #111; border-color: #111; color: #fff; }
.bk-day.on span { color: rgba(255,255,255,.75); }
.bk-day:disabled { opacity: .35; }
.bk-closed { margin: 8px 0 0; }
.bk-times { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-form { display: flex; flex-direction: column; gap: 10px; }
.tb .field, .bk .field { width: 100%; min-height: 50px; border: 1px solid #E5E5EA; border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 16px; background: #fff; color: #1D1D1F; box-sizing: border-box; }
.bk-dep { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: #F5F5F7; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.bk-done { padding: 0 20px 40px; display: flex; flex-direction: column; gap: 12px; }
.bk-check { width: 64px; height: 64px; border-radius: 32px; background: #111; color: #fff; display: flex; align-items: center; justify-content: center; margin: 48px auto 0; }
.bk-check.x { background: #8E8E93; }
.bk-card { background: #F5F5F7; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.bk-when { font-size: 18px; font-weight: 650; }
.tb .btn.block, .bk .btn.block { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; text-decoration: none; box-sizing: border-box; }
.tb .btn.danger, .bk .btn.danger { color: #C4302B; border-color: #C4302B; }
.tb .small, .bk .small { font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .tb *, .bk * { transition: none !important; animation: none !important; } }
