/* The search box on getelsewear.com and its guides (10 Nov 2026), with search.js. A pill that looks like the app's
   own search box; tapping it opens a search layer on the page (full screen on a phone, so the keyboard never covers
   the matches; a panel on a laptop) that lists real items as they type. Tapping an item opens it in the app.
   Without JavaScript the pill is a plain link to the app. Colours and shadows are the page's own tokens
   (guide.css, the landing page), text sizes keep to 13/15/17. */
.gs-pill{display:flex;align-items:center;gap:10px;width:100%;max-width:440px;min-height:56px;margin:0;padding:6px 6px 6px 20px;
  border:0;border-radius:999px;background:var(--surface);box-shadow:var(--lift);color:var(--muted);font:inherit;font-size:17px;
  line-height:1.3;text-align:left;text-decoration:none;cursor:text;-webkit-tap-highlight-color:transparent;transition:transform .15s ease-out}
.gs-pill:active{transform:scale(.98)}
@media (hover:hover){ .gs-pill:hover{transform:translateY(-1px)} .gs-pill:hover:active{transform:scale(.98)} }
.gs-pill .gs-hint{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gs-pill .gs-go{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--hero);color:var(--on-hero)}
.gs-pill.gs-short .gs-eg{display:none}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .gs-pill .gs-go{background:var(--ink);color:var(--bg)}}
:root[data-theme="dark"] .gs-pill .gs-go{background:var(--ink);color:var(--bg)}

/* In a guide's box under the answer: the question, then the pill across the box */
.head .try .gs-pill{flex:1 1 260px;max-width:440px;background:var(--bg);box-shadow:inset 0 0 0 1px var(--line)}
/* Another link to the app that opens the layer (a guide's closing "Search Zara"): as a button it keeps its look */
.btn.gs-btn{border:0;font-family:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}

/* The layer */
html.gs-open{overflow:hidden}
.gs-layer{position:fixed;inset:0;z-index:100;font-family:var(--body,var(--sys));font-size:17px;line-height:1.4;letter-spacing:0;text-align:left;color:var(--ink)}
.gs-layer[hidden]{display:none}
.gs-scrim{position:absolute;inset:0;background:rgba(0,0,0,.4)}
.gs-panel{position:absolute;left:0;right:0;top:var(--gs-top,0px);height:var(--gs-h,100dvh);display:flex;flex-direction:column;background:var(--bg);
  padding-top:env(safe-area-inset-top);animation:gs-in .2s ease-out}
