/* The seller programs' pages (/start-as-seller, /start-as-vendor) inside the store layout (frontend.layouts.master):
   the wizard's own styles were written for a page of their own (body.ob); here .ob is a wrapper between the store's
   header and footer. This file carries what changes: the wrapper, the sub-bar under the store header, and a few
   guards against the store's global styles (style.css colours every bare span, p and heading). */
.ob.ob-in-store { margin: 0; background: var(--ob-bg); color: var(--ob-ink); font: 500 15px/1.6 var(--ob-font); -webkit-font-smoothing: antialiased; }
.ob.ob-in-store, .ob.ob-in-store :is(h1, h2, h3, h4, p, li, a, button, input, select, textarea, label, small, b, strong, em) { font-family: var(--ob-font); }
.ob-in-store :is(h1, h2, h3, h4) { color: inherit; }
/* style.css gives every span and p 16px / 27px, weight 400 and grey (span, p {…}): back to the wizard's own type.
   "body :where(.ob-in-store) span" outweighs that bare rule but not any of the wizard's class rules. */
body :where(.ob-in-store) span, body :where(.ob-in-store) p, body :where(.ob-in-store) li { font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit; }
.ob-in-store ul, .ob-in-store ol { margin-bottom: 0; }

/* the sub-bar: program switch, section links and "Start now", just under the store's sticky header */
.ob-in-store .ob-top { top: var(--ob-head, 0px); z-index: 1020; }
.ob-in-store .ob-top .ob-logo { pointer-events: none; }
.ob-in-store .ob-rail-in, .ob-in-store .ob-preview { top: calc(var(--ob-head, 0px) + 92px); }
.ob-in-store :is(#obHow, #obSell, #obFaq, .ob-step, .ob-status-wrap) { scroll-margin-top: calc(var(--ob-head, 0px) + 80px); }

/* the store's bottom tab bar steps aside here: the wizard has its own Back / Continue bar and start button */
body:has(.ob-in-store) .zx-tabbar { display: none !important; }
body:has(.ob-in-store) { padding-bottom: 0 !important; }
/* the hero shares the first screen with the store's header and menu */
.ob-in-store .bw-hero { min-height: 0; padding: 56px 0 72px; }
/* the closing call sits right above the store footer */
.ob-in-store .bw-final { margin-bottom: 56px; }
/* phones: the switch and links live in the hero and the store's own menu, so the sub-bar would be an empty strip;
   only the thin reading-progress line stays (the welcome screen keeps its own "Start" dock at the bottom) */
@media (max-width: 991.98px) {
  .ob-in-store .ob-top { background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .ob-in-store .ob-top-in { display: none; }
  .ob-in-store .bw-hero { padding-top: 24px; }
  .ob-in-store .ob-rail-in, .ob-in-store .ob-preview { top: calc(var(--ob-head, 0px) + 16px); }
  .ob-in-store :is(#obHow, #obSell, #obFaq, .ob-step, .ob-status-wrap) { scroll-margin-top: calc(var(--ob-head, 0px) + 16px); }
}
/* bootstrap (from the store layout) zeroes list margins: the checklist keeps its gap above the button */
.ob-in-store .bw-need ul { margin-bottom: 24px; }
.ob-in-store .bw-need { top: calc(var(--ob-head, 0px) + 88px); }

/* the seller-terms window: style.css zeroes every margin (* { margin: 0 }), which pins a modal <dialog> to the top
   corner; give it the browser's own centring back, above the store header */
.ob-in-store .ob-dialog[open] { position: fixed; inset: 0; margin: auto; z-index: 1100; }
.ob-in-store .ob-dialog .ob-terms { overflow-y: auto; }
/* the sub-bar: solid enough that the page doesn't read through it */
.ob-in-store .ob-top { background: rgba(245,247,250,.96); }
.ob-in-store:not(.ob-biz) .ob-top { background: rgba(247,245,252,.96); }
@media (max-width: 991.98px) { .ob-in-store .ob-top, .ob-in-store:not(.ob-biz) .ob-top { background: none; } }
/* phones: no dead band under the hero's example order — the next section's own top margin is the gap */
@media (max-width: 640px) { .ob-in-store .bw-hero { padding: 16px 0 0; } .ob-in-store .bw-final { margin-bottom: 40px; } }
