/* Szarpidrut 2027 — W04 (katalog firm): poprawki ręczne do w04.css (elementy strony, których makieta nie ma
   w tej postaci: linki zamiast przycisków, logo firm, prawdziwa paginacja, moduły panelu). */
/* Reguły makiety z kombinatorem dziecka (>), których ekstraktor nie przeniósł do w04.css — skopiowane 1:1 w kolejności źródła. */
:where(.sz27-w04) #firm-directory .firms-hero-copy > p{max-width:590px;color:#aaa;font-size:17px;line-height:1.75;margin:24px 0 28px}
:where(.sz27-w04) #firm-directory .section-head > span{font-size:12px;color:#aaa}
:where(.sz27-w04) #firm-directory .advanced-toggle > span{font-size:22px;color:#ef363b;line-height:15px}
:where(.sz27-w04) #firm-directory .advanced-filters > div{min-width:0}
:where(.sz27-w04) #firm-directory .firm-join > a{white-space:nowrap;background:#ef363b;color:white;padding:16px 19px;font-size:12px;letter-spacing:.05em;font-weight:700}
:where(.sz27-w04) #firm-directory .firm-join > a:hover{background:#be242a}
@media(max-width:760px){:where(.sz27-w04) #firm-directory .firms-hero-copy > p{font-size:14px;line-height:1.7;margin:20px 0}}
@media(max-width:760px){:where(.sz27-w04) #firm-directory .firm-join > a{display:inline-block;margin-top:19px}}
:where(.sz27-w04) #firm-directory .filter-multi > summary{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#111;color:#fff;border:1px solid #484848;width:100%;padding:13px 10px;font-size:12px;min-height:45px;cursor:pointer;list-style:none}
:where(.sz27-w04) #firm-directory .filter-multi > summary::-webkit-details-marker{display:none}
:where(.sz27-w04) #firm-directory .filter-multi > summary span:first-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
:where(.sz27-w04) #firm-directory .filter-multi[open] > summary{border-color:#ef363b}
:where(.sz27-w04) #firm-directory .filter-multi > summary:focus-visible{outline:2px solid #ef363b;outline-offset:3px}
:where(.sz27-w04) #firm-directory .section-head h2 > span{display:none}
:where(.sz27-w04) #firm-directory .advanced-filters > div:has( > select:not(:disabled) option:checked:not(:first-child)) label{color:#ff7679}
:where(.sz27-w04) #firm-directory .advanced-filters > div:has( > select:not(:disabled) option:checked:not(:first-child)) select{border-color:#ef363b;background:#251617}
:where(.sz27-w04) #firm-directory .firm-join > a{color:#080808}
:where(.sz27-w04) #firm-directory .firm-join > a:hover{color:#fff}
:where(.sz27-w04) #firm-directory .section-head > span,:where(.sz27-w04) #firm-directory .filter-multi > summary,:where(.sz27-w04) #firm-directory .firm-join > a{font-size:15px;line-height:1.45}
:where(.sz27-w04) #firm-directory .advanced-filters > div{display:flex;flex-direction:column;min-width:0;position:relative}
:where(.sz27-w04) #firm-directory .advanced-filters > div > .filter-label,:where(.sz27-w04) #firm-directory .advanced-filters > div > label:not(.filter-option){display:block;min-height:22px;margin:0 0 8px;line-height:22px;
 font-family:Lato,Arial,sans-serif;font-size:12px!important;font-weight:700;
 letter-spacing:.04em;text-transform:uppercase;color:#bababa;}
:where(.sz27-w04) #firm-directory .advanced-filters .filter-multi > summary{width:100%;height:52px;min-height:52px;margin:0;padding:0 12px;
 display:flex;align-items:center;justify-content:space-between;gap:9px;
 border:1px solid #484848;border-radius:0;background:#111;color:#fff;
 font-family:Lato,Arial,sans-serif;font-size:14px!important;line-height:1.25;
 box-sizing:border-box;}
:where(.sz27-w04) #firm-directory .advanced-filters .filter-multi > summary span:first-child{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:where(.sz27-w04) #firm-directory .advanced-filters .filter-multi > summary span:last-child{flex:none}


/* Szybkie kategorie jako linki (filtr serwerowy) */
:where(.sz27-w04) #firm-directory a.cat-chip{display: inline-flex; align-items: center; justify-content: center; line-height: 1.2;}

/* Stopka wyszukiwarki: link dodawania firmy + reset jako link */
:where(.sz27-w04) #firm-directory .finder-foot .w04-add-link{color: rgb(187, 187, 187); border-bottom: 1px solid rgb(239, 54, 59); padding-bottom: 2px;}
:where(.sz27-w04) #firm-directory .finder-foot .w04-add-link:hover{color: rgb(255, 255, 255);}
:where(.sz27-w04) #firm-directory .finder-foot .w04-reset{display: inline-flex; align-items: center; font-weight: 700; color: rgb(238, 238, 238); white-space: nowrap; padding: 8px;}
:where(.sz27-w04) #firm-directory .finder-foot .w04-reset:hover{color: rgb(239, 54, 59);}

/* Logo firmy na kafelku (inicjały zostają jako tło/fallback) */
:where(.sz27-w04) #firm-directory .firm-symbol img{position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; background: rgb(38, 38, 38);}

/* Paginacja KNP jako linki */
:where(.sz27-w04) #firm-directory .firm-pagination > a,
:where(.sz27-w04) #firm-directory .firm-pagination > span{display: inline-flex; align-items: center; justify-content: center; background: rgb(24, 24, 24); border: 1px solid rgb(68, 68, 68); min-width: 42px; height: 42px; padding: 0 13px; font-weight: 700; font-size: 15px; line-height: 1;}
:where(.sz27-w04) #firm-directory .firm-pagination > a:hover{border-color: rgb(187, 187, 187);}
:where(.sz27-w04) #firm-directory .firm-pagination > span[aria-current="page"]{background: rgb(239, 54, 59); color: rgb(8, 8, 8); border-color: rgb(239, 54, 59);}
:where(.sz27-w04) #firm-directory .firm-pagination > .is-disabled{opacity: .3;}
:where(.sz27-w04) #firm-directory .firm-pagination > .is-gap{background: transparent; border-color: transparent; min-width: 20px; padding: 0;}

/* Moduły z panelu (banery / pasek), gdy ustawione dla pozycji „companies” */
:where(.sz27-w04) #firm-directory .w04-panel-module{margin: 0 0 32px;}
:where(.sz27-w04) #firm-directory .w04-panel-module img{max-width: 100%; height: auto;}

/* Długie nazwy firm nie mogą rozpychać strony na telefonie */
:where(.sz27-w04) #firm-directory .firm-name,
:where(.sz27-w04) #firm-directory .feature-center strong{overflow-wrap: anywhere;}
