/* ============================================================
   Marketplace shop pages (17 Nov 2026): item, basket and checkout,
   saved items, order tracking. Loaded after marketplace-home.css,
   which holds the .mkp tokens, cards, buttons and stars.
   ============================================================ */

/* ---------- Header extras: Saved link with a count ---------- */
.mk-hdr-saved { position: relative; }
.mk-hdr-n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #fff; color: #0059c4; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; line-height: 1; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px #0164ce; }
.mk-hdr-n[hidden] { display: none; }

/* ---------- Page frame ---------- */
/* styles.css pads main#main-content by the header height alone; these
   pages want breathing room under the bar too, so the selector is heavier. */
html body main#main-content.mks { padding: calc(var(--site-header-h, 62px) + 28px) 0 72px; min-height: 70vh; }
@media (max-width: 640px) { html body main#main-content.mks { padding-top: calc(var(--site-header-h, 62px) + 16px); padding-bottom: 96px; } }
.mks-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 18px; font-size: 13.5px; color: var(--mk-mute); }
.mks-crumb a { color: var(--mk-ink2); text-decoration: none; font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .mks-crumb a:hover { color: var(--mk-accent-ink); } }
.mks-crumb svg { width: 14px; height: 14px; opacity: .55; }
.mks-crumb [aria-current] { color: var(--mk-mute); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mks-title { margin: 0; font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 600; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; line-height: 1.1; color: var(--mk-ink); text-wrap: balance; }
.mks-sub { margin: 6px 0 0; color: var(--mk-mute); font-size: 14.5px; }
.mks-card { background: var(--mk-card); border: 1px solid var(--mk-line); border-radius: 18px; }
.mks-iconbtn { width: 44px; height: 44px; flex: none; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--mk-line2); background: var(--mk-card); color: var(--mk-ink2); cursor: pointer; transition: color .15s ease, border-color .15s ease, transform .12s var(--mk-ease); -webkit-tap-highlight-color: transparent; }
.mks-iconbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mks-iconbtn:active { transform: scale(.94); }
.mks-iconbtn[aria-pressed="true"] { color: #d92d4b; border-color: rgba(217, 45, 75, .35); }
.mks-iconbtn[aria-pressed="true"] svg { fill: currentColor; }
@media (hover: hover) and (pointer: fine) { .mks-iconbtn:hover { border-color: var(--mk-accent); color: var(--mk-accent-ink); } }
.mk-btn--block { width: 100%; }
.mk-btn--lg { min-height: 52px; font-size: 15.5px; border-radius: 14px; }
.mk-btn[disabled] { opacity: .55; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .mk-btn--solid:hover { background: var(--mk-accent-ink); } .mk-btn--line:hover { border-color: var(--mk-accent); color: var(--mk-accent-ink); } }
.mk-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Quantity stepper */
.mk-qty { display: inline-flex; align-items: center; height: 52px; border: 1px solid var(--mk-line2); border-radius: 14px; background: var(--mk-card); overflow: hidden; flex: none; }
.mk-qty button { width: 44px; height: 100%; border: 0; background: none; color: var(--mk-ink); font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.mk-qty button:disabled { color: var(--mk-mute); opacity: .5; cursor: default; }
.mk-qty button svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
.mk-qty input, .mk-qty output { width: 40px; text-align: center; border: 0; background: none; font: 600 16px/1 inherit; font-family: inherit; color: var(--mk-ink); font-variant-numeric: tabular-nums; -moz-appearance: textfield; padding: 0; }
.mk-qty input::-webkit-outer-spin-button, .mk-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mk-qty--sm { height: 40px; border-radius: 10px; }
.mk-qty--sm button { width: 36px; font-size: 17px; }
.mk-qty--sm output { width: 30px; font-size: 14.5px; }

/* Fields */
.mk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mk-fields .is-wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .mk-fields { grid-template-columns: 1fr; } }
.mk-field label { display: block; margin: 0 0 6px; font-size: 13.5px; font-weight: 600; color: var(--mk-ink2); }
.mk-field label small { font-weight: 400; color: var(--mk-mute); }
.mk-field input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--mk-line2); background: var(--mk-card); color: var(--mk-ink); font-size: 16px; transition: border-color .15s ease, box-shadow .15s ease; }
.mk-field input:focus { outline: none; border-color: var(--mk-accent); box-shadow: 0 0 0 4px rgba(1, 100, 206, .14); }
.mk-field input::placeholder { color: var(--mk-mute); opacity: .8; }
.mk-codeline { display: flex; gap: 8px; }
.mk-codeline input { flex: 1; min-width: 0; }
.mk-codeline .mk-btn { min-height: 48px; }
.mk-msg { margin: 8px 0 0; min-height: 1.2em; font-size: 13.5px; color: var(--mk-mute); }
.mk-msg.err { color: #c0392b; }
.mk-msg.ok { color: var(--mk-ok); }

/* Summary rows */
.mk-sum { display: grid; gap: 10px; font-size: 14.5px; color: var(--mk-ink2); }
.mk-sum > div { display: flex; justify-content: space-between; gap: 12px; }
.mk-sum span:last-child { font-variant-numeric: tabular-nums; color: var(--mk-ink); font-weight: 500; text-align: right; }
.mk-sum .is-total { padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--mk-line); align-items: baseline; }
.mk-sum .is-total span:first-child { font-weight: 600; color: var(--mk-ink); }
.mk-sum .is-total span:last-child { font-family: "Space Grotesk", system-ui, sans-serif; font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
.mk-sum .is-save span:last-child { color: var(--mk-ok); }

/* Trust lines under a pay button */
.mk-assure { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.mk-assure li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.45; color: var(--mk-ink2); }
.mk-assure svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--mk-accent); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   Item page
   ============================================================ */
