/* ps_shopsearch – podpowiedzi wyszukiwarki (krój pisma i kolor akcentu z motywu) */
.pss-drop {
  --pss-accent: var(--primary-color, #343ca4);
  --pss-line: #ececf1;
  --pss-muted: #7a7d8c;
  z-index: 1060;
  background: #fff;
  border: 1px solid var(--pss-line);
  border-radius: 10px;
  box-shadow: 0 18px 50px -18px rgba(20, 22, 40, .35), 0 2px 6px rgba(20, 22, 40, .06);
  overflow: auto;
  overscroll-behavior: contain;
  text-align: left;
  color: #222;
  font-size: 14px;
  line-height: 1.35;
  container: pssdrop / inline-size;
  animation: pss-in .14s ease-out;
}
.pss-drop[hidden] { display: none !important; }
@keyframes pss-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pss-drop * { box-sizing: border-box; }
.pss-cols { display: grid; grid-template-columns: minmax(0, 1fr); }
.pss-cols.has-side { grid-template-columns: minmax(0, 1fr) 220px; }
@container pssdrop (max-width: 600px) { .pss-cols.has-side { grid-template-columns: minmax(0, 1fr); } .pss-side { border-left: 0 !important; border-top: 1px solid var(--pss-line); } }
.pss-main, .pss-side, .pss-sec { padding: 10px 8px; }
.pss-side { border-left: 1px solid var(--pss-line); background: #fafafc; padding: 0; }
.pss-h { display: flex; align-items: center; gap: 6px; padding: 2px 8px 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pss-muted); }
.pss-h span { font-weight: 600; background: #f0f0f5; border-radius: 99px; padding: 1px 7px; letter-spacing: 0; }
.pss-clear { margin-left: auto; border: 0; background: none; padding: 0; font: inherit; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--pss-accent); cursor: pointer; }
.pss-p { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 8px; border-radius: 8px; color: inherit !important; text-decoration: none !important; }
.pss-img { width: 52px; height: 52px; display: grid; place-items: center; background: #f6f6f9; border-radius: 6px; overflow: hidden; }
.pss-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pss-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pss-lbls { display: flex; flex-wrap: wrap; gap: 4px; }
.pss-lbl { display: inline-block; padding: 1px 6px; font-size: 10.5px; line-height: 1.5; white-space: nowrap; }
.pss-lbl.is-img { height: 18px; width: auto; padding: 0; }
.pss-t b { font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pss-t em, .pss-l em { font-style: normal; font-size: 12px; color: var(--pss-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pss-drop mark { background: none; color: inherit; font-weight: 700; padding: 0; }
.pss-pr { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; white-space: nowrap; }
.pss-pr b { font-weight: 700; }
.pss-pr b.is-promo { color: #d0021b; }
.pss-pr s { font-size: 12px; color: var(--pss-muted); }
.pss-pr i { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: #d0021b; border-radius: 4px; padding: 1px 5px; }
.pss-l { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 8px; color: inherit !important; text-decoration: none !important; }
.pss-l span { font-weight: 500; }
.pss-p:hover, .pss-l:hover, .pss-p.is-active, .pss-l.is-active, .pss-all.is-active, .pss-chip.is-active { background: color-mix(in srgb, var(--pss-accent) 8%, #fff); outline: none; }
.pss-p.is-active, .pss-l.is-active, .pss-all.is-active { box-shadow: inset 3px 0 0 var(--pss-accent); }
.pss-all { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 12px; border-top: 1px solid var(--pss-line); color: var(--pss-accent) !important; font-weight: 600; text-decoration: none !important; position: sticky; bottom: 0; background: #fff; }
.pss-all span { transition: transform .15s; }
.pss-all:hover span { transform: translateX(3px); }
.pss-empty { padding: 16px 16px 6px; color: var(--pss-muted); }
.pss-empty b { color: #222; }
.pss-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 8px 4px; }
.pss-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--pss-line); background: #fff; border-radius: 99px; padding: 5px 11px; font: inherit; font-size: 13px; color: #333; cursor: pointer; }
.pss-chip:hover { border-color: var(--pss-accent); color: var(--pss-accent); }
.pss-chip svg { width: 14px; height: 14px; fill: currentColor; opacity: .55; }
.pss-drop.is-idle .pss-sec + .pss-sec { border-top: 1px solid var(--pss-line); }
.pss-drop.is-mobile { border-radius: 10px; }
.pss-drop.is-mobile .pss-p { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; }
.pss-drop.is-mobile .pss-img { width: 44px; height: 44px; }
/* ładowanie */
.pss-loading input[name="s"] { cursor: progress; }
@media (prefers-reduced-motion: reduce) { .pss-drop { animation: none; } }

/* ---------------------------------------------------------------- widget Kompozytora (zależny od szerokości kolumny) */
.pss-w { container: pssw / inline-size; position: relative; }
.pss-w-form { display: flex; align-items: stretch; height: 46px; border: 1px solid #dcdce4; border-radius: 8px; background: #fff; overflow: hidden; }
.pss-w-form:focus-within { border-color: var(--primary-color, #343ca4); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color, #343ca4) 15%, transparent); }
.pss-w-input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 14px; font: inherit; background: transparent; }
.pss-w-input::-webkit-search-cancel-button { cursor: pointer; }
.pss-w-go { border: 0; padding: 0 20px; background: var(--primary-color, #343ca4); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.pss-w-open { display: none; border: 0; background: none; padding: 0 12px; cursor: pointer; color: inherit; }
.pss-w-open svg { width: 22px; height: 22px; fill: currentColor; }
@container pssw (max-width: 360px) {
  .pss-w-go { display: none; }
  .pss-w-open { display: grid; place-items: center; padding: 0 4px 0 12px; pointer-events: none; }
}
/* bardzo wąska kolumna: sama ikona, pole rozwija się nad treścią */
@container pssw (max-width: 120px) {
  .pss-w-form { width: 46px; border-radius: 50%; }
  .pss-w-input { display: none; }
  .pss-w-open { pointer-events: auto; padding: 0; width: 100%; }
}
.pss-w.is-expanded .pss-w-form { position: absolute; z-index: 1061; top: 0; left: 0; width: min(420px, calc(100vw - 24px)); border-radius: 8px; }
.pss-w.is-expanded .pss-w-input { display: block; }
.pss-w.is-expanded .pss-w-open { width: auto; padding: 0 4px 0 12px; pointer-events: none; }
