.km-search{position:fixed;inset:clamp(20px,8vh,100px) 0 auto;margin:0 auto;width:min(720px,calc(100% - 28px));max-height:84dvh;padding:0;overflow:auto;border:1px solid var(--line);border-radius:24px;background:var(--surface,Canvas);color:var(--ink,CanvasText);box-shadow:0 24px 70px #0003}
.km-search::backdrop{background:#0006;backdrop-filter:blur(4px)}
.km-search-route { width: min(720px, calc(100% - 32px)); margin: 32px auto 85px; }
.km-search-route h1 { margin: 0 0 18px; font-size: clamp(22px, 5vw, 30px); font-weight: 650; }
.km-search.km-search-inline { position: static; width: 100%; max-height: none; box-shadow: none; }
.km-search.km-search-inline [role=listbox] { max-height: none; }
.km-search-inline .km-search-field > button[hidden] { display: none; }
.km-search-inline footer { display: none; }
.km-search {
  --search-surface: #fff;
  --search-line: #e4e5e7;
  --search-ink: #171c25;
  --search-muted: #636973;
  --search-hover: #f0f1f3;
  background: var(--search-surface);
  color: var(--search-ink);
  border-color: var(--search-line);
}
:root[data-theme="dark"] .km-search {
  --search-surface: #202328;
  --search-line: #41454d;
  --search-ink: #f0f1f3;
  --search-muted: #b5bac2;
  --search-hover: #30343c;
}
.km-search-field,.km-search-groups{display:flex;align-items:center;gap:8px;padding:14px 18px;border-bottom:1px solid var(--line)}
.km-search-field input{flex:1;min-width:0;color:inherit;background:none;border:0;padding:6px;font:inherit}
.km-search .km-search-field input:focus { outline: none; box-shadow: none; }
.km-search-field input::-webkit-search-cancel-button { display: none; }
.km-search-field:focus-within { border-bottom-color: var(--ink-faint, var(--muted, #62666c)); }
.km-search-groups{flex-wrap:wrap}
.km-search button{border:1px solid var(--line);border-radius:999px;padding:5px 10px;background:transparent;color:inherit;cursor:pointer}
.km-search button:focus-visible { outline: 2px solid #4583dd; outline-offset: 1px; }
.km-search button[aria-pressed=true],.km-search [aria-selected=true]{background:var(--bg);font-weight:650}
.km-search [role=listbox]{max-height:42vh;overflow:auto}
.km-search [role=option]{padding:10px 24px;cursor:pointer}
.km-search footer,.km-search [role=status]:not(:empty){padding:12px 18px;font-size:13px}
.km-search footer{border-top:1px solid var(--line)}
.km-search .km-search-field > svg { display: block; flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.km-search .km-search-field > button { display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; }
.km-search .km-search-field > button svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.km-search-results-label { padding: 10px 18px 2px; color: var(--ink-faint); font-size: 12px; }
.km-search [role=option] { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 2px 10px; }
.km-search-result-icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 34px; height: 34px; overflow: hidden; border-radius: 9px; background: var(--hover,#e9e9e6); }
.km-search-result-icon img { width: 100%; height: 100%; object-fit: cover; }
.km-search-result-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.km-search-social-icon::before { content: ''; width: 19px; height: 19px; background: white; mask: var(--km-search-icon) center / contain no-repeat; }
.km-search-result-name { grid-column: 2; grid-row: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.km-search [role=option] > small { grid-column: 2; grid-row: 2; color: var(--ink-faint); font-size: 12px; }
.km-search-result-arrow { grid-column: 3; grid-row: 1 / span 2; align-self: center; color: var(--ink-faint); }
.km-search :is(.km-search-field,.km-search-groups,footer,button) { border-color: var(--search-line); }
.km-search .km-search-groups button[aria-pressed="true"] { background: var(--search-ink); color: var(--search-surface); border-color: var(--search-ink); }
.km-search [role=option][aria-selected="true"] { background: var(--search-hover); }
.km-search :is(.km-search-result-arrow,.km-search-results-label,[role=option] > small) { color: var(--search-muted); }
.km-search [role=option] { grid-template-columns: 34px minmax(0,1fr) auto 14px; }
.km-search [role=option] > :is(span,small) { grid-row: 1; }
.km-search [role=option] > small { grid-column: 3; max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.km-search .km-search-result-arrow { grid-column: 4; }
@media (max-width: 640px) {
  .km-search { inset: max(8px,env(safe-area-inset-top)) 0 auto; width: calc(100% - 16px); max-height: min(86dvh,100dvh); border-radius: 20px; }
  .km-search-field { padding: 10px 14px; }
  .km-search-field input { font-size: 16px; }
  .km-search-groups { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .km-search-groups button { flex: none; }
  .km-search footer { display: none; }
}
header .km-currency-menu .km-currency-button{display:flex;justify-content:center;align-items:center;gap:6px;padding-inline:8px;background-image:none}
header .km-currency-button::after{content:"";border:4px solid transparent;border-top-color:currentColor;transform:translateY(2px)}
header .km-language-menu>summary,.purchase-page header .km-language-menu>summary{border:0;background:transparent;box-shadow:none;padding:0}
.km-store-theme{display:grid;place-items:center;flex:none;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ink);cursor:pointer}
.km-store-theme:hover{background:var(--bg)}
body.partner-page > header a:has(.lucide-user){color:var(--surface)}
body.partner-page > header a:has(.lucide-user) .lucide-user{stroke:currentColor}
