/* [PPS-LIVE-SEARCH] the header's search icon and its search panel; the shop page's live search bar.
   Only active when live-search.js runs (html.pls-on); without it the header keeps the old search form. */

/* the header: the desktop search box becomes the same search icon phones have */
html.pls-on body.hv2 .hv2-tools .hv2-search-desktop { display: none !important; }
html.pls-on body.hv2 .hv2-tools .hv2-search-toggle { display: inline-flex !important; }
html.pls-on body.hv2 .hv2-search-mobile { display: none !important; }
html.pls-lock, html.pls-lock body { overflow: hidden; }

/* the panel */
.pls { position: fixed; inset: 0; z-index: 2147482000; display: flex; justify-content: center; align-items: flex-start; padding: 9vh 16px 16px;
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif); }
.pls[hidden] { display: none; }
.pls *, .pls *::before, .pls *::after { box-sizing: border-box; }
.pls .pls-back { position: absolute; inset: 0; background: rgba(10, 10, 11, .46); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .18s ease; }
.pls .pls-panel { position: relative; width: min(100%, 640px); max-height: min(78vh, 720px); display: flex; flex-direction: column; overflow: hidden;
  background: #FFFFFF; color: #0A0A0B; border-radius: 16px; box-shadow: 0 30px 80px -24px rgba(10, 10, 11, .5);
  opacity: 0; transform: translateY(-8px) scale(.985); transition: opacity .18s ease, transform .18s ease; }
.pls.is-open .pls-back { opacity: 1; }
.pls.is-open .pls-panel { opacity: 1; transform: none; }
.pls .pls-panel.is-sizing { transition: opacity .18s ease, transform .18s ease, height .18s ease; }   /* a new height comes smoothly, no jump */
.pls .pls-panel.is-sizing .pls-body { overflow-y: hidden; }   /* no scroll bar flashing meanwhile */

.pls .pls-bar { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0 14px 0 18px; min-height: 62px; border-bottom: 1px solid #E4E4E7; color: #55565C; }
.pls .pls-bar svg { flex: none; }
.pls .pls-in { flex: 1; min-width: 0; height: 60px; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important;
  font-family: inherit; font-size: 18px; font-weight: 400; line-height: 1.2; color: #0A0A0B; padding: 0 !important; -webkit-appearance: none; appearance: none; }
.pls .pls-in::placeholder { color: #8A8B91; }
.pls .pls-in::-webkit-search-cancel-button { -webkit-appearance: none; }
.pls .pls-x { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 44px; padding: 0 8px; border: 0;
  background: none; cursor: pointer; color: #55565C; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; }
.pls .pls-x-k { border: 1px solid #D4D4D8; border-radius: 6px; padding: 5px 7px; font: 600 11px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; }
.pls .pls-x-t { display: none; }
.pls .pls-x:focus-visible, .pls .pls-row:focus-visible, .pls .pls-all:focus-visible { outline: 3px solid #0066D6; outline-offset: 2px; }

.pls .pls-body { overflow-y: auto; overscroll-behavior: contain; padding: 14px 0 10px; -webkit-overflow-scrolling: touch; }
.pls .pls-h { margin: 4px 22px 8px; font: 600 11px/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; color: #8A8B91; }
.pls .pls-h[hidden] { display: none; }
.pls .pls-list { list-style: none; margin: 0; padding: 0; }
.pls .pls-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 9px 22px; min-height: 66px;
  color: #0A0A0B !important; text-decoration: none !important; }
.pls .pls-list li.is-active .pls-row, .pls .pls-row:hover { background: #F4F4F5; }
.pls .pls-row img, .pls .pls-noimg { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: #0A0A0B; display: block; }
.pls .pls-t { min-width: 0; display: block; }
.pls .pls-t b { display: block; font-size: 16px; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pls .pls-t small { display: block; margin-top: 3px; font: 500 12.5px/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #55565C; }
.pls .pls-row.is-out .pls-t b { color: #55565C; }
.pls .pls-go { color: #8A8B91; font-size: 18px; transition: transform .15s; }
.pls .pls-list li.is-active .pls-go, .pls .pls-row:hover .pls-go { color: #0A0A0B; transform: translateX(3px); }
.pls .pls-status { margin: 10px 22px 0; font-size: 14px; line-height: 1.5; color: #55565C; }
.pls .pls-status:empty { display: none; }
.pls .pls-all { display: flex; align-items: center; min-height: 48px; margin: 6px 22px 4px; font-weight: 700; font-size: 15px; color: #0A0A0B !important;
  text-decoration: underline; text-underline-offset: 4px; }
.pls.is-busy .pls-bar svg { animation: pls-pulse .8s ease-in-out .3s infinite alternate; }   /* only a slow answer pulses: no blink per letter */
@keyframes pls-pulse { to { opacity: .35; } }

/* phones: the panel fills the screen, "Cancel" instead of the Esc key */
@media (max-width: 640px) {
  .pls { padding: 0; }
  .pls .pls-back { -webkit-backdrop-filter: none; backdrop-filter: none; }   /* covered by the panel: no blur layer for the phone to redraw */
  .pls .pls-panel { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .pls .pls-bar { padding: 0 6px 0 16px; min-height: 60px; padding-top: env(safe-area-inset-top); }
  .pls .pls-in { font-size: 17px; }
  .pls .pls-x-k { display: none; }
  .pls .pls-x-t { display: inline; }
  .pls .pls-row { padding: 9px 16px; }
  .pls .pls-h, .pls .pls-status, .pls .pls-all { margin-left: 16px; margin-right: 16px; }
}
@media (hover: none) { .pls .pls-x-k { display: none; } .pls .pls-x-t { display: inline; } }
@media (prefers-reduced-motion: reduce) { .pls .pls-back, .pls .pls-panel { transition: none; } .pls.is-busy .pls-bar svg { animation: none; } }

/* the shop page: no Search button (results come as you type); each product once while searching */
.pls-shop .products-search-btn { display: none !important; }
.product-card.pls-dup { display: none !important; }

/* the site's own field styles (borders, focus outlines) stay off the panel's search field; the bar shows the focus */
html body .pls input.pls-in, html body .pls input.pls-in:focus, html body .pls input.pls-in:focus-visible {
  border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; min-height: 0; height: 60px; border-radius: 0; }
html body .pls .pls-bar:focus-within { box-shadow: inset 0 -2px 0 #0A0A0B; }
html body .pls p, html body .pls ul { max-width: none; }