@keyframes gs-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.gs-form{flex:none;display:flex;align-items:center;gap:4px;margin:0;padding:10px 6px 10px 16px}
.gs-field{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:10px;min-height:48px;padding:0 16px;border-radius:999px;background:var(--surface);box-shadow:var(--lift);color:var(--muted)}
.gs-field:focus-within{box-shadow:var(--lift),0 0 0 1.5px var(--good)}
.gs-field svg{flex:none}
.gs-in{flex:1 1 auto;min-width:0;height:48px;border:0;outline:0;background:none;color:var(--ink);font:inherit;font-size:17px;padding:0;-webkit-appearance:none;appearance:none}
.gs-in::placeholder{color:var(--muted);opacity:1}
.gs-in::-webkit-search-cancel-button,.gs-in::-webkit-search-decoration{-webkit-appearance:none;appearance:none}
.gs-x{flex:none;min-height:44px;min-width:44px;padding:0 12px;border:0;background:none;color:var(--ink);font:inherit;font-size:17px;font-weight:500;cursor:pointer;border-radius:999px;transition:opacity .15s}
.gs-x:active{opacity:.6}
.gs-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.gs-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:4px 16px calc(20px + env(safe-area-inset-bottom))}
.gs-body[aria-busy="true"] .gs-list{opacity:.55}
.gs-label{margin:10px 4px 8px;font-size:13px;font-weight:500;color:var(--muted)}
.gs-note{margin:12px 4px;font-size:15px;color:var(--muted)}
.gs-list{display:flex;flex-direction:column;margin:0;padding:0;list-style:none;background:var(--surface);box-shadow:var(--lift);border-radius:16px;overflow:hidden;transition:opacity .15s}
.gs-row{display:flex;align-items:center;gap:12px;min-height:72px;padding:8px 12px 8px 8px;color:var(--ink);text-decoration:none;-webkit-tap-highlight-color:transparent;transition:background-color .15s,transform .15s ease-out}
.gs-list li + li .gs-row{box-shadow:inset 0 1px 0 var(--line)}
.gs-row:focus-visible{background:var(--sunk);outline:2.5px solid var(--good);outline-offset:-3px}
.gs-list li:first-child .gs-row{border-radius:16px 16px 0 0}
.gs-list li:last-child .gs-row{border-radius:0 0 16px 16px}
.gs-list li:only-child .gs-row{border-radius:16px}
@media (hover:hover){ .gs-row:hover{background:var(--sunk)} }
.gs-row:active{background:var(--sunk);transform:scale(.985)}
.gs-ph{flex:none;width:44px;height:56px;border-radius:10px;background:var(--sunk);overflow:hidden}
.gs-ph:empty{background:none}   /* no photo: no grey box, but the column stays so the names line up */
.gs-ph img{display:block;width:100%;height:100%;object-fit:cover}
/* A product shot (square or wider) whole on white, as in the app; search.js adds the class once it has loaded */
.gs-ph img.gs-wide{object-fit:contain;background:#fff;padding:4px;box-sizing:border-box}
.gs-tx{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:1px}
.gs-br{font-size:13px;color:var(--muted)}
.gs-nm{font-size:15px;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.gs-mt{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.gs-code{font-family:var(--mono)}
.gs-chev{flex:none;color:var(--muted)}
.gs-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 4px}
.gs-chip{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 16px;border:0;border-radius:999px;background:var(--surface);box-shadow:var(--lift);color:var(--ink);font:inherit;font-size:15px;font-weight:500;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .15s ease-out}
.gs-chip svg{color:var(--muted)}
.gs-chip:active{transform:scale(.97)}
.gs-note + .gs-more{margin-top:-8px}
.gs-more{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin:0 4px;font-size:15px;font-weight:600;color:var(--ink);text-decoration:none}
.gs-more:hover{text-decoration:underline;text-underline-offset:4px}
.gs-more:active{opacity:.6}
.gs-more[hidden]{display:none}
@media (min-width:700px){
  .gs-panel{left:50%;right:auto;top:8vh;width:560px;margin-left:-280px;height:auto;max-height:86vh;border-radius:26px;padding-top:0;box-shadow:var(--lift),0 24px 60px -12px rgba(0,0,0,.35)}
  .gs-form{padding:14px 8px 8px 16px}
  .gs-body{padding:4px 16px 18px}
}
@media (prefers-reduced-motion: reduce){
  .gs-panel{animation:gs-fade .15s ease-out}
  .gs-pill,.gs-row,.gs-chip{transition:none}
  .gs-pill:hover,.gs-pill:active,.gs-pill:hover:active,.gs-row:active,.gs-chip:active{transform:none}
  .gs-pill:active,.gs-row:active,.gs-chip:active{opacity:.7}
}
@keyframes gs-fade{from{opacity:0}to{opacity:1}}
/* Dark mode: on a laptop the page behind the panel is darker and the panel has a hairline edge (they were the same
   near-black, only a faint ring between them), and the pill on the page gets a hairline so the page's one main action doesn't sink into it. */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .gs-pill{box-shadow:var(--lift),inset 0 0 0 1px var(--line)}
  @media (min-width:700px){ :root:not([data-theme="light"]) .gs-panel{box-shadow:0 0 0 1px var(--line),0 24px 60px -12px rgba(0,0,0,.6)} :root:not([data-theme="light"]) .gs-scrim{background:rgba(0,0,0,.6)} }
}
:root[data-theme="dark"] .gs-pill{box-shadow:var(--lift),inset 0 0 0 1px var(--line)}
@media (min-width:700px){ :root[data-theme="dark"] .gs-panel{box-shadow:0 0 0 1px var(--line),0 24px 60px -12px rgba(0,0,0,.6)} :root[data-theme="dark"] .gs-scrim{background:rgba(0,0,0,.6)} }
