/* Booking flow shell (Views/Book/Flow.cshtml). Namespaced bk-*. */
.bk { --bk-ink: #111827; --bk-muted: #6b7280; --bk-line: #e5e7eb; --bk-accent: #f5c451; --bk-accent-ink: #5a4310; max-width: 1180px; margin: 0 auto; padding: 0 16px 90px; color: var(--bk-ink); }
.bk-head { display: flex; align-items: center; gap: 14px; padding: 14px 0; position: sticky; top: 0; z-index: 30; background: #f5f5f5; }
.bk-home { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--bk-line); color: var(--bk-ink); text-decoration: none; font-size: 1.15rem; flex: 0 0 auto; }
.bk-home:hover { border-color: var(--bk-accent); color: var(--bk-accent-ink); }
.bk-steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0; flex: 1; overflow-x: auto; scrollbar-width: none; }
.bk-step { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--bk-muted); white-space: nowrap; }
.bk-step + .bk-step::before { content: ""; width: 28px; height: 2px; background: var(--bk-line); margin: 0 10px; }
.bk-step .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--bk-line); font-size: .74rem; }
.bk-step.is-active { color: var(--bk-ink); } .bk-step.is-active .n { background: var(--bk-accent); border-color: var(--bk-accent); color: #111; }
.bk-step.is-done { color: #15803d; } .bk-step.is-done .n { background: #16a34a; border-color: #16a34a; color: #fff; } .bk-step.is-done + .bk-step::before { background: #16a34a; }

.bk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.bk-stage { min-width: 0; min-height: 60vh; outline: none; transition: opacity .15s; }
.bk.is-busy .bk-stage { pointer-events: none; }
.bk-skel i { display: block; height: 120px; border-radius: 14px; margin-bottom: 14px; background: linear-gradient(90deg, #ececec 25%, #f6f6f6 37%, #ececec 63%); background-size: 400% 100%; animation: bksk 1.2s ease infinite; }
@keyframes bksk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
/* the step pages bring their own header/back arrow; the shell stepper replaces their progress header */
.bk-stage .co-flow-header { display: none; }
.bk-stage .ss-sticky, .bk-stage .co-screen { max-width: 100%; }

.bk-summary { position: sticky; top: 76px; background: #fff; border: 1px solid var(--bk-line); border-radius: 16px; padding: 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, .06); }
.bk-summary:empty { display: none; }
.bk-sum-head { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px dashed var(--bk-line); margin-bottom: 12px; }
.bk-sum-head img { width: 56px; height: 76px; object-fit: cover; border-radius: 8px; background: #eee; flex: 0 0 auto; }
.bk-sum-head b { display: block; font-size: .95rem; line-height: 1.25; } .bk-sum-head small { display: block; color: var(--bk-muted); font-size: .76rem; margin-top: 2px; }
.bk-sum-empty { margin: 0; font-size: .82rem; color: var(--bk-muted); line-height: 1.5; } .bk-live { font-size: 1.1rem; color: var(--bk-ink); }
.bk-row { display: flex; justify-content: space-between; gap: 10px; font-size: .84rem; padding: 5px 0; color: #374151; } .bk-row b { color: var(--bk-ink); white-space: nowrap; } .bk-row.good b, .bk-row.good span { color: #15803d; }
.bk-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 12px; border-top: 2px solid var(--bk-ink); } .bk-total span { font-weight: 800; } .bk-total b { font-size: 1.5rem; font-weight: 800; }

.bk-chip { display: none; margin-left: auto; align-items: center; gap: 6px; background: #111; color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 800; font-size: .84rem; cursor: pointer; white-space: nowrap; }
.bk-chip i { font-size: .7rem; transition: transform .15s; } .bk.sum-open .bk-chip i { transform: rotate(180deg); }
@media (max-width: 991.98px) {
  .bk-grid { grid-template-columns: 1fr; }
  .bk-chip:not([hidden]) { display: inline-flex; }
  /* summary opens as a panel under the stepper (a fixed bottom bar collided with every step's own Book / Pay button) */
  .bk-summary { display: none; position: fixed; left: 12px; right: 12px; top: 72px; bottom: auto; z-index: 60; max-height: 70vh; overflow: auto; border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .3); }
  html.zx-in-app .bk-summary { top: calc(var(--zx-appbar-h, 54px) + 72px); }
  .bk.sum-open .bk-summary:not(:empty) { display: block; }
  .bk[data-step="done"] .bk-chip { display: none !important; }
}
.bk[data-step="done"] .bk-grid { grid-template-columns: 1fr; } .bk[data-step="done"] .bk-summary { display: none !important; }
@media (max-width: 575.98px) { .bk { padding: 0 10px 90px; } .bk-step .l { display: none; } .bk-step.is-active .l { display: inline; } .bk-step + .bk-step::before { width: 16px; margin: 0 6px; } }

/* transparent loader over the step area while a fragment is fetched (the previous step stays visible underneath) */
.bk-stagewrap { position: relative; min-width: 0; }
.bk-loader { position: absolute; inset: 0; z-index: 25; display: none; justify-content: center; align-items: flex-start; background: rgba(255, 255, 255, .45); border-radius: 12px; }
.bk.is-busy .bk-loader { display: flex; animation: bkfade .12s ease-out; }
.bk-spin { position: sticky; top: 38vh; width: 46px; height: 46px; margin-top: 18vh; border-radius: 50%; border: 4px solid rgba(17, 17, 17, .12); border-top-color: var(--bk-accent); border-right-color: var(--bk-accent); animation: bkspin .8s linear infinite; box-shadow: 0 6px 20px rgba(0, 0, 0, .12); background: rgba(255, 255, 255, .6); }
@keyframes bkspin { to { transform: rotate(360deg); } } @keyframes bkfade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bk-spin { animation-duration: 2s; } }

/* the step pages reserve room for their own fixed header (hidden here): drop that gap, and clear the in-app app bar instead */
.bk-stage .co-flow-page, .bk-stage .screen.co-flow-page, .bk-stage .msb-food-screen { padding-top: 0 !important; min-height: 0 !important; }
html.zx-in-app .bk { padding-top: var(--zx-appbar-h, 54px); }
html.zx-in-app .bk-head { top: var(--zx-appbar-h, 54px); }

/* the step pages pin their own title bar (position: fixed) and pad the page to clear it. Inside the flow the stepper sits there,
   so those bars become ordinary in-flow rows and the padding that reserved their space goes away */
.bk-stage .ss-head, .bk-stage .zxl-head, .bk-stage .zxs-top, .bk-stage .zx-top, .bk-stage .zxd-head { position: static !important; top: auto !important; left: auto !important; right: auto !important; width: auto !important; transform: none !important; }
.bk-stage .ss-page, .bk-stage .zx-landing, .bk-stage .zxs, .bk-stage .zxd { padding-top: 0 !important; }
.bk-stage { --zx-sat: 0px; }
