/* =====================================================================
   TRANSBLACH: Dodatkowy CSS (wspólne reguły całej strony)
   Wersja z 13.10.2026 (zmiana 17.10.2026: sekcja 5 — licznik i „Wyczyść filtry” bez przesuwania kart; 17.10.2026 noc: sekcje 1 i 7 po usunięciu dodatków Elementora)

   GDZIE CO JEST
   1. Wygląd stron, szablonów i widżetów ustawia się w Elementorze.
      Kolory i czcionki są podpięte pod Ustawienia witryny → Kolory
      globalne / Czcionki globalne (Granat #16264D, Czerwień #DF241B,
      Czerwień najechanie #C11D15, Tekst #595959 oraz kolory tb_*).
   2. Ten plik zawiera tylko reguły wspólne, oparte na klasach, dla
      elementów, których Elementor nie stylizuje: treści generowanej
      przez fragmenty kodu (Code Snippets), tabel w opisach produktów,
      fokusu klawiatury. Kolory pobierane są ze zmiennych Elementora
      (var(--e-global-color-…)), więc zmiana koloru globalnego
      w Elementorze zmienia też te elementy.
   3. CSS dotyczący jednego szablonu lub strony jest w Elementorze:
      Ustawienia strony / szablonu → Własny CSS (nagłówek #10, katalog
      #160, pojedynczy produkt #93, wpis #366).
   4. Konfigurator dachu ma własny arkusz we wtyczce
      transblach-konfigurator (assets/konfigurator.css).
   5. !important występuje tylko tam, gdzie trzeba przykryć styl
      motywu lub wtyczki o wyższym priorytecie; każde takie miejsce
      ma komentarz.

   KLASY TWORZONE PRZEZ FRAGMENTY KODU (Code Snippets)
     .tb-filtry, .tb-filtr-btn, .tb-brak-wynikow ...... #9, #11 filtry katalogu
     .tb-filtry-toggle (przycisk „Filtruj”) ............ #18 panel filtrów na telefonie
     .tb-wynik, .tb-wyczysc, .tb-wiecej, .tb-poprzednie  #9 licznik, „Wyczyść”, „Pokaż więcej”
     .cechy-icons, .cecha-item ......................... #6 ikony cech produktu
     .tb-producent-link, .tb-producent-own-pill ........ #14, #15 oznaczenie producenta
     .tb-producenci-grid, .tb-producent-card ........... #14 [karty_producentow]
     .tb-producent-hero ................................ #15 [hero_producenta]
     .tb-mapa-zgoda .................................... #27 mapa Google po kliknięciu
     .tb-cennik ........................................ #29 cennik na stronie produktu
   Style zależne od danych zostają w PHP: #19 ukrywanie cen, #26 czcionka
   ikon, #27 tło banera strony głównej, #29 tabela cennika w panelu.

   SPIS
     1. Typografia śródtytułów we wpisach
     2. Dostępność
     3. Tabele w opisach produktów
     4. Katalog: filtry
     5. Katalog: licznik wyników i „Pokaż więcej”
     6. Elementy z fragmentów kodu
     7. Klasy dla widżetów Elementora (dawne dodatki)
   ===================================================================== */


/* ---------------------------------------------------------------------
   1. Typografia: śródtytuły we wpisach (Aktualności) krojem nagłówków
      z Ustawień witryny. :where() ma zerowy priorytet, więc czcionka
      ustawiona w widżecie Elementora zawsze wygrywa.
      17.10.2026: usunięte reguły dla widżetów ElementsKit i Essential
      Addons — tych widżetów i wtyczek już nie ma na stronie.
   --------------------------------------------------------------------- */
:where(body.single-post .elementor-heading-title) { font-family: var(--e-global-typography-primary-font-family), sans-serif; }

/* ---------------------------------------------------------------------
   2. Dostępność
   --------------------------------------------------------------------- */
/* Widoczny fokus przy obsłudze klawiaturą. !important: widżety dodatków
   wyłączają obrys fokusu własnymi regułami (outline: none). */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--e-global-color-secondary) !important;
  outline-offset: 2px !important;
}
iframe:focus-visible { outline: 3px solid var(--e-global-color-primary); outline-offset: 2px; }

/* Link „Przejdź do treści” (motyw Hello) po otrzymaniu fokusu */
a.skip-link.screen-reader-text:focus {
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--e-global-color-primary);
  color: #fff;
  font-weight: 600;
}


/* ---------------------------------------------------------------------
   3. Tabele w opisach produktów (pole „Tabela” produktu, widżet Edytor
      tekstu w szablonie Pojedynczy produkt). Nagłówki tabel (th, scope)
      dodaje fragment #26.
   --------------------------------------------------------------------- */
