/* PP-PLUMBER – wyszukiwarka w nagłówku (ppsz) – wersja 1.0 (30.11.2026), wygląd z makiety 30.11.2026.
   Pole i układ działają same (CSS). To, co zależy od skryptu ppsz.js, włącza się dopiero, gdy skrypt zadziała:
   html.ppsz-przycisk – nasz przycisk „Szukaj” wstawiony → chowamy lupę sklepu; html.ppsz-on – nasze okno działa → chowamy podpowiedzi sklepu. */

/* --- pole w nagłówku --- */
.Wyszukiwanie .KontenterWyszukiwania{position:relative;display:flex;flex-wrap:wrap;align-items:baseline;padding-bottom:0}
.Wyszukiwanie .RamkaSzukania{flex:0 0 100%;min-width:0}
/* „wyszukiwanie zaawansowane” – po cichu: mały szary tekst (kontrast 5:1), ikonka mniejsza i jaśniejsza */
.Wyszukiwanie .WyszukiwanieZaawansowane{order:3;display:inline-flex;align-items:center;gap:5px;margin:6px 2px 0 auto!important;padding:0!important;background:none!important;white-space:nowrap;font-size:12px;line-height:1.3;color:#657176!important;text-decoration:none}
.Wyszukiwanie .WyszukiwanieZaawansowane::before{content:"";flex:0 0 auto;width:13px;height:13px;background:url("/szablony/standardowy.rwd.v2/obrazki/szablon/ustawienia.svg") center/13px 13px no-repeat;opacity:.5}
.Wyszukiwanie .WyszukiwanieZaawansowane:hover{color:#2C2C2C!important;text-decoration:underline;text-underline-offset:3px}
.Wyszukiwanie .RamkaSzukania{display:flex;align-items:stretch;height:48px;border:0;border-radius:12px;background:#F6F8F9;box-shadow:inset 0 0 0 1px #DCE2E5;transition:background-color .15s ease-out,box-shadow .15s ease-out}
.Wyszukiwanie .RamkaSzukania:focus-within{background:#FFFFFF;box-shadow:inset 0 0 0 2px #2190B5}
.Wyszukiwanie .RamkaSzukania .cl{display:none}
.Wyszukiwanie #InSzukaj{order:1;flex:1 1 0;float:none;width:0;min-width:0;height:48px;padding:0 12px 0 44px;border:0;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23657176' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") 14px 50%/20px 20px no-repeat;font:inherit;font-size:16px;color:#2C2C2C;outline:0}
.Wyszukiwanie #InSzukaj::placeholder{color:#657176;opacity:1}
.Wyszukiwanie #ButSzukaj{order:2;align-self:center;margin:0 12px 0 0}
html.ppsz-przycisk .Wyszukiwanie #ButSzukaj{display:none}
.ppsz-szukaj{order:2;flex:0 0 auto;display:flex;align-items:center;gap:8px;margin:0;padding:0 20px;border:0;border-radius:0 12px 12px 0;background:#CC4C11;color:#FFFFFF;font:inherit;font-size:15px;font-weight:700;cursor:pointer;transition:background-color .15s ease-out}
.ppsz-szukaj:hover{background:#B8430E}
.ppsz-szukaj:focus-visible{outline:3px solid #2190B5;outline-offset:2px}
.ppsz-szukaj svg{width:18px;height:18px}
html.ppsz-on #Podpowiedzi{display:none!important}
.ppsz-sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* --- okno z podpowiedziami --- */
.ppsz-okno{position:absolute;z-index:15000;top:56px;left:0;width:680px;max-width:calc(100vw - 32px);box-sizing:border-box;padding:16px;border-radius:16px;background:#FFFFFF;color:#2C2C2C;font-size:14px;line-height:1.3;text-align:left;box-shadow:0 1px 2px rgba(48,48,48,.06),0 18px 40px -12px rgba(48,48,48,.28)}
.ppsz-okno[hidden]{display:none}
.ppsz-okno *{box-sizing:border-box}
.ppsz-tytul{margin:0 0 8px;font-size:13px;font-weight:700;color:#657176}
.ppsz-poprawka{margin:0 0 12px;font-size:13px;color:#657176}
.ppsz-poprawka b{color:#2C2C2C}
.ppsz-uklad{display:grid;grid-template-columns:200px minmax(0,1fr);gap:20px}
.ppsz-uklad.bez-dzialow{grid-template-columns:minmax(0,1fr)}

/* chipy: najczęściej szukane, średnice */
.ppsz-chipy{display:flex;flex-wrap:wrap;gap:8px}
.ppsz-chip{min-height:36px;padding:0 14px;border:0;border-radius:999px;background:#F6F8F9;color:#2C2C2C;font:inherit;font-size:14px;cursor:pointer;transition:background-color .15s ease-out}
.ppsz-chip:hover{background:#EAF5FA}
.ppsz-chip:focus-visible,.ppsz-chip.aktywny{outline:0;background:#EAF5FA;box-shadow:inset 0 0 0 1px #2190B5}
.ppsz-srednice{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:0 0 14px;padding:10px 12px;border-radius:12px;background:#F6F8F9}
.ppsz-srednice span{margin-right:4px;font-size:13px;font-weight:700;color:#657176}
.ppsz-srednice .ppsz-chip{min-height:32px;padding:0 12px;background:#FFFFFF}
.ppsz-srednice .ppsz-chip:hover{background:#EAF5FA}

/* działy */
.ppsz-dzialy{display:flex;flex-direction:column;gap:2px}
.ppsz-dzial{display:flex;justify-content:space-between;gap:8px;padding:8px 10px;border-radius:10px;color:#2C2C2C;text-decoration:none}
.ppsz-dzial small{font-size:12px;color:#657176;font-variant-numeric:tabular-nums}
.ppsz-dzial:hover{background:#F6F8F9}
.ppsz-dzial:hover span{text-decoration:underline;text-underline-offset:3px}

/* produkty */
.ppsz-produkty{display:flex;flex-direction:column;gap:2px}
.ppsz-produkt{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:12px;padding:6px 10px 6px 6px;border-radius:10px;color:#2C2C2C;text-decoration:none}
.ppsz-produkt:hover{background:#F6F8F9}
.ppsz-foto{display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:10px;background:#F6F8F9}
.ppsz-produkt:hover .ppsz-foto{background:#FFFFFF}
.ppsz-foto img{width:44px;height:44px;object-fit:contain;mix-blend-mode:multiply}
.ppsz-nazwa{font-size:14px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ppsz-okno .ppsz-nazwa b{font-weight:700!important;color:#2C2C2C}
.ppsz-cena{text-align:right;white-space:nowrap;font-size:15px;font-weight:700;font-variant-numeric:tabular-nums}
.ppsz-cena small{display:block;font-size:12px;font-weight:400;color:#657176}
.ppsz-zapytaj{font-size:13px;font-weight:400;color:#657176}
.ppsz-dzial.aktywny,.ppsz-produkt.aktywny,.ppsz-wszystkie.aktywny{background:#EAF5FA;box-shadow:inset 0 0 0 1px #2190B5}

/* dół okna */
.ppsz-wszystkie{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:46px;margin-top:12px;padding:0 16px;border:0;border-radius:12px;background:#F6F8F9;color:#2C2C2C;font:inherit;font-size:15px;font-weight:700;cursor:pointer;text-decoration:none;text-align:center}
.ppsz-wszystkie:hover{background:#EEF1F3}
.ppsz-wszystkie:focus-visible{outline:3px solid #2190B5;outline-offset:2px}
.ppsz-pomoc{display:flex;align-items:center;gap:10px;margin-top:14px;padding-top:12px;border-top:1px solid #E3E8EB;font-size:13px;color:#657176}
.ppsz-pomoc svg{flex:0 0 auto;width:18px;height:18px;color:#657176}
.ppsz-pomoc a{color:#2C2C2C;font-weight:700;text-decoration:none;white-space:nowrap}
.ppsz-pomoc a:hover{text-decoration:underline;text-underline-offset:3px}
.ppsz-brak{margin:0 0 4px;font-size:16px;font-weight:700}
.ppsz-brak-tekst{margin:0 0 14px;color:#657176}
.ppsz-wskazowka{margin:12px 0 0;font-size:13px;color:#657176}
.ppsz-laduje{margin:0}
.ppsz-okno .ppsz-opisy{position:static;width:100%;margin:0 0 16px;border-radius:12px;background:#F6F8F9;box-shadow:none}

/* --- komputer: pole szersze --- */
@media only screen and (min-width:1024px){
  .Wyszukiwanie{flex:1 1 0;min-width:0;width:auto;max-width:600px;padding:0 28px}
  .LogoSzukanieIkony > #LinkLogo,.LogoSzukanieIkony > .IkonyNawigacja{flex-shrink:0}
}
@media only screen and (min-width:1024px) and (max-width:1279px){
  .Wyszukiwanie{padding:0 16px}
}

/* --- telefon i tablet: pole zawsze widoczne, lupa w ikonach zbędna --- */
@media only screen and (max-width:1023px){
  .Wyszukiwanie{display:block!important;order:9;width:100%;padding:4px 0 12px}
  .SzukajNaglowek,.SzukajMenuLabel{display:none!important}
  .ppsz-okno{position:absolute;top:56px;left:0;right:0;width:auto;max-width:none;max-height:calc(100vh - 80px);max-height:calc(100dvh - 80px);overflow-y:auto;overscroll-behavior:contain;padding:14px}
  .ppsz-uklad{grid-template-columns:minmax(0,1fr);gap:14px}
  .ppsz-uklad .ppsz-kol-dzialy{order:2}
  .ppsz-dzialy{flex-direction:row;flex-wrap:wrap;gap:8px}
  .ppsz-dzial{padding:0 14px;min-height:36px;align-items:center;border-radius:999px;background:#F6F8F9}
  .ppsz-wszystkie{position:sticky;bottom:-14px;margin:12px -14px -14px;width:calc(100% + 28px);border-radius:0 0 16px 16px;background:#FFFFFF;box-shadow:0 -1px 0 #E3E8EB}
}
@media only screen and (max-width:600px){
  .ppsz-szukaj{width:52px;padding:0;justify-content:center}
  .ppsz-szukaj span{display:none}
  .ppsz-szukaj svg{width:20px;height:20px}
  .ppsz-produkt{grid-template-columns:48px minmax(0,1fr) auto;gap:10px}
  .ppsz-foto{width:48px;height:48px}
  .ppsz-foto img{width:40px;height:40px}
  .ppsz-nazwa{-webkit-line-clamp:3}
}
@media (prefers-reduced-motion:reduce){.Wyszukiwanie .RamkaSzukania,.ppsz-szukaj,.ppsz-chip{transition:none}}