.mki2 { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 40px; align-items: start; }
@media (max-width: 1100px) { .mki2 { grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; } }
@media (max-width: 900px) { .mki2 { grid-template-columns: 1fr; gap: 20px; } }

/* Gallery: thumbnails in a column beside the stage on a computer, a row under it on a phone */
.mki-gal { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: start; }
.mki-gal.is-single { grid-template-columns: 1fr; }
.mki-gal.is-single .mki-thumbs { display: none; }
.mki-thumbs { display: flex; flex-direction: column; gap: 10px; max-height: 620px; overflow-y: auto; scrollbar-width: none; }
.mki-thumbs::-webkit-scrollbar { display: none; }
.mki-thumb { width: 76px; height: 76px; flex: none; padding: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--mk-line2); background: #eef3fa; cursor: pointer; opacity: .72; transition: opacity .15s ease, border-color .15s ease; }
.mki-thumb.is-on { opacity: 1; border: 2px solid var(--mk-accent); }
.mki-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (hover: hover) and (pointer: fine) { .mki-thumb:hover { opacity: 1; } }
.mki-stage { position: relative; aspect-ratio: 1 / 1; max-height: 620px; width: 100%; border-radius: 20px; overflow: hidden; background: #eef3fa; border: 1px solid var(--mk-line); cursor: zoom-in; }
html[data-lb-theme="dark"] .mki-stage, html[data-lb-theme="dark"] .mki-thumb { background: #1a2338; }
.mki-stage img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mki-stage .mki-nopic { width: 100%; height: 100%; display: grid; place-items: center; color: var(--mk-mute); }
.mki-stage .mki-nopic svg { width: 64px; height: 64px; opacity: .5; }
.mki-nav { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--mk-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(16, 24, 40, .16); transition: transform .12s var(--mk-ease); }
.mki-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mki-nav:active { transform: scale(.94); }
.mki-nav--prev { left: 14px; }
.mki-nav--next { right: 14px; }
.mki-count { position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 5px 10px; border-radius: 999px; background: rgba(16, 24, 40, .62); color: #fff; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mki-zoom { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--mk-ink); display: grid; place-items: center; box-shadow: 0 2px 10px rgba(16, 24, 40, .16); cursor: zoom-in; }
.mki-zoom svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
@media (max-width: 900px) {
  .mki-gal { grid-template-columns: 1fr; }
  .mki-gal .mki-stage { order: 1; border-radius: 16px; max-height: none; }
  .mki-thumbs { order: 2; flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
  .mki-thumb { width: 64px; height: 64px; scroll-snap-align: start; }
  .mki-nav { display: none; }
  .mki-stage { touch-action: pan-y; }
}

/* Buy panel */
.mki-panel { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 0; }
@media (max-width: 900px) { .mki-panel { position: static; } }
.mki-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mki-catlink { font-size: 13.5px; font-weight: 600; color: var(--mk-accent-ink); text-decoration: none; }
.mki-topacts { display: flex; gap: 8px; }
.mki-panel h1 { margin: 10px 0 0; font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 600; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -.018em; color: var(--mk-ink); text-wrap: balance; }
.mki-ratebar { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13.5px; color: var(--mk-ink2); }
.mki-ratebar .mk-stars { font-size: 14px; }
.mki-ratebar a { color: var(--mk-mute); text-decoration: underline; text-underline-offset: 3px; }
.mki-pricebox { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 16px 0 0; }
.mki-price { font-family: "Space Grotesk", system-ui, sans-serif; font-size: 34px; font-weight: 600; letter-spacing: -.02em; color: var(--mk-ink); font-variant-numeric: tabular-nums; line-height: 1; }
.mki-was { text-decoration: line-through; color: var(--mk-mute); font-size: 16px; font-variant-numeric: tabular-nums; }
.mki-off { font-size: 12.5px; font-weight: 600; color: #fff; background: #c2410c; padding: 4px 9px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.mki-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0; font-size: 13.5px; color: var(--mk-ink2); }
.mki-facts span { display: inline-flex; align-items: center; gap: 6px; }
.mki-facts .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mk-ok); }
.mki-facts .dot.is-low { background: #d97706; }
.mki-facts .dot.is-out { background: #b42318; }
.mki-pre { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #ecfeff; color: #0e5a6b; font-size: 13.5px; line-height: 1.45; border: 1px solid #b8eef7; }
html[data-lb-theme="dark"] .mki-pre { background: rgba(14, 116, 144, .18); color: #9be7f5; border-color: rgba(14, 116, 144, .4); }
.mki-pre[hidden] { display: none; }
.mki-buyrow { display: flex; gap: 10px; margin: 20px 0 0; }
.mki-buyrow .mk-btn { flex: 1; }
.mki-buynow { margin: 10px 0 0; }
.mki-seller { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; padding: 14px; border-radius: 14px; border: 1px solid var(--mk-line); background: var(--mk-page); text-decoration: none; color: inherit; }
.mki-seller__av { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--mk-soft); color: var(--mk-accent-ink); display: grid; place-items: center; font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 600; font-size: 18px; }
.mki-seller__b { flex: 1; min-width: 0; }
.mki-seller__b small { display: block; font-size: 12.5px; color: var(--mk-mute); }
.mki-seller__b strong { display: block; font-size: 15px; font-weight: 600; color: var(--mk-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mki-seller__go { flex: none; font-size: 13.5px; font-weight: 600; color: var(--mk-accent-ink); }

/* Checkout inside the panel, opened by Buy now */
.mki-checkout { margin: 18px 0 0; padding: 18px; border-radius: 16px; border: 1px solid var(--mk-line); background: var(--mk-card); }
.mki-checkout[hidden] { display: none; }
.mki-checkout h2 { margin: 0 0 4px; font-size: 17px; font-weight: 600; color: var(--mk-ink); }
.mki-checkout > p { margin: 0 0 16px; font-size: 13.5px; color: var(--mk-mute); }
.mki-checkout .mk-sum { margin: 18px 0 0; }
.mki-pay { display: grid; gap: 10px; margin: 16px 0 0; }
.mki-done { margin: 18px 0 0; padding: 20px; border-radius: 16px; border: 1px solid rgba(18, 128, 92, .3); background: rgba(18, 128, 92, .06); }
.mki-done[hidden] { display: none; }
.mki-done h2 { margin: 0 0 6px; font-size: 18px; color: var(--mk-ink); }
.mki-done p { margin: 0 0 8px; color: var(--mk-ink2); font-size: 14.5px; line-height: 1.5; }
.mki-done .mk-btn { margin: 6px 8px 0 0; }

/* Sections under the fold */
.mki-secs { margin: 56px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 40px; }
@media (max-width: 1100px) { .mki-secs { grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; } }
@media (max-width: 900px) { .mki-secs { grid-template-columns: 1fr; margin-top: 36px; } }
.mki-sec { margin: 0 0 40px; }
.mki-sec h2 { margin: 0 0 14px; font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 600; font-size: 22px; letter-spacing: -.015em; color: var(--mk-ink); }
.mki-desc { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--mk-ink2); white-space: pre-wrap; max-width: 72ch; text-wrap: pretty; }
.mki-desc:empty::before { content: "The seller has not added a description yet. Ask them in the chat."; color: var(--mk-mute); }
.mki-specs { margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--mk-line); border-radius: 14px; overflow: hidden; }
.mki-specs > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--mk-line); font-size: 14px; }
.mki-specs > div:nth-child(odd) { border-right: 1px solid var(--mk-line); }
.mki-specs dt { color: var(--mk-mute); }
.mki-specs dd { margin: 0; color: var(--mk-ink); font-weight: 500; }
.mki-specs[hidden] { display: none; }
@media (max-width: 640px) { .mki-specs { grid-template-columns: 1fr; } .mki-specs > div:nth-child(odd) { border-right: 0; } .mki-specs > div { grid-template-columns: 110px 1fr; } }
.mki-video iframe, .mki-video video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; background: #000; display: block; }
.mki-video[hidden] { display: none; }

/* Reviews */
.mki-rsum { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; }
.mki-rbig { font-family: "Space Grotesk", system-ui, sans-serif; font-size: 44px; font-weight: 600; line-height: 1; color: var(--mk-ink); font-variant-numeric: tabular-nums; }
.mki-rsum .mk-stars { font-size: 16px; }
.mki-rsum small { display: block; margin-top: 4px; font-size: 13px; color: var(--mk-mute); }
.mki-rlist { display: grid; gap: 12px; }
.mki-rlist .mk-rev { border: 1px solid var(--mk-line); border-radius: 14px; padding: 14px 16px; background: var(--mk-card); }
.mki-rreply { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--mk-soft); font-size: 13.5px; color: var(--mk-ink2); line-height: 1.5; }
.mki-noreviews { margin: 0; padding: 18px; border: 1px dashed var(--mk-line2); border-radius: 14px; color: var(--mk-mute); font-size: 14px; line-height: 1.5; }

/* Questions */
.mk-faq { border-top: 1px solid var(--mk-line); }
.mk-faq details { border-bottom: 1px solid var(--mk-line); }
.mk-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 6px 0; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--mk-ink); }
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary svg { width: 18px; height: 18px; flex: none; color: var(--mk-mute); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .2s var(--mk-ease); }
.mk-faq details[open] summary svg { transform: rotate(45deg); }
.mk-faq details p { margin: 0 0 16px; color: var(--mk-ink2); font-size: 14.5px; line-height: 1.6; max-width: 68ch; }

/* Phone buy bar */
.mki-bar { display: none; }
@media (max-width: 900px) {
  .mki-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--mk-line); box-shadow: 0 -8px 24px -16px rgba(16, 24, 40, .3); transform: translateY(110%); transition: transform .24s var(--mk-ease); }
  html[data-lb-theme="dark"] .mki-bar { background: rgba(19, 27, 44, .97); }
  .mki-bar.is-on { transform: none; }
  .mki-bar__price { flex: 1; min-width: 0; }
  .mki-bar__price small { display: block; font-size: 12px; color: var(--mk-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mki-bar__price strong { font-family: "Space Grotesk", system-ui, sans-serif; font-size: 19px; font-weight: 600; color: var(--mk-ink); font-variant-numeric: tabular-nums; }
  .mki-bar .mk-btn { flex: none; min-height: 48px; padding: 0 22px; }
}

/* Lightbox */
.mki-lb { position: fixed; inset: 0; z-index: 120; display: none; place-items: center; padding: 24px; background: rgba(8, 12, 22, .92); }
.mki-lb.open { display: grid; animation: mkFade .2s ease-out; }
.mki-lb img { max-width: 94vw; max-height: 86vh; border-radius: 12px; object-fit: contain; }
.mki-lb__x { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.mki-lb__x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mki-lb .mki-nav { display: grid; }
@keyframes mkFade { from { opacity: 0; } to { opacity: 1; } }

.mki-missing { padding: 64px 16px; text-align: center; }
.mki-missing h1 { margin: 0 0 8px; font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 600; font-size: 26px; color: var(--mk-ink); }
.mki-missing p { margin: 0 0 20px; color: var(--mk-mute); }

/* ============================================================
   Basket and checkout
   ============================================================ */
.mkc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.mkc { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
@media (max-width: 1000px) { .mkc { grid-template-columns: 1fr; gap: 20px; } }
.mkc-list { padding: 4px 20px; }
.mkc-group { padding: 14px 0 4px; }
.mkc-group + .mkc-group { border-top: 1px solid var(--mk-line); }
.mkc-group__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--mk-mute); }
.mkc-group__head a, .mkc-group__head strong { display: inline-flex; align-items: center; gap: 8px; color: var(--mk-ink); font-weight: 600; text-decoration: none; font-size: 14px; }
.mkc-group__head svg { width: 16px; height: 16px; }
.mkc-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; }
.mkc-line + .mkc-line { border-top: 1px solid var(--mk-line); }
.mkc-pic { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; background: #eef3fa; display: block; }
html[data-lb-theme="dark"] .mkc-pic { background: #1a2338; }
.mkc-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkc-b { min-width: 0; }
.mkc-b a.mkc-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--mk-ink); text-decoration: none; }
.mkc-each { margin: 4px 0 10px; font-size: 13px; color: var(--mk-mute); font-variant-numeric: tabular-nums; }
.mkc-tools { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; }
.mkc-link { min-height: 40px; padding: 0 2px; border: 0; background: none; color: var(--mk-ink2); font-size: 13.5px; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--mk-line2); }
@media (hover: hover) and (pointer: fine) { .mkc-link:hover { color: var(--mk-accent-ink); } }
.mkc-price { text-align: right; font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 600; font-size: 17px; color: var(--mk-ink); font-variant-numeric: tabular-nums; align-self: start; padding-top: 2px; }
@media (max-width: 560px) {
  .mkc-list { padding: 4px 14px; }
  .mkc-line { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .mkc-pic { width: 72px; height: 72px; }
  .mkc-price { grid-column: 2; text-align: left; padding: 0; font-size: 16px; }
}
.mkc-after { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 14px 0 0; font-size: 13.5px; color: var(--mk-mute); }
.mkc-after a { display: inline-flex; align-items: center; gap: 6px; color: var(--mk-ink2); font-weight: 500; text-decoration: none; min-height: 40px; }
.mkc-after a svg { width: 16px; height: 16px; }
.mkc-deliv { margin: 20px 0 0; padding: 22px; }
.mkc-deliv h2, .mkc-side h2 { margin: 0 0 4px; font-size: 18px; font-weight: 600; color: var(--mk-ink); }
.mkc-deliv > p { margin: 0 0 18px; font-size: 13.5px; color: var(--mk-mute); }
.mkc-side { position: sticky; top: 96px; padding: 22px; }
@media (max-width: 1000px) { .mkc-side { position: static; } }
.mkc-side .mk-sum { margin: 16px 0 0; }
.mkc-pay { display: grid; gap: 10px; margin: 20px 0 0; }
.mkc-steps { display: flex; gap: 8px; margin: 0 0 18px; font-size: 13px; color: var(--mk-mute); font-weight: 500; }
.mkc-steps span { display: inline-flex; align-items: center; gap: 6px; }
.mkc-steps b { width: 22px; height: 22px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--mk-soft); color: var(--mk-accent-ink); font-size: 12px; font-variant-numeric: tabular-nums; }
.mkc-steps .sep { width: 18px; height: 1px; background: var(--mk-line2); align-self: center; }

