/* Only the product search, never generic forms or checkout. */
html body input.sfss-input,
html body :is(#search_widget,.search-widget,.block-search,.ets_searchblock,.pos-search-wrapper,.search-top) input:is([type="search"],[name="s"],[name="search_query"],[name="search"],[name="q"]),
html body input[placeholder*="Szukaj fotela" i] {
  color:#171718!important;
  background:#fff!important;
  border-color:#d6d6d8!important;
  border-radius:10px!important;
  box-shadow:none!important;
  min-width:0!important;
  box-sizing:border-box!important;
  font-size:16px!important;
  line-height:1.35!important;
  padding-inline:14px!important;
}
html body input.sfss-input::placeholder {color:#76767a!important;opacity:1!important;}
html body input.sfss-input:focus {border-color:#C91735!important;outline:2px solid #C91735!important;outline-offset:-2px!important;}
html body .sfss-group {border-color:#d6d6d8!important;border-radius:10px!important;box-shadow:none!important;}
html body .sfss-group:focus-within {border-color:#C91735!important;}
html body .sfss-group input.sfss-input {border-radius:10px 0 0 10px!important;}
html body .sfss-submit {
  background:#C91735!important;
  border-color:#C91735!important;
  color:white!important;
  border-radius:10px!important;
  box-shadow:none!important;
  cursor:pointer;
}
html body .sfss-group .sfss-submit {border-radius:0 10px 10px 0!important;}
html body .sfss-submit :is(i,.material-icons,svg) {color:white!important;}
html body .sfss-submit:hover,html body .sfss-submit:active {background:#A9122C!important;border-color:#A9122C!important;}
html body .sfss-submit:focus-visible {outline:2px solid #171718!important;outline-offset:2px!important;}
html body select.sfss-category {border-color:#d6d6d8!important;border-radius:10px!important;color:#171718!important;background-color:#fff!important;box-shadow:none!important;}
html body select.sfss-category:focus-visible {outline:2px solid #C91735!important;outline-offset:1px!important;}
@media (min-width:1025px) {
  html body input.sfss-input {min-height:44px!important;}
  html body .sfss-submit {min-height:44px!important;}
  html body select.sfss-category {min-height:44px!important;padding-inline:10px!important;}
}
/* Apply before any JS and before focus: WebKit magnifies inputs below 16px. */
@media (max-width:1024px), (pointer:coarse) {
  html body input.sfss-input,
  html body input[type="search"],
  html body input[name="s"],
  html body input[name="search_query"],
  html body input[placeholder*="Szukaj fotela" i],
  html body :is(#search_widget,.search-widget,.block-search,.ets_searchblock,.pos-search-wrapper,.search-top,header,[role="search"]) input:is([name="search"],[name="q"]),
  html body select.sfss-category {
    font-size:16px!important;
    -webkit-text-size-adjust:100%;
    line-height:1.35!important;
  }
  html body .sfss-group input.sfss-input {min-width:0!important;}
}

/* Desktop: the theme's full-width search overlay, including lazy-inserted fields. */
@media (min-width:1025px) {
 html body input.sfss-input.sfss-input,
 html body input[placeholder*="szukaj fotela" i],
 html body input[placeholder*="szukaj" i][placeholder*="części" i] {
   background-color:#fff!important;
   border-radius:10px!important;
   border:1px solid #d6d6d8!important;
   font-size:16px!important;
   min-height:44px!important;
   box-shadow:none!important;
 }
 html body .sfss-group.sfss-group {border-radius:10px!important;border-color:#d6d6d8!important;box-shadow:none!important;}
 html body .sfss-group.sfss-group input.sfss-input {border-radius:10px 0 0 10px!important;}
 html body .sfss-submit.sfss-submit {background:#C91735!important;border-color:#C91735!important;color:#fff!important;border-radius:10px!important;box-shadow:none!important;}
 html body .sfss-group .sfss-submit.sfss-submit {border-radius:0 10px 10px 0!important;}
 html body .sfss-submit.sfss-submit:hover {background:#A9122C!important;border-color:#A9122C!important;}
 html body .sfss-submit.sfss-submit svg {color:#fff!important;}
 html body .sfss-group:focus-within {border-color:#C91735!important;}
}


/* 1.0.2: desktop only. Keep the 1.0.1 mobile cascade untouched. */
@media (min-width:1025px) {
 html body .sfss-desktop-category.sfss-desktop-category,
 html body .sfss-desktop-category.sfss-desktop-category.sfss-submit {
   background:#fff!important;
   color:#171718!important;
   border:1px solid #d6d6d8!important;
   border-radius:10px!important;
   height:46px!important;
   min-height:46px!important;
   box-sizing:border-box!important;
   padding:0 16px!important;
   font-size:14px!important;
   font-weight:500!important;
   line-height:1.25!important;
   box-shadow:none!important;
   text-align:left!important;
 }
 html body .sfss-desktop-category:not(select) {
   display:inline-flex!important;
   align-items:center!important;
   justify-content:space-between!important;
   gap:10px!important;
   white-space:nowrap!important;
   vertical-align:middle!important;
 }
 html body .sfss-desktop-category.sfss-desktop-category :is(i,svg,.material-icons) {color:#171718!important;}
 html body .sfss-desktop-category.sfss-desktop-category:hover {background:#f7f7f7!important;border-color:#aaa!important;color:#171718!important;}
 html body .sfss-desktop-category.sfss-desktop-category:focus-visible {outline:2px solid #C91735!important;outline-offset:2px!important;}
 html body input.sfss-input.sfss-desktop-input.sfss-desktop-input {
   height:46px!important;
   min-height:46px!important;
   padding:0 16px!important;
   line-height:normal!important;
   margin-block:0!important;
   background:#fff!important;
   border:1px solid #d6d6d8!important;
   border-right:0!important;
   border-radius:10px 0 0 10px!important;
   box-shadow:none!important;
   outline:none!important;
 }
 html body input.sfss-input.sfss-desktop-input.sfss-desktop-input:focus {border-color:#C91735!important;}
 html body .sfss-desktop-loupe.sfss-desktop-loupe.sfss-desktop-loupe {
   display:inline-flex!important;
   align-items:center!important;
   justify-content:center!important;
   width:60px!important;
   min-width:60px!important;
   height:46px!important;
   min-height:46px!important;
   flex:0 0 60px!important;
   padding:0!important;
   margin:0!important;
   background:#C91735!important;
   color:#fff!important;
   border:1px solid #C91735!important;
   border-radius:0 10px 10px 0!important;
   box-shadow:none!important;
   box-sizing:border-box!important;
   vertical-align:middle!important;
 }
 html body .sfss-desktop-loupe.sfss-desktop-loupe:hover {background:#A9122C!important;border-color:#A9122C!important;}
 html body .sfss-desktop-loupe.sfss-desktop-loupe :is(i,svg,.material-icons) {color:#fff!important;}
 html body .sfss-desktop-pair.sfss-desktop-pair {display:flex!important;align-items:center!important;gap:0!important;border:0!important;box-shadow:none!important;border-radius:10px!important;}
 html body .sfss-desktop-pair > input.sfss-desktop-input {flex:1 1 0%!important;width:0!important;min-width:0!important;margin:0!important;}
}

/* 1.0.3: custom category dropdown only, desktop only. */
@media (min-width:1025px) {
 html body .sfss-category-menu.sfss-category-menu {
   min-width:220px!important; max-width:320px!important;
   padding:7px!important; margin-top:6px!important;
   border:1px solid #e5e5e7!important; border-radius:12px!important;
   background:#fff!important; box-shadow:0 12px 32px rgba(23,23,24,.15),0 2px 6px rgba(23,23,24,.05)!important;
   box-sizing:border-box!important; list-style:none!important;
 }
 html body .sfss-category-menu .sfss-category-item.sfss-category-item {
   display:flex!important; align-items:center!important; justify-content:space-between!important;
   width:100%!important; min-height:38px!important; padding:9px 12px!important;
   margin:1px 0!important; box-sizing:border-box!important;
   border:0!important; border-radius:7px!important; background:transparent!important;
   color:#171718!important; font-size:14px!important; line-height:1.35!important;
   font-weight:500!important; text-align:left!important; text-decoration:none!important;
   white-space:normal!important; box-shadow:none!important; cursor:pointer;
 }
 html body .sfss-category-menu .sfss-category-item.sfss-category-item:hover,
 html body .sfss-category-menu .sfss-category-item.sfss-category-item:focus-visible {background:#f8edf0!important;color:#C91735!important;}
 html body .sfss-category-menu .sfss-category-item.sfss-category-current {
   background:#fbeef1!important; color:#C91735!important; font-weight:700!important;
 }
 html body .sfss-category-menu .sfss-category-item.sfss-category-current::after {
   content:""; flex:0 0 6px; width:6px; height:11px; margin-left:12px;
   border:solid currentColor; border-width:0 2px 2px 0; transform:rotate(45deg); box-sizing:border-box;
 }
 html body .sfss-category-menu .sfss-category-item:focus-visible {outline:2px solid #C91735!important;outline-offset:-2px!important;}
 html body .sfss-category-menu li {list-style:none!important;}
}
