.esp-search-main { color:#30363c; }
.esp-search-heading { background:#fff;border:1px solid #dce2e7;border-radius:12px;padding:24px;margin:8px 0 20px;box-shadow:0 2px 5px rgba(30,45,55,.035); }
.esp-search-eyebrow { color:#707b85;font:700 11px Arial,sans-serif;letter-spacing:1.2px;text-transform:uppercase;margin-bottom:7px; }
.esp-search-heading h1 { font-family:Saab,Arial,sans-serif;font-size:27px;font-weight:700;line-height:1.2;margin:0 0 9px;color:#29343d; }
.esp-search-heading p { color:#66727c;font:14px/1.5 Arial,sans-serif;margin:0 0 18px; }
.esp-search-form { display:flex;gap:10px;max-width:720px; }
.esp-search-form input { min-width:0;flex:1;height:44px;border:1px solid #cbd5dd;border-radius:7px;padding:10px 13px;font:15px Arial,sans-serif;color:#29343d;background:#fafbfc; }
.esp-search-form input:focus { outline:2px solid #dce8ef;border-color:#7a99ae;background:#fff; }
.esp-search-form button { border:1px solid #a90000;border-radius:7px;background:#b00000;color:#fff;font:700 14px Arial,sans-serif;padding:0 23px; }
.esp-search-form button:hover { background:#900000; }
.esp-search-results { border:1px solid #dce2e7;border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 2px 5px rgba(30,45,55,.035);margin-bottom:25px; }
.esp-search-table { width:100%;margin:0 !important;table-layout:fixed;font:13px/1.45 Arial,sans-serif;color:#56616b; }
.esp-search-table thead th { background:#30373d;color:#fff;padding:15px 12px !important;border:0 !important;font:700 10px/1.4 Arial,sans-serif;letter-spacing:.5px;text-transform:uppercase;vertical-align:middle; }
.esp-search-table thead th:nth-child(1) { width:11%; }
.esp-search-table thead th:nth-child(2) { width:25%; }
.esp-search-table thead th:nth-child(3) { width:10%; }
.esp-search-table thead th:nth-child(4) { width:14%; }
.esp-search-table thead th:nth-child(5) { width:10%; }
.esp-search-table thead th:nth-child(6) { width:13%; }
.esp-search-table thead th:nth-child(7) { width:17%; }
.esp-search-table tbody td { padding:18px 12px !important;vertical-align:middle !important;border-top:1px solid #e5e9ec !important;overflow-wrap:break-word; }
.esp-search-table tbody tr:nth-child(odd) { background:#f8fafb !important; }
.esp-search-table tbody tr:hover { background:#f1f5f7 !important; }
.esp-search-table tbody td:first-child { text-align:center; }
.esp-search-table tbody img { max-width:100%;width:auto;height:auto;max-height:95px !important;object-fit:contain;border-radius:5px; }
.esp-search-table a { color:#a90000;text-decoration:none; }
.esp-search-table a:hover { color:#790000;text-decoration:underline; }
.esp-search-title { display:block;font-family:Saab,Arial,sans-serif;font-size:16px;font-weight:700;line-height:1.3;margin-bottom:7px; }
.esp-search-pn { display:inline-block;color:#626f78;background:#edf1f4;border-radius:4px;padding:3px 7px;font:700 11px Arial,sans-serif;letter-spacing:.2px; }
.esp-search-table td:nth-child(3) a,.esp-search-table td:nth-child(4) a { color:#506e84;font-size:12px; }
.esp-search-table .ps-search-price { color:#19262f;font-weight:700;font-size:17px;white-space:nowrap; }
.esp-search-table td:nth-child(5) small { font-size:11px;line-height:1.5; }
.esp-search-table .esp-search-details summary { cursor:pointer;color:#506e84;font-weight:700;font-size:12px; }
.esp-search-table .esp-search-details[open] summary { margin-bottom:9px; }
.esp-search-table .esp-search-details ul { margin:0;padding:0 0 0 15px !important;font-size:12px; }
.esp-search-table .esp-search-details li { margin:0 0 5px; }
.esp-search-table .label { white-space:normal;font:10px Arial,sans-serif;display:inline-block;margin-right:2px; }
@media(min-width:768px) and (max-width:1100px) { .esp-search-table tbody td,.esp-search-table thead th { padding:12px 8px !important; }.esp-search-title { font-size:14px; } }
@media(max-width:767px) {
 .esp-search-heading { padding:18px; }.esp-search-heading h1 { font-size:23px; }.esp-search-form button { padding:0 15px; }
 .esp-search-table,.esp-search-table tbody { display:block; }.esp-search-table thead { display:none; }
 .esp-search-table tbody tr { display:grid;grid-template-columns:65px minmax(0,1fr) auto;gap:8px 12px;padding:18px 14px;border-top:1px solid #e5e9ec; }
 .esp-search-table tbody tr:first-child { border-top:0; }
 .esp-search-table tbody td { border:0 !important;padding:0 !important; }
 .esp-search-table tbody td:nth-child(1) { grid-column:1;grid-row:1 / 3; }
 .esp-search-table tbody td:nth-child(2) { grid-column:2;grid-row:1; }
 .esp-search-table tbody td:nth-child(5) { grid-column:3;grid-row:1;font-size:15px; }
 .esp-search-table tbody td:nth-child(6) { grid-column:2 / 4;grid-row:2;font-size:12px; }
 .esp-search-table tbody td:nth-child(3) { grid-column:2 / 4;grid-row:3; }
 .esp-search-table tbody td:nth-child(4) { grid-column:2 / 4;grid-row:4; }
 .esp-search-table tbody td:nth-child(7) { grid-column:2 / 4;grid-row:5; }
 .esp-search-table tbody td:nth-child(3)::before { content:'Category · ';font-size:11px;color:#83909b; }
 .esp-search-table tbody td:nth-child(4)::before { content:'Diagram · ';font-size:11px;color:#83909b; }
 .esp-search-title { font-size:15px; }.esp-search-pn { font-size:10px; }
}
/* V3: explicit filters, inventory, and always-visible part information. */
.esp-search-filter-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px; }
.esp-search-filter-grid label { display:block;font:700 12px Arial,sans-serif;color:#64717c;margin:0; }
.esp-search-filter-grid select { display:block;width:100%;height:39px;margin-top:7px;padding:7px 9px;border:1px solid #cbd5dd;border-radius:6px;background:#fff;color:#29343d;font:14px Arial,sans-serif; }
.esp-search-active { display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:18px;font:12px Arial,sans-serif; }
.esp-search-active strong { color:#67747f;margin-right:3px; }
.esp-search-active span { padding:5px 8px;background:#edf3f7;border:1px solid #dae5ed;border-radius:5px;color:#47647b; }
.esp-search-active a { color:#a90000;margin-left:auto; }
.esp-search-table thead th:nth-child(1) { width:9%; }.esp-search-table thead th:nth-child(2) { width:22%; }
.esp-search-table thead th:nth-child(3) { width:8%; }.esp-search-table thead th:nth-child(4) { width:11%; }
.esp-search-table thead th:nth-child(5) { width:9%; }.esp-search-table thead th:nth-child(6) { width:11%; }
.esp-search-table thead th:nth-child(7) { width:12%; }.esp-search-table thead th:nth-child(8) { width:18%; }
.esp-search-table .ps-search-stock { text-align:center;font-size:12px; }.esp-search-table .ps-search-stock img { border-radius:0;max-height:16px !important;vertical-align:middle; }
.esp-search-table .ps-search-stock .label { font-size:12px; }.esp-search-details ul { margin:0 !important; }
@media(max-width:767px) {
 .esp-search-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
 .esp-search-table tbody td:nth-child(6) { grid-column:2 / 4;grid-row:2; }
 .esp-search-table tbody td:nth-child(7) { grid-column:2 / 4;grid-row:3; }
 .esp-search-table tbody td:nth-child(3) { grid-column:2 / 4;grid-row:4; }
 .esp-search-table tbody td:nth-child(4) { grid-column:2 / 4;grid-row:5; }
 .esp-search-table tbody td:nth-child(8) { grid-column:2 / 4;grid-row:6; }
 .esp-search-table tbody td:nth-child(6)::before { content:none; }
 .esp-search-table .ps-search-stock { text-align:left; }
 .esp-search-table .ps-search-stock .text-center { text-align:left; }
 .esp-search-active a { margin-left:0; }
}

/* V4: one model selector and merged fitment contexts. */
.esp-search-filter-grid { grid-template-columns:minmax(0,320px); }
.esp-search-context + .esp-search-context { margin-top:12px; }
.esp-search-context strong { display:block;font-size:11px;color:#697984;margin-bottom:5px; }

/* Full-width search results with larger, easier-to-read text. */
.esp-search-main { width:100%;margin-left:0; }
.esp-search-heading p { font-size:16px; }
.esp-search-table { font-size:15px;line-height:1.5; }
.esp-search-table thead th { font-size:12px; }
.esp-search-title { font-size:18px; }
.esp-search-pn { font-size:13px; }
.esp-search-table td:nth-child(3) a,.esp-search-table td:nth-child(4) a { font-size:14px; }
.esp-search-table .ps-search-price { font-size:19px; }
.esp-search-table td:nth-child(5) small { font-size:13px; }
.esp-search-table .esp-search-details summary,.esp-search-table .esp-search-details ul { font-size:14px; }
.esp-search-table .label { font-size:12px; }
.esp-search-table .ps-search-stock,.esp-search-table .ps-search-stock .label { font-size:14px; }
.esp-search-filter-grid label,.esp-search-active { font-size:14px; }
.esp-search-context strong { font-size:13px; }
@media(max-width:1100px) {
 .esp-search-title { font-size:17px; }
 .esp-search-pn { font-size:12px; }
}
