/*
 * KL Szukaj: lista podpowiedzi pod polem, 1:1 z makieta (makiety/assets/komponenty.css, sekcja „Wyszukiwarka”, klasy .sp).
 * Kolory i odstepy z tokenow motywu (zmienne CSS), z wartosciami zapasowymi dla innych sklepow.
 */
.kls-forma { position: relative; }
.kls { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 1060; background: var(--white, #fff);
  border: 1px solid var(--border, #d9d2c5); border-radius: var(--r-md, 10px); box-shadow: 0 12px 32px rgba(1, 54, 80, .16);
  max-height: min(70vh, 640px); overflow: auto; overscroll-behavior: contain; text-align: left; }
.kls[hidden] { display: none; }
.kls-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.kls__cols { display: grid; }
.kls__col + .kls__col { border-top: 1px solid var(--line, #ece5d8); }
.kls__one { padding-bottom: 8px; }
.kls__grp { padding: 12px 12px 4px; }
.kls__h { margin: 0 0 4px; padding: 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-muted, #5b6b76); }
.kls__opt { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 8px; border-radius: 6px;
  color: var(--ink, #13212b); text-decoration: none; font-size: 14px; }
.kls__opt:hover, .kls__opt.is-active { background: var(--soft, #f1e8da); color: var(--heading, #013650); }
.kls__opt mark { background: none; color: inherit; font-weight: 700; padding: 0; }
.kls-ikona { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--icon, #8a5a2b); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.kls__n { margin-left: auto; color: var(--ink-muted, #5b6b76); font-size: 12px; }
.kls__opt--card { flex-direction: column; align-items: flex-start; gap: 2px; background: var(--page-bg, #fbf8f3); margin-bottom: 4px; padding: 8px 12px; }
.kls__opt--card strong { color: var(--heading, #013650); }
.kls__sub { font-size: 12px; color: var(--ink-muted, #5b6b76); }
.kls__opt--prod { align-items: flex-start; padding-block: 8px; }
.kls__opt--prod img, .kls__brak-img { width: 48px; height: 48px; object-fit: contain; flex: none; background: var(--white, #fff); border-radius: 6px; }
.kls__prod { display: grid; gap: 2px; min-width: 0; }
.kls__name { line-height: 1.35; }
.kls__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.kls__price { font-weight: 700; color: var(--heading, #013650); }
.kls__stock { font-size: 12px; font-weight: 500; }
.kls__stock--ok { color: var(--success, #2e7d32); }
.kls__stock--low { color: var(--warning-ink, #8a5a00); }
.kls__stock--out { color: var(--danger, #b42318); }
.kls__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 8px 8px; }
.kls__chip { min-height: 36px; padding: 0 12px; border: 1px solid var(--border-strong, #c9bfae); border-radius: 999px; background: var(--white, #fff); }
.kls__all { justify-content: center; gap: 6px; margin: 0; border-top: 1px solid var(--line, #ece5d8); border-radius: 0 0 10px 10px;
  font-weight: 600; color: var(--brand-blue, #0a6aa1); min-height: 48px; }
.kls__all .kls-ikona { stroke: currentColor; }
.kls__fix, .kls__none { margin: 0; padding: 12px 16px 0; font-size: 14px; color: var(--ink-muted, #5b6b76); }
.kls__none { color: var(--ink, #13212b); }
@media (min-width: 900px) {
  .kls { right: auto; width: min(780px, calc(100vw - 48px)); }
  .kls__cols { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .kls__cols--one { grid-template-columns: 1fr; }
  .kls__col + .kls__col { border-top: 0; border-left: 1px solid var(--line, #ece5d8); }
  .kls:has(.kls__one) { width: min(520px, calc(100vw - 48px)); }
}
