/* ŁapDeal Listing V46 — uproszczony kreator kategorii mobile.
   Utrzymujemy zachowanie V45, zmieniamy jedynie prezentację. */
@media(max-width:690px){
  /* Wiersz z wybraną kategorią jest już w podtytule. Nie zostawiaj pustego miejsca. */
  #ld2CategoryLevels .ld2-cv-crumbs:empty{display:none!important}
  #ld2CategoryLevels .ld2-cv-crumbs{padding-top:10px;padding-bottom:9px}

  /* Jeden rząd: mniejsze działanie po lewej, główny przycisk po prawej. */
  #ld2CategoryLevels .ld2-cv-footer{
    display:grid!important;grid-template-columns:minmax(0,0.8fr) minmax(0,1.45fr)!important;
    align-items:center!important;column-gap:9px!important;row-gap:0!important;
    padding:10px 12px calc(11px + env(safe-area-inset-bottom,0px))!important;
  }
  #ld2CategoryLevels .ld2-cv-change-category{
    grid-column:1!important;grid-row:1!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    align-self:stretch!important;box-sizing:border-box!important;
    width:100%!important;min-width:0!important;min-height:44px!important;
    margin:0!important;padding:8px 4px!important;
    border:0!important;background:transparent!important;box-shadow:none!important;
    color:#61758b!important;text-align:center!important;
    font:600 12px/1.3 Arial,system-ui,sans-serif!important;
  }
  #ld2CategoryLevels .ld2-cv-apply{
    grid-column:2!important;grid-row:1!important;
    width:100%!important;min-width:0!important;min-height:44px!important;
    margin:0!important;padding:9px 12px!important;
    font:700 14px/1.3 Arial,system-ui,sans-serif!important;
  }
  #ld2CategoryLevels .ld2-cv-change-category:focus-visible{outline:2px solid #ff9c69;outline-offset:-2px}

  /* Zamknięcie: symbol × bez tła, obramowania lub cienia, obszar 44px. */
  #ld2CategoryLevels .ld2-category-mobile-close,
  #ld2CategoryLevels .ld2-category-mobile-close:hover,
  #ld2CategoryLevels .ld2-category-mobile-close:active{
    appearance:none!important;display:grid!important;place-items:center!important;
    box-sizing:border-box!important;flex:0 0 44px!important;
    width:44px!important;height:44px!important;min-width:44px!important;
    margin:0!important;padding:0!important;
    border:0!important;border-radius:0!important;background:transparent!important;
    box-shadow:none!important;color:#52677d!important;
    font:400 27px/1 Arial,system-ui,sans-serif!important;
  }

  /* Strzałka powrotu: bez kolorowej płytki i ramki, z zachowaniem pola dotyku. */
  #ld2CategoryLevels .ld2-cv-back,
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-mobile-back{
    display:grid!important;place-items:center!important;
    box-sizing:border-box!important;
    flex:0 0 44px!important;width:44px!important;
    height:44px!important;min-height:44px!important;
    padding:0!important;margin:0!important;
    border:0!important;border-radius:0!important;
    background:transparent!important;box-shadow:none!important;
    color:#40556d!important;
  }
  #ld2CategoryLevels .ld2-cv-back:hover,
  #ld2CategoryLevels .ld2-cv-back:active,
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-mobile-back:hover,
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-mobile-back:active{
    border:0!important;background:transparent!important;box-shadow:none!important;
    color:#df5a1f!important;
  }
  #ld2CategoryLevels .ld2-cv-back:focus-visible,
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-mobile-back:focus-visible{
    outline:2px solid #ff9c69!important;outline-offset:-2px!important;
  }

  /* "Pokaż wszystkie" w normalnym drzewie kategorii jako link bez płytki. */
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-mobile-all,
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-mobile-all:hover,
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-mobile-all:active{
    box-sizing:border-box!important;
    min-height:44px!important;padding:8px 5px!important;
    border:0!important;border-radius:0!important;
    background:transparent!important;box-shadow:none!important;
    color:#cf5623!important;text-decoration:underline!important;
    text-underline-offset:3px!important;
    font:600 13px/1.35 Arial,system-ui,sans-serif!important;
  }
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-mobile-all:focus-visible{
    outline:2px solid #ff9c69!important;outline-offset:-2px!important;
  }
}
