/* MPS Shop: finder */
/* ---------- Store: "Find parts for your engine" panel (HikaShop Filter module) ---------- */
.mps-ff-module .hikashop_filter_collapsable_title_mobile { display: none !important; }
.uk-panel:has(> .mps-ff-module) > h3 { display: none; }            /* the module's own title */
.mps-ff-on form[name^="hikashop_filter_form"] .hikashop_filter_main,
.mps-ff-on .hikashop_filter_button_outside { display: none !important; }
.mps-ff-module .hikashop_filter_main_div { display: block !important; position: static !important; transform: none !important; background: none !important; box-shadow: none !important; padding: 0 !important; }

.mps-ff {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  padding: 22px 24px 24px;
}
.mps-ff-title { margin: 0 0 14px; font-size: 1.35rem; }
.mps-ff-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.mps-ff-field { flex: 1 1 170px; min-width: 0; }
.mps-ff-wide { flex: 2 1 240px; }
.mps-ff-actions { flex: 0 0 auto; }
.mps-ff-field { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.mps-ff-field > span { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.mps-ff .uk-select, .mps-ff .uk-input { height: 44px; border-radius: 6px; }
.mps-ff .uk-select:disabled { opacity: .55; cursor: not-allowed; }
.mps-ff-actions { display: flex; gap: 10px; }
.mps-ff-actions .uk-button { display: inline-flex; align-items: center; gap: 8px; height: 44px; white-space: nowrap; }
.mps-ff-actions .uk-button[hidden] { display: none; }
.mps-ff-msg { margin: 10px 0 0; color: #c92222; font-size: .9rem; }
.mps-ff-active { border-color: rgba(201, 34, 34, .25); }
.mps-ff-busy { opacity: .6; pointer-events: none; }

@media (max-width: 959px) {
  .mps-ff { padding: 18px; }
  .mps-ff-actions { flex: 1 1 100%; }
  .mps-ff-actions .uk-button { flex: 1; justify-content: center; }
}

/* make logo buttons on wide screens; the Make drop-down on phones and tablets */
.mps-ff-makes { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin: 0 0 18px; }
.mps-ff-mk { display: flex; align-items: center; justify-content: center; height: 110px; padding: 6px 8px; background: #fff; border: 1px solid rgba(0, 0, 0, .12); border-radius: 8px; cursor: pointer; transition: border-color .15s, box-shadow .15s; font: inherit; }
.mps-ff-mk img { max-height: 98px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.mps-ff-mk:hover { border-color: rgba(0, 0, 0, .3); }
.mps-ff-mk.on { border-color: #c92222; box-shadow: 0 0 0 2px rgba(201, 34, 34, .25); }
.mps-ff-mk:focus-visible { outline: 2px solid #c92222; outline-offset: 2px; }
@media (min-width: 960px) { .mps-ff-makes ~ .mps-ff-row > .mps-ff-field:first-child { display: none; } }   /* the Make drop-down, only where the logo buttons are */
@media (max-width: 959px) { .mps-ff-makes { display: none; } }
.mps-ff-cat { margin: 12px 0 0; font-size: .92rem; }
.mps-ff-allcats { background: none; border: 0; padding: 0; color: #c92222; text-decoration: underline; cursor: pointer; font: inherit; }
/* logos with a lot of white space round them are scaled up to match Dorman and Samofa */
.mps-ff-mk { overflow: hidden; }
.mps-ff-mk[data-make="Gardner"] img { transform: scale(1.6); }
.mps-ff-mk[data-make="Lister"] img { transform: scale(1.45); }
.mps-ff-mk[data-make="Kromhout"] img { transform: scale(1.3); }
.mps-ff-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.mps-ff-head .mps-ff-title { margin: 0; }
.mps-ff-back { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mps-ff-back svg { flex: none; }

/* drop-downs and the part-number box styled like the options drop-down on the product page */
.mps-ff select.uk-select, .mps-ff input.uk-input {
  height: 46px !important; padding: 0 12px !important; border: 1px solid #c7c7c7 !important; border-radius: 8px !important; background-color: #fff !important;
  font: inherit !important; font-size: 16px !important; color: #222 !important; box-sizing: border-box !important; }
.mps-ff select.uk-select {
  padding-right: 40px !important; -webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23666' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 16px 16px !important; }
.mps-ff select.uk-select:disabled { background-color: #f6f6f6 !important; color: #999 !important; }
.mps-ff select.uk-select:focus, .mps-ff input.uk-input:focus { border-color: #394b40 !important; outline: 2px solid rgba(57, 75, 64, .2); }
.mps-ff .mps-ff-actions .uk-button { height: 46px; }

/* Model list as a styled panel on wide screens (phones keep the normal drop-down) */
.mps-ff-pick { display: none; position: relative; }
@media (min-width: 960px) {
  .mps-ff-pick { display: block; }
  .mps-ff-pick ~ select, .mps-ff-field select.mps-ff-model { display: none !important; }
}
.mps-ff-pick-btn { display: flex; align-items: center; width: 100%; height: 46px; padding: 0 40px 0 12px; border: 1px solid #c7c7c7; border-radius: 8px; background: #fff no-repeat right 12px center / 16px 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23666' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  font: inherit; font-size: 16px; color: #222; text-align: left; cursor: pointer; }
.mps-ff-pick-btn span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mps-ff-pick-btn:disabled { background-color: #f6f6f6; color: #999; cursor: not-allowed; }
.mps-ff-pick.open .mps-ff-pick-btn, .mps-ff-pick-btn:focus-visible { border-color: #394b40; outline: 2px solid rgba(57, 75, 64, .2); }
.mps-ff-menu { position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; width: max(100%, 460px); max-height: 380px; overflow-y: auto; padding: 8px; background: #fff; border: 1px solid #e3e6e3; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.mps-ff-all { display: block; width: 100%; padding: 9px 10px; margin: 0 0 4px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: 15px; font-weight: 600; color: #222; text-align: left; cursor: pointer; }
.mps-ff-grp { padding: 8px 6px 10px; border-top: 1px solid #eef0ee; }
.mps-ff-grp-t { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6b6f6b; }
.mps-ff-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.mps-ff-chip { padding: 7px 8px; border: 1px solid #dcdfdc; border-radius: 6px; background: #fff; font: inherit; font-size: 14px; color: #222; text-align: center; cursor: pointer; line-height: 1.25; }
.mps-ff-chip:hover, .mps-ff-all:hover { background: #f1f4f1; border-color: #b9c2bb; }
.mps-ff-chip.on, .mps-ff-all.on { background: #394b40; border-color: #394b40; color: #fff; }

/* ---- Find parts panel: tabs (Engine parts | Fuel injection | Manuals) ---- */
.mps-ff.mps-ff-tabbed { padding-top: 0; }
.mps-ff-tabs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -4px 22px; border-bottom: 1px solid #e3e6e3; }
.mps-ff-tablist { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.mps-ff-tablist::-webkit-scrollbar { display: none; }
.mps-ff-tab { flex: 0 0 auto; padding: 16px 18px 13px; margin-bottom: -1px; border: 0; border-bottom: 3px solid transparent; background: none; cursor: pointer;
  font: 600 13px/1.2 Raleway, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #6b6b6b; }
.mps-ff-tab:hover { color: #222; }
.mps-ff-tab.on { color: #222; border-bottom-color: #c92222; }
.mps-ff-tab:focus-visible { outline: 2px solid #394b40; outline-offset: -2px; }
.mps-ff-tabs .mps-ff-back { margin: 6px 4px; }
.mps-ff-pane[hidden] { display: none !important; }
.mps-ff-intro { margin: -6px 0 16px; color: #555; font-size: 15px; }
/* Fuel injection: part-type buttons */
.mps-ff-parts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.mps-ff-chipbtn { min-height: 44px; padding: 10px 18px; border: 1px solid #c7c7c7; border-radius: 999px; background: #fff; color: #333; cursor: pointer; font: 600 14px Raleway, sans-serif; }
.mps-ff-chipbtn:hover { border-color: #394b40; }
.mps-ff-chipbtn.on { background: #394b40; border-color: #394b40; color: #fff; }
.mps-ff-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 14px 16px; border-radius: 8px; background: #f4f6f4; font-size: 14px; }
.mps-ff-note > span { flex: 1 1 380px; }
/* Manuals: make logo buttons, styled like the engine make buttons (.mps-ff-mk) */
.mps-ff-mbtns { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
a.mps-ff-mbtn { text-decoration: none !important; color: #333 !important; font: 600 15px Raleway, sans-serif; text-align: center; }
@media (max-width: 959px) { .mps-ff-mbtns { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mps-ff-mbtns .mps-ff-mk { height: 84px; } .mps-ff-mbtns .mps-ff-mk img { max-height: 72px; } }
@media (max-width: 479px) { .mps-ff-mbtns { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mps-ff-tab { padding: 14px 12px 11px; letter-spacing: .04em; } }

/* ---- Nothing found (results page) ---- */
.mps-nf { margin: 8px 0 40px; }
.mps-nf-title { margin: 0 0 6px; font: 300 26px Roboto, sans-serif; color: #222; }
.mps-nf-searched { margin: 0 0 22px; color: #555; font-size: 15px; max-width: 760px; }
.mps-nf-searched strong { color: #222; }
.mps-nf-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
/* both columns the same height, with the number search and the Contact us button level along the bottom */
.mps-nf-col { display: flex; flex-direction: column; padding-bottom: 20px; }
.mps-nf-col .mps-nf-num { margin-top: auto; }
.mps-nf-ask { display: flex; flex-direction: column; }
.mps-nf-ask .mps-nf-contact { margin-top: auto; }
@media (max-width: 959px) { .mps-nf-col { padding-bottom: 0; } }
@media (max-width: 959px) { .mps-nf-grid { grid-template-columns: 1fr; } }
.mps-nf h3 { margin: 0 0 10px; font: 600 13px Raleway, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #666; }
.mps-nf-wider { margin-bottom: 24px; }
.mps-nf-wider ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mps-nf-wider a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 16px;
  border: 1px solid rgba(0,0,0,.12); border-radius: 8px; color: #333 !important; text-decoration: none !important; font-weight: 600; }
.mps-nf-wider a::after { content: '\203A'; font-size: 22px; line-height: 1; color: #394b40; }
.mps-nf-wider a:hover { border-color: #394b40; }
.mps-nf-num { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.mps-nf-num label { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; }
.mps-nf-num label span { font: 600 13px Raleway, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #666; }
.mps-nf-num .uk-input { height: 46px; border: 1px solid #c7c7c7; border-radius: 8px; }
.mps-nf-num .uk-button { height: 46px; display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; }
.mps-nf-ask { padding: 20px 22px; border-radius: 10px; background: #f4f6f4; }
.mps-nf-ask p { margin: 0 0 12px; color: #555; }
.mps-nf-phones { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.mps-nf-phones li { display: flex; justify-content: space-between; gap: 12px; }
.mps-nf-phones span { color: #666; }
.mps-nf-phones a { color: #394b40 !important; font-weight: 600; }
.mps-nf-contact { width: 100%; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 8px; }

/* ---- Contact popup ---- */
.mps-contact { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.45); }
.mps-contact[hidden] { display: none; }
.mps-contact-box { width: min(640px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.25); overflow: hidden; }
.mps-contact-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #eee; }
.mps-contact-head h2 { margin: 0; font: 300 22px Roboto, sans-serif; }
.mps-contact-x { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: none; cursor: pointer; color: #333; }
.mps-contact-x:hover { background: #f1f1ef; }
.mps-contact-frame { width: 100%; height: 620px; max-height: calc(100vh - 110px); border: 0; display: block; }
.mps-contact-frame[hidden] { display: none; }
.mps-contact-done { padding: 28px 24px; }
html.mps-contact-open { overflow: hidden; }
/* Model list: "All <family> engines" stands out at the start of each family */
.mps-ff-chip[data-v^="fam:"] { font-weight: 700; }
