.ypm{--ypm-ink:#132b3a;--ypm-blue:#155c78;--ypm-pale:#edf4f8;--ypm-border:#d9e2e8;--ypm-dim:#586a75;max-width:1240px;margin:0 auto 32px;color:var(--ypm-ink);font-family:inherit;font-size:15px;line-height:1.5}
.ypm *{box-sizing:border-box}.ypm h2{font-size:1.65rem;line-height:1.25;margin:26px 0 11px;color:var(--ypm-ink)}.ypm h3{font-size:1.15rem;margin:24px 0 12px;color:var(--ypm-ink)}
.ypm a{color:var(--ypm-blue);text-decoration:none}.ypm a:hover{text-decoration:underline}.ypm button{cursor:pointer;background:var(--ypm-blue);color:#fff;border:1px solid var(--ypm-blue);padding:11px 17px;border-radius:7px;font-weight:600;font-size:14px;white-space:nowrap}.ypm button:hover{background:#0d4561}.ypm input{border:1px solid #b9c9d3;border-radius:7px;min-width:0;background:#fff;color:#243746;padding:10px 12px;font:inherit;box-shadow:none}.ypm input:focus-visible,.ypm a:focus-visible,.ypm button:focus-visible{outline:2px solid #277ea8;outline-offset:2px}
.ypm-searchbar{background:#f5f8fa;border:1px solid var(--ypm-border);border-radius:13px;padding:20px 24px;margin-bottom:24px}.ypm-brand{display:flex;align-items:center;gap:10px;margin-bottom:14px}.ypm-brand-mark{display:grid;place-items:center;background:var(--ypm-ink);color:#fff;height:40px;width:40px;font-size:22px;border-radius:9px;font-weight:700}.ypm-brand strong,.ypm-brand small{display:block;line-height:1.25}.ypm-brand strong{font-size:18px}.ypm-brand small{font-size:12px;color:var(--ypm-dim);margin-top:2px}
.ypm-search-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.ypm-searchform{margin:0}.ypm-searchform label{display:block;font-size:13px;font-weight:650;margin-bottom:7px}.ypm-field{display:flex;gap:8px}.ypm-field input{flex:1;width:50px}.ypm-selected{font-size:13px;margin:12px 0 0}.ypm-selected a{margin-left:8px}
.ypm-start{margin:28px 0}.ypm-start p{max-width:680px}.ypm-muted,.ypm-result small{color:var(--ypm-dim);font-size:12px}.ypm-results{border:1px solid var(--ypm-border);border-radius:9px;overflow:hidden}.ypm-result{display:flex;gap:16px;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid var(--ypm-border)}.ypm-result:last-child{border-bottom:0}.ypm-result strong,.ypm-result small{display:block}.ypm-result strong{font-size:14px}.ypm-result small{margin-top:3px}.ypm-textlink{white-space:nowrap;font-size:13px}.ypm-chips{display:flex;flex-wrap:wrap;gap:8px;margin:13px 0 22px}.ypm-chip{border:1px solid var(--ypm-border);border-radius:999px;padding:6px 11px;font-size:12px;background:#f7fafb;color:var(--ypm-ink)!important}.ypm-chip:hover,.ypm-chip-active{background:#deedf5;border-color:#83b0c5;text-decoration:none!important}
.ypm-figlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:9px}.ypm-figure-tile{border:1px solid var(--ypm-border);border-radius:8px;padding:13px;display:flex;align-items:center;gap:9px;min-height:61px;background:#fff;color:var(--ypm-ink)!important}.ypm-figure-tile:hover{border-color:#81a9c0;background:#f6fbfe;text-decoration:none}.ypm-figure-no{white-space:nowrap;font-weight:750;color:var(--ypm-blue);font-size:13px}.ypm-arrow{margin-left:auto;color:var(--ypm-blue);font-size:24px}.ypm-crumb{margin:14px 0 22px;font-size:13px;color:var(--ypm-dim)}.ypm-softwarning{padding:10px 13px;border-left:3px solid #e8af2b;background:#fff9e7;color:#654714;margin:12px 0}
.ypm-illustrations{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));gap:14px;margin:18px 0 24px}.ypm-illustration{display:flex;flex-direction:column;align-items:center;border:1px solid var(--ypm-border);border-radius:10px;background:#fff;padding:10px;max-height:590px;overflow:hidden}.ypm-illustration img{display:block;width:auto;height:auto;max-width:100%;max-height:520px;object-fit:contain}.ypm-illustration span{margin-top:8px;font-size:12px}
.ypm-table-caption{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:18px}.ypm-table-caption p{color:var(--ypm-dim);font-size:13px}.ypm-table-scroll{overflow:auto;max-width:100%;border:1px solid var(--ypm-border);border-radius:9px}.ypm-table{width:100%;min-width:825px;margin:0;border-collapse:collapse;border:0;table-layout:fixed;font-size:13px;background:#fff}.ypm-table th{background:#eaf1f5;color:var(--ypm-ink);padding:12px 11px;text-align:left;font-weight:700;border-bottom:1px solid var(--ypm-border)}.ypm-table td{padding:10px 11px;border-bottom:1px solid #e9eff2;vertical-align:top;word-break:normal}.ypm-table tr:last-child td{border-bottom:0}.ypm-table tbody tr:hover{background:#f9fbfc}.ypm-table th:nth-child(1){width:8%}.ypm-table th:nth-child(2){width:27%}.ypm-table th:nth-child(3){width:12%}.ypm-table th:nth-child(4){width:38%}.ypm-table th:nth-child(5){width:15%}.ypm-ref{font-weight:700;white-space:nowrap}.ypm-part-name strong{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px}.ypm-desc{margin:3px 0 0}.ypm-qty-pill{display:inline-block;background:#eaf1f5;border-radius:4px;padding:2px 5px;font-size:11px;margin:0 0 3px}.ypm-qty .ypm-number{font-size:16px;font-weight:750}.ypm-qty small{display:block}.ypm-details{font-size:12px}.ypm-condition{margin:0 0 4px;font-weight:600}.ypm-mark{display:inline-block;background:#e2eff8;padding:1px 4px;border-radius:4px;font-weight:700;color:#164e70}.ypm-remark{margin-top:5px;color:#394b54}.ypm-remark strong{white-space:nowrap}.ypm-cart-form{display:flex;gap:5px;align-items:center;margin:0}.ypm-cart-form input{width:52px;min-width:52px;padding:8px 5px;text-align:center;font-size:13px}.ypm-cart-form button{padding:8px 10px;font-size:12px}
.ypm-pagination{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:18px 0}.ypm-page-link{display:inline-block;border:1px solid var(--ypm-border);padding:7px 13px;border-radius:7px;font-size:13px}.ypm-remark-legend{margin:22px 0;border:1px solid var(--ypm-border);border-radius:9px;padding:13px 16px}.ypm-remark-legend summary{font-weight:650;cursor:pointer}.ypm-remark-legend li{font-size:13px;margin:6px 0}.ypm-disclaimer{margin:28px 0 14px;color:var(--ypm-dim);font-size:12px;max-width:900px}.ypm-product-usage{margin-top:25px;padding-top:16px;border-top:1px solid var(--ypm-border)}
@media(max-width:700px){.ypm-searchbar{padding:16px}.ypm-search-grid{grid-template-columns:1fr}.ypm-field button{padding:9px 11px;font-size:12px}.ypm-table-caption{display:block}.ypm-figlist{grid-template-columns:1fr}.ypm h2{font-size:1.35rem}.ypm-illustration{max-height:400px}.ypm-illustration img{max-height:320px}}

.ypm-test-banner{margin:10px 0 18px;padding:12px 15px;border:1px solid #cc9b3a;border-radius:7px;background:#fff6df;color:#614700;font-size:13px}.ypm-figure-name{font-weight:650}.ypm-qty-pill{white-space:nowrap}.ypm-qty{width:auto}

/* Model names replace the cryptic A/B/C/D columns in customer-facing quantity labels. */
.ypm-table{min-width:1040px}
.ypm-table th:nth-child(1){width:7%}
.ypm-table th:nth-child(2){width:25%}
.ypm-table th:nth-child(3){width:25%}
.ypm-table th:nth-child(4){width:30%}
.ypm-table th:nth-child(5){width:13%}
.ypm-qty-pill{display:inline-block;padding:4px 7px;font-size:12px;margin:1px 4px 5px 0}


/* v1.1.1: Fit the site's content column. Never force horizontal table scrolling. */
.ypm {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  container: ypm-parts / inline-size;
}
.ypm-table-scroll {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}
.ypm-table {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.ypm-table td,
.ypm-table th {
  overflow-wrap: anywhere;
}
.ypm-part-name,
.ypm-qty,
.ypm-details,
.ypm-order {
  min-width: 0;
}
.ypm-cart-form {
  max-width: 100%;
}

/* A narrow theme content column can occur even on a wide desktop viewport.
   Container queries therefore use the actual navigator width, not screen width. */
@container ypm-parts (max-width: 980px) {
  .ypm-table-scroll {
    border: 0;
    border-radius: 0;
  }
  .ypm-table,
  .ypm-table tbody {
    display: block;
    width: 100%;
  }
  .ypm-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .ypm-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-areas:
      "ref order"
      "part order"
      "qty order"
      "details details";
    gap: 3px 14px;
    width: 100%;
    padding: 13px 16px;
    margin: 0 0 12px;
    border: 1px solid var(--ypm-border);
    border-radius: 10px;
    background: #fff;
  }
  .ypm-table td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    min-width: 0;
  }
  .ypm-table .ypm-ref { grid-area: ref; font-size: 12px; color: var(--ypm-dim); }
  .ypm-table .ypm-ref::before { content: "Ref. "; font-weight: 500; }
  .ypm-table .ypm-part-name { grid-area: part; }
  .ypm-table .ypm-qty { grid-area: qty; padding-top: 5px; }
  .ypm-table .ypm-qty::before {
    content: "Qty: ";
    font-size: 12px;
    color: var(--ypm-dim);
    font-weight: 500;
  }
  .ypm-table .ypm-details { grid-area: details; padding-top: 4px; }
  .ypm-table .ypm-details:empty { display: none; }
  .ypm-table .ypm-order {
    grid-area: order;
    align-self: center;
    justify-self: end;
  }
  .ypm-table .ypm-qty-pill {
    white-space: normal;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .ypm-table .ypm-cart-form { flex-wrap: nowrap; }
}

@container ypm-parts (max-width: 520px) {
  .ypm-table tbody tr {
    grid-template-columns: minmax(0,1fr);
    grid-template-areas:
      "ref"
      "part"
      "qty"
      "details"
      "order";
    gap: 5px;
    padding: 13px;
  }
  .ypm-table .ypm-order {
    width: 100%;
    justify-self: stretch;
    align-self: auto;
    padding-top: 10px;
    margin-top: 6px;
    border-top: 1px solid var(--ypm-border);
  }
  .ypm-table .ypm-cart-form {
    display: flex;
    width: 100%;
    gap: 8px;
  }
  .ypm-table .ypm-cart-form input { flex: 0 0 62px; width: 62px; }
  .ypm-table .ypm-cart-form button { flex: 1; }
}

/* Safe fallback for browsers without container queries. */
@supports not (container-type: inline-size) {
  @media (max-width: 1050px) {
    .ypm-table-scroll { border: 0; }
    .ypm-table, .ypm-table tbody, .ypm-table tbody tr, .ypm-table td { display: block; width: 100%; }
    .ypm-table thead { display: none; }
    .ypm-table tbody tr { border: 1px solid var(--ypm-border); border-radius: 9px; padding: 14px; margin-bottom: 12px; }
    .ypm-table td { border: 0; padding: 3px 0; }
    .ypm-table .ypm-order { padding-top: 10px; }
  }
}

/* v1.1.2: Human-readable part name first, prominent SKU immediately below. */
.ypm-part-description {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ypm-ink);
  overflow-wrap: anywhere;
}
.ypm-part-sku {
  display: block;
  margin: 6px 0 0;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.ypm-part-sku .ypm-sku-label {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--ypm-dim);
}
.ypm .ypm-part-sku a {
  color: var(--ypm-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ypm-search-part .ypm-part-description {
  font-family: inherit;
}
.ypm-product-sku {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 8px 0 18px;
  padding: 8px 13px;
  border: 1px solid #ccdfe9;
  border-radius: 7px;
  background: #edf5fa;
  color: #153c50;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.ypm-product-sku .ypm-product-sku-label {
  font-size: 13px;
  font-weight: 600;
}
.ypm-product-sku strong {
  font-size: clamp(15px, 1.1rem, 20px);
  font-weight: 800;
  letter-spacing: 0.02em;
}


/* v1.1.3: Equipment-specific filter alongside the list, with the cart always visible. */
.ypm-model-filter {
  display:flex; flex-wrap:wrap; gap:8px; align-items:center;
  padding:8px 0 18px; margin:0;
}
.ypm-model-filter-label {font-size:13px; font-weight:650; color:var(--ypm-dim); margin-right:4px}
.ypm-model-filter .ypm-chip {margin:0}
.ypm-table-caption {scroll-margin-top: 80px}
.ypm-interchangeability, .ypm-remark {line-height:1.5; margin:5px 0}
.ypm-loop-sku {
  display:block; margin:4px 0 8px; font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:clamp(12px,0.85rem,15px); color:#195572; line-height:1.5;
  overflow-wrap:anywhere;
}
.ypm-loop-sku .ypm-loop-sku-label {color:#657783; font-size:0.87em; font-weight:600}
.ypm-loop-sku strong {font-weight:750}


/* v1.1.4: compact assembly subpart links; no horizontal scroll or long vertical lists. */
.ypm-assembly-components {
  display: flex; align-items: baseline; gap: 5px 7px; flex-wrap: wrap;
  margin-top: 8px; padding: 7px 0 2px;
  font-family: inherit; font-size: 12px; line-height: 1.7;
}
.ypm-assembly-label { color: var(--ypm-dim); font-weight: 650; white-space: nowrap; }
.ypm-assembly-skus { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; min-width: 0; max-width: 100%; }
.ypm .ypm-subpart {
  display: inline-flex; max-width: 100%; min-width: 0; align-items: center;
  padding: 1px 6px; background: #edf4f8; border: 1px solid #d9e7ee;
  border-radius: 4px; font: 600 12px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;
}
.ypm .ypm-subpart a { color: var(--ypm-blue); text-decoration: underline; overflow-wrap: anywhere; }
.ypm-assembly-more { display: inline; min-width: 0; }
.ypm-assembly-more summary { display: inline; cursor: pointer; color: var(--ypm-blue); font-size: 12px; font-weight: 700; }
.ypm-assembly-more[open] { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.ypm-assembly-more[open] .ypm-assembly-skus { margin-left: 3px; }
.ypm-product-assemblies { margin: 5px 0 21px; padding: 14px 16px; border: 1px solid var(--ypm-border); border-radius: 9px; background: #f9fcfd; }
.ypm-product-assemblies h3 { margin: 0 0 5px; font-size: 1.15rem; }
.ypm-product-assemblies .ypm-muted { font-size: 12px; }
.ypm-assembly-context { border-top: 1px solid #e2ebf0; padding: 9px 0; min-width: 0; }
.ypm-assembly-origin { font-weight: 700; }
.ypm-product-assemblies .ypm-assembly-components { margin-top: 3px; }
@container ypm-parts (max-width: 520px) {
  .ypm-assembly-components { font-size: 12px; }
  .ypm-product-assemblies { padding: 12px; }
}

/* v1.2.0 — Sensei alternative, compact and always within the available width. */
.ypm-sensei-alt{display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px;margin:12px 0;padding:11px 13px;border:1px solid #d4e3ec;border-radius:10px;background:#f2f8fb;font-size:14px;max-width:100%;min-width:0;box-sizing:border-box}
.ypm-sensei-compact{font-size:12px;margin:7px 0 1px;padding:7px 9px;border-radius:7px}
.ypm-sensei-label{font-weight:750;color:#163c50}
.ypm-sensei-link{overflow-wrap:anywhere;font-weight:700}
.ypm-sensei-price{font-weight:700;color:#163c50;white-space:nowrap}
.ypm-sensei-cart{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 0 auto!important;padding:0!important}
.ypm-sensei-cart input[type=number]{width:56px!important;min-width:0!important;max-width:56px!important;min-height:34px!important;padding:4px 6px!important;margin:0!important;font-size:13px!important}
.ypm-sensei-cart button{width:auto!important;min-height:34px;padding:5px 10px!important;margin:0!important;white-space:nowrap;font-size:12px!important;color:#fff!important;background:#156080!important;border-radius:5px}
.ypm-loop-sensei{display:block;font-size:12px;margin:6px 0}
.ypm-product-sensei{margin:12px 0 18px}
.ypm-product-sensei .ypm-sensei-alt{font-size:14px}
.ypm .ypm-result{flex-wrap:wrap}
@media(max-width:700px){.ypm-sensei-cart{margin-left:0!important}.ypm-sensei-compact{align-items:flex-start}}

.ypm-subpart-sensei{display:inline-block;margin-left:4px;padding:1px 4px;border-radius:4px;background:#dceef7;color:#175e82!important;font-size:10px;font-weight:800}

/* v1.3: product purchase cards, shared brand images and delivery ETA */
.ypm-product-purchase{display:grid;gap:11px;margin:15px 0 20px}
.ypm-buy-card{border:1px solid #d3e2e9;background:#f7fafc;border-radius:10px;padding:16px 18px;max-width:100%;min-width:0}
.ypm-buy-current{border-color:#8fb8cb;background:#eff7fa}
.ypm-buy-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 8px}
.ypm-buy-brand{font-size:17px;font-weight:750;color:#143549}
.ypm-buy-tag{color:#52707f;font-size:12px;font-weight:600}
.ypm-buy-link{font-size:13px;text-decoration:underline}
.ypm-buy-line{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.ypm-buy-sku{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:14px;overflow-wrap:anywhere}
.ypm-buy-price{font-size:19px;font-weight:750}
.ypm-buy-pending,.ypm-buy-unavailable{color:#5b6f7a;font-size:13px}
.ypm-buy-bottom{display:flex;align-items:center;gap:12px}
.ypm-buy-form{width:100%;justify-content:flex-start;display:flex!important;align-items:stretch!important;gap:9px!important}
.ypm-buy-form input[type=number]{flex:0 0 80px!important;width:80px!important;height:43px!important;padding:9px!important;margin:0!important}
.ypm-buy-form button{height:43px!important;margin:0!important;padding:9px 18px!important;background:#155c78!important;color:white!important;border:0!important;border-radius:6px!important}
.ypm-delivery{display:flex;align-items:center;gap:8px;margin-top:12px;color:#4d6978;font-size:13px;min-height:21px}
.ypm-spinner{display:inline-block;width:13px;height:13px;border-radius:50%;border:2px solid #bbd4e2;border-top-color:#155c78;animation:ypmspin .85s linear infinite;flex:none}
.ypm-delivery-text{white-space:pre-line;overflow-wrap:anywhere;line-height:1.55}
.ypm-delivery [hidden]{display:none!important}
.ypm-delivery-ready .ypm-spinner{display:none}
.ypm-verify-stock{background:transparent!important;border:0!important;padding:0!important;margin:0!important;color:#155c78!important;font:inherit!important;font-weight:650!important;text-decoration:underline!important;cursor:pointer!important;box-shadow:none!important}
.ypm-verify-stock:hover,.ypm-verify-stock:focus-visible{color:#0d4159!important;text-decoration:underline!important}
@keyframes ypmspin{to{transform:rotate(360deg)}}
.ypm-product-description{margin:18px 0 22px;line-height:1.65}
.ypm-product-description h3,.ypm-product-equipment h3{margin:12px 0;font-size:1.1rem}
.ypm-product-equipment .ypm-used-chips{margin:8px 0 15px}
.ypm-product-usage{margin:12px 0 22px;padding:0;border:0}
@media(max-width:560px){.ypm-buy-card{padding:12px}.ypm-buy-form button{flex:1}.ypm-buy-form input[type=number]{width:65px!important;flex-basis:65px!important}}


/* v1.3.1 — Hide theme / WooCommerce native product clutter on YPM products ONLY.
   Classic hooks are also removed in PHP; these scoped selectors cover theme overrides
   and product blocks that bypass the standard WooCommerce template hooks. */
body.ypm-managed-product .woocommerce-breadcrumb,
body.ypm-managed-product .storefront-breadcrumb,
body.ypm-managed-product .woocommerce-breadcrumbs,
body.ypm-managed-product .wp-block-woocommerce-breadcrumbs,
body.ypm-managed-product .wc-block-breadcrumbs,
body.ypm-managed-product .breadcrumb,
body.ypm-managed-product .breadcrumbs,
body.ypm-managed-product .breadcrumb-trail,
body.ypm-managed-product .ast-breadcrumbs-wrapper,
body.ypm-managed-product nav[aria-label="Breadcrumb"],
body.ypm-managed-product nav[aria-label="Breadcrumbs"],
body.ypm-managed-product div.product .summary > form.cart:not(.ypm-buy-form),
body.ypm-managed-product div.product .summary .product_meta,
body.ypm-managed-product div.product .summary > .price,
body.ypm-managed-product div.product .summary > p.price,
body.ypm-managed-product div.product .summary > .woocommerce-product-details__short-description,
body.ypm-managed-product div.product .summary > .wp-block-woocommerce-product-price,
body.ypm-managed-product div.product .summary > span.price,
body.ypm-managed-product .wp-block-add-to-cart-form,
body.ypm-managed-product .wp-block-woocommerce-product-button,
body.ypm-managed-product .wp-block-woocommerce-product-meta,
body.ypm-managed-product .woocommerce-tabs,
body.ypm-managed-product .related.products,
body.ypm-managed-product .upsells.products,
body.ypm-managed-product .wp-block-woocommerce-related-products,
body.ypm-managed-product .wc-block-related-products {
    display:none!important;
}

/* Matching brand purchase controls, regardless of catalog or search entry point. */
.ypm-order-options { display:grid; gap:7px; width:100%; min-width:0; max-width:300px; }
.ypm-order-choice { padding:8px 9px; border:1px solid #d3e2e9; background:#f7fafc; border-radius:8px; min-width:0; }
.ypm-order-heading { display:flex; flex-direction:column; gap:1px; margin-bottom:5px; }
.ypm-order-heading strong { font-size:12px; color:#143549; font-weight:750; }
.ypm a.ypm-order-sku { font:600 11px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; overflow-wrap:anywhere; text-decoration:underline; }
.ypm-order-price { display:block; font-weight:750; font-size:13px; margin-bottom:6px; white-space:nowrap; }
.ypm-order-choice .ypm-cart-form { display:flex; align-items:stretch; flex-wrap:nowrap; gap:6px; width:100%; margin:0!important; padding:0!important; }
.ypm-order-choice .ypm-cart-form input[type=number] { width:55px!important; flex:0 0 55px; min-width:0; min-height:35px; padding:5px!important; margin:0!important; font-size:12px; }
.ypm-order-choice .ypm-cart-form button { width:auto; min-height:35px; padding:5px 12px!important; margin:0!important; font-size:12px!important; color:white!important; background:var(--ypm-blue)!important; border-color:var(--ypm-blue)!important; }
.ypm-order-choice .ypm-muted { font-size:11px; }
.ypm-table th:nth-child(1){width:6%}
.ypm-table th:nth-child(2){width:29%}
.ypm-table th:nth-child(3){width:18%}
.ypm-table th:nth-child(4){width:25%}
.ypm-table th:nth-child(5){width:22%}
.ypm-table .ypm-order{overflow-wrap:anywhere}
.ypm-result .ypm-order-options { margin-left:auto; flex:0 1 240px; }
@container ypm-parts (max-width:980px) {
  .ypm-table .ypm-order { width:min(100%,270px); }
}
@container ypm-parts (max-width:520px) {
  .ypm-table .ypm-order { width:100%; }
  .ypm-table .ypm-order-options { max-width:100%; }
  .ypm-table .ypm-order-choice .ypm-cart-form button { flex:1; }
}
@media (max-width:620px) { .ypm-result .ypm-order-options { flex:0 0 100%; max-width:100%; margin-left:0; } }


/* v1.3.2 — Navigator landing: no theme page title or excessive top gap. */
body.ypm-navigator-page .entry-header,
body.ypm-navigator-page .page-header,
body.ypm-navigator-page h1.entry-title,
body.ypm-navigator-page h1.page-title,
body.ypm-navigator-page h1.wp-block-post-title,
body.ypm-navigator-page .wp-block-post-title {
  display:none!important;
}
/* Scope spacing overrides to the page displaying the navigator, not WooCommerce shop/product pages. */
body.ypm-navigator-page main:has(.ypm),
body.ypm-navigator-page .site-main:has(.ypm),
body.ypm-navigator-page .entry-content:has(.ypm),
body.ypm-navigator-page .wp-block-post-content:has(.ypm) {
  padding-top:0!important;
  margin-top:0!important;
}
body.ypm-navigator-page .wp-block-group:has(> .wp-block-post-content .ypm) {
  padding-top:0!important;
}
body.ypm-navigator-page .wp-block-group:has(> .wp-block-post-title) {
  margin-bottom:0!important;
  padding-top:0!important;
}
body.ypm-navigator-page .ypm {
  margin-top:0;
}
.ypm .ypm-searchbar { padding-top:19px; }
.ypm .ypm-search-grid { margin:0; }
/* Hero image belongs exclusively to an empty search landing page. Never draw behind results. */
.ypm.ypm-search-landing {
  padding:0;
  border-radius:14px;
}
.ypm.ypm-search-landing-image {
  background-position:center;
  background-repeat:no-repeat;
  background-size:cover;
  min-height:clamp(320px,55vh,620px);
  padding:clamp(22px,5vw,75px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  /* Responsive hero; JS aligns its center to the viewport when the theme's
     Gutenberg/classic content column is off-center or constrained. */
  box-sizing:border-box;
  width:min(1200px,calc(100vw - 32px))!important;
  max-width:none!important;
  margin:0 0 32px!important;
  position:relative;
  left:0;
  transform:none!important;
}
.ypm.ypm-search-landing-image .ypm-searchbar {
  width:100%;
  background:rgba(250,253,255,.94);
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
  margin:0;
  box-shadow:0 5px 25px rgba(15,36,50,.09);
}
@media(max-width:700px){
  .ypm.ypm-search-landing-image {padding:20px;min-height:340px;}
  .ypm.ypm-search-landing-image .ypm-searchbar {padding:16px;}
}

/* Warehouse stock summaries wrap instead of overflowing purchase cards. */
.ypm-delivery{flex-wrap:wrap;overflow-wrap:anywhere;line-height:1.4}

/* v1.3.9 — Shipping measurements: proper separation below the SKU badge.
   The former -9px top margin let the line collide with the SKU in themes with
   custom WooCommerce summary typography. Keep one full-width, left-aligned row. */
body.ypm-managed-product div.product .summary p.ypm-product-sku {
  margin-bottom: 0 !important;
}
body.ypm-managed-product div.product .summary .ypm-product-specs {
  display: block !important;
  clear: both;
  float: none !important;
  width: 100%;
  box-sizing: border-box;
  margin: 13px 0 22px !important;
  padding: 0 !important;
  font-size: 14px;
  line-height: 1.65;
  color: #24485a;
  text-align: left;
  overflow-wrap: anywhere;
}
body.ypm-managed-product .ypm-product-specs-values {
  display: inline;
  font-weight: 500;
}
body.ypm-managed-product .ypm-product-specs-progress {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.5;
  color: #718590;
}
body.ypm-managed-product .ypm-product-specs-progress[hidden] { display: none !important; }

/* v1.4.0 — Price placeholders remain invisible until the supplier check has
   returned. Author display rules must not defeat the native [hidden] attribute. */
.ypm-order-price[hidden],
.ypm-buy-price[hidden],
.ypm-buy-pending[hidden] { display:none !important; }
