/* Site store step 2: the checkout sheet (store-checkout.js). STAGING ONLY. A phone gets the whole screen; wider screens
   get a centered sheet. Colors follow the store's own dark sheet (store.css). */
html.msc-open { overflow: hidden; }
/* Christian's iPad walk (2026-12-04): the pop-up opened UNDER the store's cart drawer and sheets (.ms-layer, z 2147483001), so he had to close the cart to see it. It now sits above them (below the store's help sheet and toast, 2147483003+). */
.msc-layer { position: fixed; inset: 0; z-index: 2147483002; background: rgba(0, 0, 0, .6); display: flex; align-items: flex-end; justify-content: center; }
.msc-sheet { background: #111; color: #f4f4f4; width: 100%; max-width: 560px; max-height: 100dvh; overflow-y: auto; border-radius: 16px 16px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); box-sizing: border-box; font: 16px/1.45 inherit; }
@media (min-width: 720px) { .msc-layer { align-items: center; } .msc-sheet { border-radius: 16px; max-height: 90vh; padding: 24px; } }
@media (max-width: 719px) { .msc-sheet { min-height: 100dvh; border-radius: 0; } }
.msc-hd { position: relative; }
.msc-hd h2 { margin: 8px 40px 12px 0; font-size: 1.35rem; line-height: 1.25; }
.msc-x { position: absolute; top: -4px; right: -4px; width: 44px; height: 44px; border: 0; background: none; color: inherit; font-size: 28px; cursor: pointer; }
.msc-steps { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; font-size: .8rem; color: #8a8a8a; }
.msc-steps .on { color: #2bd4f4; font-weight: 700; }
.msc-steps .done { color: #cfcfcf; }
.msc-muted { color: #b5b5b5; }
.msc-err { background: #3a1212; color: #ffd6d6; border-radius: 8px; padding: 10px 12px; }
.msc-btn { display: block; width: 100%; min-height: 48px; margin: 16px 0 0; border: 0; border-radius: 10px; background: #2bd4f4; color: #041015;
  font: 700 1rem/1.2 inherit; cursor: pointer; }
.msc-btn[disabled] { opacity: .45; cursor: default; }
a.msc-btn { display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; box-sizing: border-box; }
.msc-link { display: block; margin: 12px auto 0; border: 0; background: none; color: #2bd4f4; text-decoration: underline; font: inherit; min-height: 44px; cursor: pointer; }
.msc-ft { border-top: 1px solid #262626; margin-top: 16px; }
.msc-form label { display: block; margin: 12px 0 0; font-weight: 600; }
.msc-form input:not([type="checkbox"]) { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; min-height: 48px; padding: 10px 12px;
  border: 1px solid #3a3a3a; border-radius: 8px; background: #1b1b1b; color: inherit; font-size: 16px; }
.msc-form .msc-tick { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: #cfcfcf; }
.msc-form .msc-tick input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.msc-booked .msc-big { font-size: 1.25rem; font-weight: 700; color: #2bd4f4; }
/* S2-5: the job's price, the nearest open times, the booked lines. */
.msc-price { background: #181818; border-radius: 10px; padding: 12px; margin: 0 0 12px; }
.msc-lines { list-style: none; margin: 0; padding: 0; }
.msc-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #262626; }
.msc-lines li span { min-width: 0; overflow-wrap: anywhere; }
.msc-total { display: flex; justify-content: space-between; margin: 8px 0 0; font-weight: 700; }
.msc-booked .msc-total { display: block; font-weight: 400; }
.msc-note { background: #10303a; color: #d8f6ff; border-radius: 8px; padding: 8px 10px; font-size: .9rem; }
.msc-near { background: #181818; border-radius: 10px; padding: 12px; margin: 0 0 12px; }
.msc-near p { margin: 0 0 8px; }
.msc-chip { display: block; width: 100%; min-height: 44px; margin: 6px 0 0; border: 1px solid #2bd4f4; border-radius: 10px; background: none; color: #2bd4f4;
  font: 600 .95rem/1.2 inherit; cursor: pointer; }
/* Round 4, Part B: the steps drawn INSIDE the store's cart drawer (a phone's drawer is the whole screen). */
.ms-drawer.ms-checkout > :not(.msc-inline) { display: none !important; }
.msc-inline { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.msc-inline .msc-sheet { flex: 1; min-height: 0; max-width: none; max-height: none; width: 100%; overflow-y: auto; border-radius: 0; background: transparent;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
.msc-back { display: inline-block; min-height: 44px; margin: 0 0 4px; padding: 0; border: 0; background: none; color: #2bd4f4; font: 700 .95rem/1.2 inherit; cursor: pointer; }
/* Round 4, Part C: the Booked screen's quick actions. */
.msc-acts { display: flex; flex-direction: column; gap: 0; margin-top: 4px; }
.msc-acts .msc-btn { margin-top: 10px; }
.msc-btn.msc-ghost { background: transparent; color: #2bd4f4; border: 2px solid #2bd4f4; }
/* Round 4: the card form inside the step (Stripe's Payment Element), and one Book button. */
[data-msc-agree] [data-ck-act="next"] { display: none !important; }
.msc-cardbox { margin-top: 16px; }
.msc-pe { min-height: 120px; margin: 8px 0; }
.msc-fine { font-size: .8rem; color: #8a8a8a; margin: 6px 0 0; }
/* Booking flow v2: phone or in person, then the time; the condition recap on the agree step. */
.msc-picks { display: flex; flex-direction: column; gap: 4px; }
.msc-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; text-align: left; }
.msc-pick span { font-weight: 400; font-size: 14px; }
.msc-recap { border: 1px solid rgba(43, 212, 244, .4); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
.msc-recap p { margin: 0 0 6px; } .msc-recap .msc-link { display: inline; margin: 0 0 0 6px; min-height: 0; }
