/*
 * Mniejsze odstępy między wszystkimi filtrami w lewej kolumnie, także na listach bez „Więcej filtrów” (motyw daje
 * 30 px nad każdym tytułem). Wysokość pól wyboru zostaje, żeby na telefonie łatwo było w nie trafić.
 */
#left-column .PM_ASBlockOutputVertical .PM_ASCriterionsGroup {
  margin-bottom: 14px;
}

#left-column .PM_ASBlockOutputVertical .PM_ASCriterionsGroupTitle {
  margin-bottom: 6px;
  padding-top: 0;
}

#left-column .PM_ASBlockOutputVertical .PM_ASCritRange {
  margin-top: 16px;
  margin-bottom: 14px;
}

#left-column .dm-filtry__more {
  padding-top: 14px;
}

/*
 * Telefon: Advanced Search chowa cały blok za „Filtruj według”. Blok z filtrami na wierzchu jest widoczny od razu,
 * a „Filtruj według” to w nim zwykły nagłówek bez plusa, jak na komputerze. Pozostałe bloki zwijają się jak dotąd.
 */
#left-column .dm-filtry.PM_ASMobileMode .card-block {
  display: block;
  padding-right: 0;
}

/* Mniej pustego miejsca nad i pod filtrami, żeby produkty były wyżej. Szerokość jak pole „Filtruj wyniki”. */
#left-column .dm-filtry.PM_ASMobileMode .card {
  margin-right: -15px;
  margin-bottom: 20px;
  padding: 12px 0 0;
}

#left-column .dm-filtry.PM_ASMobileMode .card-header {
  margin-bottom: 12px;
  cursor: default;
}

#left-column .dm-filtry.PM_ASMobileMode .PM_ASBlockTitle::after {
  content: none;
}

/* Przycisk „Więcej filtrów”: trochę mniejszy napis niż nagłówki filtrów, z plusem albo minusem po prawej. */
#left-column .dm-filtry__toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 18px 0 0;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid #d5d5d5;
  border-bottom: 1px solid #d5d5d5;
  background: none;
  color: #060707;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

#left-column .dm-filtry__toggle::after {
  content: "\E145";
  flex: none;
  margin-left: 12px;
  font-family: "Material Icons";
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

#left-column .dm-filtry__toggle[aria-expanded="true"]::after {
  content: "\E15B";
}

#left-column .dm-filtry__toggle:hover {
  color: #0969b3;
}

#left-column .dm-filtry__toggle:focus {
  outline: 0;
}

#left-column .dm-filtry__toggle:focus-visible {
  outline: 2px solid #0969b3;
  outline-offset: 2px;
}

/*
 * „Podkategorie”: rozwijana lista z miniaturami. Kolory, ramki, litery i strzałka są takie jak w polu „Model
 * urządzenia” i innych listach Advanced Search (selectize). Pozycje są tylko wyższe, żeby zmieściła się miniatura.
 */
#left-column .dm-filtry__source,
#left-column .dm-filtry__select [hidden] {
  display: none !important;
}

#left-column .dm-filtry__select {
  position: relative;
}

#left-column .dm-filtry__current,
#left-column .dm-filtry__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: #fff;
  color: #303030;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  text-align: left;
  cursor: pointer;
}

#left-column .dm-filtry__current {
  position: relative;
  min-height: 36px;
  padding: 4px 34px 4px 8px;
  border: 1px solid #d0d0d0;
  border-radius: 3px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
}

/* Nic nie wybrano: „Wszystkie” wygląda jak podpowiedź w polu „Model urządzenia”. */
#left-column .dm-filtry__current--empty .dm-filtry__name {
  color: #898989;
  opacity: 0.54;
}

#left-column .dm-filtry__current::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  width: 0;
  height: 0;
  margin-top: -3px;
  border: solid transparent;
  border-width: 5px 5px 0;
  border-top-color: #808080;
}

#left-column .dm-filtry__current[aria-expanded="true"] {
  border-radius: 3px 3px 0 0;
}

#left-column .dm-filtry__current[aria-expanded="true"]::after {
  margin-top: -4px;
  border-width: 0 5px 5px;
  border-bottom-color: #808080;
}

#left-column .dm-filtry__list {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 20;
  max-height: min(290px, 60vh);
  margin-top: -1px;
  border: 1px solid #d0d0d0;
  border-radius: 0 0 3px 3px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

#left-column .dm-filtry__item {
  min-height: 36px;
  padding: 2px 8px;
}

#left-column .dm-filtry__thumb {
  display: flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  overflow: hidden;
  background: #fff;
}

/* Mniejsza miniatura w zamkniętym polu, żeby było tak wysokie jak „Model urządzenia”. */
#left-column .dm-filtry__current .dm-filtry__thumb {
  flex-basis: 26px;
  width: 26px;
  height: 26px;
}

#left-column .dm-filtry__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Kategoria bez miniatury: puste miejsce tej samej wielkości, więc nazwy zostają w jednej linii. */
#left-column .dm-filtry__thumb--empty {
  background: transparent;
}

#left-column .dm-filtry__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

#left-column .dm-filtry__item:focus {
  background: #f5fafd;
  color: #495c68;
}

@media (hover: hover) {
  #left-column .dm-filtry__item:not(:disabled):hover {
    background: #f5fafd;
    color: #495c68;
  }
}

#left-column .dm-filtry__item[aria-selected="true"],
#left-column .dm-filtry__item[aria-selected="true"]:hover {
  background: #e8e8e8;
  color: #303030;
}

#left-column .dm-filtry__item:disabled {
  opacity: 0.5;
  cursor: default;
}

#left-column .dm-filtry__current:focus,
#left-column .dm-filtry__item:focus {
  outline: 0;
}

#left-column .dm-filtry__current:focus-visible,
#left-column .dm-filtry__item:focus-visible {
  outline: 2px solid #0969b3;
  outline-offset: -2px;
}
