/*! esavpol-pdp-shell v12 · 2026-09-30 */
/* WERSJA — sprawdzanie: otwórz plik (pierwsza linia) albo w konsoli na PDP:
     getComputedStyle(document.documentElement).getPropertyValue('--svp-shell-version')
   Historia:
     v12 2026-09-30 notka chłodzone/mrożone w stylu notki z tagu (pigułka + zdanie); kruche: notka z tagu pod koszykiem
     v11 2026-09-30 notka z tagu (kruche) pod koszykiem
     v10 2026-09-30 bez przeskoków: układ „opakowanie” dla gościa z HTML serwera (nie z tagu), netto pod ceną główną z rezerwacją, notka chłodzone/mrożone z CSS pod koszykiem; telefon: ilość i koszyk na pełną szerokość
     v9 2026-09-30  ukryta ikona „Kopiuj” (kwadracik) w polu ilości
     v8 2026-09-30  tryb „pack”: kreska i wiersze drugiego planu jak w promocji („Cena jednostkowa”)
     v7 2026-09-30  tryb „pack”: ukryta „Cena regularna” poza promocją
     v6 2026-09-28  rezerwacja miejsca pod cenę netto i notkę wysyłki; zgodność z pdp.css (box bez min-height 422px)
     v5 2026-09-28  widok B2B (netto opakowania, punkty savpol+), promocja/omnibus, przyciski jak w sklepie
*/
html { --svp-shell-version: "v12 2026-09-30"; }

/* =====================================================================
   Savpol PDP shell — restyling karty produktu esavpol.pl (bez nav/stopki)
   ---------------------------------------------------------------------
   Zakres: wszystko wewnątrz .c-window.csB2BItemCard (breadcrumbs, galeria,
   tytuł + atrybuty, box ceny, nagłówek opisu, karuzela TOP100).
   Nie dotyka: header, footer, treści .svp-pdp / .svp-sh (ma własny pdp.css).

   Specyficzność: sklep pisze selektory typu
     #app.desktop .c-window.csB2BItemCard > section.c-item > ... #c-item-price
   (1–2 ID + ~8 klas) i ładuje swój CSS PO linku z ERP. Dlatego prefiks
   #app#app daje +1 ID ponad każdy selektor sklepu — wygrywa niezależnie
   od kolejności arkuszy, bez !important.

   RWD: sklep nie używa media queries — JS ustawia na #app klasę
   .phone / .tablet / .desktop. Trzymamy się tych samych klas, żeby
   przełączenie układu było zawsze zgodne z tym, co robi sklep.
   ===================================================================== */

#app#app .csB2BItemCard {
  --s-blue: #69A2D9;
  --s-blue-h: #5890C9;
  --s-link: #1C75BC;
  --s-orange: #CE5F30;
  --s-ink: #000;
  --s-muted: #595959;
  --s-line: #E0E0E0;
  --s-alt: #F5F5F5;
  --s-tint: #EAF2FA;
  /* przyciski: 1:1 ze sklepem (Zaloguj się, Do koszyka w karuzeli) */
  --s-btn: #5E9AD6;
  --s-btn-h: #4B88C6;
  --s-btn-line: #D5D9E1;
  --s-btn-r: 3px;
  --s-ok: #3B8A5A;
  --s-r: 8px;
  --s-r-lg: 12px;
  color: var(--s-ink);
}

/* ---------- Sekcje: rytm pionowy + tła ---------- */
#app#app .csB2BItemCard > section.c-item {
  background: #fff;
  padding: 16px 0 48px;
  border-bottom: 1px solid var(--s-line);
}
#app#app .csB2BItemCard > section:not(.c-item) {
  padding-top: 64px;
  padding-bottom: 64px;
}
#app#app .csB2BItemCard > section:nth-child(2n+1):not(.c-item) {
  background: var(--s-alt);
}

/* ---------- Breadcrumbs ---------- */
#app#app .csB2BItemCard #breadcrumbs {
  margin-bottom: 24px;
}
#app#app .csB2BItemCard #breadcrumbs .c-breadcrumb {
  padding: 0;
  row-gap: 4px;
}
#app#app .csB2BItemCard #breadcrumbs .breadcrumbs__item,
#app#app .csB2BItemCard #breadcrumbs .breadcrumbs__item a,
#app#app .csB2BItemCard #breadcrumbs .breadcrumbs__item span {
  font-size: 12px;
  line-height: 18px;
  color: var(--s-muted);
  text-decoration: none;
}
#app#app .csB2BItemCard #breadcrumbs .breadcrumbs__item a:hover {
  color: var(--s-orange);
}
#app#app .csB2BItemCard #breadcrumbs .breadcrumbs__item:last-child span {
  color: var(--s-ink);
}

/* ---------- Galeria ---------- */
#app#app .csB2BItemCard .c-item-info > .c-container > .c-imgs-cont {
  margin-right: 48px;
}
#app#app .csB2BItemCard .c-item-info > .c-container > .c-imgs-cont > .c-img-cont {
  outline: 0;
  border: 1px solid var(--s-line);
  border-radius: var(--s-r-lg);
  background: #fff;
  overflow: hidden;
}
#app#app .csB2BItemCard .c-imgs-cont > .c-img-cont > .c-btn-row-change {
  width: 36px;
  height: 36px;
  top: 50%;
  bottom: auto;
  margin-top: -18px;
  border-radius: var(--s-btn-r);
  background-color: rgba(255, 255, 255, .92);
  border: 1px solid var(--s-line);
}
#app#app .csB2BItemCard .c-imgs-cont > .c-img-cont > .c-top-bar {
  margin: 12px 12px 0;
}
#app#app .csB2BItemCard .c-imgs-cont > .c-scroll-panel {
  margin-top: 12px;
}
#app#app .csB2BItemCard .c-imgs-cont > .c-scroll-panel > .c-imgs > li {
  border: 1px solid var(--s-line);
  border-radius: var(--s-r);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s;
}
#app#app .csB2BItemCard .c-imgs-cont > .c-scroll-panel > .c-imgs > li::before {
  border-radius: var(--s-r);
}
#app#app .csB2BItemCard .c-imgs-cont > .c-scroll-panel > .c-imgs > li:hover {
  border-color: var(--s-blue);
}
#app#app .csB2BItemCard .c-imgs-cont > .c-scroll-panel > .c-imgs > li.c-active {
  border-color: var(--s-blue);
  box-shadow: inset 0 0 0 1px var(--s-blue);
}

#app#app .csB2BItemCard .c-imgs-cont > .c-img-cont > .c-btn-row-change.c-prev {
  left: 8px;
}
#app#app .csB2BItemCard .c-imgs-cont > .c-img-cont > .c-btn-row-change.c-next {
  left: auto;
  right: 8px;
}

/* ---------- Tytuł ---------- */
#app#app .csB2BItemCard #c-item-icon-and-title {
  min-height: 0;
  margin-bottom: 20px;
  padding-left: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
