/* Bchex Express header and footer.
   Taken from bibllc/bchex-express site/assets/express.css (header, footer,
   buttons, tokens, Express orange layer). Every rule is scoped to .bx-chrome
   (the <header> and <footer> elements) so the rest of the store is untouched. */

@font-face { font-family: "Aspekta"; src: url("fonts/Aspekta-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Aspekta"; src: url("fonts/Aspekta-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Aspekta"; src: url("fonts/Aspekta-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Aspekta"; src: url("fonts/Aspekta-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Aspekta"; src: url("fonts/Aspekta-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
/* Size-matched stand-in while Aspekta loads (from the design), so text does not jump */
@font-face { font-family: "Aspekta Fallback"; src: local("Arial"), local("Helvetica"), local("Roboto"); font-weight: 400 500; size-adjust: 101%; ascent-override: 108%; descent-override: 32.5%; line-gap-override: 0%; }
@font-face { font-family: "Aspekta Fallback"; src: local("Arial Bold"), local("Helvetica Bold"), local("Roboto Bold"); font-weight: 600 800; size-adjust: 100%; ascent-override: 110%; descent-override: 33%; line-gap-override: 0%; }

/* ---------- Tokens (scoped, not :root, so Porto's variables are safe) ---------- */
.bx-chrome {
  --content-max: 1210px;
  --ink-800: #1F2937;
  --navy: #0D1D61;
  --navy-700: #0A174D;
  --navy-hover: #2B3F99;
  --navy-tint: #EEF1FF;
  --green: #8BC53F;
  --black: #111111;
  --ink-900: #0F172A;
  --ink-800: #1F2937;
  --ink-700: #33475B;
  --ink-600: #494A52;
  --ink-500: #6E7791;
  --ink-300: #C4C9D6;
  --ink-200: #DCE0EB;
  --ink-100: #E7E8F1;
  --sb-orange: #F37720;
  --sb-orange-hover: #F68B3C;
  --sb-ink: #A84A08;
  --sb-tint: #FFF2E8;
  --font: 'Aspekta', 'Aspekta Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-btn: 8px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 140ms;
  --t-base: 260ms;
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  color: var(--ink-700);
}

/* ---------- Base, scoped ---------- */
/* Elementor's kit sets Poppins on every a/h4 (.elementor-kit-2725 a). The doubled class beats it, inside the new header and footer only. */
.bx-chrome.bx-chrome :is(a, h4, p, li, span, b, nav, input, button) { font-family: var(--font); }
.bx-chrome, .bx-chrome *, .bx-chrome *::before, .bx-chrome *::after { box-sizing: border-box; }
.bx-chrome img { max-width: 100%; height: auto; display: block; }
.bx-chrome a { color: inherit; text-decoration: none; }
.bx-chrome a:hover, .bx-chrome a:focus { text-decoration: none; }
.bx-chrome h4, .bx-chrome p, .bx-chrome ul { margin: 0; }
.bx-chrome ul { list-style: none; padding: 0; }
.bx-chrome li { margin: 0; padding: 0; }
.bx-chrome svg { display: block; flex-shrink: 0; }
.bx-chrome a:focus-visible, .bx-chrome button:focus-visible, .bx-chrome input:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.bx-chrome .bh-wrap { max-width: var(--content-max); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
html { scroll-padding-top: 88px; }

/* ---------- Button ---------- */
.bx-chrome .bh-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: var(--r-btn); font-family: var(--font); font-size: 16px; font-weight: 600; line-height: 1.2; white-space: nowrap; cursor: pointer; background: var(--sb-orange); border: 1.5px solid var(--sb-orange); color: var(--black); transition: background-color var(--t-base) ease, border-color var(--t-base) ease, scale var(--t-fast) ease, box-shadow var(--t-base) ease, translate var(--t-base) var(--ease-out); }
.bx-chrome .bh-btn:hover { translate: 0 -2px; background: var(--sb-orange-hover); border-color: var(--sb-orange-hover); color: var(--black); box-shadow: 0 10px 24px -12px rgba(243,119,32,0.7); }
.bx-chrome .bh-btn:active { scale: 0.98; translate: 0 0; }
.bx-chrome .bh-btn-sm { padding: 10px 18px; font-size: 15px; }

/* ---------- Brand lockup ---------- */
.bx-chrome .bh-brand { display: flex; align-items: center; gap: 8px; }
.bx-chrome .bh-brand img { height: 32px; width: auto; }
.bx-chrome .bh-xtag { position: relative; top: 0.28em; display: inline-flex; align-items: center; justify-content: center; gap: 3px; padding: 5px 8px; border-radius: 7px; background: var(--sb-orange); color: var(--black); font-size: 15px; line-height: 1; letter-spacing: -0.02em; transform: skewX(-10deg); box-shadow: 0 8px 18px -10px rgba(243,119,32,0.8); white-space: nowrap; transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) ease; }
.bx-chrome .bh-xtag > * { transform: skewX(10deg); }
.bx-chrome .bh-xtag b { font-weight: 800; }
.bx-chrome .bh-xtag svg { width: 9px; height: 12px; }
.bx-chrome .bh-brand:hover .bh-xtag { transform: skewX(-10deg) translateY(-1px); box-shadow: 0 12px 22px -10px rgba(243,119,32,0.9); }

/* ---------- Header ---------- */
.bh-hdr.bx-chrome { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 1000; background: rgba(255,255,255,0.94); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--ink-100); }
.admin-bar .bh-hdr.bx-chrome { top: 32px; }
.bh-hdr.bx-chrome .bh-wrap { display: flex; align-items: center; gap: 36px; height: 76px; }
.bx-chrome .bh-nav { display: flex; gap: 30px; font-size: 16px; font-weight: 500; color: var(--ink-800); }
.bx-chrome .bh-nav a { position: relative; padding: 6px 0; transition: color var(--t-fast) ease; }
.bx-chrome .bh-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--sb-orange); scale: 0 1; transform-origin: left; transition: scale var(--t-base) var(--ease-out); }
.bx-chrome .bh-nav a:hover { color: var(--navy); }
.bx-chrome .bh-nav a:hover::after { scale: 1 1; }
.bx-chrome .bh-hdr-right { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; color: var(--ink-800); }
.bx-chrome .bh-hdr-right .bh-login { padding: 8px 10px; }
.bx-chrome .bh-hdr-right .bh-login:hover { color: var(--navy); }
.bx-chrome .bh-phone { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r-btn); color: var(--sb-ink); font-weight: 600; white-space: nowrap; transition: background-color var(--t-fast) ease; }
.bx-chrome .bh-phone:hover { background: var(--sb-tint); color: var(--sb-ink); }
.bx-chrome .bh-cart { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-btn); color: var(--sb-ink); transition: background-color var(--t-fast) ease; }
.bx-chrome .bh-cart:hover { background: var(--sb-tint); color: var(--sb-ink); }
.bh-hdr.bx-chrome .bh-btn { margin-left: 6px; }
.bx-chrome .bx-cta-short { display: none; }

