/* search.intent.css - dropdown + results for js/search.intent.js (search.lab.cfm) */

.si-wrap { position: relative; max-width: 760px; margin: 0 auto; }
.si-input {
    width: 100%; box-sizing: border-box; font: inherit; font-size: 18px; padding: 14px 48px 14px 18px;
    border: 2px solid #d9d9d9; border-radius: 10px; outline: none; background: #fff;
}
.si-input:focus { border-color: #222; }
.si-input.si-busy { background-image: linear-gradient(90deg, transparent, rgba(0,0,0,.06), transparent); background-size: 200% 100%; animation: si-shimmer 1s linear infinite; }
@keyframes si-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.si-wrap__icon { position: absolute; right: 16px; top: 16px; width: 22px; height: 22px; opacity: .55; pointer-events: none; }

.si-panel {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; background: #fff;
    border: 1px solid #ddd; border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.14); max-height: 72vh; overflow: auto; text-align: left;
}
.si-panel[hidden] { display: none; }
/* the header dropdown: hangs from #search (position:relative in style.css), wider than the
   box on desktop, edge to edge on phones, always above the menu bar (header z-index 1040) */
.si-panel--header { top: calc(100% + 4px); left: 50%; right: auto; transform: translateX(-50%); width: min(820px, 96vw);
                    max-height: calc(100vh - 230px); z-index: 1200; text-align: left; }
.si-panel--header .si-footer { position: sticky; bottom: 0; }
.si-plate__reg { white-space: nowrap; }
@media (max-width: 799px) {
    .si-panel--header { width: calc(100vw - 16px); max-width: 100vw; max-height: calc(100vh - 140px); border-radius: 12px; }
    .si-item__sub { white-space: normal; }
    .si-item__go { display: none; }                 /* the whole row is the link; the hint text is noise at phone width */
    .si-item--plate .si-item__sub { display: none; }
    .si-footer__intent { display: none; }
}
.si-section { padding: 6px 0; border-top: 1px solid #f0f0f0; }
.si-section:first-child { border-top: 0; }
.si-section__title { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #777; padding: 8px 16px 4px; }
.si-empty { padding: 14px 16px 4px; color: #666; }
/* the "search everything" row under an empty typeahead: a real button, full width, so it taps on a phone */
.si-item--all { width: 100%; text-align: left; font: inherit; background: none; border: 0; cursor: pointer; padding: 10px 16px 14px; }
.si-item--all .si-item__label { color: #35003a; text-decoration: underline; text-underline-offset: 2px; }
.si-item--all .si-item__icon { font-size: 16px; color: #35003a; }
/* loading cue: "Searching..." row before the first answer, a moving stripe along
   the top while an open panel waits for the next one */
.si-loading { display: flex; align-items: center; gap: 10px; padding: 16px; color: #555; font-size: 14px; }
.si-spinner { width: 18px; height: 18px; border: 2px solid #ddd; border-top-color: #35003a; border-radius: 50%; animation: si-spin .7s linear infinite; }
@keyframes si-spin { to { transform: rotate(360deg); } }
.si-panel.is-loading::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 2;
    background: linear-gradient(90deg, transparent, #35003a, transparent); background-size: 50% 100%; animation: si-shimmer 1s linear infinite; }
.si-panel.is-loading .si-section, .si-panel.is-loading .si-footer { opacity: .55; }
.si-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid #eee; background: #fafafa; font-size: 12px; color: #777; }
.si-footer__all { font: inherit; font-weight: 600; color: #111; background: none; border: 0; cursor: pointer; padding: 6px 0; }
.si-footer__all:hover { text-decoration: underline; }

/* items */
.si-item { display: flex; align-items: center; gap: 12px; padding: 9px 16px; color: #111; text-decoration: none; }
.si-item:hover, .si-item.is-focus { background: #f3f5f7; }
.si-item--muted { color: #666; cursor: default; }
/* a brand we no longer supply, linked to its successor page (Motul -> Oils & Fluids) */
.si-item--gone { color: #555; background: #fbf7f8; }
.si-item--gone .si-item__label { color: #7a1f3d; }
/* "did you mean": the corrected term the results below were run for */
.si-item--suggest .si-item__label { color: #0b3d91; }
.si-item--suggest .si-item__icon { font-weight: 700; }
.si-item__img { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 6px; overflow: hidden; background: #f4f4f4; display: flex; align-items: center; justify-content: center; }
.si-item__img img { width: 100%; height: 100%; object-fit: contain; }
.si-item__logo { flex: 0 0 72px; width: 72px; height: 36px; display: flex; align-items: center; }
.si-item__logo img { max-width: 100%; max-height: 100%; }
.si-item__icon { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 6px; background: #eef1f4; color: #333; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.si-item__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.si-item__label { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.si-item__sub { font-size: 13px; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.si-item__badge { flex: 0 0 auto; font-size: 11px; font-weight: 600; color: #0a6b3d; background: #e3f5ea; border-radius: 999px; padding: 3px 9px; max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.si-item__go { flex: 0 0 auto; font-size: 13px; color: #444; }
.si-item--cat .si-item__label { color: #0b3d91; }

/* number plate */
.si-plate { display: inline-flex; align-items: stretch; border-radius: 6px; overflow: hidden; border: 1px solid #b8b8b8; font-family: "Charles Wright", "Arial Narrow", Arial, sans-serif; line-height: 1; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.si-plate__band { background: #1d4ed8; color: #fff; font-size: 10px; font-weight: 700; padding: 0 5px; display: flex; align-items: flex-end; padding-bottom: 3px; }
.si-plate__reg { background: #f9d71c; color: #111; font-size: 20px; font-weight: 700; letter-spacing: .06em; padding: 7px 12px 6px; }
.si-plate--big .si-plate__reg { font-size: 38px; padding: 12px 22px 10px; }
.si-plate--big .si-plate__band { font-size: 13px; padding: 0 8px 5px; }
.si-plate--input .si-plate__field { border: 0; outline: none; background: #f9d71c; font: inherit; font-size: 20px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; width: 150px; padding: 7px 12px 6px; }
.si-item--plate { background: #fffbe8; }
.si-item--vehicle { background: #eef6ff; }
.si-item--vehicle .si-item__icon { background: #dbeafe; font-size: 16px; }
.si-veh { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; border: 1px solid #bfdbfe; background: #eff6ff; border-radius: 12px; padding: 14px 18px; margin: 0 0 14px; }
.si-veh__text { flex: 1 1 320px; }
.si-veh__title { font-weight: 700; font-size: 17px; margin: 0 0 2px; }
.si-veh__sub { color: #444; font-size: 14px; margin: 0; }
.si-veh__note { margin: -6px 4px 16px; font-size: 13px; color: #555; }
.si-veh__note a { color: #0b3d91; }

/* a size we do not stock: message + the sizes we do, as chips (dropdown, lab results and search.cfm) */
.si-specs { padding: 10px 16px 12px; background: #fff8e6; border-top: 1px solid #f5e6b8; border-bottom: 1px solid #f5e6b8; }
.si-specs__msg { margin: 0 0 8px; font-size: 14px; color: #5a4a1a; }
.si-specs__msg b { color: #111; }
.si-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.si-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #111; background: #fff; border: 1px solid #d9d2b8; border-radius: 999px; padding: 5px 11px; text-decoration: none; white-space: nowrap; }
.si-chip:hover { border-color: #111; }
.si-chip--near { border-color: #111; background: #111; color: #fff; }
.si-chip__n { font-size: 11px; font-weight: 500; color: #777; }
.si-chip--near .si-chip__n { color: #ddd; }
.si-results .si-specs, .si-results--embedded .si-specs { border: 1px solid #f0e2b4; border-radius: 12px; margin: 0 0 14px; }
.si-specs__alt { margin: 10px 0 0; font-size: 13px; }
.si-specs__alt a { color: #0b3d91; font-weight: 600; }
.si-specs__alt-note { color: #777; }
/* on search.cfm: what the term MEANT (hero, sizes, tiles) is ruled off from the
   product grid below, which carries its own count heading */
.si-results--embedded.si-results--rule { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid #e3e3e3; }
.search-grid-heading { margin-top: 0; }

/* full results */
.si-results { max-width: 1180px; margin: 28px auto 60px; padding: 0 16px; }
.si-results__h1 { font-size: 26px; margin: 0 0 18px; }
.si-results__h2 { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: #666; margin: 28px 0 10px; }
.si-results__meta { font-size: 12px; color: #888; margin-top: 30px; }
.si-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px 14px; }
.si-grid .si-item { border: 1px solid #eee; border-radius: 10px; background: #fff; }
.si-grid .si-item--plate { grid-column: 1 / -1; }

.si-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; border: 1px solid #e3e3e3; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #f7f9fb, #eef2f6); margin-bottom: 10px; }
.si-hero__main { padding: 26px 28px; }
.si-hero__eyebrow { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #777; margin: 0 0 6px; }
.si-hero__title { font-size: 30px; margin: 0 0 6px; }
.si-hero__title a { color: #111; text-decoration: none; }
.si-hero__sub { color: #555; margin: 0 0 16px; }
.si-hero__veh { padding: 26px 28px; background: #fff; border-left: 1px solid #e3e3e3; }
.si-hero__veh-title { font-weight: 700; font-size: 17px; margin: 0 0 4px; }
.si-hero__veh-sub { color: #666; font-size: 14px; margin: 0 0 14px; }
.si-hero__veh-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.si-hero__veh-alt { margin: 12px 0 0; font-size: 13px; color: #666; }
.si-hero__veh-alt .svb-linkbtn { font: inherit; font-weight: 600; color: #0b3d91; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.si-hero--plate .si-hero__main { text-align: center; }
.si-hero--plate, .si-hero--none { grid-template-columns: 1fr; }
.si-btn { display: inline-block; font: inherit; font-weight: 600; font-size: 14px; padding: 10px 16px; border-radius: 8px; border: 1px solid #111; color: #111; background: #fff; text-decoration: none; cursor: pointer; }
.si-btn--dark { background: #111; color: #fff; }
.si-btn:hover { opacity: .9; }

@media (max-width: 760px) {
    .si-hero { grid-template-columns: 1fr; }
    .si-hero__veh { border-left: 0; border-top: 1px solid #e3e3e3; }
    .si-grid { grid-template-columns: 1fr; }
}