#app#app .csB2BItemCard #c-item-icon-and-title > img {
  position: static;
  order: 2;
  height: 40px;
  width: auto;
  margin-left: auto;
  flex: 0 0 auto;
}
#app#app .csB2BItemCard #c-item-icon-and-title > h1 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--s-ink);
  letter-spacing: -0.01em;
  -webkit-line-clamp: 3;
  flex: 1 1 auto;
}

/* Ikona temperatury: znika przy 3 znanych wartościach title, a ich treść
   trafia do meta jako „Sposób przechowywania: [Chłodnia]” (niżej).
   Nowy, nieznany wariant title = ikona zostaje. */
#app#app .csB2BItemCard #c-item-icon-and-title > img:is([title*="zamroż" i], [title*="schłodz" i], [title*="pokojow" i]) {
  display: none;
}

/* ---------- Atrybuty (marka / kod / dostępność) ---------- */
#app#app .csB2BItemCard .c-item-attr-cont > ul.c-item-attr:first-of-type {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 8px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--s-line);
}
#app#app .csB2BItemCard .c-item-attr-cont ul.c-item-attr > li:not(.c-item-features),
#app#app .csB2BItemCard .c-item-attr-cont ul.c-item-attr > li.c-item-code-cont > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
}
#app#app .csB2BItemCard .c-item-attr-cont ul.c-item-attr > li label {
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--s-muted);
}
#app#app .csB2BItemCard .c-item-attr-cont ul.c-item-attr > li label + span,
#app#app .csB2BItemCard .c-item-attr-cont ul.c-item-attr > li label + a > span,
#app#app .csB2BItemCard .c-item-attr-cont ul.c-item-attr > li.c-item-code-cont > div > span {
  font-size: 13px;
  font-weight: 700;
  color: var(--s-ink);
}
#app#app .csB2BItemCard .c-item-attr-cont ul.c-item-attr > li label + a {
  text-decoration: none;
}
#app#app .csB2BItemCard .c-item-attr-cont ul.c-item-attr > li label + a > span {
  color: var(--s-link);
}
#app#app .csB2BItemCard .c-item-attr-cont ul.c-item-attr > li label + a:hover > span {
  color: var(--s-orange);
}
/* dostępność: kropka w kolorze nadanym przez sklep (24h zielony, 7 dni pomarańczowy) */
#app#app .csB2BItemCard .c-item-attr-cont > ul.c-item-attr:first-of-type > li.c-item-code-cont > label + span {
  padding-left: 12px;
}
#app#app .csB2BItemCard .c-item-attr-cont > ul.c-item-attr:first-of-type > li.c-item-code-cont > label + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-radius: 50%;
  background: currentColor;
}
/* li.c-item-features: gdy zawiera opis krótki (.svp-sh) etykieta
   "Dane dodatkowe" jest zbędna; w innym wypadku (np. "Wartości odżywcze")
   zachowuje się jak pozycja listy informacyjnej niżej */
#app#app .csB2BItemCard .c-item-attr-cont ul.c-item-attr > li.c-item-features {
  flex: 1 0 100%;
  display: block;
  margin: 4px 0 0;
}
#app#app .csB2BItemCard .c-item-attr-cont ul.c-item-attr > li.c-item-features:has(.svp-sh) > label {
  display: none;
}

/* Lista informacyjna: druga ul.c-item-attr (skład, przechowywanie…)
   + features bez opisu krótkiego. Etykieta nad wartością, tekst zwykły. */
#app#app .csB2BItemCard .c-item-attr-cont > ul.c-item-attr ~ ul.c-item-attr:not(.c-empty) {
  width: 100%;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--s-line);
}
#app#app .csB2BItemCard .c-item-attr-cont > ul.c-item-attr ~ ul.c-item-attr > li,
#app#app .csB2BItemCard .c-item-attr-cont ul.c-item-attr > li.c-item-features:not(:has(.svp-sh)) {
  display: block;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--s-line);
}
#app#app .csB2BItemCard .c-item-attr-cont > ul.c-item-attr ~ ul.c-item-attr > li > label,
#app#app .csB2BItemCard .c-item-attr-cont ul.c-item-attr > li.c-item-features:not(:has(.svp-sh)) > label {
  display: block;
  margin-bottom: 4px;
}
#app#app .csB2BItemCard .c-item-attr-cont > ul.c-item-attr ~ ul.c-item-attr > li > label + span,
#app#app .csB2BItemCard .c-item-attr-cont ul.c-item-attr > li.c-item-features:not(:has(.svp-sh)) > label + span {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--s-ink);
  text-align: left;
  white-space: pre-line; /* sklep zapisuje przechowywanie z łamaniami linii */
}
#app#app .csB2BItemCard .c-item-attr-cont ul.c-item-attr > li.c-item-features:not(:has(.svp-sh)) {
  border-top: 1px solid var(--s-line);
}
#app#app .csB2BItemCard .c-item-attr-cont ul.c-item-attr > li.c-item-features:not(:has(.svp-sh)) + * {
  border-top: 0;
}
#app#app .csB2BItemCard .c-item-attr-cont .c-item-attr .c-item-features > div {
  margin-top: 0;
}

/* Sposób przechowywania — w meta, pod dostępnością.
   Pierwsza ul.c-item-attr ma w układach display:contents, więc jej
   ::before (etykieta) i ::after (plakietka) stają się elementami tego
   samego flexa co marka / kod / dostępność.
   Źródło: title ikony temperatury (3 warianty w sklepie).
   „Temperatura pokojowa” tylko dla spożywki (ma listę skład/przechowywanie). */
#app#app .csB2BItemCard .c-item-attr-cont:has(> #c-item-icon-and-title > img:is([title*="zamroż" i], [title*="schłodz" i])) > ul.c-item-attr:first-of-type::before,
#app#app .csB2BItemCard .c-item-attr-cont:has(> ul.c-item-attr ~ ul.c-item-attr:not(.c-empty)):has(> #c-item-icon-and-title > img[title*="pokojow" i]) > ul.c-item-attr:first-of-type::before {
  content: "Sposób przechowywania";
}
#app#app .csB2BItemCard .c-item-attr-cont > ul.c-item-attr:first-of-type::before {
  order: 2;
  flex: 0 0 auto;
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--s-muted);
}
#app#app .csB2BItemCard .c-item-attr-cont > ul.c-item-attr:first-of-type::after {
  order: 2;
  flex: 0 0 auto;
  margin: 0 0 20px;
  padding: 2px 8px;
  border-radius: var(--s-btn-r);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}
#app#app .csB2BItemCard .c-item-attr-cont:has(> #c-item-icon-and-title > img[title*="schłodz" i]) > ul.c-item-attr:first-of-type::after {
  content: "Chłodnia";
  background: var(--s-tint);
  color: var(--s-link);
}
#app#app .csB2BItemCard .c-item-attr-cont:has(> #c-item-icon-and-title > img[title*="zamroż" i]) > ul.c-item-attr:first-of-type::after {
  content: "Mroźnia";
  background: var(--s-tint);
  color: var(--s-link);
}
#app#app .csB2BItemCard .c-item-attr-cont:has(> ul.c-item-attr ~ ul.c-item-attr:not(.c-empty)):has(> #c-item-icon-and-title > img[title*="pokojow" i]) > ul.c-item-attr:first-of-type::after {
  content: "Temperatura pokojowa";
  background: var(--s-alt);
  color: var(--s-muted);
}

