.kb-basket {
  padding-block: 22px clamp(48px, 6vw, 88px);
  color: var(--ky-ink);
}
.kb-crumbs { display: flex; align-items: center; gap: 9px; margin-bottom: clamp(18px, 2.8vw, 34px); color: var(--ky-muted); font-size: 13px; }
.kb-crumbs i { font-size: 9px; }
.kb-crumbs a, .kb-item h2 a, .kb-continue { text-decoration: none; }
.kb-crumbs a:hover, .kb-item h2 a:hover, .kb-continue:hover { text-decoration: underline; text-underline-offset: 3px; }
.kb-shell { display: flex; align-items: flex-start; gap: 18px; }
.kb-shell > #content { flex: 1; min-width: 0; }
.kb-page-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 17px; margin-bottom: clamp(16px, 2.2vw, 30px); }
.kb-basket h1 { margin: 0; font: 650 clamp(32px, 3.3vw, 54px)/1.12 var(--ky-display-font); letter-spacing: -.03em; }
.kb-page-title > span { color: var(--ky-muted); font-size: 15px; }
.kb-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(256px, .9fr); gap: 20px clamp(16px, 2.8vw, 44px); align-items: start; }
.kb-lines { min-width: 0; overflow: hidden; border: 1px solid var(--ky-line); border-radius: 16px; background: #fff; }
.kb-line {
  display: grid;
  grid-template-columns: clamp(64px, 7vw, 94px) minmax(110px, 1fr) auto auto;
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
  padding: clamp(14px, 1.7vw, 26px);
}
.kb-line + .kb-line { border-top: 1px solid var(--ky-line); }
.kb-photo { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 11px; background: #f7f5f0; overflow: hidden; text-decoration: none; }
.kb-photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.kb-photo i { color: #81786b; font-size: 24px; }
.kb-item h2 { margin: 0 0 4px; font: 650 clamp(15px, 1.15vw, 19px)/1.3 var(--bs-body-font-family); letter-spacing: -.01em; overflow-wrap: anywhere; }
.kb-model, .kb-unit-price, .kb-details, .kb-warning { margin: 3px 0 0; font-size: 12px; line-height: 1.45; }
.kb-model, .kb-unit-price, .kb-details { color: var(--ky-muted); }
.kb-unit-price span { white-space: nowrap; }
.kb-details { padding: 0; list-style: none; }
.kb-warning { display: grid; gap: 2px; color: #953e25; font-weight: 600; }
.kb-quantity { display: grid; justify-items: start; gap: 3px; }
.kb-stepper { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid #d8d3c9; border-radius: 9px; background: #fff; }
.kb-stepper button, .kb-stepper input { margin: 0; border: 0; border-radius: 0; background: transparent; color: var(--ky-ink); text-align: center; }
.kb-stepper button { width: clamp(30px, 2.7vw, 43px); min-height: 43px; padding: 0; font-size: 12px; }
.kb-stepper button:hover:not(:disabled) { background: #f5eddf; }
.kb-stepper button:disabled { color: #b3b0aa; }
.kb-stepper input { width: 36px; min-width: 0; height: 43px; padding: 0; font: 620 16px/1 var(--bs-body-font-family); appearance: textfield; -moz-appearance: textfield; }
.kb-stepper input::-webkit-inner-spin-button, .kb-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.kb-basket .kb-stepper :focus-visible { outline-offset: -3px; }
.kb-save, .kb-line-total button, .kb-notice button { border: 0; padding: 0; color: #55524d; background: transparent; font-size: 13px; }
.kb-save { min-height: 36px; padding-inline: 7px; text-decoration: underline; }
.kb-line-total { display: grid; justify-items: end; }
.kb-line-total strong { white-space: nowrap; font-size: clamp(16px, 1.4vw, 21px); font-variant-numeric: tabular-nums; }
.kb-line-total button { display: flex; align-items: center; gap: 6px; min-height: 40px; }
.kb-line-total button:hover, .kb-save:hover { color: #913d28; }
.kb-summary {
  position: sticky; top: 18px; grid-column: 2; grid-row: 1 / span 2;
  min-width: 0; padding: clamp(18px, 2.2vw, 32px); border: 1px solid #e2d8c8;
  background: #f7f2e8; border-radius: 16px;
}
.kb-summary h2, .kb-empty h2 { margin: 0 0 16px; font: 650 clamp(21px, 1.7vw, 28px)/1.2 var(--ky-display-font); letter-spacing: -.02em; }
.kb-totals { margin: 0 0 19px; font-size: 14px; }
.kb-totals > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 5px 0; }
.kb-totals dt { font-weight: 500; }
.kb-totals dd { margin: 0; text-align: end; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.kb-totals .kb-grand { margin-top: 10px; padding-top: 12px; border-top: 1px solid #dcd2c2; }
.kb-grand dt, .kb-grand dd { font-weight: 700; }
.kb-grand dd { font-size: 21px; }
.kb-basket .kb-checkout {
  display: inline-flex; justify-content: center; align-items: center; gap: 14px;
  width: 100%; min-height: 48px; padding: 10px 16px; border: 0; border-radius: 9px;
  background: #393936; color: #fff; font-weight: 650; line-height: 1.25; text-decoration: none;
}
.kb-basket .kb-checkout:hover { background: #272724; }
.kb-basket .kb-checkout:disabled { background: #777570; }
.kb-checkout i, .kb-continue i { font-size: .85em; }
.kb-mobile-total { display: none; }
.kb-continue { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 43px; margin-top: 5px; color: var(--ky-muted); font-size: 13px; }
.kb-modules { grid-column: 1; min-width: 0; --bs-accordion-border-color: var(--ky-line); --bs-accordion-border-radius: 11px; --bs-accordion-active-bg: #f6f2e9; --bs-accordion-active-color: var(--ky-ink); }
.kb-modules .accordion-button { font-size: 15px; font-weight: 600; }
.kb-empty { display: grid; justify-items: center; gap: 18px; padding: clamp(42px, 7vw, 90px) 20px; background: #f7f4ed; border: 1px solid var(--ky-line); border-radius: 16px; text-align: center; }
.kb-empty-icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #eedfc6; font-size: 26px; color: #62513c; }
.kb-empty h2 { margin: 0; }
.kb-empty .kb-checkout { width: auto; }
.kb-notice:has(span:not(:empty)) { margin: 0 0 16px; padding: 10px 14px; border-left: 3px solid #b38c55; background: #f4eee2; border-radius: 0 7px 7px 0; font-size: 14px; }
.kb-notice button { margin-left: 6px; font-weight: 650; text-decoration: underline; }
@media (min-width: 761px) and (max-width: 1050px) {
  .kb-line { grid-template-columns: 65px minmax(0, 1fr) auto; }
  .kb-photo { align-self: start; grid-row: span 2; }
  .kb-item { grid-column: 2; grid-row: 1; }
  .kb-quantity { grid-column: 2; grid-row: 2; }
  .kb-line-total { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 760px) {
  .kb-basket { padding-top: 16px; }
  .kb-shell { flex-wrap: wrap; }
  .kb-shell > #content { flex-basis: 100%; }
  .kb-layout { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .kb-page-title { margin-bottom: 15px; }
  .kb-line { grid-template-columns: clamp(55px, 15vw, 84px) minmax(0, 1fr) auto; align-items: start; gap: 10px; }
  .kb-photo { grid-column: 1; grid-row: 1; }
  .kb-item { grid-column: 2 / -1; grid-row: 1; }
  .kb-quantity { grid-column: 1 / span 2; grid-row: 2; align-self: center; }
  .kb-line-total { grid-column: 3; grid-row: 2; justify-items: end; }
  .kb-line-total button { min-height: 44px; }
  .kb-stepper button { width: 43px; min-height: 44px; }
  .kb-stepper input { height: 44px; }
  .kb-summary { position: static; grid-column: 1; grid-row: auto; }
  .kb-totals { margin-bottom: 3px; }
  .kb-purchase {
    position: fixed; z-index: 8; inset: auto 0 0; display: flex; justify-content: space-between; align-items: center; gap: 14px;
    padding: 9px max(15px, env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(15px, env(safe-area-inset-left));
    background: #fff; border-top: 1px solid var(--ky-line); box-shadow: 0 -4px 14px #3027190a;
  }
  .kb-purchase .kb-checkout { flex: 1 1 150px; width: auto; }
  .kb-mobile-total { display: grid; flex: 1 1 0; font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.2; }
  .kb-mobile-total small { color: var(--ky-muted); font-size: 11px; }
  .kb-purchase:focus-within { z-index: 11; }
  body:has(.kb-purchase) { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  html:has(.kb-purchase) { scroll-padding-bottom: 85px; }
}
