/* Request 243C: the job workspace's Checkout tab, demo payment sheet and receipt (shop.css tokens). */
.ck { display: flex; flex-direction: column; gap: 12px; }
.ck-card .est-top .stage { white-space: nowrap; }
.ck-draft { padding: 10px 20px; font-size: 13px; color: var(--ink-2); background: var(--surface-2); border-bottom: 1px solid var(--hair); }
.ck-sum .ck-unset { color: var(--ink-2); font-weight: 400; font-size: 13px; }
.ck-sum .k.ck-due, .ck-sum .v.ck-due { color: var(--ink); font-weight: 600; }
.ck-sum .k.ck-zero, .ck-sum .v.ck-zero { color: var(--green); font-weight: 600; }
.ck-aside { padding: 12px 20px; border-bottom: 1px solid var(--hair); font-size: 13.5px; }
.ck-aside-t { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.ck-aside ul { list-style: none; margin: 0; padding: 0; }
.ck-aside li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.ck-aside p { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-2); }
.ck-dim { color: var(--ink-2); font-size: 13px; }
.ck-ready { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); padding: 0 4px; }
.ck-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.ck-ready.is-ready { color: var(--ink); }
.ck-ready.is-ready .ck-dot { background: var(--green); }
.ck-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ck-actions .primary { min-width: 180px; min-height: 42px; }
.ck-msg:empty { display: none; }
.ck-pays .panel-row > span:last-child { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.ck-ref { font-size: 11.5px; color: var(--ink-3); }
.ck-ref span, .ck-r-pay span span { white-space: nowrap; }

/* demo payment sheet */
.ck-wrap { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.ck-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.ck-sheet { position: relative; width: min(440px, 100%); max-height: 90vh; overflow: auto; background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-pop); padding: 20px 22px; }
.ck-sheet h2 { font-size: 18px; margin: 0 0 12px; }
.ck-demo { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--r-m); background: var(--amber-soft); font-size: 13px; margin-bottom: 14px; }
.ck-demo strong { font-size: 13.5px; }
.ck-due-line { display: flex; justify-content: space-between; font-size: 15px; padding: 4px 0 10px; border-bottom: 1px solid var(--hair); }
.ck-label { display: block; font-size: 12.5px; color: var(--ink-2); margin: 14px 0 6px; }
.ck-amount-wrap { display: flex; align-items: center; gap: 6px; font: 600 22px/1.2 var(--font-display); }
.ck-amount-wrap input { flex: 1; font: inherit; letter-spacing: -0.02em; min-height: 46px; }
.ck-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ck-method { position: relative; display: block; }
.ck-method input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ck-method span { display: grid; place-items: center; min-height: 38px; border-radius: var(--r-s); background: var(--fill); font-size: 14px; font-weight: 500; }
.ck-method input:checked + span { background: var(--accent); color: var(--accent-ink); }
.ck-method input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ck-sheet-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.ck-sheet-actions .primary { flex: 1; min-height: 44px; }

/* receipt */
.ck-receipt { background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 .5px var(--hair); overflow: hidden; max-width: 640px; }
.ck-r-head { display: flex; align-items: center; gap: 14px; padding: 20px; border-bottom: 1px solid var(--hair); }
.ck-r-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; }
.ck-r-shop { font: 600 18px/1.25 var(--font-display); letter-spacing: -0.015em; }
.ck-r-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--hair); font-size: 14px; }
.ck-r-meta > div { display: flex; flex-direction: column; gap: 2px; }
.ck-r-pays { padding: 10px 20px; border-top: 1px solid var(--hair); font-size: 13.5px; }
.ck-r-pay { display: flex; justify-content: space-between; padding: 3px 0; }
.ck-r-foot { margin: 0; padding: 14px 20px 18px; font-size: 12.5px; color: var(--ink-2); border-top: 1px solid var(--hair); }

@media (max-width: 640px) {
  .ck-wrap { place-items: end center; padding: 0; }
  .ck-sheet { border-radius: var(--r-l) var(--r-l) 0 0; width: 100%; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .ck-actions .primary { flex: 1; }
  .ck-r-meta { grid-template-columns: 1fr; }
  .ck .lines .l-qty { display: none; }
}

@media print {
  body.ck-printing * { visibility: hidden !important; }
  body.ck-printing .ck-receipt, body.ck-printing .ck-receipt * { visibility: visible !important; }
  body.ck-printing .ck-receipt { position: absolute; left: 0; top: 0; width: 100%; max-width: none; box-shadow: none; border-radius: 0; }
  .ck-noprint { display: none !important; }
}
/* Close gate (migration 101): the reason a store manager gives for closing a job that isn't ready. */
.ck-reason { display: block; width: 100%; max-width: 32rem; margin: .5rem 0; box-sizing: border-box; }
.ck-override { display: block; margin-top: .25rem; }
/* 215: the store's legal entity on the invoice and receipt (as copied when it was issued) */
.ck-issuer { font-size: 13px; margin: 0 0 10px; }
.k.ck-taxpart, .v.ck-taxpart { color: var(--ink-2); font-size: 13px; padding-left: 12px; }   /* 217: tax parts under the tax line */

/* Batch 30 (UI_COVERAGE.md, stream B): the Checkout tab's payment panels under the shared band look (stream A's .band: the accent, white heavy
   italic, square). Markup unchanged: a panel whose first child is its heading (or a head row holding it) gets the band. */
body.shop-on :is(.ck-pays):has(> h2:first-child, > :is(div, header):first-child > h2) { padding-top: 0; padding-left: 18px; padding-right: 18px; }   /* no overflow clip: rows, menus and popovers stay reachable */
body.shop-on :is(.ck-pays) > h2:first-child,
body.shop-on :is(.ck-pays) > :is(div, header):first-child:has(> h2) { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap;
  margin: 0 -18px 14px; padding: 9px 18px; min-height: 44px; box-sizing: border-box; background: var(--accent); color: var(--accent-ink, #fff); border-radius: 3px 3px 0 0; }
body.shop-on :is(.ck-pays) > :is(div, header):first-child > h2 { margin: 0; }
body.shop-on :is(.ck-pays) > h2:first-child, body.shop-on :is(.ck-pays) > :is(div, header):first-child > h2 { color: var(--accent-ink, #fff);
  font: italic 900 23px/1.08 var(--font-title); text-transform: uppercase; letter-spacing: -0.004em; }
body.shop-on :is(.ck-pays) > :is(div, header):first-child:has(> h2) :is(span, small, label, .cp-fine, a:not(.btn)) { color: inherit; }
body.shop-on :is(.ck-pays) > :is(div, header):first-child:has(> h2) :is(button.quiet, .btn.quiet) { color: inherit; background: rgba(255, 255, 255, 0.14); }
@media (max-width: 860px) { body.shop-on :is(.ck-pays) > h2:first-child, body.shop-on :is(.ck-pays) > :is(div, header):first-child > h2 { font-size: 19px; } body.shop-on :is(.ck-pays):has(> h2:first-child, > :is(div, header):first-child > h2) { padding-left: 14px; padding-right: 14px; } body.shop-on :is(.ck-pays) > h2:first-child, body.shop-on :is(.ck-pays) > :is(div, header):first-child:has(> h2) { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; } }
/* Batch 30: the Checkout card under the shared band, like the Estimate card (the older .est-top padding and border give way) */
.ck-card .est-top.band { border-bottom: 0; padding: 9px 18px; }
.ck-card.band-panel { box-shadow: none; }
.ck-held > p { margin: 0; padding: 0 14px 12px; }   /* U6-B2: a capped diagnostic held until its billable amount is set */