/* pusta druga lista ("Brak danych") */
#app#app .csB2BItemCard .c-item-attr-cont > ul.c-item-attr.c-empty {
  display: none;
}

/* ---------- Box ceny ---------- */
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont {
  height: auto;
  min-height: 0;
  padding: 24px;
  border: 1px solid var(--s-line);
  border-radius: var(--s-r-lg);
  background: #fff;
  color: var(--s-ink);
  font-weight: 400;
  align-content: flex-start;
}
#app#app .csB2BItemCard .c-item-price-cont #c-item-price > span:first-child {
  display: block;
  line-height: 16px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--s-muted);
}
#app#app .csB2BItemCard .c-item-price-cont #c-item-price > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 6px;
}
#app#app .csB2BItemCard .c-item-price-cont #c-item-price > div > div,
#app#app .csB2BItemCard .c-item-price-cont #c-item-price > div > div .value {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--s-ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
#app#app .csB2BItemCard .c-item-price-cont #c-item-price > div > span {
  font-size: 13px;
  font-weight: 400;
  color: var(--s-muted);
}
#app#app .csB2BItemCard .c-item-price-cont .c-item-price-net {
  margin-top: 6px;
  font-size: 13px;
  color: var(--s-muted);
}
#app#app .csB2BItemCard .c-item-price-cont .c-item-price-net span {
  font-weight: 400;
  color: var(--s-muted);
}
#app#app .csB2BItemCard .c-item-price-cont .c-item-price-net .value {
  font-weight: 700;
  color: var(--s-ink);
  margin-right: 3px;
}
#app#app .csB2BItemCard .c-item-price-cont .c-item-negotiate {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 400;
  color: var(--s-muted);
}
#app#app .csB2BItemCard .c-item-price-cont .c-item-negotiate a {
  color: var(--s-link);
  font-weight: 700;
  text-decoration: none;
}
#app#app .csB2BItemCard .c-item-price-cont .c-item-negotiate a:hover {
  color: var(--s-orange);
}
/* ceny pomocnicze: regularna, za j.m. — drugi plan, jedna linia każda */
#app#app .csB2BItemCard .c-item-price-cont > div:has(#c-item-price-100) {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--s-line);
}
#app#app .csB2BItemCard .c-item-price-cont #c-item-price-100,
#app#app .csB2BItemCard .c-item-price-cont #c-item-unit-net-price-loyality-points-container,
#app#app .csB2BItemCard .c-item-price-cont #c-item-unit-net-gross-price {
  margin-top: 0;
}
#app#app .csB2BItemCard .c-item-price-cont #c-item-price-100,
#app#app .csB2BItemCard .c-item-price-cont #c-item-unit-net-gross-price {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 8px;
  font-size: 12px;
  line-height: 20px;
}
#app#app .csB2BItemCard .c-item-price-cont #c-item-price-100 > span,
#app#app .csB2BItemCard .c-item-price-cont #c-item-unit-net-gross-price > span {
  width: auto;
  line-height: 20px;
  font-size: 12px;
  font-weight: 400;
  color: var(--s-muted);
}
#app#app .csB2BItemCard .c-item-price-cont #c-item-price-100 > div,
#app#app .csB2BItemCard .c-item-price-cont #c-item-unit-gross-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--s-muted);
}
#app#app .csB2BItemCard .c-item-price-cont #c-item-price-100 .value,
#app#app .csB2BItemCard .c-item-price-cont #c-item-unit-gross-price .value {
  font-size: 12px;
  font-weight: 700;
  color: var(--s-ink);
}
#app#app .csB2BItemCard .c-item-price-cont #c-item-price-100 .value {
  color: var(--s-muted);
}

/* ---------- Widok B2B ----------
   Konto B2B widzi w wierszu „Cena za opakowanie” dwie kwoty:
   #c-item-unit-net-price (netto; dla gościa pusty) i brutto — grupujemy
   je po prawej. Punkty lojalnościowe (#c-item-loyality-points, logo
   savpol+ w ::before) — mniejsze, w jednym wierszu, pod cenami. */
#app#app .csB2BItemCard .c-item-price-cont #c-item-unit-net-price:not(:empty) {
  margin-left: auto;
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--s-muted);
}
#app#app .csB2BItemCard .c-item-price-cont #c-item-unit-net-price .value {
  font-size: 12px;
  font-weight: 700;
  color: var(--s-ink);
}
#app#app .csB2BItemCard .c-item-price-cont #c-item-unit-net-price:has(.value)::after {
  content: "·";
  margin-left: 4px;
  color: var(--s-muted);
}
#app#app .csB2BItemCard .c-item-price-cont #c-item-unit-net-price-loyality-points-container {
  display: flex;
  flex-direction: column;
}
#app#app .csB2BItemCard .c-item-price-cont #c-item-unit-net-price-loyality-points-container span#c-item-loyality-points {
  margin: 6px 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 20px;
  font-weight: 700;
  color: var(--s-link);
}
/* obrazka z content:url() nie da się skalować width/height — zoom działa */
#app#app .csB2BItemCard .c-item-price-cont #c-item-unit-net-price-loyality-points-container span#c-item-loyality-points::before {
  zoom: .45;
  line-height: 0;
}

/* ---------- Promocja ----------
   Sklep nie daje klasy „promo”, ale tylko w promocji wstawia
   #c-item-unit-omnibus-price-container („Najniższa cena z 30 dni”).
   Cena główna w pomarańczu (punktowy akcent), regularna przekreślona,
   omnibus zaraz pod nią — bez plakietek „-X%”. */
#app#app .csB2BItemCard .c-item-price-cont:has(#c-item-unit-omnibus-price-container) #c-item-price > span:first-child {
  font-size: 0;
}
#app#app .csB2BItemCard .c-item-price-cont:has(#c-item-unit-omnibus-price-container) #c-item-price > span:first-child::after {
  content: "Cena promocyjna";
  font-size: 11px;
  color: var(--s-orange);
}
#app#app .csB2BItemCard .c-item-price-cont:has(#c-item-unit-omnibus-price-container) #c-item-price > div > div,
#app#app .csB2BItemCard .c-item-price-cont:has(#c-item-unit-omnibus-price-container) #c-item-price > div > div .value {
  color: var(--s-orange);
}
#app#app .csB2BItemCard .c-item-price-cont:has(#c-item-unit-omnibus-price-container) #c-item-price-100 .value {
  text-decoration: line-through;
  font-weight: 400;
}
#app#app .csB2BItemCard .c-item-price-cont > div:has(#c-item-unit-omnibus-price-container) {
  display: flex;
  flex-direction: column;
}
#app#app .csB2BItemCard .c-item-price-cont #c-item-unit-omnibus-price-container {
  order: 1;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
