/* PlantSpares Parts Finder. Colours use CSS variables so the Elementor
   global colours (or the site's theme) can override them. */
.psf {
  --psf-bg: #202A5F;
  --psf-fg: #ffffff;
  --psf-field-bg: #ffffff;
  --psf-field-fg: #0E1B5C;
  --psf-accent: #8B1333;
  --psf-radius: 999px;
  --psf-h: 40px;
  background: var(--psf-bg);
  color: var(--psf-fg);
  padding: 1.5rem 1.75rem;
  display: grid;
  gap: 1rem;
  font-family: "Open Sans", system-ui, sans-serif;
}
.psf__title { margin: 0; font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .02em; color: var(--psf-fg); }
.psf__fields { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.psf__field { display: grid; gap: .3rem; flex: 1 1 150px; max-width: 190px; min-width: 0; }
.psf__label { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.psf--no-labels .psf__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.psf select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: var(--psf-h);
  min-height: 0;
  box-sizing: border-box;
  border: 0;
  border-radius: var(--psf-radius);
  padding: 0 38px 0 16px;
  background: var(--psf-field-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23A0A4B8' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--psf-field-fg);
  font: 700 12px/1.2 "Open Sans", system-ui, sans-serif;
  cursor: pointer;
  text-overflow: ellipsis;
}
.psf select:disabled { cursor: not-allowed; color: #6B7090; }
.psf select[aria-busy="true"] { opacity: .75; }
.psf__submit {
  flex: 0 0 auto;
  height: var(--psf-h);
  border: 0;
  border-radius: var(--psf-radius);
  padding: 0 26px;
  background: var(--psf-accent);
  color: #fff;
  font: 700 12px/1 "Open Sans", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  transition: filter .15s;
}
.psf__submit:hover { filter: brightness(1.15); }
.psf select:focus-visible, .psf__submit:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
.psf__current { margin: 0; font-size: .85rem; }
.psf__current a { color: inherit; margin-left: .5rem; }

/* Inside a full-width Elementor band: the container supplies colour and spacing. */
.psf--band { background: transparent; padding: 0; }

.psf--stacked { background: transparent; color: inherit; padding: 0; --psf-radius: 6px; }
.psf--stacked .psf__fields { flex-direction: column; align-items: stretch; }
.psf--stacked .psf__field { max-width: none; }
.psf--stacked select { border: 1px solid currentColor; }

@media (max-width: 767px) {
  .psf__field { flex: 1 1 100%; max-width: none; }
  .psf__submit { width: 100%; }
}

/* Styled lists (desktop). The native select stays in the form, hidden. */
.psf__field { position: relative; }
.psf-dd__native { position: absolute !important; inset: 0; opacity: 0; pointer-events: none; }
.psf-dd { position: relative; }
.psf-dd__btn {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: var(--psf-h); box-sizing: border-box;
  border: 0; border-radius: var(--psf-radius); padding: 0 38px 0 16px;
  background: var(--psf-field-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23A0A4B8' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--psf-field-fg); font: 700 12px/1.2 "Open Sans", system-ui, sans-serif;
  text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
  transition: box-shadow .15s;
}
.psf-dd__btn.is-placeholder { color: var(--psf-field-fg); }
.psf-dd__btn:disabled { cursor: not-allowed; color: #6B7090; }
.psf-dd__btn[aria-busy="true"] { opacity: .75; }
.psf-dd__btn:hover:not(:disabled) { box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.psf-dd__btn:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
.psf-dd.is-open .psf-dd__btn { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 7l6-6 6 6' fill='none' stroke='%238B1333' stroke-width='1.8'/%3E%3C/svg%3E"); }
.psf-dd__pop {
  position: absolute; z-index: 60; top: calc(100% + 8px); left: 0;
  width: max(100%, 260px); box-sizing: border-box;
  background: #fff; border-radius: 14px; padding: 8px;
  box-shadow: none; border: 1px solid #E3DADA; /* No drop shadows. */
  animation: psfDdIn .14s ease-out;
}
.psf-dd__pop[hidden] { display: none; }
@keyframes psfDdIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.psf-dd__filter {
  width: 100%; box-sizing: border-box; height: 38px; margin: 0 0 6px;
  border: 1.5px solid #E3DADA; border-radius: 999px; padding: 0 14px;
  font: 600 13px "Open Sans", system-ui, sans-serif; color: #0E1B5C; background: #F9F2F2;
}
.psf-dd__filter:focus { outline: none; border-color: #8B1333; background: #fff; }
.psf-dd__list { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; scrollbar-width: thin; outline: none; }
.psf-dd__list li {
  padding: 10px 14px; border-radius: 9px; cursor: pointer;
  font: 600 13px/1.3 "Open Sans", system-ui, sans-serif; color: #0E1B5C;
}
.psf-dd__list li.is-active { background: #F9F2F2; color: #8B1333; }
.psf-dd__list li[aria-selected="true"] { background: #0E1B5C; color: #fff; }
.psf-dd__list li[aria-selected="true"]::after { content: "✓"; float: right; font-weight: 700; }
.psf-dd__list li[aria-selected="true"].is-active { background: #1B2A78; }
.psf-dd__empty { margin: 8px 14px; font: 600 13px "Open Sans", system-ui, sans-serif; color: #6B7090; }
@media (prefers-reduced-motion: reduce) { .psf-dd__pop { animation: none; } }

/* [part_numbers] on the product page */
.psf-numbers { display: grid; gap: .4rem; }
.psf-numbers__title { margin: 0; font-weight: 600; }
.psf-numbers__list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.psf-numbers__list li { background: #F9F2F2; border-radius: 999px; padding: 4px 12px; font-size: .85em; }
.psf-numbers__num { font-weight: 700; }
.psf-numbers__meta { opacity: .65; }

/* Machine type intro */
.psf-machine__intro p { margin: 0 0 .8em; }
.psf-machine__intro p:last-child { margin-bottom: 0; }

.psf-fits { display: grid; gap: .4rem; }
.psf-fits__title { margin: 0; font-weight: 600; }
.psf-fits__list { margin: 0; padding-left: 1.1rem; }
.psf-fits__type { opacity: .65; font-size: .85em; }

/* Machine pages: /machines/… (full width, whatever the theme's content width) */
main.psf-machine { max-width: none !important; width: 100%; margin: 0; padding: 0; }
.psf-machine { --psf-navy: #0E1B5C; --psf-maroon: #8B1333; --psf-blush: #F9F2F2; font-family: "Open Sans", system-ui, sans-serif; color: #1F2430; }
.psf-machine__inner { max-width: 1440px; margin: 0 auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
.psf-machine__crumbs { background: #EEEEEE; padding: 10px 0; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: #555; }
.psf-machine__crumbs a { color: #555; text-decoration: none; }
.psf-machine__crumbs a:hover { color: var(--psf-maroon); }
.psf-machine__crumbs nav { display: flex; flex-wrap: wrap; gap: 6px; }
.psf-machine__head { padding-top: 50px; padding-bottom: 34px; display: grid; gap: 10px; }
.psf-machine__head h1 { margin: 0; color: var(--psf-navy); font-size: 26px; font-weight: 700; text-transform: uppercase; }
.psf-machine__meta { margin: 0; font-weight: 700; color: var(--psf-maroon); font-size: 14px; }
.psf-machine__intro { margin: 0; max-width: 70ch; font-size: 15px; line-height: 1.6; }
.psf-machine__band { background: #202A5F; padding: 34px 0 40px; }
.psf-machine__body { padding-top: 44px; padding-bottom: 70px; display: grid; gap: 44px; }
.psf-machine__jump { display: flex; flex-wrap: wrap; gap: 10px; }
.psf-machine__jump a { border: 1.5px solid var(--psf-navy); color: var(--psf-navy); border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 700; text-decoration: none; }
.psf-machine__jump a span { color: var(--psf-maroon); margin-left: 4px; }
.psf-machine__jump a:hover { background: var(--psf-navy); color: #fff; }
.psf-machine__group { display: grid; gap: 18px; scroll-margin-top: 20px; }
.psf-machine__group > h2 { margin: 0; color: var(--psf-navy); font-size: 18px; font-weight: 700; text-transform: uppercase; padding-bottom: 10px; border-bottom: 2px solid #E3DADA; }
.psf-machine__cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.psf-machine__cards a { display: grid; gap: 4px; background: var(--psf-blush); padding: 16px 18px; text-decoration: none; color: var(--psf-navy); border-left: 3px solid transparent; }
.psf-machine__cards a:hover { border-left-color: var(--psf-maroon); }
.psf-machine__cards strong { font-size: 15px; }
.psf-machine__cards span { font-size: 13px; color: #5B6070; }
@media (max-width: 767px) {
  .psf-machine__inner { padding-left: 16px; padding-right: 16px; }
  .psf-machine__head { padding-top: 30px; padding-bottom: 22px; }
  .psf-machine__head h1 { font-size: 22px; }
}

/* ===== 0.5.2: folded in from the site theme ===== */

/* Fields never grow past their slot (a long "Select Manufacturer" used to push into Series). */
.psf .psf__field { grid-template-columns: minmax(0, 1fr); }
.psf .psf-dd { min-width: 0; width: 100%; }
.psf .psf-dd .psf-dd__btn, .psf select { font-size: 13px !important; }

/* Styled lists keep the finder look, whatever the theme does to <button>. */
.psf .psf-dd .psf-dd__btn,
.psf .psf-dd .psf-dd__btn:hover,
.psf .psf-dd .psf-dd__btn:focus,
.psf .psf-dd .psf-dd__btn:active {
  background-color: var(--psf-field-bg) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23A0A4B8' stroke-width='1.5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 14px center !important;
  color: var(--psf-field-fg) !important; border: 0 !important; border-radius: var(--psf-radius) !important;
  padding: 0 38px 0 16px !important; font-family: "Open Sans", system-ui, sans-serif !important; font-weight: 700 !important;
  text-transform: none !important; letter-spacing: 0 !important; text-align: left !important; width: 100% !important;
  min-height: 0 !important; box-shadow: none;
}
.psf .psf-dd .psf-dd__btn:hover:not(:disabled) { box-shadow: 0 0 0 2px rgba(255,255,255,.35) !important; }
.psf .psf-dd.is-open .psf-dd__btn { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 7l6-6 6 6' fill='none' stroke='%238B1333' stroke-width='1.8'/%3E%3C/svg%3E") !important; }
.psf .psf-dd .psf-dd__btn:disabled { color: #6B7090 !important; opacity: 1 !important; cursor: not-allowed; }
.psf .psf-dd__filter { text-transform: none !important; letter-spacing: 0 !important; }
.psf select:disabled { background-color: var(--psf-field-bg); opacity: 1; color: #9A9EB5; }

/* Guided steps (classes set by finder.js). */
.psf .psf__field { transition: opacity .25s ease; }
.psf .psf__field.is-locked { opacity: .42; }
.psf .psf__field.is-next .psf-dd__btn,
.psf .psf__field.is-next select:not(.psf-dd__native) { outline: 3px solid #F2C9CF !important; outline-offset: 3px; animation: psfNext 1.6s ease-out 2; }
.psf.is-ready .psf__submit { outline: 3px solid #F2C9CF; outline-offset: 3px; animation: psfNext 1.6s ease-out 2; }
@keyframes psfNext {
  0% { outline-color: #F2C9CF; outline-offset: 3px; }
  60% { outline-color: rgba(242,201,207,0); outline-offset: 10px; }
  61% { outline-color: rgba(242,201,207,0); outline-offset: 3px; }
  100% { outline-color: #F2C9CF; outline-offset: 3px; }
}
@media (prefers-reduced-motion: reduce) { .psf .psf-dd__btn, .psf select, .psf .psf__submit { animation: none !important; } }

/* One-row finder for full-width bands: machine pages, and any Elementor band given the class ps-finder-row. */
.psf-machine__band .psf, .ps-finder-row .psf { max-width: none; }
@media (min-width: 1025px) {
  .psf-machine__band .psf, .ps-finder-row .psf { --psf-h: 48px; display: flex; align-items: center; gap: 34px; }
  .psf-machine__band .psf__title, .ps-finder-row .psf__title { flex: 0 0 auto; margin: 0 !important; font-size: 20px !important; line-height: 1.2; max-width: 210px; }
  .psf-machine__band .psf__fields, .ps-finder-row .psf__fields { flex: 1 1 auto; flex-wrap: nowrap !important; gap: 14px; align-items: center; }
  .psf-machine__band .psf__field, .ps-finder-row .psf__field { flex: 1 1 0 !important; max-width: none !important; min-width: 0; }
  .psf-machine__band .psf__submit, .ps-finder-row .psf__submit { height: 48px; padding: 0 36px !important; font-size: 13px !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .psf-machine__band .psf__field, .ps-finder-row .psf__field { flex: 1 1 calc(50% - 7px) !important; max-width: none !important; }
  .psf-machine__band .psf__submit, .ps-finder-row .psf__submit { flex: 1 1 100%; }
}
@media (max-width: 767px) {
  .psf-machine__band .psf__field, .ps-finder-row .psf__field { flex: 1 1 calc(50% - 7px) !important; max-width: none !important; }
}

/* Machine pages line up with the site's 40 / 28 / 18px edges. */
.psf-machine__inner { max-width: none !important; padding-left: 40px !important; padding-right: 40px !important; }
@media (max-width: 1024px) { .psf-machine__inner { padding-left: 28px !important; padding-right: 28px !important; } }
@media (max-width: 767px) { .psf-machine__inner { padding-left: 18px !important; padding-right: 18px !important; } }

/* Product grid on machine pages. */
.psf-machine .psf-products ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0 !important; padding: 0 !important; list-style: none; }
.psf-machine .psf-products ul.products::before, .psf-machine .psf-products ul.products::after { display: none !important; }
.psf-machine .psf-products ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; }
@media (max-width: 1024px) { .psf-machine .psf-products ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 767px) { .psf-machine .psf-products ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* Compatible machines as linked chips. */
.psf-fits__list a { color: inherit; text-decoration: none; }
.psf-fits__list a:hover { color: #8B1333; }

/* Model list headings (desktop styled list) */
.psf-dd__list li.psf-dd__group { cursor: default; padding: 10px 14px 4px; font: 700 11px/1.2 "Open Sans", system-ui, sans-serif; text-transform: uppercase; letter-spacing: .5px; color: #6B7090; background: none; }

/* Machine page: narrow it down (serial / year / engine / part type) */
.psf-refine { margin: 8px 0 48px; padding: 32px 36px; background: var(--psf-blush); border-radius: 10px; }
.psf-refine__title { margin: 0 0 24px; line-height: 1.4; font-weight: 700; color: var(--psf-navy); font-size: 15px; }
.psf-refine__fields { display: flex; flex-wrap: wrap; gap: 20px 28px; }
.psf-refine__field { display: flex; flex-direction: column; gap: 8px; flex: 1 1 200px; max-width: 280px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--psf-navy); }
.psf-refine .psf-refine__field input, .psf-refine .psf-refine__field select { width: 100%; margin: 0; height: 46px; box-sizing: border-box; border: 1.5px solid #E3DADA; border-radius: 999px; padding: 0 20px; background: #fff; color: var(--psf-navy); font: 600 14px "Open Sans", system-ui, sans-serif; text-transform: none; letter-spacing: 0; }
.psf-refine .psf-refine__field select { -webkit-appearance: none; appearance: none; padding: 0 52px 0 20px; cursor: pointer; text-overflow: ellipsis; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230E1B5C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 22px center; }
.psf-refine__field input:focus-visible, .psf-refine__field select:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
.psf-refine__field input::placeholder { color: #6B7090; }
.psf-refine__help { margin: 18px 0 0; line-height: 1.5; font-size: 13px; color: #4A4F63; }
.psf-refine__ask + .psf-refine__parts { margin-top: 28px; padding-top: 28px; border-top: 1px solid #E3DADA; }
.psf-refine__parts { display: flex; flex-wrap: wrap; gap: 12px; }
.psf-refine .psf-chip { display: inline-flex; align-items: center; min-height: 40px; margin: 0; border: 1.5px solid var(--psf-navy); border-radius: 999px; padding: 8px 18px; background: #fff; color: var(--psf-navy); font: 700 13px/1.2 "Open Sans", system-ui, sans-serif; text-transform: none; letter-spacing: 0; box-shadow: none; cursor: pointer; transition: none; }
.psf-refine .psf-chip span { font-weight: 600; opacity: .75; margin-left: 5px; }
.psf-refine .psf-chip:hover, .psf-refine .psf-chip:focus { background: #fff; border-color: var(--psf-maroon); color: var(--psf-maroon); }
.psf-refine .psf-chip.is-on, .psf-refine .psf-chip.is-on:hover, .psf-refine .psf-chip.is-on:focus { background: var(--psf-navy); border-color: var(--psf-navy); color: #fff; }
.psf-refine .psf-chip:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
.psf-refine__status { margin: 22px 0 0; font-size: 14px; font-weight: 600; color: var(--psf-navy); }
.psf-refine .psf-refine__clear { min-height: 0; text-transform: none; letter-spacing: 0; box-shadow: none; border: 0; background: none; padding: 0; color: var(--psf-maroon); font: inherit; text-decoration: underline; cursor: pointer; }
.psf-refine__none { padding: 18px 20px; background: var(--psf-blush); border-radius: 10px; font-weight: 600; color: var(--psf-navy); }
/* Stronger than the theme's "ul.products li.product { display: flex !important }" so filtered-out cards really hide. */
.psf-machine .psf-out, .psf-machine ul.products li.product.psf-out { display: none !important; }
.psf-machine__group[hidden], .psf-machine__jump a[hidden] { display: none !important; }
.psf-fitnote { margin: 4px 0 6px; font-size: 12px; font-weight: 600; color: var(--psf-maroon); }
@media (max-width: 767px) {
  .psf-refine { padding: 24px 20px; margin-bottom: 36px; }
  .psf-refine__field { flex: 1 1 100%; max-width: none; }
}

/* Part type box hidden when the chosen machine has only one part type. */
.psf .psf__field.is-skipped { display: none !important; }

/* "Can't find what you need?" */
.psf-cantfind { margin: 40px 0; padding: 32px; border-radius: 8px; background: #F3F4F8; color: #0E1B5C; text-align: center; }
.psf-cantfind__title { margin: 0 0 8px; font-weight: 700; font-size: 20px; color: #0E1B5C; }
.psf-cantfind__text { margin: 0 auto 20px; max-width: 560px; }
.psf-cantfind__actions { margin: 0; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: center; }
.psf-cantfind__btn { display: inline-block; padding: 12px 26px; border-radius: 999px; background: #8B1333; color: #fff !important; font-weight: 700; text-decoration: none; }
.psf-cantfind__btn:hover, .psf-cantfind__btn:focus { background: #6E0F28; }
.psf-cantfind__tel { color: #0E1B5C; font-weight: 600; }

/* "Matches your search" on the product page */
.psf-numbers--match .psf-numbers__title { margin: 0 0 4px; }
.psf-numbers--match .psf-numbers__num { font-weight: 700; }

/* POA (price on application) */
.psf-poa { font-weight: 700; color: #0E1B5C; }
.psf-poa-box { margin: 24px 0; padding: 28px; border-radius: 8px; background: #F3F4F8; color: #0E1B5C; }
.psf-poa-box__title { margin: 0 0 8px; font-weight: 700; font-size: 20px; color: #0E1B5C; }
.psf-poa-box__text { margin: 0 0 20px; }
.psf-poa-box__actions { margin: 0; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.psf-machine__groupintro { margin: -6px 0 0; color: #4A5068; }
.psf-machine__group--all { margin-top: 24px; }
.psf-noship { margin: 12px 0; padding: 16px 20px; border-radius: 8px; background: #F3F4F8; color: #0E1B5C; }
.psf-noship p { margin: 0 0 12px; }
.psf-noship__actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 0 !important; }
.psf-emailed { margin: 0 0 12px; font-weight: 600; color: #0E1B5C; }
