/*
 * EVAFoams Modern 1.5.9 - legacy single product color isolation.
 * Enqueued only on product singles; does NOT repaint the unified footer.
 * Restores the original light canvas/legible text while keeping blue accents.
 */

/* V1.5.10 fix: the parent evafoam/header.php opens a bare <body> without
 * WordPress body classes. Its dynamic style.php may color the BODY itself,
 * which shows as navy side gutters outside the white content canvas.
 * This stylesheet is loaded ONLY for legacy product singles, so overriding
 * html/body here does not affect category pages, modern pages or the footer. */
html,
body {
  background-color:#ffffff !important;
  background-image:none !important;
}

/* Preserve the existing white legacy page shell and content. */
#pagebox,
#pagebox.box,
#mbody {
  background-color:#ffffff !important;
  background-image:none !important;
}

#pagebox { background:#ffffff !important; }
#mbody { background:#ffffff !important; color:#344458 !important; }
#mbody > .mbox { background:#ffffff !important; }
#mbody #mcontainer,
#mbody #mcontents,
#mbody #mycontents,
#mbody #primary,
#mbody #sdiv,
#mbody #sbox,
#mbody #sdiv1 { background-color:#ffffff !important; }

/* Product heading, description, links and specifications: dark on white. */
#mbody #mcontainer #sdiv1,
#mbody #mcontainer #mycontents { color:#334155 !important; }
#mbody #mcontainer #sdiv1 h1,
#mbody #mcontainer #mycontents h1,
#mbody #mcontainer #mycontents h2,
#mbody #mcontainer #mycontents h3,
#mbody #mcontainer #mycontents h4 { color:#1b2d42 !important; }
#mbody #mcontainer #sdiv1 p,
#mbody #mcontainer #mycontents p,
#mbody #mcontainer #mycontents li,
#mbody #mcontainer #mycontents td { color:#3c4d5e !important; }
#mbody #mcontainer #sdiv1 a:not(.menquiry):not(.mdetails),
#mbody #mcontainer #mycontents a { color:#147eaf !important; }
#mbody #mcontainer #sdiv1 .menquiry { color:#ffffff !important; }
#mbody #mcontainer .mtab { background:#eef2f6 !important; }
#mbody #mcontainer .mtab ul li:not(.on) { color:#263b50 !important; }
#mbody #mcontainer .mtab ul li.on { color:#ffffff !important; }

/* Seven-category sidebar must never inherit the navy footer palette. */
#mbody #primary li.evafcats-widget,
#mbody #primary li.evafcats-widget .evafcats-nav,
#mbody #primary li.evafcats-widget .evafcats-group,
#mbody #primary li.evafcats-widget .evafcats-links { background-color:#ffffff !important; }
#mbody #primary li.evafcats-widget .evafcats-group summary { color:#2e4355 !important; }
#mbody #primary li.evafcats-widget .evafcats-group[open] > summary,
#mbody #primary li.evafcats-widget .evafcats-group summary:hover { color:#087fae !important; }
#mbody #primary li.evafcats-widget .evafcats-link { color:#4c6170 !important; background:#ffffff !important; }
#mbody #primary li.evafcats-widget .evafcats-link.is-current,
#mbody #primary li.evafcats-widget .evafcats-link:hover { color:#087fae !important; background:#edf7fc !important; }
#mbody #primary li.evafcats-widget .evafcats-all { color:#087fae !important; background:#f0f7fb !important; }

/* Keep the blue accent within tabs and quote buttons, not page backgrounds. */
#mbody #mcontainer #sdiv1 .menquiry,
#mbody #mcontainer #sdiv1 .mdetails { text-decoration:none; }


/* V1.5.11: Fix the underlying desktop layout defect, not just its color.
 * Parent evafoam/single.php has <div id="mclear"></div> after the floated
 * #mcontainer and #primary; parent style.css only clears .mclear (class).
 * Thus #mbody > .mbox collapses, and the navy unified footer rises behind
 * the floated product/sidebar. Contain both floats before the footer.
 * This asset is enqueued only on legacy product singles. */
#mbody > .mbox::after {
  content: "";
  display: block;
  clear: both;
}
#mbody > .mbox > #mclear {
  display: block;
  clear: both;
  float: none;
  width: 100%;
  height: 0;
}

/* v1.5.12: compact breadcrumb in place of the huge category banner.
   This stylesheet is enqueued only on the legacy product detail pages. */
#mbody > .mbox > .evaf-product-breadcrumb {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  column-gap:9px;
  row-gap:4px;
  padding:24px 0 20px;
  margin:0;
  max-width:100%;
  color:#687b8e;
  background:transparent;
  font-size:13px;
  line-height:1.5;
}
#mbody .evaf-product-breadcrumb a {
  color:#2d688b;
  text-decoration:none;
}
#mbody .evaf-product-breadcrumb a:hover,
#mbody .evaf-product-breadcrumb a:focus-visible {
  color:#087fae;
  text-decoration:underline;
}
#mbody .evaf-product-breadcrumb-sep { color:#a1adba; }
#mbody .evaf-product-breadcrumb-current {
  color:#536476;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:min(45ch, 100%);
}
@media (max-width:767px) {
  #mbody > .mbox > .evaf-product-breadcrumb {
    padding:15px 4px 17px;
    font-size:12px;
    column-gap:6px;
  }
  #mbody .evaf-product-breadcrumb-current { max-width:24ch; }
}