/* ikona „?” sklepu (title z wyjaśnieniem omnibusa) — w wierszu, nie nad nim */
#app#app .csB2BItemCard .c-item-price-cont #c-item-unit-omnibus-price-container::after {
  position: static;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  line-height: 0;
}
#app#app .csB2BItemCard .c-item-price-cont > div:has(#c-item-unit-omnibus-price-container) > #c-item-unit-net-price-loyality-points-container {
  order: 2;
}
#app#app .csB2BItemCard .c-item-price-cont #c-item-unit-omnibus-price {
  flex: 1 1 auto;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 8px;
  font-size: 12px;
  line-height: 20px;
  font-weight: 400;
  color: var(--s-muted);
}
#app#app .csB2BItemCard .c-item-price-cont #omnibus-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 12px;
  color: var(--s-muted);
}
#app#app .csB2BItemCard .c-item-price-cont #omnibus-price .value {
  font-size: 12px;
  font-weight: 700;
  color: var(--s-ink);
}

/* ---------- Haki pod skrypty (cena netto + VAT, cena za opakowanie) ----------
   1) Cena netto + VAT — tag GTM pdp-price-net wstawia zaraz ZA #c-item-price:
        <div class="svp-price-net">
          <span class="svp-price-net__value">14,11 zł</span> netto
          <span class="svp-price-net__vat">VAT 23%</span>
        </div>
      i (od 1.2.0, gdy jednostka opakowania ≠ jednostka ceny) drugi blok
      .svp-price-net--pack na koniec #c-item-unit-net-gross-price.
   2) Cena za opakowanie jako główna — od v10 decyduje sam CSS z HTML
      z serwera (bez czekania na GTM → bez przeskoku): gość/B2C
      (#c-item-unit-net-price bez .value) + jest wiersz „Cena za …”
      (#c-item-unit-net-gross-price). B2B (netto wypełnione w SSR) — bez zmian.
      Atrybut data-svp-price="pack" z tagu jest ignorowany. */
#app#app .csB2BItemCard .c-item-price-cont .svp-price-net {
  display: block;
  height: 20px;
  margin-top: 6px;
  font-size: 13px;
  line-height: 20px;
  color: var(--s-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Rezerwacja miejsca (CLS). #app#app#app — wygrywa z pdp.css niezależnie
   od kolejności plików.
   - box ceny bez sztywnych 422px z pdp.css,
   - gość/B2C (tryb „opakowanie”): netto rysuje się tuż pod ceną główną —
     dopóki tag nie wstawi żadnego .svp-price-net, trzymamy tam 26px
     (20px + 6px margin). Rezerwacje z pdp.css pod #c-item-price zerujemy,
     bo #c-item-price jest tu wierszem pod kreską.
   - notka chłodzone/mrożone: rysuje ją sam CSS („Notka wysyłki”),
     więc notka z tagu jest chowana i nie potrzebuje rezerwacji. */
#app#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont {
  min-height: 0;
  align-self: auto;
}
#app#app#app .csB2BItemCard .c-item-price-cont > :is(#c-item-price, .svp-price-net, .pdp-ship-note) {
  flex-shrink: 0;
}
#app#app#app .csB2BItemCard .c-item-price-cont > .pdp-ship-note {
  margin: 12px 0 8px;
  min-height: 50px;
}
#app#app#app .csB2BItemCard .c-item-price-cont:not(:has(> .svp-price-net)):not(:has(#c-item-unit-net-price .value)) > #c-item-price {
  padding-bottom: 26px;
}
#app#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) > #c-item-price {
  padding-bottom: 0;
}
#app#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price):not(:has(.svp-price-net)) #c-item-unit-net-price-loyality-points-container {
  padding-bottom: 26px;
}
#app#app .csB2BItemCard .c-item-price-cont .svp-price-net__value {
  font-weight: 700;
  color: var(--s-ink);
}
#app#app .csB2BItemCard .c-item-price-cont .svp-price-net__vat {
  margin-left: 8px;
  padding: 1px 6px;
  border-radius: var(--s-btn-r);
  background: var(--s-alt);
  font-size: 11px;
  font-weight: 700;
  color: var(--s-muted);
}

/* netto dla ceny opakowania: skrypt może wstawić drugi blok
   <div class="svp-price-net svp-price-net--pack">…</div> na koniec
   #c-item-unit-net-gross-price. W trybie „pack” wtedy pokazujemy tylko ten,
   żeby VAT nie powtarzał się dwa razy. Poza trybem „pack” — odwrotnie. */
#app#app .csB2BItemCard .c-item-price-cont .svp-price-net--pack {
  display: none;
}
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) .svp-price-net--pack {
  display: block;
}
/* netto z bloku podstawowego (gdy nie ma bloku --pack, np. te same
   jednostki — sztuka) — pod ceną główną, nie pod kreską */
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) > .svp-price-net {
  order: -2;
}
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price):has(.svp-price-net--pack) .svp-price-net:not(.svp-price-net--pack) {
  display: none;
}

/* cena za opakowanie na górze, cena za j.m. jako druga */
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 12px;
}
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) > *:not(.c-item-qty):not(.c-btna),
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) #c-item-price-100,
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) #c-item-unit-omnibus-price-container {
  flex: 0 0 100%;
}
/* ilość + koszyk zawsze na końcu (omnibus ma order 1) */
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) > .c-item-qty,
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) > .c-btna {
  order: 2;
}
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) > div:has(#c-item-price-100) {
  display: contents;
}
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) #c-item-unit-net-price-loyality-points-container {
  order: -3;
  margin: 0 0 4px;
}
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) #c-item-price {
  order: -1;
}
/* kreska oddziela cenę główną (opakowanie + netto/VAT) od wierszy
   drugiego planu — pierwszym jest teraz cena jednostkowa (#c-item-price) */
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) #c-item-price-100 {
  margin-top: 4px;
  padding-top: 0;
  border-top: 0;
}
/* poza promocją „Cena regularna” u gościa = cena za j.m. pokazana wyżej —
   w trybie „pack” to trzeci raz ta sama kwota, więc chowamy */
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price):not(:has(#c-item-unit-omnibus-price-container)) #c-item-price-100 {
  display: none;
}
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) #c-item-unit-net-gross-price {
  display: block;
}
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) #c-item-unit-net-gross-price > span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) #c-item-unit-gross-price {
  flex-wrap: wrap;
  column-gap: 6px;
  font-size: 13px;
}
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) #c-item-unit-gross-price .value {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--s-ink);
}
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price):has(#c-item-unit-omnibus-price-container) #c-item-unit-gross-price .value {
  color: var(--s-orange);
}
/* cena za j.m. (dotąd główna) → wiersz drugiego planu jak „Cena regularna”:
   etykieta po lewej („Cena jednostkowa” — tekst sklepu „Twoja cena” ukryty,
   jednostka jest w kwocie), kwota po prawej. Drugi selektor przebija
   podmianę etykiety z bloku „Promocja” (:has(#omnibus) = +1 ID). */
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) #c-item-price {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--s-line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 8px;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 20px;
}
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) #c-item-price > span:first-child,
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price):has(#c-item-unit-omnibus-price-container) #c-item-price > span:first-child {
  display: block;
  margin: 0;
  font-size: 0;
  line-height: 20px;
}
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) #c-item-price > span:first-child::after,
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price):has(#c-item-unit-omnibus-price-container) #c-item-price > span:first-child::after {
  content: "Cena jednostkowa";
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--s-muted);
}
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) #c-item-price > div {
  column-gap: 4px;
}
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) #c-item-price > div > div,
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) #c-item-price > div > div .value,
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price):has(#c-item-unit-omnibus-price-container) #c-item-price > div > div,
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price):has(#c-item-unit-omnibus-price-container) #c-item-price > div > div .value {
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0;
  color: var(--s-ink);
}
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) #c-item-price > div > span {
  font-size: 12px;
}