.elementor-widget-text-editor table {
  width: 100%;
  margin: 24px 0;
  border: 0;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 6px 20px rgba(22, 38, 77, .07);
  font-size: 14px;
}
.elementor-widget-text-editor :is(th, td) {
  border: 0;
  text-align: left;
  white-space: normal;
  /* break-word: zawija tylko wyraz, który nie mieści się w komórce;
     kolumny nie są zwężane do jednej litery (jak przy „anywhere”) */
  overflow-wrap: break-word;
}
.elementor-widget-text-editor thead th {
  padding: 15px 22px;
  border-bottom: 3px solid var(--e-global-color-secondary);
  background: var(--e-global-color-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
/* motyw Hello rysuje linię nad pierwszym wierszem nagłówka tabeli */
.elementor-widget-text-editor table thead:first-child tr:first-child th { border-top: 0; }
.elementor-widget-text-editor tbody td {
  padding: 13px 22px;
  border-bottom: 1px solid var(--e-global-color-tb_border);
  color: var(--e-global-color-text);
  font-size: 14.5px;
}
.elementor-widget-text-editor tbody td:last-child { font-weight: 600; }
.elementor-widget-text-editor tbody tr:last-child td { border-bottom: 0; }
.elementor-widget-text-editor tbody tr:nth-child(odd) td { background-color: #fff; }
.elementor-widget-text-editor tbody tr:nth-child(even) td { background-color: var(--e-global-color-tb_card); }
.elementor-widget-text-editor tbody tr:hover td { background-color: color-mix(in srgb, var(--e-global-color-secondary) 10%, #fff); }
/* tabela bez żadnych danych nie jest pokazywana */
.elementor-widget-text-editor table:not(:has(tbody td:not(:empty))) { display: none; }

@media (max-width: 767px) {
  .elementor-widget-text-editor thead th,
  .elementor-widget-text-editor tbody td { padding: 10px 8px; }
  .elementor-widget-text-editor tbody td { font-size: 14px; }
}


/* ---------------------------------------------------------------------
   4. Katalog: filtry (.tb-filtry, fragmenty #9, #11, #18)
      Komputer i tablet: panel zawsze rozwinięty.
      Telefon: przycisk „Filtruj” rozwija panel.
      Przyklejanie panelu przy przewijaniu: szablon Archiwum produktów (#160).
      Przyciski filtrów to <button>; selektory mają dwie klasy, żeby
      wygrywały ze stylem przycisków motywu Hello bez !important.
   --------------------------------------------------------------------- */
.tb-filtry { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.tb-filtry-pas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tb-filtry-label {
  margin-right: 4px;
  color: var(--e-global-color-text);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
}
.tb-filtry-lista { display: flex; flex-wrap: wrap; gap: 6px; }

.tb-filtry .tb-filtr-btn {
  display: inline-flex; align-items: center;
  border: 2px solid var(--e-global-color-tb_border);
  background: #fff;
  color: var(--e-global-color-primary);
  font-family: var(--e-global-typography-text-font-family), sans-serif;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.tb-filtry-kategorie .tb-filtr-btn {
  padding: 6px 16px; border-radius: 100px; font-size: 14px; line-height: 1.4;
  transition: border-color .18s, background-color .18s, color .18s;
}
.tb-filtry-kategorie .tb-filtr-btn:hover {
  border-color: var(--e-global-color-secondary); background: #fff; color: var(--e-global-color-secondary);
}
.tb-filtry-kategorie .tb-filtr-btn.aktywny {
  border-color: var(--e-global-color-secondary); background: var(--e-global-color-secondary); color: #fff; font-weight: 700;
}
/* producenci: kolor obramowania z koloru marki producenta (--prod-kolor, fragment #11) */
.tb-filtry-producenci .tb-filtr-btn {
  justify-content: center; min-height: 36px; padding: 5px 14px; border-radius: 8px; font-size: 13px; line-height: 1.5;
  transition: border-color .18s, box-shadow .18s, transform .12s;
}
.tb-filtry-producenci .tb-filtr-btn:hover {
  border-color: var(--prod-kolor, var(--e-global-color-secondary));
  background: #fff; color: var(--e-global-color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .10); transform: translateY(-1px);
}
.tb-filtry-producenci .tb-filtr-btn.aktywny {
  border-color: var(--prod-kolor, var(--e-global-color-secondary));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--prod-kolor, var(--e-global-color-secondary)) 20%, transparent);
  font-weight: 700;
}

/* komunikat „Brak produktów spełniających wybrane kryteria” */
.tb-brak-wynikow {
  margin-top: 16px; padding: 32px;
  border: 2px dashed var(--e-global-color-tb_border); border-radius: 10px;
  color: var(--e-global-color-tb_muted);
  font-size: 15px; font-style: italic; text-align: center;
}

/* przycisk „Filtruj” istnieje tylko na telefonie */
.tb-filtry .tb-filtry-toggle { display: none; }

/* niskie ekrany laptopów (np. 1366×768): mniejsze przyciski, panel przewijany */
@media (min-width: 768px) and (max-height: 760px) {
  .tb-filtry {
    position: relative; width: 100%; max-height: calc(100vh - 110px); margin-bottom: 10px;
    overflow-y: auto; overscroll-behavior: contain;
  }
  .tb-filtry-lista { gap: 5px; }
  .tb-filtry-label { margin-bottom: 2px; font-size: 11px; line-height: 1.2; }
  .tb-filtry .tb-filtr-btn { padding: 7px 12px; font-size: 12px; line-height: 1.2; }
}

/* telefon */
@media (max-width: 767px) {
  .tb-filtry { position: relative; z-index: 2001; width: 100%; margin-bottom: 0; }
  .tb-filtry-lista { gap: 5px; }
  /* miejsce na przycisk „Filtruj”, zanim utworzy go skrypt (#18): lista produktów się nie przesuwa */
  .tb-filtry:not(:has(> .tb-filtry-toggle)) { min-height: 48px; }
  .tb-filtry-label { margin-bottom: 2px; font-size: 11px; letter-spacing: 1px; line-height: 1.2; }
  .tb-filtry .tb-filtr-btn {
    padding: 7px 12px; border: 1px solid var(--e-global-color-tb_border); border-radius: 999px;
    font-size: 12px; line-height: 1.2;
  }
  .tb-filtry .tb-filtr-btn.aktywny {
    border-color: var(--e-global-color-secondary); background: var(--e-global-color-secondary); color: #fff;
  }

  .tb-filtry .tb-filtry-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    box-sizing: border-box; width: 100%; min-height: 48px; margin-bottom: 0; padding: 12px 20px;
    /* pasek pod nagłówkiem na całą szerokość: bez ramki, zaokrągleń i cienia */
    border: 0; border-bottom: 1px solid var(--e-global-color-tb_border); border-radius: 0;
    background: #fff; color: var(--e-global-color-primary);
    box-shadow: none;
    font-size: 15px; font-weight: 600;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .tb-filtry .tb-filtry-toggle:is(:hover, :focus, :active) { background: #fff; color: var(--e-global-color-primary); }
  .tb-filtry-toggle .l { flex: 0 0 auto; color: var(--e-global-color-secondary); }
  .tb-filtry-toggle .r {
    min-width: 0; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: var(--e-global-color-secondary); font-size: 13px; font-weight: 400;
  }
  .tb-filtry-toggle .chev { flex: 0 0 auto; color: var(--e-global-color-secondary); transition: transform .18s ease; }

  /* panel zwinięty / rozwinięty (klasę tb-open przełącza fragment #18) */
  .tb-filtry .tb-filtry-pas { display: none; }
  .tb-filtry.tb-open {
    max-height: min(440px, calc(100vh - 118px)); padding: 8px;
    border: 1px solid var(--e-global-color-tb_border); border-radius: 8px;
    background: #fff; box-shadow: 0 18px 44px rgba(22, 38, 77, .18);
    overflow-y: auto; overscroll-behavior: contain;
  }
  .tb-filtry.tb-open .tb-filtry-toggle .chev { transform: rotate(180deg); }
  .tb-filtry.tb-open .tb-filtry-pas { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 8px; }
}


/* ---------------------------------------------------------------------
   5. Katalog: licznik wyników, „Wyczyść filtry”, „Pokaż więcej” (#9)
      Wygląd samej karty produktu: szablon „Karta produktu” (#102).
   --------------------------------------------------------------------- */
.tb-wynik {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 10px 14px;
  min-height: 36px; margin: 0 0 16px;
  color: var(--e-global-color-primary); font-size: 15px; line-height: 23px;
}
.tb-wynik .tb-wyczysc {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border: 2px solid var(--e-global-color-secondary); border-radius: 100px;
  background: #fff; color: var(--e-global-color-secondary);
  font-family: var(--e-global-typography-text-font-family), sans-serif;
  font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none;
  cursor: pointer; transition: background-color .2s, color .2s;
}
.tb-wynik .tb-wyczysc:is(:hover, :focus-visible) { background: var(--e-global-color-secondary); color: #fff; }
/* 17.10.2026: licznik ma stałą wysokość (36 px = wysokość przycisku „Wyczyść filtry”), a przycisk stoi
   w tej samej linii co licznik. Dzięki temu przy zmianie filtra karty produktów się nie przesuwają
   (wcześniej na telefonie przycisk spadał do drugiej linii i karty skakały o 13–46 px). Na ekranach
   do 400 px licznik i przycisk są o 1–2 px mniejsze, żeby zmieściły się obok siebie. */
.tb-wynik > span { flex: 1 1 auto; min-width: 0; }
.tb-wynik .tb-wyczysc { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 400px) {
  .tb-wynik { gap: 8px; font-size: 13px; }
  .tb-wynik .tb-wyczysc { padding: 6px 12px; font-size: 13px; }
}

.tb-wiecej-wrap { display: flex; justify-content: center; margin-top: 28px; }
.tb-wiecej-wrap[hidden] { display: none; }
.elementor-widget-loop-grid .tb-wiecej {
  display: inline-block; max-width: 100%; padding: 13px 28px;
  border: 2px solid var(--e-global-color-primary); border-radius: 999px;
  background: transparent; color: var(--e-global-color-primary);
  font-family: var(--e-global-typography-primary-font-family), sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: .02em; text-align: center; text-decoration: none; text-transform: uppercase;
  white-space: normal; cursor: pointer;
}
.elementor-widget-loop-grid .tb-wiecej:is(:hover, :focus-visible) { background: var(--e-global-color-primary); color: #fff; }
.elementor-widget-loop-grid .tb-wiecej[aria-busy="true"] { opacity: .6; cursor: progress; }
/* wczytywanie wyników po zmianie filtra */
.elementor-widget-loop-grid .elementor-widget-container[aria-busy="true"] .elementor-loop-container { opacity: .45; transition: opacity .15s; }
/* link „od początku” na stronach ?strona=2 i dalszych */
.tb-poprzednie { margin: 0 0 16px; font-size: 15px; }
.tb-poprzednie a { color: var(--e-global-color-primary); font-weight: 600; text-decoration: underline; }


/* ---------------------------------------------------------------------
   6. Elementy z fragmentów kodu
   --------------------------------------------------------------------- */
/* ikony cech produktu [cechy_icons] (#6) */
.cechy-icons { display: flex; flex-wrap: wrap; gap: 10px 4px; margin-top: 4px; }
.cecha-item { flex: 0 0 72px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.cecha-icon svg { width: 30px; height: 30px; color: var(--e-global-color-secondary); }
.cecha-label { color: var(--e-global-color-tb_muted); font-size: 11px; line-height: 1.25; hyphens: manual; overflow-wrap: normal; }

/* oznaczenie producenta na karcie (#14) i w banerze producenta (#15) */
.tb-producent-link,
.tb-producent-own-pill {
  display: inline-flex; align-items: center; gap: 4px; width: fit-content;
  margin: 0; padding: 5px 12px; border: 0; border-radius: 999px;
  background: var(--e-global-color-tb_bg); color: var(--e-global-color-primary);
  font-size: 12px; font-weight: 600; line-height: 1.3; text-decoration: none;
  transition: background-color .2s;
}
.tb-producent-link :is(.tb-producent-link-label, strong) { color: inherit; font-weight: 600; }
/* znacznik „a” w selektorze: po najechaniu wygrywa z kolorem linków z Ustawień witryny */
a.tb-producent-link:is(:hover, :focus-visible) { background: var(--e-global-color-tb_border); color: var(--e-global-color-primary); }
.tb-producent-link--own,
.tb-producent-own-pill { background: color-mix(in srgb, var(--e-global-color-secondary) 10%, #fff); color: var(--e-global-color-tb_error); }
a.tb-producent-link--own:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--e-global-color-secondary) 18%, #fff); color: var(--e-global-color-tb_error); }
.tb-producent-own-pill { margin: 0 0 14px; }
.tb-producent-link img { max-width: 82px; max-height: 20px; object-fit: contain; }

/* lista producentów [karty_producentow] (#14) */
.tb-producenci-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.tb-producent-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--e-global-color-tb_border); border-radius: 10px;
  background: #fff; color: var(--e-global-color-primary); text-decoration: none;
  box-shadow: 0 8px 24px rgba(22, 38, 77, .08);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.tb-producent-card:hover {
  border-color: var(--prod-color, var(--e-global-color-secondary));
  box-shadow: 0 14px 34px rgba(22, 38, 77, .13);
  transform: translateY(-2px);
}
.tb-producent-card-media { height: 130px; background: var(--e-global-color-tb_card); }
.tb-producent-card-media img { width: 100%; height: 100%; object-fit: cover; }
.tb-producent-card-body { padding: 18px; border-top: 4px solid var(--prod-color, var(--e-global-color-secondary)); }
.tb-producent-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tb-producent-card-logo { max-width: 120px; max-height: 42px; object-fit: contain; }
.tb-producent-card h3 { margin: 0; color: var(--e-global-color-primary); font-size: 18px; }
.tb-producent-own {
  padding: 4px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--e-global-color-secondary) 10%, #fff); color: var(--e-global-color-tb_error);
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.tb-producent-card-haslo { display: block; margin-bottom: 8px; color: var(--e-global-color-primary); font-size: 14px; }
.tb-producent-card p { margin: 0 0 14px; color: var(--e-global-color-text); font-size: 13px; line-height: 1.5; }
.tb-producent-card-cta { color: var(--e-global-color-secondary); font-size: 13px; font-weight: 700; }

/* baner producenta [hero_producenta] (#15); pasek z lewej w kolorze marki producenta (--prod-color) */
.tb-producent-hero {
  position: relative; overflow: hidden;
  margin: 32px 0 34px; padding: 34px; border-radius: 10px;
  background: var(--e-global-color-primary); color: #fff;
}
.tb-producent-hero::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 7px;
  background: var(--prod-color, var(--e-global-color-secondary));
}
.tb-producent-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; align-items: center; }
.tb-producent-eyebrow {
  display: block; margin-bottom: 10px;
  color: rgba(255, 255, 255, .72); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.tb-producent-hero h1 { margin: 0 0 14px; color: #fff; font-size: clamp(32px, 4vw, 52px); font-weight: 800; line-height: 1.05; }
.tb-producent-hero-logo {
  display: block; max-width: 240px; max-height: 86px; margin-bottom: 18px; padding: 14px 18px;
  border-radius: 8px; background: #fff; object-fit: contain;
}
.tb-producent-hero p { max-width: 760px; margin: 0; color: rgba(255, 255, 255, .88); font-size: 16px; line-height: 1.65; }
.tb-producent-hero-side { display: flex; flex-direction: column; gap: 14px; }
.tb-producent-stat { padding: 18px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; background: rgba(255, 255, 255, .08); }
.tb-producent-stat strong { display: block; color: #fff; font-size: 34px; line-height: 1; }
.tb-producent-stat span { color: rgba(255, 255, 255, .76); font-size: 13px; }
/* przycisk jest linkiem: dwie klasy, żeby wygrał z kolorem linków z Ustawień witryny */
.tb-producent-hero .tb-producent-back {
  display: inline-flex; justify-content: center; padding: 12px 14px; border-radius: 8px;
  background: var(--e-global-color-secondary); color: #fff; font-size: 14px; font-weight: 800; text-decoration: none;
}
.tb-producent-hero .tb-producent-back:is(:hover, :focus-visible) { background: var(--e-global-color-accent); color: #fff; }
@media (max-width: 767px) {
  .tb-producent-hero { margin: 24px 0; padding: 26px 22px; }
  .tb-producent-hero-inner { grid-template-columns: 1fr; }
  .tb-producent-hero-logo { max-width: 190px; }
}

/* mapa Google wczytywana dopiero po kliknięciu, zgoda RODO (#27) */
.elementor-widget-google_maps .elementor-custom-embed { position: relative; }
.tb-mapa-zgoda {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 16px; border: 1px solid var(--e-global-color-tb_border); border-radius: 12px;
  background: var(--e-global-color-tb_card); color: var(--e-global-color-primary);
  font-size: 15px; line-height: 1.4; text-align: center;
}
.tb-mapa-zgoda__adres { margin: 0; font-weight: 600; }
.tb-mapa-zgoda__btn {
  padding: 10px 22px; border: 0; border-radius: 999px;
  background: var(--e-global-color-tb_error); color: #fff;
  font: inherit; font-weight: 600; cursor: pointer;
}
.tb-mapa-zgoda .tb-mapa-zgoda__btn:is(:hover, :focus-visible) { background: var(--e-global-color-tb_red_deep); color: #fff; }
.tb-mapa-zgoda__link { color: var(--e-global-color-primary); font-size: 14px; text-decoration: underline; }
.tb-mapa-zgoda small { display: block; color: var(--e-global-color-text); font-size: 12px; line-height: 1.4; }
@media (max-width: 767px) { .tb-mapa-zgoda { padding: 28px 16px; } }

/* kotwice oddziałów i formularza: miejsce na przyklejony nagłówek */
#tb-oddzial-lubin, #tb-oddzial-luban, #tb-oddzial-zamosc, #napisz { scroll-margin-top: 120px; }

/* cennik na stronie produktu (#29); układ tabeli jak w sekcji 3, tu tylko różnice */
.tb-cennik-uwaga { margin: 8px 0 0; color: var(--e-global-color-text); font-size: 13px; }
.elementor-widget-text-editor .tb-cennik tbody th {
  border: 0; background: none; color: var(--e-global-color-primary); font-weight: 600; text-align: left;
}
.elementor-widget-text-editor .tb-cennik td.tb-cennik-cena { color: var(--e-global-color-primary); font-weight: 700; white-space: nowrap; }
.elementor-widget-text-editor .tb-cennik td.tb-cennik-modul { font-weight: 400; white-space: nowrap; }
@media (max-width: 767px) {
  .elementor-widget-text-editor .tb-cennik :is(th, td) { font-size: 13px; letter-spacing: 0; }
}


/* ---------------------------------------------------------------------
7. Klasy dla natywnych widżetów Elementora, które zastąpiły widżety
   dodatków (ElementsKit, The Plus) 17.10.2026. Klasę nadaje się
   w widżecie: Zaawansowane → Klasy CSS. Kolor i szerokość linii
   ustawia się w widżecie Rozdzielacz (zmienne --divider-…).
--------------------------------------------------------------------- */
/* Rozdzielacz „romb na środku linii” (pod nagłówkami sekcji) */
.tb-sep-diamond .elementor-divider-separator {
  position: relative; height: var(--divider-border-width, 2px);
  border-block-start: 0 !important; /* zamiast linii z ramki rozdzielacza: linia z przerwą na romb */
  background: linear-gradient(90deg, var(--divider-color) 38%, transparent 38%, transparent 62%, var(--divider-color) 62%);
}
.tb-sep-diamond .elementor-divider-separator::after {
  content: ""; position: absolute; top: -7.15px; left: 50%; width: 14.3px; height: 14.3px;
  background: var(--divider-color); transform: translateX(-50%) rotate(45deg);
}
/* Rozdzielacz „trzy kropki i kreska” */
.tb-sep-dots .elementor-divider-separator {
  position: relative; left: 13px; height: var(--divider-border-width, 4px);
  border-block-start: 0 !important; /* kreska z tła, nie z ramki */
  border-radius: 2px; background: var(--divider-color);
}
.tb-sep-dots .elementor-divider-separator::before {
  content: ""; position: absolute; top: 0; left: -27px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--divider-color); box-shadow: 9px 0 0 0 var(--divider-color), 18px 0 0 0 var(--divider-color);
}
/* Nadtytuł z krótką kreską z lewej (widżet Nagłówek) */
.tb-kicker-line .elementor-heading-title::before,
.tb-kicker-line .elementor-heading-title::after {
  content: ""; display: inline-block; width: 15px; height: 2px; vertical-align: middle; transform: translateY(-3px);
}
.tb-kicker-line .elementor-heading-title::before { margin-right: 15px; background: var(--e-global-color-accent); }
.tb-kicker-line .elementor-heading-title::after { width: 40px; margin-left: 15px; }
/* Lista kategorii wpisów (widżet WordPress „Kategorie” w Aktualnościach, wyszukiwarce i kategorii) */
/* tytuł widżetu WordPressa ukryty: nad listą jest już nagłówek „Kategorie” */
.tb-kategorie h5 { display: none; }
.tb-kategorie :is(ul, li) { margin: 0; padding: 0; list-style: none; }
.tb-kategorie li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 0;
  color: var(--e-global-color-accent);
  font-family: var(--e-global-typography-primary-font-family), sans-serif; font-size: 14px; font-weight: 700; line-height: 28px;
}
.tb-kategorie li a { flex: 1 1 auto; color: var(--e-global-color-primary); font-size: 16px; line-height: 24px; text-decoration: none; }
.tb-kategorie li a:is(:hover, :focus-visible) { color: var(--e-global-color-accent); }


/* 8. Wspólny układ odtworzonych treści na stronie głównej PL/EN/DE/CS/RO. */
/* Restored homepage copy: shared layout for all WPML versions, without content changes. */
#pokrycia-dachowe-transblach {
  --content-width: 1140px;
  --container-max-width: 1140px;
  padding: 64px 24px 72px;
  background-color: var(--e-global-color-tb_white, #fff);
}
#pokrycia-dachowe-transblach > .e-con-inner { gap: 0; padding: 0; }
#pokrycia-dachowe-transblach > .e-con-inner > .e-con {
  --content-width: 1140px;
  --container-max-width: 1140px;
  width: 100%;
  max-width: none;
  padding: 0;
}
#pokrycia-dachowe-transblach > .e-con-inner > .e-con > .e-con-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 64px;
  align-items: stretch;
}
#pokrycia-dachowe-transblach > .e-con-inner > .e-con > .e-con-inner > .elementor-widget-heading {
  grid-column: 1 / -1;
  max-width: 850px;
  margin: 0 0 4px;
}
#pokrycia-dachowe-transblach h2.elementor-heading-title {
  margin: 0;
  color: var(--e-global-color-primary, #16264d);
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
  text-align: left;
}
#pokrycia-dachowe-transblach h2.elementor-heading-title::before {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-bottom: 20px;
  background: var(--e-global-color-accent, #df241b);
}
#pokrycia-dachowe-transblach > .e-con-inner > .e-con > .e-con-inner > .e-con {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid #d9dfe8;
  border-radius: 0;
  background: transparent;
}
#pokrycia-dachowe-transblach h3.elementor-heading-title {
  margin: 0;
  color: var(--e-global-color-primary, #16264d);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.01em;
  overflow-wrap: break-word;
  hyphens: auto;
}
#pokrycia-dachowe-transblach .elementor-widget-text-editor {
  color: var(--e-global-color-text, #595959);
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
  text-decoration: none;
}
#pokrycia-dachowe-transblach .elementor-widget-text-editor p { margin: 0; }
#pokrycia-dachowe-transblach .elementor-widget-text-editor p + p { margin-top: .8em; }
#pokrycia-dachowe-transblach > .e-con-inner > .e-con > .e-con-inner > .e-con > .elementor-widget-text-editor:last-child {
  margin-top: auto;
  padding-top: 8px;
}
#pokrycia-dachowe-transblach .elementor-widget-text-editor a {
  color: var(--e-global-color-primary, #16264d);
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: #aab4c7;
}
#pokrycia-dachowe-transblach .elementor-widget-text-editor a:hover {
  color: var(--e-global-color-accent, #df241b);
  text-decoration-color: currentColor;
}
#pokrycia-dachowe-transblach .elementor-widget-text-editor a:focus-visible {
  outline: 2px solid var(--e-global-color-accent, #df241b);
  outline-offset: 5px;
  border-radius: 1px;
}
@media (max-width: 900px) {
  #pokrycia-dachowe-transblach { padding: 48px 24px 56px; }
  #pokrycia-dachowe-transblach > .e-con-inner > .e-con > .e-con-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  #pokrycia-dachowe-transblach > .e-con-inner > .e-con > .e-con-inner > .e-con { padding-top: 20px; }
}
@media (max-width: 600px) {
  #pokrycia-dachowe-transblach { padding: 40px 20px 48px; }
  #pokrycia-dachowe-transblach h2.elementor-heading-title { font-size: 28px; }
  #pokrycia-dachowe-transblach h3.elementor-heading-title { font-size: 20px; }
  #pokrycia-dachowe-transblach .elementor-widget-text-editor { font-size: 16px; }
}


/* 9. Wspólna prezentacja odtworzonych podstron oferty i montażu (WPML). */
/* Restored offer pages. Runtime classes are added by Transblach Core. */
.tb-offer-page .tb-offer-layout {
  --tb-offer-width: 1140px;
  --tb-offer-navy: #16264d;
  --tb-offer-red: #df241b;
  --tb-offer-line: #d9dfe8;
  gap: 0;
}
.tb-offer-page .tb-offer-layout > .tb-offer-hero,
.tb-offer-page .tb-offer-layout > .tb-offer-body {
  --content-width: var(--tb-offer-width);
  --container-max-width: var(--tb-offer-width);
  width: 100%;
  max-width: none;
  padding: 0 24px;
}
.tb-offer-page .tb-offer-layout .tb-offer-hero { background: #f3f5f9; }
.tb-offer-page .tb-offer-layout .tb-offer-hero > .e-con-inner,
.tb-offer-page .tb-offer-layout .tb-offer-body > .e-con-inner {
  width: 100%;
  max-width: var(--tb-offer-width);
  margin-inline: auto;
  align-items: stretch;
}
.tb-offer-page .tb-offer-layout .tb-offer-hero > .e-con-inner { gap: 16px; padding: 56px 0; }
.tb-offer-page .tb-offer-layout .tb-offer-hero .elementor-widget-heading { width: 100%; margin: 0; text-align: left; }
.tb-offer-page .tb-offer-layout .tb-offer-hero h1.elementor-heading-title {
  margin: 0;
  color: var(--tb-offer-navy);
  font: 700 clamp(32px, 3.2vw, 44px)/1.15 Montserrat, sans-serif;
  letter-spacing: -.025em;
  text-align: left;
  overflow-wrap: break-word;
}
.tb-offer-page .tb-offer-layout .tb-offer-hero h1.elementor-heading-title::before {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-bottom: 22px;
  background: var(--tb-offer-red);
}
.tb-offer-page .tb-offer-layout .tb-offer-hero .elementor-widget-text-editor { max-width: 72ch; text-align: left; }
.tb-offer-page .tb-offer-layout .tb-offer-body > .e-con-inner { gap: 24px; padding: 48px 0 64px; }
.tb-offer-page .tb-offer-layout .tb-offer-body .elementor-widget-text-editor {
  width: 100%;
  max-width: 72ch;
  color: #595959;
  font: 400 17px/1.7 Roboto, sans-serif;
  overflow-wrap: break-word;
}
.tb-offer-page .tb-offer-layout .elementor-widget-text-editor p { margin: 0; }
.tb-offer-page .tb-offer-layout .elementor-widget-text-editor p + p { margin-top: .85em; }
.tb-offer-page .tb-offer-layout .tb-offer-body h2.elementor-heading-title,
.tb-offer-page .tb-offer-layout .tb-offer-body h3.elementor-heading-title,
.tb-offer-page .tb-offer-layout .tb-offer-body .elementor-widget-text-editor h2,
.tb-offer-page .tb-offer-layout .tb-offer-body .elementor-widget-text-editor h3 {
  color: var(--tb-offer-navy);
  font: 700 26px/1.3 Montserrat, sans-serif;
  letter-spacing: -.015em;
  margin: 0;
  overflow-wrap: break-word;
}
.tb-offer-page .tb-offer-layout .tb-offer-body > .e-con-inner > .elementor-widget-heading {
  padding-top: 24px;
  border-top: 1px solid var(--tb-offer-line);
}
.tb-offer-page .tb-offer-layout .tb-offer-body ul,
.tb-offer-page .tb-offer-layout .tb-offer-body ol { margin: 0; padding-left: 1.2em; }
.tb-offer-page .tb-offer-layout .tb-offer-body li { padding-left: .15em; }
.tb-offer-page .tb-offer-layout .tb-offer-body li + li { margin-top: 6px; }
.tb-offer-page .tb-offer-layout .tb-offer-body li::marker { color: var(--tb-offer-navy); }
.tb-offer-page--product .tb-offer-layout .tb-offer-body ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 40px;
}
.tb-offer-page--product .tb-offer-layout .tb-offer-body ul > li { margin: 0; }
.tb-offer-page .tb-offer-layout .tb-offer-body .elementor-widget-text-editor a {
  color: var(--tb-offer-navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.tb-offer-page .tb-offer-layout .tb-offer-body a:hover { color: var(--tb-offer-red); }
.tb-offer-page .tb-offer-layout .tb-offer-body a:focus-visible { outline: 2px solid var(--tb-offer-red); outline-offset: 5px; }
.tb-offer-page .tb-offer-layout .tb-offer-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: none;
  margin: 8px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--tb-offer-line);
  align-items: start;
}
.tb-offer-page .tb-offer-layout .tb-offer-gallery > .e-con {
  --width: 100%;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}
.tb-offer-page .tb-offer-layout .tb-offer-body .elementor-widget-image { min-width: 0; }
.tb-offer-page .tb-offer-layout .tb-offer-body .elementor-widget-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: auto;
  border-radius: 0;
}
.tb-offer-page .tb-offer-layout .tb-offer-body > .e-con-inner > .elementor-widget-image { max-width: 800px; }
.tb-offer-page .tb-offer-layout .tb-offer-gallery .elementor-widget-image a {
  position: relative;
  display: block;
  padding-bottom: 30px;
  cursor: zoom-in;
  text-decoration: none;
}
.tb-offer-page .tb-offer-layout .tb-offer-gallery .elementor-widget-image a::after {
  content: "+";
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--tb-offer-line);
  border-radius: 50%;
  color: var(--tb-offer-navy);
  background: #fff;
  font: 400 21px/1 Roboto, sans-serif;
  pointer-events: none;
}
.tb-offer-page .tb-offer-layout .tb-offer-gallery .elementor-widget-image a:hover::after { color: var(--tb-offer-red); border-color: currentColor; }
.tb-offer-page--installation .tb-offer-layout .tb-offer-body > .e-con-inner { gap: 48px; }
.tb-offer-page--installation .tb-offer-layout .tb-offer-body > .e-con-inner > .e-con { flex: 1 1 0; width: auto; min-width: 0; }
.tb-offer-page--installation .tb-offer-layout .tb-offer-body--flat-installation > .e-con-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 48px;
}
.tb-offer-page--installation .tb-offer-layout .tb-offer-body--flat-installation > .e-con-inner > .elementor-widget-text-editor { grid-column: 1; }
.tb-offer-page--installation .tb-offer-layout .tb-offer-body--flat-installation > .e-con-inner > .elementor-widget-image { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
.tb-offer-page--installation .tb-offer-layout .tb-offer-body--flat-installation > .e-con-inner > .elementor-widget-button { grid-column: 1; grid-row: 3; }
.tb-offer-page--installation .tb-offer-layout .tb-offer-body .elementor-widget-text-editor h2 + ul { margin-top: 16px; }
.tb-offer-page .tb-offer-layout .tb-offer-body .elementor-widget-button { margin-top: 8px; padding-top: 8px; max-width: 100%; }
.tb-offer-page .tb-offer-layout .tb-offer-body .elementor-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  max-width: 100%;
  padding: 14px 24px;
  color: #fff;
  background: var(--tb-offer-red);
  border: 0;
  border-radius: 4px;
  font: 700 16px/1.3 Montserrat, sans-serif;
  text-align: center;
  text-decoration: none;
}
.tb-offer-page .tb-offer-layout .tb-offer-body .elementor-button:hover { color: #fff; background: var(--tb-offer-navy); }
@media (max-width: 900px) {
  .tb-offer-page .tb-offer-layout .tb-offer-hero > .e-con-inner { padding: 40px 0; }
  .tb-offer-page .tb-offer-layout .tb-offer-body > .e-con-inner { padding: 32px 0 48px; }
  .tb-offer-page .tb-offer-layout .tb-offer-gallery { grid-template-columns: minmax(0, 1fr); }
  .tb-offer-page--installation .tb-offer-layout .tb-offer-body > .e-con-inner { flex-direction: column; gap: 32px; }
  .tb-offer-page--installation .tb-offer-layout .tb-offer-body > .e-con-inner > .e-con { flex: 0 0 auto; width: 100%; }
  .tb-offer-page--installation .tb-offer-layout .tb-offer-body--flat-installation > .e-con-inner { grid-template-columns: minmax(0, 1fr); }
  .tb-offer-page--installation .tb-offer-layout .tb-offer-body--flat-installation > .e-con-inner > .elementor-widget { grid-column: 1; grid-row: auto; }
}
@media (max-width: 600px) {
  .tb-offer-page .tb-offer-layout > .tb-offer-hero,
  .tb-offer-page .tb-offer-layout > .tb-offer-body { padding-inline: 20px; }
  .tb-offer-page .tb-offer-layout .tb-offer-body .elementor-widget-text-editor { font-size: 16px; }
  .tb-offer-page .tb-offer-layout .tb-offer-body h2.elementor-heading-title,
  .tb-offer-page .tb-offer-layout .tb-offer-body h3.elementor-heading-title,
  .tb-offer-page .tb-offer-layout .tb-offer-body .elementor-widget-text-editor h2,
  .tb-offer-page .tb-offer-layout .tb-offer-body .elementor-widget-text-editor h3 { font-size: 23px; }
  .tb-offer-page--product .tb-offer-layout .tb-offer-body ul { grid-template-columns: minmax(0, 1fr); }
}
/* Footer WPML contrast and copyright alignment (2026-11-23). */
body>.wpml-ls-statics-footer.wpml-ls .wpml-ls-item>a.wpml-ls-link {
  background: transparent;
  color: #cdd3df;
}
body>.wpml-ls-statics-footer.wpml-ls .wpml-ls-item.wpml-ls-current-language>a.wpml-ls-link {
  background: transparent;
  color: #fff;
}
body>.wpml-ls-statics-footer.wpml-ls .wpml-ls-item>a.wpml-ls-link:hover,
body>.wpml-ls-statics-footer.wpml-ls .wpml-ls-item>a.wpml-ls-link:focus-visible {
  background: transparent;
  color: #fff;
}
body>.wpml-ls-statics-footer.wpml-ls .wpml-ls-item>a.wpml-ls-link:focus-visible {
  outline: 3px solid #9fbdff;
  outline-offset: 4px;
}
footer.elementor.elementor-location-footer>.tb-footer-copyright {
  flex-direction: row;
  justify-content: flex-start;
}
