/* Eclipse MDI Related Products Matrix 1.2.0.
 * All design declarations are scoped to .erpm, leaving WPBakery and The7 intact.
 */
body.single-product .erpm {
  --erpm-navy: #071b46;
  --erpm-blue: #1152a4;
  --erpm-orange: #f97316;
  --erpm-ink: #0b1c42;
  --erpm-muted: #314366;
  --erpm-border: #dfE6f6;
  width: 100%;
  max-width: 1320px;
  margin: 36px auto 40px;
  box-sizing: border-box;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 15px 38px rgba(9,32,74,.13), 0 3px 10px rgba(9,32,74,.07);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  font-family: inherit;
  color: var(--erpm-ink);
}
body.single-product .erpm *, body.single-product .erpm *::before, body.single-product .erpm *::after { box-sizing: border-box; }
body.single-product .erpm .erpm-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 79px;
  padding: 18px 36px;
  color: #fff;
  background-color: var(--erpm-navy);
  background-image: linear-gradient(103deg, rgba(4,20,56,.16) 0%, rgba(8,34,83,.05) 34%, rgba(18,65,147,.20) 100%), url('header-wave.svg');
  background-size: cover;
  background-position: center;
  position: relative;
}
body.single-product .erpm .erpm-banner::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 31%;
  width: 14px;
  background: var(--erpm-orange);
  transform: skewX(-43deg);
  transform-origin: top;
  box-shadow: 0 0 2px rgba(255,255,255,.10);
}
body.single-product .erpm .erpm-banner h2 {
  color: #fff !important;
  font-size: clamp(22px, 2.2vw, 31px) !important;
  font-weight: 800 !important;
  font-style: italic;
  line-height: 1.15 !important;
  letter-spacing: -.025em;
  margin: 0 !important;
  padding: 0 !important;
  text-transform: none;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 1px rgba(0,0,0,.22);
}
body.single-product .erpm .erpm-banner-note {
  color: #d8e7ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .19em;
  text-align: right;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
body.single-product .erpm .erpm-table-frame { overflow-x: auto; width: 100%; }
body.single-product .erpm .erpm-table,
body.single-product .erpm .erpm-table tbody,
body.single-product .erpm .erpm-table thead { width: 100%; margin: 0; border: 0; border-collapse: collapse; border-spacing: 0; }
body.single-product .erpm .erpm-table { table-layout: fixed; box-shadow: none; }
body.single-product .erpm .erpm-table tr {
  display: grid;
  grid-template-columns: 100px minmax(175px,1.35fr) minmax(180px,1.52fr) minmax(155px,1.08fr) minmax(135px,1.02fr) 143px;
  align-items: center;
  width: 100%;
  gap: 0;
  border: 0;
  transition: background-color .16s ease;
}
body.single-product .erpm .erpm-table thead tr {
  background: linear-gradient(180deg,#edf3fc 0%,#dfe8f6 100%);
  border-bottom: 1px solid #cbd8ec;
}
body.single-product .erpm .erpm-table th {
  padding: 13px 13px;
  color: #102550;
  background: transparent;
  text-align: left;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 800;
  border: 0;
  text-transform: none;
  vertical-align: middle;
}
body.single-product .erpm .erpm-table th:first-child,
body.single-product .erpm .erpm-table td.erpm-col-image { text-align: center; }
body.single-product .erpm .erpm-table tbody tr { background: #fff; border-bottom: 1px solid #e6ecf7; }
body.single-product .erpm .erpm-table tbody tr:nth-child(even) { background: #edf2fd; }
body.single-product .erpm .erpm-table tbody tr:hover { background: #e4ecfc; }
body.single-product .erpm .erpm-table tbody tr:last-child { border-bottom: 0; }
body.single-product .erpm .erpm-table td {
  padding: 11px 13px;
  border: none !important;
  background: transparent !important;
  color: #17264a;
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.42;
  min-width: 0;
  vertical-align: middle;
}
body.single-product .erpm .erpm-image-link {
  width: 76px;
  height: 69px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  overflow: hidden;
  border-radius: 7px;
  background: transparent;
  border: none;
}
body.single-product .erpm .erpm-product-image {
  width: auto !important;
  max-width: 72px !important;
  height: auto !important;
  max-height: 66px !important;
  margin: 0 auto !important;
  object-fit: contain;
  box-shadow: none;
  mix-blend-mode: multiply;
}
body.single-product .erpm .erpm-product-name {
  display: inline-block;
  color: #0b225c !important;
  font-size: 13.4px;
  line-height: 1.35;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: none !important;
  overflow-wrap: anywhere;
}
body.single-product .erpm .erpm-product-name:hover { color: #0f5ab8 !important; text-decoration: underline !important; }
body.single-product .erpm .erpm-col-description { color: #243653; }
body.single-product .erpm .erpm-frequency {
  background: linear-gradient(180deg,#f3f6ff,#e7edf9);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  white-space: nowrap;
  color: #0d204c;
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(15,37,80,.07);
}
body.single-product .erpm .erpm-signal {
  color: var(--erpm-orange);
  font-size: 25px;
  line-height: .7;
  font-family: Georgia,serif;
  font-weight: 700;
}
body.single-product .erpm .erpm-col-sku {
  color: #091f53;
  font-weight: 800 !important;
  overflow-wrap: anywhere;
}
body.single-product .erpm .erpm-not-specified { color: #72829c; }
body.single-product .erpm .erpm-button,
body.single-product .erpm .erpm-button:visited {
  display: inline-flex;
  gap: 7px;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  width: 100%;
  padding: 8px 11px;
  border: 0;
  border-radius: 8px;
  color: #fff !important;
  background: var(--erpm-orange) !important;
  background-image: linear-gradient(180deg,rgba(255,255,255,.14),rgba(100,23,0,.08)) !important;
  text-decoration: none !important;
  box-shadow: 0 2px 0 rgba(120,50,0,.20);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
body.single-product .erpm .erpm-button:hover,
body.single-product .erpm .erpm-button:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(199,81,5,.22);
}
body.single-product .erpm a:focus-visible { outline: 3px solid #2369cb; outline-offset: 2px; }
@media (max-width: 1240px) {
  body.single-product .erpm .erpm-table tr {
    grid-template-columns: 84px minmax(150px,1.25fr) minmax(165px,1.25fr) minmax(133px,1fr) minmax(120px,1fr) 123px;
  }
  body.single-product .erpm .erpm-table th,
  body.single-product .erpm .erpm-table td { padding: 11px 9px; }
  body.single-product .erpm .erpm-product-name { font-size: 12.5px; }
  body.single-product .erpm .erpm-banner-note { display: none; }
}
@media (max-width: 920px) {
  body.single-product .erpm .erpm-banner { padding: 19px 26px; }
  body.single-product .erpm .erpm-banner::before { left: auto; right: 20%; }
  body.single-product .erpm .erpm-table tr { grid-template-columns: 78px minmax(135px,1.2fr) minmax(150px,1.3fr) 120px 120px; }
  body.single-product .erpm .erpm-table th:nth-child(3),
  body.single-product .erpm .erpm-table td:nth-child(3) { display: none; }
  body.single-product .erpm .erpm-table th:nth-child(1),
  body.single-product .erpm .erpm-table td:nth-child(1) { padding-left: 8px; }
  body.single-product .erpm .erpm-col-action .erpm-button { font-size: 11px; }
}
@media (max-width: 620px) {
  body.single-product .erpm { border-radius: 14px; margin: 26px auto; }
  body.single-product .erpm .erpm-banner { min-height: 71px; padding: 16px 19px; }
  body.single-product .erpm .erpm-banner::before { right: 13%; width: 10px; }
  body.single-product .erpm .erpm-banner h2 { font-size: 24px !important; }
  body.single-product .erpm .erpm-table thead { display: none; }
  body.single-product .erpm .erpm-table tbody { display: block; padding: 7px 10px 14px; }
  body.single-product .erpm .erpm-table tbody tr {
    display: grid;
    grid-template-columns: 85px minmax(0,1fr);
    align-items: center;
    gap: 7px 11px;
    margin-top: 10px;
    border: 1px solid #dce5f6;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 3px 9px rgba(20,53,103,.04);
  }
  body.single-product .erpm .erpm-table td { display: block; padding: 0 !important; font-size: 12px; }
  body.single-product .erpm .erpm-table td:nth-child(3) { display: none; }
  body.single-product .erpm .erpm-table td.erpm-col-image { grid-column: 1; grid-row: 1 / span 3; }
  body.single-product .erpm .erpm-table td.erpm-col-product { grid-column: 2; grid-row: 1; }
  body.single-product .erpm .erpm-table td.erpm-col-frequency { grid-column: 2; grid-row: 2; }
  body.single-product .erpm .erpm-table td.erpm-col-sku { grid-column: 2; grid-row: 3; }
  body.single-product .erpm .erpm-table td.erpm-col-action { grid-column: 1 / -1; grid-row: 4; }
  body.single-product .erpm .erpm-table td.erpm-col-action a { width: 100%; }
  body.single-product .erpm .erpm-table .erpm-frequency { font-size: 11px; padding: 6px 8px; }
  body.single-product .erpm .erpm-table .erpm-product-name { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  body.single-product .erpm *, body.single-product .erpm *::before, body.single-product .erpm *::after { transition: none !important; }
}

/* In case JavaScript cannot relocate the matrix, show it below the page instead of losing content. */
body.single-product .erpm-fallback {padding: 1px 20px; background:#f6f8fd;}

/* In manual mode the footer copy is staging only. Keep the original page intact
   unless the shortcode/marker is actually found and the matrix can be moved. */
body.single-product .erpm-manual-stage { display: none !important; }

/* The class is added ONLY after a successful placement. A stale 1.3.1
   display:none!important rule must not keep the re-enabled matrix hidden. */
html body.single-product.erpm-has-matrix .erpm.erpm-placed { display: block !important; }