/* ---------- Notka wysyłki (chłodzone / mrożone) — z CSS, bez przeskoku ----------
   Źródło: ikona temperatury w HTML z serwera (#c-item-icon-and-title img).
   Tylko gość/B2C (jak tag pdp-ship-note). Wygląd i tekst 1:1 z notki tagu
   3.2.0 (pigułka Core.shipBadge + zdanie pod spodem), żeby była spójna
   z innymi miejscami, gdzie tag pokazuje tę informację. Pod „Do koszyka”:
   ::before = pigułka, ::after = zdanie. Notkę z tagu dla tych typów chowamy
   (kruche nie mają ikony — dla nich zostaje notka z tagu, ustawiona niżej
   w tym samym miejscu). */
#app#app .csB2BItemCard:has(#c-item-icon-and-title img:is([src*="temp-chilled"], [src*="temp-frozen"])) .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price)::before,
#app#app .csB2BItemCard:has(#c-item-icon-and-title img:is([src*="temp-chilled"], [src*="temp-frozen"])) .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price)::after {
  order: 3;
  box-sizing: border-box; /* globalne *{box-sizing} sklepu nie obejmuje pseudo-elementów */
  white-space: normal;
}
#app#app .csB2BItemCard:has(#c-item-icon-and-title img:is([src*="temp-chilled"], [src*="temp-frozen"])) .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price)::before {
  flex: 0 0 auto;
  display: inline-block;
  margin-top: 16px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #FDEEE8;
  font-size: 11px;
  line-height: 15.4px;
  font-weight: 700;
  color: #E45A2B;
}
#app#app .csB2BItemCard:has(#c-item-icon-and-title img:is([src*="temp-chilled"], [src*="temp-frozen"])) .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price)::after {
  order: 4;
  flex: 0 0 100%;
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
  color: #595959;
  content: "Nie wysyłamy kurierem — odbiór w centrali w Gliwicach.";
}
#app#app .csB2BItemCard:has(#c-item-icon-and-title img[src*="temp-frozen"]) .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price)::before {
  content: "Mrożony · tylko odbiór osobisty";
}
#app#app .csB2BItemCard:has(#c-item-icon-and-title img[src*="temp-chilled"]) .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price)::before {
  content: "Chłodzony · tylko odbiór osobisty";
}
#app#app .csB2BItemCard:has(#c-item-icon-and-title img[src*="temp-frozen"]) .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) > .pdp-ship-note[data-ship-type="frozen"],
#app#app .csB2BItemCard:has(#c-item-icon-and-title img[src*="temp-chilled"]) .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) > .pdp-ship-note[data-ship-type="chilled"] {
  display: none !important;
}
/* pigułka ma szerokość treści, więc sama nie przejdzie do nowej linii —
   „Do koszyka” dostaje podstawę = reszta rzędu po polu ilości (160px + 12px odstępu) */
#app#app:not(.phone) .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) > .c-btna {
  flex: 1 1 calc(100% - 172px);
}

/* telefon: ilość i koszyk jeden pod drugim, oba na pełną szerokość
   (w jednym rzędzie placeholder „Ilość w koszyku” się ucina) */
#app#app.phone .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) > .c-item-qty {
  flex: 0 0 100%;
  margin: 16px 0 0;
}
#app#app.phone .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) > .c-btna {
  flex: 0 0 100%;
  margin: 8px 0 0;
}

/* notka z tagu pdp-ship-note, której CSS nie wyrysuje sam (kruche — brak
   ikony w HTML z serwera): to samo miejsce co notka z CSS (pod „Do koszyka”),
   wygląd zostaje z tagu. Znaczniki tagu: .pdp-ship-note > .svp-ship-pill + span */
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price) > .pdp-ship-note {
  order: 3;
  flex: 0 0 100%;
  margin: 16px 0 0;
  min-height: 0;
}

/* promocja w trybie „opakowanie”: etykieta ceny głównej = „Cena promocyjna” */
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price):has(#c-item-unit-omnibus-price-container) #c-item-unit-net-gross-price > span {
  font-size: 0;
}
#app#app .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont:not(:has(#c-item-unit-net-price .value)):has(#c-item-unit-net-gross-price):has(#c-item-unit-omnibus-price-container) #c-item-unit-net-gross-price > span::after {
  content: "Cena promocyjna";
  font-size: 11px;
  color: var(--s-orange);
}

/* ilość + koszyk */
#app#app .csB2BItemCard .c-item-price-cont > .c-item-qty {
  margin: 20px 0 12px;
  height: 44px;
  border: 1px solid var(--s-btn-line);
  border-radius: var(--s-btn-r);
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
#app#app .csB2BItemCard .c-item-price-cont > .c-item-qty .c-btna {
  height: auto;
  width: 44px;
  min-width: 44px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
}
#app#app .csB2BItemCard .c-item-price-cont > .c-item-qty .c-btna:hover {
  background-color: var(--s-tint);
}
#app#app .csB2BItemCard .c-item-price-cont > .c-item-qty .c-edit {
  flex: 1 1 auto;
  width: auto;
  height: 100%;
}
#app#app .csB2BItemCard .c-item-price-cont > .c-item-qty .c-edit *:not(input) {
  height: 100%;
}
/* sklep po zmianie ilości dokleja do pola ikonę „Kopiuj” (i.c-btn-copy) —
   w polu ilości zbędna, a jej glif rysuje się jako pusty kwadracik */
#app#app .csB2BItemCard .c-item-price-cont > .c-item-qty .c-btn-copy {
  display: none;
}
#app#app .csB2BItemCard .c-item-price-cont > .c-item-qty .c-input-cont,
#app#app .csB2BItemCard .c-item-price-cont > .c-item-qty .c-where-list-input-cont,
#app#app .csB2BItemCard .c-item-price-cont > .c-item-qty .c-lbl-input-cont {
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
#app#app .csB2BItemCard .c-item-price-cont > .c-item-qty input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  box-shadow: none;
  border-radius: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--s-ink);
  background: transparent;
}
#app#app .csB2BItemCard .c-item-price-cont > .c-item-qty:focus-within {
  border-color: var(--s-blue);
  box-shadow: 0 0 0 3px var(--s-tint);
}
#app#app .csB2BItemCard .c-item-price-cont > .c-btna {
  height: 44px;
  width: 100%;
  border: 0;
  border-radius: var(--s-btn-r);
  background-color: var(--s-btn);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  justify-content: center;
  transition: background-color .15s;
}
#app#app .csB2BItemCard .c-item-price-cont > .c-btna:hover {
  background-color: var(--s-btn-h);
}
#app#app .csB2BItemCard .c-item-price-cont > .c-btna:focus-visible {
  outline: 2px solid var(--s-blue);
  outline-offset: 2px;
}
#app#app .csB2BItemCard .c-item-price-cont > .c-btna:not(:last-child) {
  margin-bottom: 8px;
}

