/* ŁapDeal V37 — jeden fizyczny wiersz: miejscowość | +km | Szukaj.
   Wrapper izoluje pasek od starszych reguł siatki, które w V34–V36
   wypychały lupę do kolejnego wiersza po pokazaniu promienia. */
@media(min-width:691px){
  /* display:contents zachowuje dotychczasową kolejność i układ PC. */
  #ld2SearchForm .ld2-geo-actions{display:contents!important}
}
@media(max-width:690px){
  #ld2SearchForm .ld2-bar{
    display:flex!important;flex-flow:column nowrap!important;
    align-items:stretch!important;justify-content:flex-start!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    box-sizing:border-box!important;gap:8px!important;
  }
  #ld2SearchForm .ld2-bar > .ld2-query{
    flex:none!important;width:100%!important;min-width:0!important;max-width:100%!important;
    margin:0!important;align-self:stretch!important;
  }
  #ld2SearchForm .ld2-bar > .ld2-geo-actions{
    --ld2-geo-height:44px;
    display:flex!important;flex-flow:row nowrap!important;align-items:stretch!important;
    justify-content:space-between!important;gap:6px!important;
    flex:none!important;align-self:stretch!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    box-sizing:border-box!important;overflow:visible!important;
    margin:0!important;padding:0!important;
  }
  #ld2SearchForm .ld2-geo-actions > .ld2-location{
    display:flex!important;flex:1 1 0%!important;
    min-width:0!important;width:0!important;max-width:none!important;
    margin:0!important;padding:0!important;align-self:stretch!important;
    box-sizing:border-box!important;
  }
  #ld2SearchForm .ld2-geo-actions > .ld2-radius:not([hidden]){
    display:flex!important;flex:0 0 76px!important;
    min-width:0!important;width:76px!important;max-width:76px!important;
    margin:0!important;padding:0!important;
    align-self:stretch!important;align-items:stretch!important;
    box-sizing:border-box!important;
  }
  #ld2SearchForm .ld2-geo-actions > .ld2-radius[hidden]{display:none!important}
  #ld2SearchForm .ld2-geo-actions > .ld2-submit{
    display:block!important;flex:0 0 var(--ld2-geo-height)!important;
    min-width:var(--ld2-geo-height)!important;max-width:var(--ld2-geo-height)!important;
    width:var(--ld2-geo-height)!important;
    height:var(--ld2-geo-height)!important;min-height:0!important;max-height:var(--ld2-geo-height)!important;
    margin:0!important;padding:0!important;align-self:stretch!important;
    position:relative!important;inset:auto!important;box-sizing:border-box!important;
  }
  /* Zarówno natywny wybór +km, jak i wygenerowany select UI mają 44px. */
  #ld2SearchForm .ld2-geo-actions > .ld2-location input#cityInput,
  #ld2SearchForm .ld2-geo-actions > .ld2-location .ld2-clear-wrap,
  #ld2SearchForm .ld2-geo-actions > .ld2-radius select,
  #ld2SearchForm .ld2-geo-actions > .ld2-radius .ld2-pretty-wrap,
  #ld2SearchForm .ld2-geo-actions > .ld2-radius .ld2-pretty-button{
    width:100%!important;min-width:0!important;max-width:100%!important;
    height:var(--ld2-geo-height)!important;min-height:var(--ld2-geo-height)!important;
    max-height:var(--ld2-geo-height)!important;box-sizing:border-box!important;
    margin:0!important;
  }
  #ld2SearchForm .ld2-geo-actions > .ld2-location input#cityInput{
    padding-left:10px!important;padding-right:10px!important;
    text-overflow:ellipsis!important;
  }
  #ld2SearchForm .ld2-geo-actions > .ld2-radius select,
  #ld2SearchForm .ld2-geo-actions > .ld2-radius .ld2-pretty-button{
    padding:0 3px!important;white-space:nowrap!important;
    font-size:12px!important;line-height:1.15!important;text-align:center!important;
    overflow:hidden!important;text-overflow:ellipsis!important;
  }
  #ld2SearchForm .ld2-geo-actions > .ld2-submit > button.ld2-mobile-search-submit{
    appearance:none!important;display:grid!important;place-items:center!important;
    flex:none!important;width:100%!important;max-width:100%!important;
    min-width:0!important;height:100%!important;min-height:0!important;
    max-height:100%!important;aspect-ratio:1/1!important;
    margin:0!important;padding:0!important;
    border:0!important;border-radius:10px!important;
    background:#ff641f!important;color:#fff!important;
    box-sizing:border-box!important;overflow:hidden!important;
  }
  #ld2SearchForm .ld2-geo-actions > .ld2-submit > button .ld2-search-icon{
    display:block!important;width:21px!important;height:21px!important;
    margin:0!important;flex:none!important;
  }
  #ld2SearchForm .ld2-geo-actions > .ld2-submit > button .ld2-search-label{display:none!important}
}

/* V38: rezerwacja miejsca na ikonę lokalizacji — także po wstawieniu przycisku czyszczenia.
   Przeznaczone dla pola mobilnego, bez wpływu na PC i inne filtry. */
@media(max-width:690px){
 #ld2SearchForm .ld2-bar .ld2-geo-actions > .ld2-location #cityInput,
 #ld2SearchForm .ld2-bar .ld2-geo-actions > .ld2-location .ld2-clear-wrap > #cityInput{
  padding-inline-start:40px!important;
  padding-inline-end:29px!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:16px!important;
 }
 #ld2SearchForm .ld2-bar .ld2-geo-actions > .ld2-location #cityInput::placeholder{
  color:#8796a7;opacity:1;
 }
}
