/* sb-live-search-css */
.sb-search{position:relative}
.sb-ls-panel{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:9999;
  background:var(--panel,#101219);border:1px solid var(--line2,rgba(255,255,255,.14));
  border-radius:var(--radius,16px);box-shadow:var(--shadow,0 24px 60px rgba(0,0,0,.5));
  overflow:hidden;max-height:min(62vh,460px);overflow-y:auto;
  opacity:0;transform:translateY(-4px);pointer-events:none;
  transition:opacity .12s ease,transform .12s ease}
.sb-ls-panel.open{opacity:1;transform:none;pointer-events:auto}
.sb-ls-item{display:flex;align-items:center;gap:12px;padding:10px 14px;cursor:pointer;
  border-bottom:1px solid var(--line,rgba(255,255,255,.07));text-decoration:none;color:inherit}
.sb-ls-item:last-child{border-bottom:0}
.sb-ls-item:hover,.sb-ls-item.act{background:var(--panel2,#161922)}
.sb-ls-thumb{width:40px;height:40px;flex:0 0 auto;border-radius:var(--radius-sm,12px);
  object-fit:cover;background:var(--panel2,#161922)}
/* .sb-ls-txt is a flex column: its two children are spans, and an inline box
   ignores overflow:hidden, so without this the name and the category shared one
   line and the untruncated name ran under the price. */
.sb-ls-txt{min-width:0;flex:1;display:flex;flex-direction:column;gap:1px}
.sb-ls-name{display:block;font-family:var(--display,sans-serif);font-size:14px;line-height:1.3;
  color:var(--txt,#f4f6f9);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sb-ls-name mark{background:transparent;color:var(--brand,#5cc0ff);padding:0}
.sb-ls-cat{display:block;font-size:11.5px;line-height:1.35;color:var(--dim,#646f79);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sb-ls-price{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-variant-numeric:tabular-nums;
  font-size:13px;font-weight:600;color:var(--muted,#98a2ae);flex:0 0 auto;white-space:nowrap;align-self:center;
  display:flex;flex-direction:column;align-items:flex-end;gap:3px;text-align:right;line-height:1.2}
.sb-ls-pr{display:flex;align-items:baseline;gap:7px}
.sb-ls-was{font-weight:500;font-size:12px;opacity:.55;text-decoration:line-through;text-decoration-thickness:1px}
.sb-ls-now{color:var(--txt,#f4f6f9)}
.sb-ls-now.sale{color:#ffb43c;font-weight:700}
.sb-ls-code{font-size:9.5px;font-weight:700;letter-spacing:.06em;padding:1px 6px;border-radius:4px;
  color:#ffb43c;background:rgba(255,122,24,.10);border:1px solid rgba(255,168,60,.42)}
html.sb-light .sb-ls-now{color:#0f172a}
html.sb-light .sb-ls-now.sale{color:#c2410c}
html.sb-light .sb-ls-code{color:#9a3412;background:rgba(194,65,12,.08);border-color:rgba(194,65,12,.38)}
/* The pill is the field: no second box inside it on focus. */
form.sb-search input[name="s"],
form.sb-search input[name="s"]:focus,
form.sb-search input[name="s"]:focus-visible{border:0!important;outline:none!important;box-shadow:none!important;background:transparent!important}
.sb-ls-empty{padding:16px 14px;font-size:13.5px;color:var(--muted,#98a2ae)}
.sb-ls-go{padding:9px 14px;font-size:12px;color:var(--dim,#646f79);
  border-top:1px solid var(--line,rgba(255,255,255,.07));background:var(--panel2,#161922)}
html.sb-light .sb-ls-panel{background:#fff;border-color:rgba(15,23,42,.14)}
html.sb-light .sb-ls-item:hover,html.sb-light .sb-ls-item.act{background:#f4f6f9}
html.sb-light .sb-ls-name{color:#0f172a}
html.sb-light .sb-ls-go{background:#f4f6f9}
@media (prefers-reduced-motion:reduce){.sb-ls-panel{transition:none}}

/* Phones: touch-sized rows, the list kept clear of the on-screen keyboard, and
   no keyboard hint on a device that has no Enter key to press. */
@media(max-width:620px){
  .sb-ls-panel{max-height:min(58vh,420px);overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  /* The field shares its row with the sort menu; the list uses the full width. */
  .sb-shop-controls .sb-ls-panel{right:auto;width:calc(100vw - 32px)}
  .sb-ls-item{padding:12px 14px;gap:13px}
  .sb-ls-thumb{width:44px;height:44px}
  .sb-ls-name{font-size:15px}
  .sb-ls-cat{font-size:12px}
  .sb-ls-price{font-size:13.5px}
  .sb-ls-go{display:none}
}
