/* SLYME product search */
.slrs-entry { box-sizing:border-box; width:min(100%, 900px); margin:0 auto; padding:12px clamp(12px,3vw,32px); }
.slrs-entry button.slrs-launch { box-sizing:border-box; display:flex; align-items:center; justify-content:flex-start; gap:12px; width:100%; min-height:48px; padding:10px 18px; margin:0; border:1px solid #cddbe5; border-radius:24px; background:#fff; color:#415669; box-shadow:0 2px 8px rgb(20 54 78 / 5%); font-family:inherit; font-size:16px; line-height:1.35; font-weight:500; text-align:left; text-transform:none; letter-spacing:normal; cursor:pointer; }
.slrs-launch svg { width:21px; height:21px; flex:none; color:#0078ae; }
.slrs-entry button.slrs-launch:is(:hover,:focus-visible) { border-color:#0078ae; color:#162d43; }
#slyme-recherche-dialog { --slrs-ink:#142535; --slrs-blue:#006ca4; --slrs-muted:#4f6070; --slrs-gap:clamp(12px,4vh,40px); box-sizing:border-box; position:fixed; inset:auto 0; top:calc(var(--slrs-viewport-top,0px) + var(--slrs-gap)); width:min(660px,calc(100% - 32px)); max-width:none; max-height:calc(100vh - 2 * var(--slrs-gap)); max-height:calc(var(--slrs-viewport-height,100dvh) - 2 * var(--slrs-gap)); margin:0 auto; padding:0; overflow:auto; overscroll-behavior:contain; border:1px solid #dbe3e9; border-radius:22px; background:white; color:var(--slrs-ink); box-shadow:0 18px 65px rgb(13 35 52 / 24%); font:400 16px/1.45 Inter,system-ui,sans-serif; text-align:left; color-scheme:light; }
#slyme-recherche-dialog:not([open]), #slyme-recherche-dialog [hidden] { display:none !important; }
#slyme-recherche-dialog::backdrop { background:rgb(17 35 52 / 44%); }
#slyme-recherche-dialog * { box-sizing:border-box; }
#slyme-recherche-dialog .slrs-panel { display:flex; flex-direction:column; max-height:inherit; padding:clamp(14px,3vw,24px); }
#slyme-recherche-dialog .slrs-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 12px; }
#slyme-recherche-dialog #slyme-recherche-title { margin:0; padding:0; font-family:inherit; font-weight:700; font-size:clamp(18px,2.5vw,23px); line-height:1.25; letter-spacing:-.025em; color:var(--slrs-ink); }
#slyme-recherche-dialog button { margin:0; font-family:inherit; text-transform:none; letter-spacing:normal; cursor:pointer; box-shadow:none; }
#slyme-recherche-dialog .slrs-close { display:grid; flex:none; place-items:center; width:44px; height:44px; padding:0; border:1px solid #dbe3e9; border-radius:50%; background:white; color:#34465a; font-size:26px; line-height:1; font-weight:400; }
#slyme-recherche-dialog .slrs-form { display:flex; flex-direction:column; min-height:0; margin:0; padding:0; }
#slyme-recherche-dialog .slrs-field { flex:none; display:flex; align-items:center; gap:8px; padding:4px; border:1px solid #a9bdcb; border-radius:15px; background:#fff; }
#slyme-recherche-dialog .slrs-field:focus-within { border-color:var(--slrs-blue); box-shadow:0 0 0 2px #d3edf9; }
#slyme-recherche-dialog .slrs-search-icon { flex:none; width:20px; height:20px; margin-left:9px; color:var(--slrs-blue); }
#slyme-recherche-dialog #slrs-query { flex:1 1 auto; width:0; min-width:0; height:44px; margin:0; padding:5px 1px; border:0; border-radius:0; outline:none; box-shadow:none; color:var(--slrs-ink); background:transparent; font:400 16px/1.35 Inter,system-ui,sans-serif; }
#slyme-recherche-dialog #slrs-query::placeholder { color:var(--slrs-muted); opacity:1; }
#slyme-recherche-dialog .slrs-field button { flex:none; display:flex; align-items:center; justify-content:center; gap:7px; min-width:44px; height:44px; padding:0 16px; border:0; border-radius:11px; background:var(--slrs-blue); color:white; font-size:14px; font-weight:650; }
#slyme-recherche-dialog .slrs-submit-icon { width:18px; height:18px; }
#slyme-recherche-dialog .slrs-status { flex:none; color:var(--slrs-muted); font:500 13px/1.4 Inter,system-ui,sans-serif; margin:12px 2px 8px; }
#slyme-recherche-dialog .slrs-results { min-height:0; max-height:min(480px,55vh); margin:0; padding:0 2px; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; list-style:none; }
#slyme-recherche-dialog .slrs-result { display:block; margin:0; padding:0; list-style:none; }
#slyme-recherche-dialog .slrs-result + .slrs-result { border-top:1px solid #e8eef2; }
#slyme-recherche-dialog a.slrs-product { display:flex; align-items:center; gap:13px; min-height:66px; padding:6px 8px; border-radius:9px; color:var(--slrs-ink); background:white; text-decoration:none; box-shadow:none; }
#slyme-recherche-dialog .slrs-result[aria-selected=true] .slrs-product { background:#eaf5fa; outline:2px solid var(--slrs-blue); outline-offset:-2px; }
#slyme-recherche-dialog .slrs-photo { flex:0 0 52px; width:52px; height:52px; display:grid; place-items:center; padding:2px; overflow:hidden; border:1px solid #e6ebef; border-radius:8px; background:#fff; }
#slyme-recherche-dialog .slrs-photo img { display:block; width:100%; height:100%; max-width:100%; margin:0; object-fit:contain; }
#slyme-recherche-dialog .slrs-details { flex:1 1 auto; min-width:0; }
#slyme-recherche-dialog .slrs-name { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; overflow-wrap:anywhere; color:var(--slrs-ink); font:600 14px/1.35 Inter,system-ui,sans-serif; }
#slyme-recherche-dialog .slrs-meta { display:flex; flex-wrap:wrap; align-items:baseline; column-gap:10px; margin-top:3px; }
#slyme-recherche-dialog .slrs-price { color:#005e8d; font-size:15px; font-weight:750; }
#slyme-recherche-dialog .slrs-stock { color:var(--slrs-muted); font-size:12px; }
#slyme-recherche-dialog .slrs-all { flex:none; display:flex; align-items:center; justify-content:center; min-height:44px; margin-top:8px; padding:6px 10px; border:1px solid #c8e2ef; border-radius:10px; background:#f3f9fc; color:#005985; font-weight:650; font-size:14px; text-decoration:none; }
#slyme-recherche-dialog :is(button,a):focus-visible, .slrs-launch:focus-visible { outline:3px solid #0076b3; outline-offset:2px; }
#slyme-recherche-dialog .slrs-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media (hover:hover) { #slyme-recherche-dialog .slrs-product:hover, #slyme-recherche-dialog .slrs-close:hover { background:#edf6fa; } }
@media (max-width:600px) { .slrs-entry { padding:8px 12px; } .slrs-entry button.slrs-launch { font-size:15px; } #slyme-recherche-dialog { --slrs-gap:max(6px,env(safe-area-inset-top)); width:calc(100% - 12px); border-radius:16px; } #slyme-recherche-dialog .slrs-panel { padding:10px; } #slyme-recherche-dialog .slrs-heading { margin-bottom:6px; } #slyme-recherche-dialog .slrs-field button { padding:0 12px; } #slyme-recherche-dialog .slrs-submit-label { display:none; } #slyme-recherche-dialog .slrs-product { gap:10px; } #slyme-recherche-dialog .slrs-results { max-height:65vh; } }
@media (max-height:340px) { #slyme-recherche-dialog .slrs-panel { display:block; } #slyme-recherche-dialog .slrs-results { max-height:38vh; } }

/* Reserve two suggestion rows while the catalogue responds. */
#slyme-recherche-dialog .slrs-skeleton { display:none; }
#slyme-recherche-dialog .slrs-form[aria-busy="true"] .slrs-skeleton {
  display:block;
  max-height:25vh;
  overflow:hidden;
}
#slyme-recherche-dialog .slrs-skeleton::before,
#slyme-recherche-dialog .slrs-skeleton::after {
  content:"";
  display:block;
  height:66px;
  margin:0 8px;
  background:linear-gradient(#eaf0f3 0 0) left center / 52px 52px no-repeat,
    linear-gradient(#eaf0f3 0 0) 65px 18px / min(55%, 260px) 12px no-repeat,
    linear-gradient(#eef3f5 0 0) 65px 39px / min(30%, 110px) 10px no-repeat;
}
