/* ---------- DESKTOP ---------- */
@media (min-width: 992px) {
  .ordering-process .cart-table tr.removeable {
    display: flex;
    align-items: center;
    gap: 0 16px;
  }
  .ordering-process .removeable > td { grid-area: auto; }

  .ordering-process .removeable .cart-p-image   { flex: 0 0 100px; }
  .ordering-process .removeable .p-name         { flex: 3 1 0; min-width: 0; }
  .ordering-process .removeable .p-availability { flex: 1.4 1 0; }
  .ordering-process .removeable .p-quantity     { flex: 0 0 120px; }
  .ordering-process .removeable .p-price        { flex: 1 1 0; }
  .ordering-process .removeable .p-discount     { flex: .7 1 0; }
  .ordering-process .removeable .p-total        { flex: 1.2 1 0; }

  .ordering-process .removeable .p-name a.main-link { font-size: 14px; line-height: 1.35; }
  .ordering-process .removeable .p-label { margin-right: 5px; }
  .ordering-process .removeable .p-total {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    white-space: nowrap;
  }
}

/* ---------- MOBIL ---------- */
@media (max-width: 991px) {
  .ordering-process .cart-table tr.removeable {
    display: grid;
    grid-template-columns: auto auto auto 1fr;
    column-gap: 12px;
    row-gap: 8px;
    align-items: center;
    padding: 14px 0;
  }

  .ordering-process .removeable > td {
    position: static;
    top: auto; right: auto; bottom: auto; left: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    text-align: left;
  }
  .ordering-process .removeable > td > * { text-align: left; }

  /* obrázek přes řádky 1–2 */
  .ordering-process .removeable .cart-p-image {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
  }
  .ordering-process .removeable .cart-p-image img {
    width: 72px;
    height: auto;
  }

  /* rozpustí buňku názvu → odkaz i kód jsou samostatné položky mřížky */
  .ordering-process .removeable .p-name { display: contents; }

  /* řádek 1: název */
  .ordering-process .removeable .p-name a.main-link {
    grid-column: 2 / -1;
    grid-row: 1;
    font-size: 14px;
    line-height: 1.35;
  }

  /* řádek 2: kód + dostupnost */
  .ordering-process .removeable .custom-product-code {
    grid-column: 2;
    grid-row: 2;
    font-size: 12px;
    opacity: .7;
    white-space: nowrap;
  }
  .ordering-process .removeable .p-availability {
    grid-column: 3 / -1;
    grid-row: 2;
    margin: 0;
  }
  .ordering-process .removeable .p-availability .p-label { display: none; }
  .ordering-process .removeable .p-availability .availability-label {
    font-size: 12px;
    white-space: nowrap;
  }

  /* řádek 3: počet, cena, sleva, odstranění — přes celou šířku */
  .ordering-process .removeable .p-quantity {
    grid-column: 1;
    grid-row: 3;
    margin: 0;
  }
  .ordering-process .removeable .p-price {
    grid-column: 2;
    grid-row: 3;
    margin: 0;
    white-space: nowrap;
  }
  .ordering-process .removeable .p-discount {
    grid-column: 3;
    grid-row: 3;
    margin: 0;
    white-space: nowrap;
  }
  .ordering-process .removeable .p-total {
    grid-column: 4 / -1;
    grid-row: 3;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    white-space: nowrap;
  }

  .ordering-process .removeable .p-quantity .p-label,
  .ordering-process .removeable .p-total .p-label { display: none; }
  .ordering-process .removeable .p-price .p-label,
  .ordering-process .removeable .p-price .unit-value { display: none; }
  .ordering-process .removeable .p-label { margin-right: 5px; }
}

/* ---------- IKONA KOŠE ---------- */
.ordering-process .removeable .p-total form.inline,
.ordering-process .removeable .p-total form.inline > .inline {
  display: flex;
  align-items: center;
  margin: 0;
}
.ordering-process .removeable .remove-item {
  --bin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4h8v2M6 6v13a2 2 0 002 2h8a2 2 0 002-2V6M10 11v5M14 11v5'/%3E%3C/svg%3E");
  width: 22px; height: 22px; padding: 0; border: 0;
  background: #666 none; box-shadow: none;
  transition: background-color .15s ease;
  -webkit-mask: var(--bin) center/22px no-repeat;
          mask: var(--bin) center/22px no-repeat;
}
.ordering-process .removeable .remove-item::before,
.ordering-process .removeable .remove-item::after { content: none; }
.ordering-process .removeable .remove-item:hover {
  background-color: #C4000A;
  transform: none;
  opacity: 1;
}