/* NCX Search 3.0 - live results in the search panel (loaded only while the Live results group is on).
   Rules (lesson 2.2.4): every :hover inside @media (hover: hover); no :has(); nothing after a :hover compound;
   nothing on <html> or <body>. */

.ncxs-search-history-dropdown {
    background: var(--ncxs-l-bg, #fff);
    color: var(--ncxs-l-text, inherit);
}

/* loading: a thin bar at the top of the panel (no layout shift) */
.ncxs-search-history-dropdown.ncxs-loading::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 2px;
    width: 40%;
    background: var(--ncxs-l-loader, #2271b1);
    animation: ncxs-bar 0.9s ease-in-out infinite;
    z-index: 1;
}
@keyframes ncxs-bar { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@keyframes ncxs-spin { to { transform: rotate(360deg); } }

.ncxs-live-list { display: block; padding: 0 0 6px; }

.ncxs-live-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    min-height: var(--ncxs-l-tap, 44px);
    color: inherit;
    text-decoration: none;
    box-sizing: border-box;
}
.ncxs-live-item.ncxs-active { background: var(--ncxs-l-hover, #f3f4f6); }
@media (hover: hover) {
    .ncxs-live-item:hover { background: var(--ncxs-l-hover, #f3f4f6); }
}

.ncxs-live-img {
    flex: 0 0 var(--ncxs-l-img, 56px);
    width: var(--ncxs-l-img, 56px);
    height: var(--ncxs-l-img, 56px);
    border-radius: var(--ncxs-l-imgr, 6px);
    overflow: hidden;
    background: #f6f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ncxs-live-img img { width: 100%; height: 100%; object-fit: contain; display: block; }

.ncxs-live-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ncxs-live-title {
    font-size: var(--ncxs-l-title-fs, 14px);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ncxs-live-title mark, .ncxs-live-sku mark { background: none; color: inherit; font-weight: 700; padding: 0; }
.ncxs-live-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: var(--ncxs-l-meta-fs, 12px); color: var(--ncxs-l-muted, #6b7280); }
.ncxs-live-stock.ncxs-stock-instock { color: var(--ncxs-l-in, #15803d); }
.ncxs-live-stock.ncxs-stock-onbackorder { color: var(--ncxs-l-back, #b45309); }
.ncxs-live-stock.ncxs-stock-outofstock { color: var(--ncxs-l-out, #b91c1c); }
/* beta.10: "Stock label style: Pill". The tint is the label colour at 14% (a plain light tint where color-mix is missing). */
.ncxs-live-stock.ncxs-stock-pill { display: inline-flex; align-items: center; max-width: 100%; padding: 1px 8px; border-radius: 99px; font-weight: 600; line-height: 1.5; background: rgba(127, 127, 127, 0.12); background: color-mix(in srgb, currentColor 14%, transparent); }
.ncxs-live-stock.ncxs-stock-pill > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ncxs-details .ncxs-live-stock.ncxs-stock-pill { align-self: flex-start; }
.ncxs-live-short { font-size: var(--ncxs-l-meta-fs, 12px); color: var(--ncxs-l-muted, #6b7280); line-height: 1.35; }

.ncxs-live-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.ncxs-live-price { font-size: var(--ncxs-l-price-fs, 14px); font-weight: 600; color: var(--ncxs-l-price, inherit); white-space: nowrap; }
.ncxs-live-price del { font-weight: 400; color: var(--ncxs-l-muted, #6b7280); font-size: 0.85em; display: block; }
.ncxs-live-price ins { text-decoration: none; color: var(--ncxs-l-sale-price, var(--ncxs-l-price, inherit)); }
.ncxs-live-sale { font-size: 11px; font-weight: 600; color: #fff; background: var(--ncxs-l-sale, #dc2626); border-radius: 99px; padding: 1px 7px; white-space: nowrap; }

/* 3.0.0: keyboard hint, while a row is picked with the arrow keys (computers). Kept at the bottom of the scrolling
   panel; the text comes from data-hint and is hidden from screen readers (they already hear the options). */
.ncxs-search-history-dropdown.ncxs-kbd[data-hint] { scroll-padding-bottom: 32px; } /* the picked row stays above the hint */
.ncxs-search-history-dropdown.ncxs-kbd[data-hint]::after {
    content: attr(data-hint);
    content: attr(data-hint) / "";
    display: block;
    position: sticky;
    bottom: 0;
    padding: 6px 16px;
    font-size: 11px;
    line-height: 1.4;
    color: var(--ncxs-l-muted, #6b7280);
    background: var(--ncxs-l-bg, #fff);
    border-top: 1px solid var(--ncxs-l-border, #e5e7eb);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 1;
}

.ncxs-live-empty { padding: 16px; color: var(--ncxs-l-muted, #6b7280); font-size: var(--ncxs-l-title-fs, 14px); }
.ncxs-live-wait { padding: 14px 16px; color: var(--ncxs-l-muted, #6b7280); font-size: var(--ncxs-l-title-fs, 14px); }

/* empty panel on computers: recent searches beside a numbered popular list */
.ncxs-empty-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.ncxs-empty-cols .ncxs-col + .ncxs-col { border-left: 1px solid var(--ncxs-l-border, #e5e7eb); }
.ncxs-popular-list { list-style: none; margin: 0; padding: 0 0 8px; counter-reset: none; }
.ncxs-chip.ncxs-pop-row {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 0;
    background: none;
    padding: 7px 16px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}
.ncxs-pop-n { color: var(--ncxs-l-muted, #6b7280); width: 16px; text-align: right; font-variant-numeric: tabular-nums; }

/* the page behind the open panel (computers and phones), sits just under the header */
.ncxs-search-dim {
    position: fixed;
    inset: 0;
    background: #000;
    display: none;
}

/* phones: products scroll with the panel; keep rows tappable */
@media (max-width: 999.98px) {
    .ncxs-live-item { padding: 8px 12px; gap: 10px; }
}

/* narrow phones: price under the title, so the title gets the full width (a price range took half the row) */
@media (max-width: 599.98px) {
    .ncxs-live-item {
        display: grid;
        grid-template-columns: var(--ncxs-l-img, 56px) minmax(0, 1fr);
        column-gap: 10px;
        row-gap: 3px;
        align-items: start;
    }
    .ncxs-live-img { grid-row: 1 / span 2; }
    .ncxs-live-side { flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; gap: 4px 8px; }
    .ncxs-live-price del { display: inline; margin-right: 4px; }
}

/* a page served from cache before Blocksy's live results were switched off: never show both lists */
.ct-search-form[data-ncx-live] .ct-search-results,
.ct-search-form[data-ncx-live] .ct-ajax-loader { display: none !important; }

/* many results: the panel scrolls by itself up to the set height (phones fit above the keyboard, set by the script) */
.ncxs-search-history-dropdown {
    max-height: var(--ncxs-l-maxh, 70vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: var(--ncxs-l-shadow, 0 12px 32px rgba(0, 0, 0, 0.12));
}

/* ------------------------------------------------------------------ M6: suggestions, rules, details panel */
.ncxs-cols { display: grid; grid-template-columns: minmax(200px, 30%) minmax(0, 1fr); align-items: start; }
.ncxs-cols.ncxs-has-details { grid-template-columns: minmax(190px, 24%) minmax(0, 1fr) var(--ncxs-l-det-w, 240px); }
.ncxs-cols.ncxs-has-details.ncxs-one-col { grid-template-columns: minmax(0, 1fr) var(--ncxs-l-det-w, 240px); }
.ncxs-col-left { border-right: 1px solid var(--ncxs-l-border, #e5e7eb); padding-bottom: 8px; min-width: 0; }
.ncxs-col-right { min-width: 0; }

.ncxs-sug { display: flex; align-items: center; gap: 10px; padding: 7px 16px; min-height: 36px; color: inherit; text-decoration: none; box-sizing: border-box; font-size: var(--ncxs-l-title-fs, 14px); }
.ncxs-sug.ncxs-active { background: var(--ncxs-l-hover, #f3f4f6); }
@media (hover: hover) {
    .ncxs-sug:hover { background: var(--ncxs-l-hover, #f3f4f6); }
}
.ncxs-sug mark { background: none; color: inherit; font-weight: 700; padding: 0; }
.ncxs-sug-img { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 4px; overflow: hidden; background: #f6f7f7; }
.ncxs-sug-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ncxs-sug-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ncxs-sug-count { flex: 0 0 auto; font-size: var(--ncxs-l-meta-fs, 12px); color: var(--ncxs-l-muted, #6b7280); }

.ncxs-view-all { justify-content: center; font-weight: 600; color: var(--ncxs-l-accent, #2271b1); border-top: 1px solid var(--ncxs-l-border, #e5e7eb); }

.ncxs-complete, .ncxs-dex { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 16px 6px; }
.ncxs-complete-label, .ncxs-dex-label { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ncxs-l-muted, #6b7280); margin-right: 2px; }
.ncxs-chip.ncxs-complete-chip { display: inline-flex; width: auto; margin: 0; }
.ncxs-chip.ncxs-complete-chip b { font-weight: 700; }
.ncxs-sug.ncxs-dex-chip { display: inline-flex; width: auto; min-height: 30px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--ncxs-l-border, #e5e7eb); background: var(--ncxs-l-chip-bg, #f3f4f6); color: var(--ncxs-l-chip-text, inherit); font-size: 13px; }
.ncxs-build-row { font-weight: 600; color: var(--ncxs-l-accent, #2271b1); }
.ncxs-build-icon { font-size: 16px; line-height: 1; }
.ncxs-contact { color: var(--ncxs-l-accent, #2271b1); font-weight: 600; }

/* recently viewed (empty panel) */
.ncxs-rv { border-top: 1px solid var(--ncxs-l-border, #e5e7eb); padding-bottom: 6px; }
.ncxs-rv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ncxs-rv-img { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 6px; overflow: hidden; background: #f6f7f7; }
.ncxs-rv-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ncxs-rv-body { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.ncxs-rv-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ncxs-rv-price { font-size: var(--ncxs-l-meta-fs, 12px); font-weight: 600; }

/* details panel (computers) */
.ncxs-details { border-left: 1px solid var(--ncxs-l-border, #e5e7eb); padding: 14px 16px; position: sticky; top: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ncxs-det-img { display: block; height: var(--ncxs-l-det-img, 110px); background: #f6f7f7; border-radius: 8px; overflow: hidden; }
.ncxs-det-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ncxs-det-title { font-weight: 600; color: inherit; text-decoration: none; line-height: 1.3; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncxs-det-price { font-weight: 700; font-size: 16px; }
.ncxs-det-price del { font-weight: 400; color: var(--ncxs-l-muted, #6b7280); font-size: 0.85em; margin-right: 4px; }
.ncxs-det-price ins { text-decoration: none; color: var(--ncxs-l-sale-price, var(--ncxs-l-price, inherit)); }
.ncxs-det-specs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.ncxs-det-specs li { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--ncxs-l-chip-bg, #f3f4f6); }
.ncxs-det-short { font-size: 12px; color: var(--ncxs-l-muted, #6b7280); margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.ncxs-det-buy { display: flex; flex-wrap: wrap; gap: 6px; }
/* beta.8: a panel wider than the search box (set by the script) keeps the box's rounded bottom corners */
.ncxs-search-history-dropdown[style*="min-width"] { border-radius: 0 0 12px 12px; }
/* WooCommerce adds its "View cart" link next to the button after adding: own line, full width (beta.8) */
.ncxs-search-history-dropdown .ncxs-det-buy .added_to_cart { flex: 1 0 100%; display: flex !important; align-items: center; justify-content: center; min-height: 36px; margin: 0 !important; padding: 0 12px !important; border: 1px solid var(--ncxs-l-accent, #2271b1) !important; border-radius: 6px !important; background: none !important; color: var(--ncxs-l-accent, #2271b1) !important; font-size: 13px; font-weight: 600; text-decoration: none; box-shadow: none !important; }
.ncxs-det-qty { width: 58px; min-height: 38px; border: 1px solid var(--ncxs-l-border, #e5e7eb); border-radius: 6px; padding: 4px 6px; font-size: 14px; }
.ncxs-det-add, .ncxs-det-options { flex: 1 1 auto; min-height: 38px; border: 0; border-radius: 6px; background: var(--ncxs-l-accent, #2271b1); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; text-align: center; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; }
.ncxs-note { padding: 8px 16px 2px; font-size: 13px; color: var(--ncxs-l-muted, #6b7280); }
.ncxs-note b { color: var(--ncxs-l-text, inherit); }
.ncxs-chip.ncxs-dym { display: inline-flex; width: auto; margin: 8px 16px 0; }
.ncxs-det-add.is-busy { opacity: 0.7; cursor: progress; }
.ncxs-det-build { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; border: 1px solid var(--ncxs-l-accent, #2271b1); border-radius: 6px; color: var(--ncxs-l-accent, #2271b1); font-weight: 600; font-size: 13px; text-decoration: none; padding: 0 12px; }

/* ------------------------------------------------------------------ M8: phone full-screen search */
.ncxs-fs-back, .ncxs-fs-mic { display: none; }
.ct-search-form.ncxs-fs { position: fixed !important; top: var(--ncxs-fs-off, 0px) !important; left: 0 !important; right: 0 !important; z-index: 100000 !important; margin: 0 !important; padding: 10px 12px !important; max-width: none !important; width: auto !important; box-sizing: border-box; transform: none !important; }
.ncxs-fs-host { transform: none !important; }
.ct-search-form.ncxs-fs .ct-search-form-inner { position: relative; }
.ct-search-form.ncxs-fs::before { content: ""; position: fixed; inset: var(--ncxs-fs-off, 0px) 0 0 0; background: var(--ncxs-l-bg, #fff); z-index: -1; }
.ct-search-form.ncxs-fs input[type="search"], .ct-search-form.ncxs-fs input[name="s"] { padding-left: 46px !important; color: var(--ncxs-l-text, #111) !important; background: var(--ncxs-l-chip-bg, #f3f4f6) !important; border-color: var(--ncxs-l-border, #e5e7eb) !important; font-size: 16px !important; }
.ct-search-form.ncxs-fs .ncxs-fs-back { display: flex; align-items: center; justify-content: center; position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; padding: 0; border: 0; background: none; color: var(--ncxs-l-text, #111); z-index: 3; cursor: pointer; }
.ct-search-form.ncxs-fs .ncxs-fs-mic { display: flex; align-items: center; justify-content: center; position: absolute; right: 64px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ncxs-l-muted, #6b7280); z-index: 3; }
.ct-search-form.ncxs-fs .ncxs-fs-mic.is-on { color: #fff; background: var(--ncxs-l-sale, #dc2626); }
.ct-search-form.ncxs-fs .ncxs-search-history-dropdown { position: fixed !important; top: var(--ncxs-fs-top, 64px) !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: auto !important; max-height: none !important; margin: 0 !important; border: 0 !important; border-top: 1px solid var(--ncxs-l-border, #e5e7eb) !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important; }

/* phones: details view inside the panel, opened with the (i) button on a product row */
.ncxs-row-wrap { position: relative; }
.ncxs-row-wrap .ncxs-live-item { padding-right: 48px; }
.ncxs-info { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--ncxs-l-border, #e5e7eb); background: var(--ncxs-l-bg, #fff); color: var(--ncxs-l-muted, #6b7280); font: italic 700 14px/1 Georgia, serif; padding: 0; }
.ncxs-det-backlist { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--ncxs-l-border, #e5e7eb); background: none; padding: 12px 16px; font-weight: 600; color: var(--ncxs-l-accent, #2271b1); font-size: 14px; }
.ncxs-details.ncxs-details-phone { border-left: 0; position: static; }
.ncxs-details.ncxs-details-phone .ncxs-det-img { height: 220px; }
.ncxs-menu-icon { vertical-align: middle; }
/* the details panel's quantity box and button keep their own look inside Blocksy's dark search pop-up */
.ncxs-search-history-dropdown input.ncxs-det-qty { color: var(--ncxs-l-text, #111) !important; background: var(--ncxs-l-bg, #fff) !important; border: 1px solid var(--ncxs-l-border, #d1d5db) !important; height: 40px !important; min-height: 40px; flex: 0 0 64px; width: 64px !important; padding: 4px 8px !important; font-size: 16px !important; box-shadow: none !important; }
.ncxs-det-add, .ncxs-det-options { white-space: nowrap; }

/* ------------------------------------------------------------------ beta.8: the Look colours reach the recent and
   popular parts too (they kept 2.9.4's fixed light colours: invisible text with the Dark preset). The defaults
   match the shop's light look. */
.ncxs-search-history-dropdown { border-color: var(--ncxs-l-border, rgba(0, 0, 0, 0.10)); }
.ncxs-search-history-dropdown .ncxs-section-label span,
.ncxs-search-history-dropdown .ncxs-item-meta,
.ncxs-search-history-dropdown .ncxs-item-remove,
.ncxs-search-history-dropdown .ncxs-section-label button { color: var(--ncxs-l-muted, #9ca3af); }
.ncxs-search-history-dropdown .ncxs-item-term { color: var(--ncxs-l-text, #111827); }
.ncxs-search-history-dropdown .ncxs-item-icon { background: var(--ncxs-l-chip-bg, #f3f4f6); }
.ncxs-search-history-dropdown .ncxs-item-icon svg { stroke: var(--ncxs-l-muted, #9ca3af); }
.ncxs-search-history-dropdown .ncxs-history-item.ncxs-active { background: var(--ncxs-l-hover, #f9fafb); }
.ncxs-search-history-dropdown .ncxs-divider { background: var(--ncxs-l-border, #f3f4f6); }
.ncxs-search-history-dropdown .ncxs-chip { color: var(--ncxs-l-chip-text, #4b5563); background: var(--ncxs-l-chip-bg, #f9fafb); border-color: var(--ncxs-l-border, #e5e7eb); }
.ncxs-search-history-dropdown .ncxs-chip.ncxs-active { color: var(--ncxs-l-text, #111827); background: var(--ncxs-l-hover, #ffffff); }
.ncxs-search-history-dropdown .ncxs-chip.ncxs-pop-row { color: var(--ncxs-l-text, #111827); background: none; }
.ncxs-search-history-dropdown .ncxs-chip.ncxs-pop-row.ncxs-active { background: var(--ncxs-l-hover, #f9fafb); }
@media (hover: hover) {
    .ncxs-search-history-dropdown .ncxs-history-item:hover { background: var(--ncxs-l-hover, #f9fafb); }
    .ncxs-search-history-dropdown .ncxs-section-label button:hover { background: var(--ncxs-l-hover, #f3f4f6); color: var(--ncxs-hover-color); }
    .ncxs-search-history-dropdown .ncxs-chip:hover { color: var(--ncxs-l-text, #111827); background: var(--ncxs-l-hover, #ffffff); }
}

/* ------------------------------------------------------------------ beta.10: Row style (Full = the rules above, unchanged) */
.ncxs-rows-compact { --ncxs-l-img: 40px; }
.ncxs-rows-compact .ncxs-live-item,
.ncxs-rows-minimal .ncxs-live-item { padding-top: 5px; padding-bottom: 5px; }
.ncxs-rows-compact .ncxs-live-title,
.ncxs-rows-minimal .ncxs-live-title { -webkit-line-clamp: 1; line-clamp: 1; }
.ncxs-rows-minimal .ncxs-live-item { display: flex; align-items: center; }
.ncxs-rows-minimal .ncxs-live-side { flex-direction: row; align-items: center; }

/* beta.10: Blocksy's own link hover colour (a:hover) turned a hovered row's name blue; the row keeps the panel's
   text colour and shows the hover background instead. */
@media (hover: hover) {
    .ncxs-search-history-dropdown a.ncxs-live-item:hover { color: inherit; }
}

/* ------------------------------------------------------------------ beta.11: line icons (Lucide shapes, text colour) */
.ncxs-search-history-dropdown .ncxs-ic { width: 1em; height: 1em; flex: none; vertical-align: -0.14em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-right: 0.4em; }
.ncxs-search-history-dropdown .ncxs-section-label .ncxs-ic { width: 12px; height: 12px; margin-right: 5px; }
.ncxs-search-history-dropdown .ncxs-live-stock .ncxs-ic { width: 0.95em; height: 0.95em; margin-right: 0.3em; stroke-width: 2.5; }
.ncxs-search-history-dropdown .ncxs-sug-icon { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: var(--ncxs-l-chip-bg, #f3f4f6); color: var(--ncxs-l-muted, #6b7280); }
.ncxs-search-history-dropdown .ncxs-sug-icon .ncxs-ic { margin: 0; width: 15px; height: 15px; }
.ncxs-search-history-dropdown .ncxs-complete-chip .ncxs-ic,
.ncxs-search-history-dropdown .ncxs-dex-chip .ncxs-ic { color: var(--ncxs-l-muted, #6b7280); }
.ncxs-search-history-dropdown .ncxs-view-all .ncxs-ic { margin: 0 0 0 0.35em; }
.ncxs-search-history-dropdown .ncxs-build-icon .ncxs-ic { margin: 0; }
.ncxs-search-history-dropdown .ncxs-det-add .ncxs-ic,
.ncxs-search-history-dropdown .ncxs-det-build .ncxs-ic { margin-right: 0.45em; }
.ncxs-search-history-dropdown .ncxs-live-empty .ncxs-ic { color: var(--ncxs-l-muted, #6b7280); }
.ncxs-search-history-dropdown .ncxs-pop-ic { display: inline-flex; align-items: center; color: var(--ncxs-l-muted, #6b7280); }
.ncxs-search-history-dropdown .ncxs-pop-ic svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* 3.0.8 (item 67): "more below" cue. A zero-height row stuck to the panel's bottom edge, holding a soft fade in the
   panel's own colour and a small round arrow; shown only while there is more to scroll (.ncxs-more-on, set by the script). */
.ncxs-search-history-dropdown .ncxs-more { position: sticky; bottom: 0; height: 0; z-index: 3; pointer-events: none; }
.ncxs-search-history-dropdown .ncxs-more::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48px; background: linear-gradient(to bottom, transparent, var(--ncxs-l-bg, #fff) 85%); opacity: 0; transition: opacity .2s ease; }
.ncxs-search-history-dropdown .ncxs-more-btn { position: absolute; left: 50%; bottom: 8px; width: 32px; height: 32px; margin: 0 0 0 -16px; padding: 0; border-radius: 50%; border: 1px solid var(--ncxs-l-border, #e5e7eb); background: var(--ncxs-l-bg, #fff); color: var(--ncxs-l-muted, #6b7280); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s ease; min-height: 0; line-height: 1; }
.ncxs-search-history-dropdown .ncxs-more-btn svg { display: block; }
.ncxs-search-history-dropdown.ncxs-more-on .ncxs-more::before,
.ncxs-search-history-dropdown.ncxs-more-on .ncxs-more-btn { opacity: 1; }
.ncxs-search-history-dropdown.ncxs-more-on .ncxs-more-btn { pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .ncxs-search-history-dropdown .ncxs-more::before, .ncxs-search-history-dropdown .ncxs-more-btn { transition: none; } }
/* review: no arrow over the computer keyboard hint (that mode has a scrollbar anyway) */
.ncxs-search-history-dropdown.ncxs-kbd[data-hint] .ncxs-more { display: none; }