/* Cart count (not in the mockup: the store needs it) */
.bx-chrome .bx-cart-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--sb-orange); color: var(--black); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.bx-chrome .bx-cart-count.is-empty { display: none; }

/* ---------- Footer ---------- */
.bx-footer.bx-chrome { background: #FFFFFF; border-top: 1px solid var(--ink-100); padding: 64px 0 34px; }
.bx-chrome .bx-footer-grid { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 44px 64px; align-items: start; }
.bx-chrome .bx-brand { display: inline-flex; margin-bottom: 32px; }
.bx-chrome .bx-brand img { height: 36px; width: auto; }
.bx-chrome .bx-brand .bh-xtag { font-size: 17px; }
.bx-chrome .bx-footer-left > p { font-size: 17px; font-weight: 700; color: var(--navy); margin: 0 0 16px; }
.bx-chrome .bx-news { max-width: 400px; background: #fff; border: 1px solid var(--navy-tint); border-radius: 18px; box-shadow: 0 2px 10px rgba(20,27,43,0.06); padding: 8px; }
.bx-chrome .bx-news form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.bx-chrome .bx-news .hs-form-field { flex: 1 1 180px; min-width: 0; margin: 0; }
.bx-chrome .bx-news .hs-form-field > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bx-chrome .bx-news input.hs-input { width: 100%; height: auto; font-family: var(--font); font-size: 16px; padding: 14px 16px; border: 0; border-radius: 12px; color: var(--ink-900); background: #fff; box-shadow: none; }
/* The store's old newsletter CSS sets .hs-input and form input colors with !important. Win only inside the new footer. */
.bx-footer.bx-chrome .bx-news input.hs-input { background: #fff !important; color: var(--ink-900) !important; border: 0 !important; }
.bx-chrome .bx-news input.hs-input:focus { outline: 2px solid var(--navy); outline-offset: 0; }
.bx-chrome .bx-news .hs_submit, .bx-chrome .bx-news .hs_submit .actions { margin: 0; padding: 0; }
.bx-chrome .bx-news input.hs-button { font-family: var(--font); font-size: 16px; font-weight: 700; color: var(--black); background: var(--sb-orange); border: 0; border-radius: 12px; padding: 15px 22px; cursor: pointer; -webkit-appearance: none; appearance: none; transition: background-color 0.2s; }
.bx-chrome .bx-news input.hs-button:hover { background: var(--sb-orange-hover); }
.bx-footer.bx-chrome .bx-news input.hs-button { color: var(--black) !important; }
/* A store rule sets 18px text in a fixed 50px box, so the label sat low. 16px text on a 20px line fills the box exactly. */
.bx-footer.bx-chrome .bx-news input.hs-button { font-size: 16px !important; line-height: 20px !important; height: 50px !important; padding: 15px 22px !important; box-sizing: border-box !important; vertical-align: middle; }
.bx-chrome .bx-news .hs-error-msgs { list-style: none; margin: 6px 0 0 6px; padding: 0; font-size: 13px; color: #B42318; }
.bx-chrome .bx-news .hs_error_rollup { display: none; }
.bx-chrome .bx-news .legal-consent-container { flex-basis: 100%; font-size: 12px; line-height: 1.5; color: var(--ink-500); }
.bx-chrome .bx-news .submitted-message { padding: 12px 14px; color: var(--navy); font-weight: 600; }
.bx-chrome .bx-news .bx-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bx-chrome .bx-footer-left .bx-news-msg { margin: 10px 0 0; font-size: 14px; font-weight: 500; color: var(--ink-600); min-height: 21px; }
.bx-chrome .bx-footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.bx-chrome .bx-fcol h4 { font-family: var(--font); font-size: 18px; font-weight: 700; line-height: 32px; letter-spacing: 0; text-transform: none; color: var(--navy); margin: 0 0 10px; }
.bx-chrome .bx-fcol ul { display: flex; flex-direction: column; gap: 16px; }
.bx-chrome .bx-fcol a { font-size: 16.5px; line-height: 26px; color: var(--ink-500); transition: color var(--t-fast) ease; }
.bx-chrome .bx-fcol a:hover { color: var(--navy); }
.bx-chrome .bx-footer-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--ink-100); }
.bx-chrome .bx-footer-badges img { height: 72px; width: auto; }
.bx-chrome .bx-footer-badges p { font-size: 15px; color: var(--ink-500); max-width: 330px; line-height: 1.4; }
.bx-chrome .bx-social { display: flex; gap: 10px; margin-left: auto; }
.bx-chrome .bx-social a { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--ink-200); display: grid; place-items: center; color: var(--navy); transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, scale var(--t-fast) ease; }
.bx-chrome .bx-social a:hover { background: var(--sb-tint); border-color: var(--sb-ink); scale: 1.06; }
.bx-chrome .bx-footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; margin-top: 26px; font-size: 15px; color: var(--ink-500); }
.bx-chrome .bx-footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.bx-chrome .bx-footer-bottom a:hover { color: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .bx-chrome .bh-nav { gap: 22px; }
  .bx-chrome .bh-phone span { display: none; }
}
@media (max-width: 1024px) {
  .bx-chrome .bh-nav { display: none; }
  .bx-chrome .bx-footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 782px) {
  .admin-bar .bh-hdr.bx-chrome { top: 0; }
}
@media (max-width: 767px) {
  .bx-chrome .bh-wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .bh-hdr.bx-chrome .bh-wrap { height: 64px; gap: 8px; }
  .bx-chrome .bh-brand { gap: 5px; flex: none; }
  .bx-chrome .bh-brand img { height: 22px; }
  .bx-chrome .bh-xtag { font-size: 12.5px; padding: 4px 6px; gap: 2px; border-radius: 6px; }
  .bx-chrome .bh-xtag svg { width: 7.5px; height: 10px; }
  .bx-chrome .bh-hdr-right { gap: 2px; }
  .bx-chrome .bh-hdr-right .bh-login { display: none; }
  .bx-chrome .bh-phone span { display: none; }
  .bx-chrome .bh-phone { width: 44px; height: 44px; justify-content: center; padding: 0; }
  .bh-hdr.bx-chrome .bh-btn { padding: 10px 14px; margin-left: 2px; font-size: 14px; }
  .bx-chrome .bx-footer-cols { grid-template-columns: 1fr 1fr; }
  .bx-chrome .bx-social { margin-left: 0; }
}
@media (max-width: 520px) {
  .bh-hdr.bx-chrome .bx-cta-full { display: none; }
  .bh-hdr.bx-chrome .bx-cta-short { display: inline; }
}
@media (max-width: 420px) {
  .bh-hdr.bx-chrome .bh-phone { display: none; }
}

/* ---------- Focus header (checkout and applicant pages) and mini footer ---------- */
.bx-chrome { --green-ink: #3F6B0E; }
.bh-hdr.is-focus.bx-chrome .bh-wrap { justify-content: space-between; }
.bx-chrome .bh-focus-note { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14.5px; font-weight: 600; color: var(--ink-700); }
.bx-chrome .bh-focus-note svg { color: var(--green-ink); }
.bh-hdr.is-focus.bx-chrome .bh-hdr-right { margin-left: 0; }
.bx-mini-footer.bx-chrome { border-top: 1px solid var(--ink-100); padding: 22px 0 28px; font-size: 14px; color: var(--ink-500); background: #fff; }
.bx-mini-footer.bx-chrome .bh-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.bx-mini-footer.bx-chrome nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.bx-mini-footer.bx-chrome a:hover { color: var(--navy); }
@media (max-width: 767px) {
  .bh-hdr.is-focus.bx-chrome .bh-focus-note span { font-size: 13px; }
  .bh-hdr.is-focus.bx-chrome .bh-phone { display: inline-flex; }
}

/* ---------- Title band (printed by inc/express-chrome.php; used by the store pages and the log-in shell) ---------- */
.bh-pagehead.bx-chrome { position: relative; overflow: hidden; padding: 40px 0 44px; background: linear-gradient(180deg, #fff 0%, var(--sb-tint) 100%); }
.bh-pagehead.bx-chrome .bh-pagehead-h { margin: 0; font-family: var(--font); font-size: clamp(32px, 4vw, 52px); font-weight: 800; line-height: 1.08; letter-spacing: -0.035em; color: var(--black); }
.bh-pagehead.bx-chrome .bh-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 14px; color: var(--ink-500); }
.bh-pagehead.bx-chrome .bh-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-300); }
.bh-pagehead.bx-chrome .bh-crumbs a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.bh-pagehead.bx-chrome .bh-crumbs [aria-current] { color: var(--ink-800); font-weight: 600; }

/* Measured against the design (11-06): the store's 14px body text, its 24px list lines and
   its form rules (form input 18px/50px, form label navy, all !important) leaked into the header and footer */
.bx-chrome { font-size: 16px; }
.bx-chrome li { line-height: inherit; }
.bx-chrome :is(img, svg) { vertical-align: baseline; }
.bx-footer.bx-chrome .bx-news label { color: var(--ink-700) !important; }
.bx-footer.bx-chrome .bx-news input.hs-input { font-size: 16px !important; line-height: 25.6px !important; height: auto !important; }
.bx-footer.bx-chrome .bx-news input.hs-button { line-height: 25.6px !important; height: auto !important; }