/* ---------- Nagłówki sekcji ("Opis", "Najczęściej kupowane…") ---------- */
#app#app .csB2BItemCard .c-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--s-line);
}
#app#app .csB2BItemCard .c-section-header::before,
#app#app .csB2BItemCard .c-section-header::after {
  display: none;
}
#app#app .csB2BItemCard .c-section-header > span {
  padding: 0 0 0 16px;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--s-ink);
}
#app#app .csB2BItemCard .c-section-header > span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: 12px;
  border-radius: 2px;
  background: var(--s-orange);
}
#app#app .csB2BItemCard .c-section-header > .c-section-header-more {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--s-link);
  text-decoration: none;
  white-space: nowrap;
}
#app#app .csB2BItemCard .c-section-header > .c-section-header-more:hover {
  color: var(--s-orange);
}

/* ---------- Karuzela TOP100 (karty produktów) ---------- */
#app#app .csB2BItemCard .csB2BPortalsItemsGroupsPanel ul.c-items > li > div {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid var(--s-line);
  border-radius: var(--s-r-lg);
  background: #fff;
  transition: border-color .15s;
}
#app#app .csB2BItemCard .csB2BPortalsItemsGroupsPanel ul.c-items > li > div:hover {
  border-color: var(--s-blue);
}
#app#app .csB2BItemCard .csB2BPortalsItemsGroupsPanel .c-item-lnk {
  text-decoration: none;
  color: var(--s-ink);
}
#app#app .csB2BItemCard .csB2BPortalsItemsGroupsPanel .c-item-lnk .c-img-cont {
  border: 0;
  outline: 0;
  border-radius: var(--s-r);
  background: #fff;
}
#app#app .csB2BItemCard .csB2BPortalsItemsGroupsPanel .c-item-lnk .c-item-desc {
  margin-top: 12px;
  font-size: 13px;
  line-height: 18px;
  height: 36px;
  font-weight: 400;
  color: var(--s-ink);
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#app#app .csB2BItemCard .csB2BPortalsItemsGroupsPanel .c-item-lnk:hover .c-item-desc {
  color: var(--s-link);
}
#app#app .csB2BItemCard .csB2BPortalsItemsGroupsPanel .c-item-price-points-cont {
  margin-top: 8px;
}
#app#app .csB2BItemCard .csB2BPortalsItemsGroupsPanel .c-item-price-cont {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--s-muted);
  font-size: 12px;
  font-weight: 400;
}
#app#app .csB2BItemCard .csB2BPortalsItemsGroupsPanel .c-item-price-cont .value {
  font-size: 18px;
  font-weight: 700;
  color: var(--s-ink);
}
#app#app .csB2BItemCard .csB2BPortalsItemsGroupsPanel .c-item-price-cont span {
  color: var(--s-muted);
  font-weight: 400;
}
#app#app .csB2BItemCard .csB2BPortalsItemsGroupsPanel .cartAdd {
  margin: auto 0 0;
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: var(--s-btn-r);
  background-color: var(--s-btn);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  justify-content: center;
}
#app#app .csB2BItemCard .csB2BPortalsItemsGroupsPanel .c-item-price-points-cont + .cartAdd {
  margin-top: 12px;
}
#app#app .csB2BItemCard .csB2BPortalsItemsGroupsPanel .cartAdd:hover {
  background-color: var(--s-btn-h);
}
#app#app .csB2BItemCard .csB2BPortalsItemsGroupsPanel .c-btn-page-change {
  border-radius: var(--s-btn-r);
  background-color: #fff;
  border: 1px solid var(--s-line);
}


/* =====================================================================
   DESKTOP + TABLET — 2 kolumny: galeria | tytuł → meta → cena → opis krótki
   Wrappery .c-item-attr-cont i pierwsza ul.c-item-attr dostają
   display:contents, więc ich dzieci stają się elementami flexa
   .c-item-attr-price-cont i można im nadać order.
   ===================================================================== */
#app#app:not(.phone) .csB2BItemCard .c-item-info > .c-container {
  align-items: flex-start;
}
#app#app.desktop .csB2BItemCard .c-item-info > .c-container > .c-imgs-cont {
  flex: 0 0 500px;
  width: 500px;
  margin-right: 56px;
  position: sticky;
  top: 16px;
}
#app#app.tablet .csB2BItemCard .c-item-info > .c-container > .c-imgs-cont {
  flex: 0 0 42%;
  width: 42%;
  margin-right: 32px;
}
#app#app:not(.phone) .csB2BItemCard .c-imgs-cont > .c-img-cont {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}
#app#app:not(.phone) .csB2BItemCard .c-imgs-cont > .c-img-cont > img {
  max-height: 100%;
  object-fit: contain;
}
#app#app:not(.phone) .csB2BItemCard .c-item-info > .c-container > .c-item-attr-price-cont {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 24px;
}
#app#app:not(.phone) .csB2BItemCard .c-item-attr-price-cont > .c-item-attr-cont,
#app#app:not(.phone) .csB2BItemCard .c-item-attr-cont > ul.c-item-attr:first-of-type {
  display: contents;
}
#app#app:not(.phone) .csB2BItemCard .c-item-attr-price-cont > *,
#app#app:not(.phone) .csB2BItemCard .c-item-attr-cont > * {
  flex: 0 0 100%;
}
#app#app:not(.phone) .csB2BItemCard #c-item-icon-and-title {
  order: 0;
  margin-bottom: 12px;
}
#app#app.desktop .csB2BItemCard #c-item-icon-and-title > h1 {
  font-size: 30px;
}
#app#app:not(.phone) .csB2BItemCard .c-item-attr-cont > ul.c-item-attr:first-of-type > li:not(.c-item-features) {
  order: 1;
  flex: 0 0 auto;
  margin: 0 0 8px;
}
/* dostępność: osobna linia (li.c-item-code-cont z label jako dzieckiem;
   kod produktu ma label w dodatkowym div) */
#app#app:not(.phone) .csB2BItemCard .c-item-attr-cont > ul.c-item-attr:first-of-type > li.c-item-code-cont:has(> label) {
  flex: 0 0 100%;
  margin: 0 0 8px;
}
#app#app:not(.phone) .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont {
  order: 3;
  width: 100%;
  margin: 12px 0 28px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 12px;
}
#app#app:not(.phone) .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont > * {
  flex: 0 0 100%;
}
/* ilość + koszyk w jednym rzędzie */
#app#app:not(.phone) .csB2BItemCard .c-item-price-cont > .c-item-qty {
  flex: 0 0 160px;
  margin: 20px 0 0;
}
#app#app:not(.phone) .csB2BItemCard .c-item-price-cont > .c-btna {
  flex: 1 1 0;
  margin-top: 20px;
}
#app#app:not(.phone) .csB2BItemCard .c-item-attr-cont > ul.c-item-attr:first-of-type > li.c-item-features {
  order: 4;
  margin: 0;
}
#app#app:not(.phone) .csB2BItemCard .c-item-attr-cont > ul.c-item-attr ~ ul.c-item-attr {
  order: 5;
}