/* Saved-for-later strip under the basket */
.mkc-later { margin: 40px 0 0; }

/* Empty and done states */
.mk-blank { max-width: 520px; margin: 24px auto; padding: 44px 24px; text-align: center; }
.mk-blank__ic { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; background: var(--mk-soft); color: var(--mk-accent-ink); display: grid; place-items: center; }
.mk-blank__ic svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mk-blank h2 { margin: 0 0 8px; font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 600; font-size: 22px; color: var(--mk-ink); }
.mk-blank p { margin: 0 0 20px; color: var(--mk-mute); font-size: 14.5px; line-height: 1.55; text-wrap: pretty; }
.mk-blank .mk-btn { margin: 0 4px 8px; }
.mkc-done { max-width: 620px; margin: 0 auto; padding: 32px; }
.mkc-done .mk-blank__ic { margin: 0 0 16px; background: rgba(18, 128, 92, .12); color: var(--mk-ok); animation: mkPulse .6s ease-out; }
.mkc-done h2 { margin: 0 0 8px; font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 600; font-size: 26px; color: var(--mk-ink); }
.mkc-done p { margin: 0 0 10px; color: var(--mk-ink2); font-size: 15px; line-height: 1.6; }
.mkc-refs { list-style: none; margin: 18px 0; padding: 0; border: 1px solid var(--mk-line); border-radius: 14px; overflow: hidden; }
.mkc-refs li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 14px; }
.mkc-refs li + li { border-top: 1px solid var(--mk-line); }
.mkc-refs span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mk-ink2); }
.mkc-refs a { flex: none; font-weight: 600; color: var(--mk-accent-ink); text-decoration: none; }
@keyframes mkPulse { 0% { transform: scale(.9); } 60% { transform: scale(1.06); } 100% { transform: none; } }

