/* Cart variant B: Košík.cz basket layout with makro colours (see components/makro-cart-page-b.js). */
.mk-header.is-simple .mk-top-in { gap: 24px; }
.mk-header.is-simple .mk-search { position: relative; left: auto; top: auto; transform: none; flex: 1; max-width: 604px; margin: 0 auto; width: auto; }
.mk-header.is-simple .mk-top { background: var(--mk-navy, #002d72); }

.mk-cb { --cb-bg: #f5f5f5; --cb-card: #fff; background: var(--cb-bg); font-size: 14px; line-height: 18px; color: #222; flex: 1 0 auto; }
.mk-cb button { font: inherit; }
.mk-cb :focus-visible { outline: 2px solid var(--mk-blue, #005ae0); outline-offset: 2px; }

/* ---- top bar ---- */
.mk-cb-bar { background: #fff; border-bottom: 1px solid #e9e9e9; }
.mk-cb-bar-in { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.mk-cb-back { justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 24px; color: var(--mk-navy, #002d72); font-weight: 600; text-decoration: none; }
.mk-cb-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.mk-cb-title { margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; color: #333; }
.mk-cb-total { justify-self: end; display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; }
.mk-cb-pill { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 14px; border-radius: 99px; background: #f0f0f0; font-size: 18px; line-height: 24px; font-weight: 500; }
.mk-cb-pill b { font-weight: 600; }
.mk-cb-pill sup { font-size: 11px; vertical-align: super; line-height: 0; }
.mk-cb-pill small { color: #666; font-size: 11px; line-height: 16px; font-weight: 400; }
.mk-cb-vat { color: #666; }
.mk-cb-save { color: #666; }
.mk-cb-save b { color: #1a8a5a; font-weight: 600; }

/* ---- layout ---- */
.mk-cb-main { max-width: 1200px; margin: 0 auto; padding: 24px 24px 48px; }
.mk-cb-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
.mk-cb-left { min-width: 0; }
.mk-cb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 12px; position: relative; }
.mk-cb-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; color: #333; }
.mk-cb-head h2 svg { color: var(--mk-navy, #002d72); }
.mk-cb-head h2 small { font-size: 14px; font-weight: 500; color: #444; }
.mk-cb-menu { position: relative; }
.mk-cb-head .mk-seg { margin-left: auto; }
.mk-cb-dots { width: 32px; height: 32px; padding: 0 0 6px; border: 0; border-radius: 99px; background: #e8e8e8; color: #444; font-size: 20px; line-height: 1; cursor: pointer; }
.mk-cb-dots:hover { background: #dcdcdc; }
.mk-cb-menu-list { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 220px; margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .16), 0 0 0 1px rgba(0, 0, 0, .06); }
.mk-cb-menu-list button { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none; text-align: left; color: #222; cursor: pointer; }
.mk-cb-menu-list button:hover:not(:disabled) { background: #f0f0f0; }
.mk-cb-menu-list button:disabled { color: #929292; cursor: default; }

.mk-cb-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 8px; padding: 10px 12px; border-radius: 8px; background: #fff; }
.mk-cb-quick label { font-weight: 600; }
.mk-cb-quick input { flex: 1 1 200px; min-width: 0; height: 36px; box-sizing: border-box; padding: 0 12px; border: 1px solid #c9d2e0; border-radius: 8px; font: inherit; color: #222; }
.mk-cb-quick input::placeholder { color: #757575; }
.mk-cb-btn-sec { height: 36px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--mk-sel-bg, #ddeafd); color: var(--mk-navy, #002d72); font-weight: 600; cursor: pointer; }
.mk-cb-btn-sec:hover { background: #c8dcf8; }
.mk-cb-quick-msg { flex: 1 0 100%; color: #136941; }
.mk-cb-quick-msg.err { color: #d6283a; }

.mk-cb-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; border-radius: 8px; background: #fff; }
.mk-cb-empty h2 { margin: 0; font-size: 20px; line-height: 28px; }
.mk-cb-empty p { margin: 0; }

/* ---- groups and rows ---- */
.mk-cb-group { margin-top: 20px; }
.mk-cb-group h3 { margin: 0 0 8px; font-size: 16px; line-height: 24px; font-weight: 500; color: #333; }
.mk-cb-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mk-cb-row { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 170px; align-items: center; gap: 12px 20px; padding: 12px 24px 12px 12px; border-radius: 4px; background: var(--cb-card); }
.mk-cb-x { position: absolute; left: 4px; top: 2px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 99px; background: none; color: #929292; font-size: 11px; cursor: pointer; }
.mk-cb-x:hover { background: #f0f0f0; color: #d6283a; }
.mk-cb-thumb { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #444; font-size: 11px; line-height: 14px; text-decoration: none; }
.mk-cb-thumb img { width: 56px; height: 56px; object-fit: contain; mix-blend-mode: darken; background: #f3f3f3; border-radius: 6px; }
.mk-cb-thumb span { max-width: 64px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-cb-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mk-cb-name a { color: #222; text-decoration: none; }
.mk-cb-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mk-cb-name small { color: #666; font-size: 12px; line-height: 16px; }
.mk-cb-name .mk-cb-warn { color: #9a5200; }
.mk-cb-step { display: flex; align-items: center; gap: 12px; }
.mk-cb-step button { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.mk-cb-minus { background: var(--mk-sel-bg, #ddeafd); color: var(--mk-navy, #002d72); }
.mk-cb-minus:hover { background: #c8dcf8; }
.mk-cb-plus { background: var(--mk-blue, #005ae0); color: #fff; }
.mk-cb-plus:hover { background: #2a7bf0; }
.mk-cb-step input { width: 44px; height: 36px; padding: 0; border: 0; border-radius: 6px; background: none; text-align: center; font: inherit; font-size: 18px; font-weight: 600; color: #222; }
.mk-cb-step input:hover { background: #f5f5f5; }
.mk-cb-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.mk-cb-now { display: flex; align-items: baseline; gap: 8px; }
.mk-cb-now b { font-size: 16px; line-height: 24px; font-weight: 600; }
.mk-cb-now b.sale { color: #d6283a; }
.mk-cb-now s { color: #666; font-size: 11px; line-height: 16px; }
.mk-cb-price small { color: #666; font-size: 12px; line-height: 16px; }
.mk-cb-price .mk-cb-saved { color: #1a8a5a; font-weight: 600; }

/* ---- right column ---- */
.mk-cb-right { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 16px; }
.mk-cb-card { padding: 16px 20px; border-radius: 12px; background: #fff; }
.mk-cb-card h2 { margin: 0 0 8px; font-size: 16px; line-height: 24px; font-weight: 600; color: #333; }
.mk-cb-prog-t { margin: 0 0 12px; }
.mk-cb-prog-t b { font-weight: 600; }
.mk-cb-prog-t, .mk-cb-prog-t b { color: var(--mk-navy, #002d72); }
.mk-cb-prog-t.ok { color: #136941; font-weight: 600; }
.mk-cb-i { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 4px; border: 1px solid currentColor; border-radius: 99px; font-size: 11px; font-weight: 700; line-height: 1; cursor: help; }
.mk-cb-track { display: flex; align-items: center; gap: 8px; }
.mk-cb-dot { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 99px; background: var(--mk-sel-bg, #ddeafd); color: var(--mk-navy, #002d72); }
.mk-cb-dot.start { background: var(--mk-navy, #002d72); color: #fff; }
.mk-cb-dot.end.on { background: #1a8a5a; color: #fff; }
.mk-cb-line { flex: 1; height: 4px; border-radius: 99px; background: var(--mk-sel-bg, #ddeafd); overflow: hidden; }
.mk-cb-line > span { display: block; height: 100%; border-radius: 99px; background: var(--mk-navy, #002d72); transition: width .3s; }
.mk-cb-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.mk-cb-field span { color: #666; font-size: 12px; line-height: 16px; }
.mk-cb-field select { height: 40px; padding: 0 10px; border: 1px solid #c9d2e0; border-radius: 8px; background: #fff; font: inherit; color: #222; }
.mk-cb-addr { margin: 0 0 10px; font-weight: 500; }
.mk-cb-addr .mk-link { margin: 0 0 0 8px; padding: 0; min-height: 24px; }
.mk-cb-clock { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 8px 12px; border-radius: 8px; background: #d6ead1; color: #136941; }
.mk-cb-clock b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mk-cb-sum dl { margin: 0; }
.mk-cb-sum dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; }
.mk-cb-sum dt, .mk-cb-sum dd { margin: 0; }
.mk-cb-sum dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-cb-sum dt small { display: block; color: #666; font-size: 12px; line-height: 16px; }
.mk-cb-sum .line { margin-top: 4px; border-top: 1px solid #333; font-weight: 600; }
.mk-cb-sum .fee { margin-inline: -8px; padding-inline: 8px; background: #ffe500; border-radius: 4px; }
.mk-cb-sum .note { padding-block: 0 8px; }
.mk-cb-sum .grand { font-size: 18px; line-height: 24px; font-weight: 700; }
.mk-cb-cta { width: 100%; min-height: 48px; margin-top: 12px; padding: 8px 12px; border: 0; border-radius: 99px; background: var(--mk-blue, #005ae0); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.mk-cb-cta:hover { background: #2a7bf0; }
.mk-cb-cta:disabled { background: #d3d3d3; color: #7c7c7c; cursor: default; }
.mk-cb-rail { margin-top: 40px; }

/* ---- variant switch ---- */
.mk-variant { position: fixed; left: 16px; bottom: 16px; z-index: 45; /* below Fresh drawers and dialogs (50) */ display: flex; align-items: center; gap: 4px; padding: 6px 8px 6px 14px; border-radius: 99px; background: #222; color: #fff; font-size: 12px; line-height: 16px; font-weight: 600; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.mk-variant a { padding: 4px 10px; border-radius: 99px; color: #fff; text-decoration: none; }
.mk-variant a:hover { background: rgba(255, 255, 255, .16); }
.mk-variant a[aria-current="true"] { background: #fff; color: #222; }
.mk-variant :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 1100px) {
  .mk-cb-grid { grid-template-columns: minmax(0, 1fr); }
  .mk-cb-right { position: static; }
}
@media (max-width: 900px) {
  .mk-cb-bar-in { grid-template-columns: 1fr; gap: 6px; padding: 10px 16px; justify-items: start; }
  .mk-cb-title { justify-self: start; }
  .mk-cb-total { justify-self: start; justify-content: flex-start; }
  .mk-cb-main { padding: 16px 16px 40px; }
  .mk-cb-row { grid-template-columns: 56px minmax(0, 1fr); padding-right: 12px; }
  .mk-cb-step { grid-column: 1 / 2; justify-self: start; }
  .mk-cb-price { grid-column: 2; align-items: flex-end; }
  .mk-cb-step { grid-column: 1 / -1; grid-row: 3; }
  .mk-cb-price { grid-column: 1 / -1; grid-row: 4; align-items: flex-start; text-align: left; }
}
@media (max-width: 576px) {
  .mk-cb-head .mk-seg { margin-left: 0; flex: 1 1 100%; width: auto; }
  .mk-cb-head h2 { flex: 1 1 auto; }
  .mk-header.is-simple .mk-search { order: 2; flex: 0 0 100%; max-width: none; }
  .mk-variant { left: 8px; bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { .mk-cb-line > span { transition: none; } }