/* =====================================================================
   TABLET
   ===================================================================== */
#app#app.tablet .csB2BItemCard #c-item-icon-and-title > h1 {
  font-size: 24px;
}

/* =====================================================================
   PHONE — kolejność: tytuł → zdjęcie → cena + koszyk → atrybuty → opis
   Wrappery .c-item-attr-price-cont i .c-item-attr-cont dostają
   display:contents, więc ich dzieci stają się elementami flexa
   .c-container i można im nadać order.
   ===================================================================== */
#app#app.phone .csB2BItemCard > section.c-item {
  padding: 12px 0 32px;
}
#app#app.phone .csB2BItemCard > section:not(.c-item) {
  padding-top: 40px;
  padding-bottom: 40px;
}
#app#app.phone .csB2BItemCard #breadcrumbs {
  margin-bottom: 16px;
}
/* breadcrumbs: jedna linia, przewijana w poziomie */
#app#app.phone .csB2BItemCard #breadcrumbs .c-breadcrumb {
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
#app#app.phone .csB2BItemCard #breadcrumbs .c-breadcrumb::-webkit-scrollbar {
  display: none;
}
#app#app.phone .csB2BItemCard #breadcrumbs .breadcrumbs__item {
  flex: 0 0 auto;
}

/* c-container: flex-wrap w wierszu; każdy element 100%, a meta
   (marka / kod / dostępność) auto — układają się obok siebie */
#app#app.phone .csB2BItemCard .c-item-info > .c-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 16px;
  row-gap: 0;
}
#app#app.phone .csB2BItemCard .c-item-info > .c-container > .c-item-attr-price-cont,
#app#app.phone .csB2BItemCard .c-item-attr-price-cont > .c-item-attr-cont,
#app#app.phone .csB2BItemCard .c-item-attr-cont > ul.c-item-attr:first-of-type {
  display: contents;
}
#app#app.phone .csB2BItemCard .c-item-info > .c-container > *,
#app#app.phone .csB2BItemCard .c-item-attr-price-cont > *,
#app#app.phone .csB2BItemCard .c-item-attr-cont > * {
  flex: 0 0 100%;
}
#app#app.phone .csB2BItemCard #c-item-icon-and-title {
  order: 0;
  margin-bottom: 12px;
}
#app#app.phone .csB2BItemCard #c-item-icon-and-title > h1 {
  font-size: 22px;
}
#app#app.phone .csB2BItemCard #c-item-icon-and-title > img {
  height: 32px;
}
#app#app.phone .csB2BItemCard .c-item-attr-cont > ul.c-item-attr:first-of-type > li:not(.c-item-features) {
  order: 1;
  flex: 0 0 auto;
  margin: 0 0 8px;
}
#app#app.phone .csB2BItemCard .c-item-attr-cont > ul.c-item-attr:first-of-type > li.c-item-code-cont:has(> label) {
  flex: 0 0 100%;
  margin: 0 0 8px;
}
#app#app.phone .csB2BItemCard .c-item-info > .c-container > .c-imgs-cont {
  order: 3;
  width: 100%;
  margin: 12px 0 16px;
}
#app#app.phone .csB2BItemCard .c-imgs-cont > .c-img-cont {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  padding: 16px 48px;
}
#app#app.phone .csB2BItemCard .c-imgs-cont > .c-img-cont > img {
  max-height: 100%;
  object-fit: contain;
}
#app#app.phone .csB2BItemCard .c-item-attr-price-cont > .c-item-price-cont {
  order: 4;
  width: 100%;
  margin: 0 0 24px;
  padding: 20px;
  position: relative;
  top: auto;
}
#app#app.phone .csB2BItemCard .c-item-attr-cont > ul.c-item-attr:first-of-type > li.c-item-features {
  order: 5;
  margin: 0;
}
#app#app.phone .csB2BItemCard .c-item-attr-cont > ul.c-item-attr ~ ul.c-item-attr {
  order: 6;
}
#app#app.phone .csB2BItemCard .c-item-price-cont #c-item-price > div > div,
#app#app.phone .csB2BItemCard .c-item-price-cont #c-item-price > div > div .value {
  font-size: 28px;
}
#app#app.phone .csB2BItemCard .c-item-attr-cont > ul.c-item-attr:first-of-type::before,
#app#app.phone .csB2BItemCard .c-item-attr-cont > ul.c-item-attr:first-of-type::after {
  margin-bottom: 4px;
}
#app#app.phone .csB2BItemCard .c-section-header {
  margin-bottom: 24px;
}

/* =====================================================================
   POPUP „Skład, wartości odżywcze i przechowywanie” — sam CSS, bez JS i HTML
   ---------------------------------------------------------------------
   Źródła treści (DOM sklepu):
   - druga ul.c-item-attr (sklep daje jej tabindex="0"):
       li 1 = Przechowywanie przed otwarciem
       li 2 = Przechowywanie po otwarciu
       li ostatni = Skład produktu — na stronie skrócony do 4 linii,
                    w oknie pełny (przenosi się do okna, więc nie znika)
     Kolejność sprawdzona na 6 produktach spożywczych — stała.
   - li.c-item-features z pierwszej listy = Wartości odżywcze
     (label + span albo label + ul.c-list). Features z opisem krótkim
     maszyn (label + div.svp-sh) nie są ruszane.

   Mechanika:
   - klik w listę = focus (tabindex sklepu) = okno,
   - tło = ::before sekcji .c-item-info — klik w tło zdejmuje focus
     i zamyka, nie trafiając w linki pod spodem,
   - „Zamknij ✕” ma pointer-events:none → klik trafia w tło,
   - wartości odżywcze to osobny element DOM — dołączane do okna przez
     CSS anchor positioning (Chrome/Edge 125+, Safari 26+). Bez wsparcia
     (@supports) zostają widoczne na stronie jak dotąd.
   Ograniczenia: Esc nie zamyka; klik w część z wartościami odżywczymi
   też zamyka okno (to inny element niż lista z focusem).
   Popup włącza się tylko, gdy lista ma ≥ 2 pozycje.
   ===================================================================== */

/* --- zwinięte: Skład widoczny, reszta schowana, pod spodem przycisk --- */
#app#app .csB2BItemCard .c-item-attr-cont > ul.c-item-attr ~ ul.c-item-attr:has(> li:nth-child(2)) {
  cursor: pointer;
  outline: 0;
  border-top: 0;
}
#app#app .csB2BItemCard .c-item-attr-cont > ul.c-item-attr ~ ul.c-item-attr:has(> li:nth-child(2)) > li:not(:last-child) {
  display: none;
}
#app#app .csB2BItemCard .c-item-attr-cont > ul.c-item-attr ~ ul.c-item-attr:has(> li:nth-child(2)) > li:last-child {
  border-bottom: 0;
}
/* skład na stronie: max 4 linie (długie składy dostają „…”),
   pełny tekst w oknie. CSS nie wykryje, czy tekst się uciął,
   dlatego link zawsze wymienia skład. */