/* ============================================================
   Saved items
   ============================================================ */
.mkw-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 22px; }
.mkw-head__acts { display: flex; gap: 10px; flex-wrap: wrap; }
.mkw-grid .mk-card { height: 100%; }
.mkw-move { margin: 0 14px 14px; }

@media (prefers-reduced-motion: reduce) {
  .mki-bar, .mk-faq summary svg, .mkc-done .mk-blank__ic, .mki-lb.open { transition: none; animation: none; }
}

/* Undo pill (Empty basket, Clear saved items) */
.mk-undo { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 130; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px; border-radius: 14px; background: #101828; color: #fff; font-size: 14px; box-shadow: 0 12px 30px -10px rgba(16, 24, 40, .5); transform: translate(-50%, 140%); opacity: 0; transition: transform .24s var(--mk-ease, ease-out), opacity .2s ease-out; pointer-events: none; }
.mk-undo.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.mk-undo button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .mk-undo { transition: none; } }
.mki-rlist .mk-rev__who > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.mki-rlist .mk-rev__vf { display: block; font-size: 12px; color: var(--mk-ok); font-weight: 500; }
.mki-panel.is-checkout { position: static; }
/* The seller chat button moves up while the phone buy bar shows. */
@media (max-width: 900px) {
  html body.mki-bar-on .sch-fab { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transition: bottom .24s var(--mk-ease, ease-out); }
  html body.mki-bar-on .sch-box { bottom: calc(146px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 640px) {
  .mks-crumb [aria-current], .mks-crumb > svg:last-of-type { display: none; }
}
@media (max-width: 640px) { .mkw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* ============================================================
   Order tracking
   ============================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mko-wrap { max-width: 640px; }
.mko-look { display: flex; gap: 10px; margin: 22px 0 24px; }
.mko-look input { flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--mk-line2); background: var(--mk-card); color: var(--mk-ink); font-size: 16px; letter-spacing: .04em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.mko-look input::placeholder { letter-spacing: .04em; color: var(--mk-mute); }
.mko-look input:focus { outline: none; border-color: var(--mk-accent); box-shadow: 0 0 0 4px rgba(1, 100, 206, .14); }
.mko-look .mk-btn { min-height: 52px; padding: 0 26px; border-radius: 14px; }
.mko-saved { margin: 0 0 24px; }
.mko-saved__h { margin: 0 0 10px; font-size: 13.5px; color: var(--mk-mute); }
.mko-saved__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; text-align: left; background: var(--mk-card); border: 1px solid var(--mk-line); border-radius: 14px; padding: 12px 16px; margin: 0 0 8px; cursor: pointer; font-size: 14.5px; color: var(--mk-ink); transition: border-color .15s ease; }
@media (hover: hover) and (pointer: fine) { .mko-saved__row:hover { border-color: var(--mk-accent); } }
.mko-saved__row.is-on { border-color: var(--mk-accent); background: var(--mk-soft); }
.mko-saved__row small { color: var(--mk-mute); font-variant-numeric: tabular-nums; }
.mko-card { padding: 26px; }
.mko-card h2 { margin: 0 0 6px; font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 600; font-size: 22px; color: var(--mk-ink); text-wrap: balance; }
.mko-meta { margin: 0 0 4px; color: var(--mk-ink2); font-size: 14px; font-variant-numeric: tabular-nums; }
.mko-badge { display: inline-block; margin: 8px 0 22px; padding: 5px 12px; border-radius: 999px; background: var(--mk-soft); color: var(--mk-accent-ink); font-size: 12.5px; font-weight: 600; }
.mko-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.mko-step { display: flex; align-items: flex-start; gap: 14px; padding: 0 0 24px; position: relative; }
.mko-step:last-child { padding-bottom: 0; }
.mko-step::before { content: ""; position: absolute; left: 9px; top: 22px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--mk-line2); }
.mko-step:last-child::before { display: none; }
.mko-dot { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--mk-line2); background: var(--mk-card); z-index: 1; }
.mko-lbl { font-size: 15px; color: var(--mk-mute); padding-top: 1px; }
.mko-step.done .mko-dot { background: var(--mk-ok); border-color: var(--mk-ok); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E"); background-size: 13px; background-position: center; background-repeat: no-repeat; }
.mko-step.done .mko-lbl { color: var(--mk-ink); }
.mko-step.done::before { background: var(--mk-ok); }
.mko-step.now .mko-dot { background: var(--mk-accent); border-color: var(--mk-accent); box-shadow: 0 0 0 5px rgba(1, 100, 206, .16); }
.mko-step.now .mko-lbl { color: var(--mk-ink); font-weight: 600; }
.mko-note { margin: 18px 0 0; font-size: 14px; color: var(--mk-ink2); line-height: 1.55; }
.mko-note:empty { display: none; }
.mko-delivery { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--mk-line); font-size: 14px; color: var(--mk-ink2); line-height: 1.6; }
.mko-delivery:empty { display: none; }
.mko-review { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--mk-line); }
.mko-review__h { display: block; font-size: 15px; color: var(--mk-ink); margin: 0 0 4px; }
.mko-review__p { margin: 0 0 10px; font-size: 13.5px; color: var(--mk-mute); }
.mko-starpick { display: inline-flex; gap: 2px; }
.mko-starpick button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 30px; line-height: 1; color: rgba(16, 24, 40, .18); padding: 0; transition: transform .12s var(--mk-ease); }
.mko-starpick button:active { transform: scale(.9); }
.mko-starpick button.on { color: #e8a317; }
.mko-review textarea { display: block; width: 100%; margin: 10px 0 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--mk-line2); background: var(--mk-card); color: var(--mk-ink); font: inherit; font-size: 16px; resize: vertical; }
.mko-review textarea:focus { outline: none; border-color: var(--mk-accent); box-shadow: 0 0 0 4px rgba(1, 100, 206, .14); }
