/* strona koszyka; naglowek, ramka, kwoty i przycisk sa w assets/kasa.css */
.kh__gdzie + .kh__mail {
  margin-left: auto;
}

.kk .ks__siatka {
  grid-template-rows: auto 1fr;
  gap: 30px 72px;
}

.kk .ks__h1 {
  grid-column: 1;
}

.kk__lista {
  grid-column: 1;
  max-width: 680px;
}

.kk__prawa {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: start;
}

/* pozycje */
.kk__poz {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--tusz);
}

.kk__poz:first-child {
  border-top: 1px solid var(--tusz);
}

.kk__mini {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  width: 96px;
  height: 96px;
  overflow: hidden;
}

.kk__mini .ks__sloik {
  width: auto;
  height: auto;
}

.kk__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.kk__nazwa {
  font-weight: 500;
  line-height: 1.25;
}

.kk .kk__nazwa a {
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) {
  .kk .kk__nazwa a:hover {
    color: inherit;
    text-decoration: underline;
  }
}

.kk__rzad {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: auto;
  padding-top: 6px;
}

.kk__licz {
  display: inline-flex;
  align-items: center;
  height: 44px;
  border: 1px solid var(--linia);
}

.kk__licz button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.kk__licz button[aria-disabled='true'] {
  color: var(--linia);
  cursor: not-allowed;
}

.kk__licz svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
}

.kk__licz span {
  min-width: 24px;
  text-align: center;
  font-family: var(--f-mono);
}

@media (hover: hover) {
  .kk__licz button:not([aria-disabled='true']):hover {
    background: var(--piasek);
  }
}

.kk__licz button:active {
  background: var(--piasek-2);
}

.kk__rzad .ks__cena {
  margin-left: auto;
}

/* 320 px: przekreslona cena z groszami schodzi nizej, zeby nie poszerzac strony */
.kk__rzad .ks__cena > span:first-child {
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* pasek darmowej dostawy: linia 3 px bez ramki, czerwien wchodzi transformem */
.kk__dost {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--tusz);
}

.kk__dt {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-4);
  font-size: 16px;
  line-height: 1.3;
}

.kk__dt b {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}

.kk__dt small {
  display: block;
  margin-top: var(--s-1);
  font-size: 14px;
  color: var(--tusz-2);
}

.kk__dost.is-gratis .kk__dt b {
  font-family: var(--f-tekst);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
}

.kk__tor {
  height: 3px;
  margin-top: var(--s-3);
  background: rgba(19, 19, 19, 0.16);
  overflow: hidden;
}

.kk__tor i {
  display: block;
  height: 100%;
  background: var(--czerwien);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 480ms var(--krzywa);
}

.kk__dn {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-2);
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.3;
  color: var(--tusz-2);
}

.kk__dost.is-gratis .kk__dn {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .kk__tor i {
    transition: none;
  }
}

@media (forced-colors: active) {
  .kk__tor i {
    background: Highlight;
  }
}

.kk__sh {
  flex-wrap: wrap;
  gap: 0 var(--s-3);
  margin-bottom: 14px;
}

.kk__sh span {
  font-family: var(--f-mono);
  font-size: var(--t-liczba);
}

/* suma */
.kk__suma [data-kwoty] .ks__kwoty {
  padding-top: 0;
  border-top: 0;
}

.kk__suma {
  align-self: stretch;
}

.kk__suma .ks__kup {
  margin-top: 18px;
}

.kk__suma .ks__kup svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
}

.kk__suma .ks__hint {
  display: block;
  margin-top: var(--s-3);
}

/* "Dorzuć jeszcze...": 4 karty jak w produkty.css, tez przy pustym koszyku */
.kk__moze {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px dashed var(--tusz);
}

.kk__moze[hidden] {
  display: none;
}

.kk__mh {
  font-family: var(--f-druk);
  font-weight: 500;
  font-size: var(--t-h2);
  line-height: 1.1;
  text-transform: uppercase;
}

.kk__moze .pl__siatka {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

/* kasa.css barwi linki w ramce, a nazwa karty ma byc jak na liscie produktow */
.kk .kk__moze .pl__nazwa a {
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) {
  .kk .kk__moze .pl__k:hover .pl__nazwa a {
    color: var(--czerwien);
  }
}

@media (max-width: 720px) {
  .kk__moze {
    margin-top: 36px;
    padding-top: 28px;
  }

  .kk__moze .pl__siatka {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 20px;
  }
}

@media (max-width: 1080px) {
  .kk {
    margin-top: var(--s-2);
  }

  .kk .ks__siatka {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 680px;
  }

  .kk__prawa {
    display: contents;
  }
}

@media (max-width: 720px) {
  .kk {
    margin-top: 0;
    padding-top: var(--s-4);
  }

  .kk__poz {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    padding: 10px 0;
  }

  .kk__mini {
    width: 64px;
    height: 64px;
  }

  .kk__suma {
    margin: 0;
    padding: 20px;
  }

  .kk__dt b {
    font-size: 18px;
  }
}