#app#app .csB2BItemCard .c-item-attr-cont > ul.c-item-attr ~ ul.c-item-attr:has(> li:nth-child(2)) > li:last-child > label + span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
#app#app .csB2BItemCard .c-item-attr-cont > ul.c-item-attr ~ ul.c-item-attr:has(> li:nth-child(2))::after {
  content: "Skład i przechowywanie →";
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--s-link);
  transition: color .15s;
}
#app#app .csB2BItemCard section.c-item-info:has(li.c-item-features > label + :is(span, ul)) .c-item-attr-cont > ul.c-item-attr ~ ul.c-item-attr:has(> li:nth-child(2))::after {
  content: "Skład, wartości odżywcze i przechowywanie →";
}
#app#app .csB2BItemCard .c-item-attr-cont > ul.c-item-attr ~ ul.c-item-attr:has(> li:nth-child(2)):hover::after,
#app#app .csB2BItemCard .c-item-attr-cont > ul.c-item-attr ~ ul.c-item-attr:has(> li:nth-child(2)):focus-visible::after {
  color: var(--s-orange);
}

/* wartości odżywcze jako lista: jedna pozycja w wierszu */
#app#app .csB2BItemCard li.c-item-features > label + ul.c-list > li {
  padding: 6px 0;
  border-bottom: 1px solid var(--s-line);
  font-size: 13px;
  line-height: 1.4;
}
#app#app .csB2BItemCard li.c-item-features > label + ul.c-list > li:last-child {
  border-bottom: 0;
}
#app#app .csB2BItemCard li.c-item-features > label + ul.c-list > li > span {
  font-size: 13px;
  font-weight: 400;
  color: var(--s-ink);
}

/* --- otwarte: okno --- */
#app#app .csB2BItemCard .c-item-attr-cont > ul.c-item-attr ~ ul.c-item-attr:has(> li:nth-child(2)):focus-within {
  position: fixed;
  z-index: 100001;
  inset: 0;
  margin: auto;
  width: min(560px, calc(100vw - 32px));
  height: fit-content;
  max-height: calc(100vh - 128px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  border: 1px solid var(--s-line);
  border-radius: var(--s-r-lg);
  background: #fff;
  cursor: default;
  display: flex;
  flex-direction: column;
}
#app#app .csB2BItemCard .c-item-attr-cont > ul.c-item-attr ~ ul.c-item-attr:has(> li:nth-child(2)):focus-within::before {
  content: "Skład i przechowywanie";
  order: -2;
  display: block;
  padding-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--s-ink);
}
#app#app .csB2BItemCard .c-item-attr-cont > ul.c-item-attr ~ ul.c-item-attr:has(> li:nth-child(2)):focus-within > li {
  display: block;
  flex: 0 0 auto;
}
/* skład w oknie: pierwszy w liście, pełny tekst */
#app#app .csB2BItemCard .c-item-attr-cont > ul.c-item-attr ~ ul.c-item-attr:has(> li:nth-child(2)):focus-within > li:last-child {
  order: -1;
  border-bottom: 1px solid var(--s-line);
}
#app#app .csB2BItemCard .c-item-attr-cont > ul.c-item-attr ~ ul.c-item-attr:has(> li:nth-child(2)):focus-within > li:last-child > label + span {
  display: block;
  -webkit-line-clamp: none;
  overflow: visible;
}
#app#app .csB2BItemCard .c-item-attr-cont > ul.c-item-attr ~ ul.c-item-attr:has(> li:nth-child(2)):focus-within > li:nth-last-child(2) {
  border-bottom: 0;
  padding-bottom: 0;
}
#app#app .csB2BItemCard .c-item-attr-cont > ul.c-item-attr ~ ul.c-item-attr:has(> li:nth-child(2)):focus-within::after,
#app#app .csB2BItemCard section.c-item-info:has(li.c-item-features > label + :is(span, ul)) .c-item-attr-cont > ul.c-item-attr ~ ul.c-item-attr:has(> li:nth-child(2)):focus-within::after {
  content: "Zamknij ✕";
  position: fixed;
  z-index: 100002;
  top: 16px;
  right: 16px;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--s-ink);
  white-space: nowrap;
  pointer-events: none;
}
/* tło */
#app#app .csB2BItemCard section.c-item-info:has(ul.c-item-attr ~ ul.c-item-attr > li:nth-child(2)):has(ul.c-item-attr ~ ul.c-item-attr:focus-within)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, .45);
  cursor: pointer;
}

/* --- wartości odżywcze w oknie (anchor positioning) ---
   Kotwica musi być wcześniej w DOM niż element pozycjonowany, więc
   wartości odżywcze (pierwsza lista) są górą okna, a przechowywanie
   (druga lista) dokleja się pod nimi. */
@supports (position-anchor: --a) {
  #app#app .csB2BItemCard section.c-item-info:has(ul.c-item-attr ~ ul.c-item-attr > li:nth-child(2)) li.c-item-features:not(:has(.svp-sh)) {
    display: none;
  }
  #app#app .csB2BItemCard section.c-item-info:has(ul.c-item-attr ~ ul.c-item-attr > li:nth-child(2)):has(ul.c-item-attr ~ ul.c-item-attr:focus-within) li.c-item-features:not(:has(.svp-sh)) {
    display: block;
    position: fixed;
    z-index: 100001;
    anchor-name: --svp-nutrition;
    top: 64px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: min(560px, calc(100vw - 32px));
    max-height: 35vh;
    overflow-y: auto;
    padding: 24px 24px 8px;
    border: 1px solid var(--s-line);
    border-bottom: 0;
    border-radius: var(--s-r-lg) var(--s-r-lg) 0 0;
    background: #fff;
  }
  #app#app .csB2BItemCard section.c-item-info:has(ul.c-item-attr ~ ul.c-item-attr > li:nth-child(2)):has(ul.c-item-attr ~ ul.c-item-attr:focus-within) li.c-item-features:not(:has(.svp-sh))::before {
    content: "Skład, wartości odżywcze i przechowywanie";
    display: block;
    padding-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--s-ink);
  }
  #app#app .csB2BItemCard section.c-item-info:has(li.c-item-features > label + :is(span, ul)) .c-item-attr-cont > ul.c-item-attr ~ ul.c-item-attr:has(> li:nth-child(2)):focus-within {
    position-anchor: --svp-nutrition;
    top: anchor(bottom);
    bottom: auto;
    left: 0;
    right: 0;
    margin: 0 auto;
    height: auto;
    /* górna część ≤ 35vh od 64px → dolna zawsze się zmieści (16px zapasu) */
    max-height: calc(65vh - 80px);
    padding-top: 8px;
    border-top: 1px solid var(--s-line);
    border-radius: 0 0 var(--s-r-lg) var(--s-r-lg);
  }
  #app#app .csB2BItemCard section.c-item-info:has(li.c-item-features > label + :is(span, ul)) .c-item-attr-cont > ul.c-item-attr ~ ul.c-item-attr:has(> li:nth-child(2)):focus-within::before {
    display: none;
  }
}
