/* Lista wyników widżetu Creative Elements "Wyszukiwanie AJAX" - uzupełnia skrypt views/js/ajax-search.js.
   Kolory, czcionki, odstępy, ramka i cień listy ustawia się w edytorze (zakładka Styl widżetu). Linki z :not(#abc) -
   motyw ma "#header a { color: #232323 }" (selektor z id), zwykła klasa z nim przegrywa. */
/* Motyw jQuery UI (.ui-widget) narzuca Verdanę - lista ma czcionkę sklepu */
.elementor-search__products.ui-widget { font-family: inherit; }
.elementor-search__products .elementor-search__product-image { width: 56px; height: 56px; flex: 0 0 56px; object-fit: contain; }
.elementor-search__products .elementor-search__product-details { flex: 1 1 auto; min-width: 0; }
.elementor-search__products .elementor-search__product-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.elementor-search__products .elementor-search__product-name b { font-weight: 800; }

/* Cena w prawej kolumnie: aktualna, pod nią przekreślona regularna i rabat */
.elementor-search__products .abc-search__price { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin-left: 12px; line-height: 1.2; white-space: nowrap; }
.elementor-search__products .abc-search__price-old { font-size: 12px; font-weight: 400; color: #6B7473; }
.elementor-search__products .abc-search__price-old del { opacity: 1; }
.elementor-search__products .abc-search__badge { display: inline-block; padding: 0 4px; border-radius: 3px; background-color: #328497; color: #FFFFFF; font-size: 11px; font-weight: 700; line-height: 16px; }

/* Ostatni wiersz: wszystkie wyniki */
.elementor-search__products .abc-search__all { border-top: 1px solid #E3ECEE; }
.elementor-search__products .abc-search__all a.abc-search__all-link:not(#abc) { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; margin: 0; border: 0; border-radius: 0; color: #328497; font-size: 15px; font-weight: 700; text-align: center; }
.elementor-search__products .abc-search__all a.abc-search__all-link::after { content: "\2192"; font-size: 1.1em; }

/* Brak wyników */
.elementor-search__products .abc-search__empty { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; font-size: 14px; line-height: 1.5; color: #4D5857; }
.elementor-search__products .abc-search__empty strong { font-size: 16px; color: #1D1D1B; overflow-wrap: anywhere; }
.elementor-search__products .abc-search__empty a.abc-search__phone:not(#abc) { display: inline; padding: 0; color: #328497; font-weight: 700; white-space: nowrap; }

/* Telefon i tablet (wyszukiwarka na całą szerokość): cena pod nazwą, żeby nazwa miała całą szerokość wiersza */
.elementor-search--skin-topbar .elementor-search__products a.elementor-search__product-link { display: grid; grid-template-columns: auto minmax(0, 1fr); row-gap: 4px; align-items: end; }
.elementor-search--skin-topbar .elementor-search__products .elementor-search__product-image { grid-row: 1 / span 2; align-self: center; }
.elementor-search--skin-topbar .elementor-search__products .abc-search__price { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; column-gap: 8px; margin-left: 0; align-self: start; }

/* Telefon i tablet: wszystkie wyniki jako przycisk */
.elementor-search--skin-topbar .elementor-search__products .abc-search__all { border-top: 0; padding: 12px 0 4px; }
.elementor-search--skin-topbar .elementor-search__products .abc-search__all a.abc-search__all-link:not(#abc) { min-height: 48px; border-radius: 8px; background-color: #328497; color: #FFFFFF; font-size: 16px; }
.elementor-search--skin-topbar .elementor-search__products .abc-search__all a.abc-search__all-link.ui-state-focus:not(#abc) { background-color: #264F59; }
.elementor-search--skin-topbar .elementor-search__products .abc-search__empty { padding: 20px 0; font-size: 15px; }
