/* =========================================================================
   ZFA Megamenu — unified stylesheet for the About + Product modules.

   Merged in 2.0.0 from the two predecessor standalone plugins
   (ZFA About Megamenu 1.4.7.2 + ZFA Product Megamenu 1.6.5) to:
     - eliminate the second HTTP request on every front-end page,
     - keep the cascade rule-order intact per module (cascade is module-
       scoped because the two class namespaces don't intersect).

   Layout:
     :root                          — unified custom properties.
     ABOUT MODULE                   — .zfa-about-megamenu__* rules.
     PRODUCT MODULE                 — .zfa-megamenu__* + .zfa-megamenu rules.

   All selectors remain namespaced under either `.zfa-about-megamenu`
   or `.zfa-megamenu` — no global classes are touched. CSS custom
   properties keep their `--zfa-mm-about-*` and `--zfa-mm-product-*`
   prefixes so they remain self-documenting and won't collide if a
   site already defines either set.
   ========================================================================= */

:root {
  /* AA-safe palette (v2.0.1 a11y audit).
     Brand colors preserved exactly: --zfa-mm-about-color-primary stays
     #f27024, --zfa-mm-product-accent stays #e58b45, --zfa-mm-product-muted
     stays #8a8a8a. Contrast was failing because orange was used as the
     *text* color on white / pale surfaces. Fix: swap text on orange surfaces
     to ink (#1c1c1c), and let the brand orange live on as background /
     border / left-bar / underline decoration. The orange stays in every
     visible spot — only the readable text tone changes.
     New --zfa-mm-product-muted-text (#6a6a6a, 5.41:1 on white) is added
     for body copy in the empty state; --zfa-mm-product-muted (#8a8a8a)
     is kept for decorative chevrons / counters / eyebrows at AA-large. */
  --zfa-mm-about-color-primary: #f27024;
  --zfa-mm-about-color-ink:     #1c1c1c;
  --zfa-mm-about-color-muted:   #4b4b4b;
  --zfa-mm-about-color-hair:    rgba(28, 28, 28, 0.08);
  --zfa-mm-about-color-surface: #ffffff;
  --zfa-mm-about-color-shadow:  rgba(28, 28, 28, 0.18);
  --zfa-mm-about-easing:        ease;

  --zfa-mm-product-border:       #ececec;
  --zfa-mm-product-text:         #1f1f1f;
  --zfa-mm-product-muted:        #8a8a8a;
  --zfa-mm-product-muted-text:   #6a6a6a;
  --zfa-mm-product-accent:       #e58b45;
  --zfa-mm-product-topbar:       #1496d4;
  --zfa-mm-product-card:         #f5f5f5;
  --zfa-mm-product-card-border:  #ededed;
  --zfa-mm-product-active-bg:    #fff7f0;
  --zfa-mm-product-radius:       0;
}

/* =========================================================================
   ABOUT MODULE
   ========================================================================= */

/* ---------- Panel ---------- */



.zfa-about-megamenu {
	background: var(--zfa-mm-about-color-surface);
	color: var(--zfa-mm-about-color-ink);

	box-shadow: 0 24px 48px -16px var(--zfa-mm-about-color-shadow);
	padding: 28px 32px 20px;
	font-family: inherit;
	direction: ltr;
	/* Flex-column keeps the grid + footer stacked vertically even if a
	 * ancestor constrains the container narrower than the breakpoint
	 * expects. The grid itself stays 5 columns; the footer just sits
	 * below as its own block. */
	display: flex;
	flex-direction: column;
	gap: 18px;
}
/* Mobile-first: single column by default; expand at the breakpoints. */
.zfa-about-megamenu__grid {
	display: grid;
	grid-template-columns: 1fr;
	grid-auto-rows: auto;
	gap: 14px;
	width: 100%;
}
@media (min-width: 600px) {
	.zfa-about-megamenu__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 18px;
	}
}
@media (min-width: 992px) {
	.zfa-about-megamenu__grid {
		grid-template-columns: repeat(5, 1fr);
		gap: 20px;
	}
}
@media (min-width: 1200px) {
	.zfa-about-megamenu__grid {
		gap: 24px;
	}
}

/* ---------- Card ---------- */

/* The card itself is now a positioning context for the flyout.
 * It has no visible border; visual separation is provided by the
 * 1px divider drawn on each .card-base (which sits at the same
 * position as the card at-rest). */
.zfa-about-megamenu__card {
	position: relative;
	display: block;
	min-width: 0;
	padding: 0;
}
/* The card-base is just the image container. The flyout positions on
 * the outer .card so it can extend below the image without being clipped.
 * The title (a sibling of card-base) stays at z-index 6, always visible
 * above the flyout. */

.zfa-about-megamenu__card-base {
	display: block;
	padding: 4px 0;
	border-right: 1px solid var(--zfa-mm-about-color-hair);
	transition: transform 180ms var(--zfa-mm-about-easing);
}
/* Image wrapper  16:10, rounded */
.zfa-about-megamenu__image,
.zfa-about-megamenu__image-img,
 .zfa-about-megamenu__image-fallback {
 	display: block;
 	width: 100%;
 	aspect-ratio: 16 / 10;
 	overflow: hidden;
 	background: var(--zfa-mm-about-color-hair);
 }
 .zfa-about-megamenu__image-img,
 .zfa-about-megamenu__image-fallback > svg {
 	width: 100%;
 	height: 100%;
 	object-fit: cover;
 	transition: transform 220ms var(--zfa-mm-about-easing), box-shadow 220ms var(--zfa-mm-about-easing);
 	display: block;
 }

 /* Hover lift on the image */
 /* Hover lift on the image (lift the card-base, not the image itself). */
 .zfa-about-megamenu__card.is-open .zfa-about-megamenu__card-base,
 .zfa-about-megamenu__card:hover .zfa-about-megamenu__card-base,
 .zfa-about-megamenu__card:focus-within .zfa-about-megamenu__card-base {
 	transform: translateY(-2px);
 }
 .zfa-about-megamenu__card.is-open .zfa-about-megamenu__image-img,
 .zfa-about-megamenu__card.is-open .zfa-about-megamenu__image-fallback > svg,
 .zfa-about-megamenu__card:hover .zfa-about-megamenu__image-img,
 .zfa-about-megamenu__card:focus-within .zfa-about-megamenu__image-img,
 .zfa-about-megamenu__card:hover .zfa-about-megamenu__image-fallback > svg,
 .zfa-about-megamenu__card:focus-within .zfa-about-megamenu__image-fallback > svg {
 	transform: translateY(-2px);
 	box-shadow: 0 10px 24px -10px var(--zfa-mm-about-color-shadow);
 }

 /* Title — sibling of card-base, positioned relative so it always sits
  * above the flyout. */
 .zfa-about-megamenu__title {
 	position: relative;
 	z-index: 6;
 	display: block;
 	margin-top: 10px;
 	padding: 2px 0;
 	color: var(--zfa-mm-about-color-ink);
 	font-size: 16px;
 	font-weight: 600;
 	line-height: 1.3;
 	text-decoration: none;
 	letter-spacing: 0;
 	transition: color 140ms var(--zfa-mm-about-easing);
 }
.zfa-about-megamenu__card:hover .zfa-about-megamenu__title,
.zfa-about-megamenu__card:focus-within .zfa-about-megamenu__title,
.zfa-about-megamenu__card.is-active .zfa-about-megamenu__title {
	/* Brand orange was here for v2.0.0; a11y audit v2.0.1 moved the
	   readable text to ink (#1c1c1c, 17:1 on white) and keeps the
	   brand orange as the underline decoration. */
	color: var(--zfa-mm-about-color-ink);
	text-decoration: underline;
	text-decoration-color: var(--zfa-mm-about-color-primary);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.zfa-about-megamenu__desc {
	margin: 0 0 10px;
	color: var(--zfa-mm-about-color-muted);
	font-size: 13px;
	line-height: 1.5;
}

/* ---------- Flyout ---------- */

/* The flyout is a hidden absolutely-positioned panel that overlays the
 * card image area. It anchors to the outer .card (not .card-base) so it
 * can extend below the image without being clipped. The title (a sibling
 * of card-base) sits at z-index 6 above the flyout. height:auto lets it
 * size to content; max-height caps it for very tall sub-lists. */
 .zfa-about-megamenu__flyout {
 	position: absolute;
 	left: 0;
 	right: 0;
 	top: 0;
 	bottom: 0;
 	z-index: 5;
 	background: var(--zfa-mm-about-color-surface);
 	padding: 12px;
 	padding-bottom: 48px;   /* leave room for the view-all link */
 	display: flex;
 	flex-direction: column;
 	justify-content: flex-start;

 	/* Initial state: hidden, slightly above resting position, faded. */
 	opacity: 0;
 	visibility: hidden;
 	transform: translateY(-8px);
 	pointer-events: none;

 	transition:
 		opacity 180ms var(--zfa-mm-about-easing),
 		transform 180ms var(--zfa-mm-about-easing),
 		visibility 0s linear 180ms;
 }
 /* View-all link: anchored at the bottom of the flyout, always visible
  * when the flyout is open so users can enter the parent landing page. */
 .zfa-about-megamenu__view-all {
 	position: absolute;
 	left: 12px;
 	right: 12px;
 	bottom: 12px;
 	display: inline-flex;
 	align-items: center;
 	justify-content: space-between;
 	gap: 8px;
 	padding: 8px 12px;

 	background: var(--zfa-mm-about-color-hair);
 	color: var(--zfa-mm-about-color-ink);
 	font-size: 13px;
 	font-weight: 600;
 	text-decoration: none;
 	transition: background 140ms var(--zfa-mm-about-easing), color 140ms var(--zfa-mm-about-easing);
 }
.zfa-about-megamenu__view-all:hover,
.zfa-about-megamenu__view-all:focus-visible {
	background: var(--zfa-mm-about-color-primary);
	/* White on #f27024 fails AA (2.95:1). Ink (#1c1c1c) on the same
	   orange is 5.78:1 — well past AA normal. The orange stays as the
	   surface color, only the readable text changes. */
	color: var(--zfa-mm-about-color-ink);
}
 .zfa-about-megamenu__view-all-arrow {
 	display: inline-flex;
 	align-items: center;
 	transition: transform 140ms var(--zfa-mm-about-easing);
 }
 .zfa-about-megamenu__view-all:hover .zfa-about-megamenu__view-all-arrow,
 .zfa-about-megamenu__view-all:focus-visible .zfa-about-megamenu__view-all-arrow {
 	transform: translateX(2px);
 }
/* Open state — driven by JS (.is-open class). CSS-only fallback
 * via :hover/:focus-within so the panel still works without JS. */
.zfa-about-megamenu__card.is-open > .zfa-about-megamenu__flyout,
.zfa-about-megamenu__card.is-open .zfa-about-megamenu__flyout,
.zfa-about-megamenu__card:hover > .zfa-about-megamenu__flyout,
.zfa-about-megamenu__card:hover .zfa-about-megamenu__flyout,
.zfa-about-megamenu__card:focus-within > .zfa-about-megamenu__flyout,
.zfa-about-megamenu__card:focus-within .zfa-about-megamenu__flyout {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
	transition:
		opacity 180ms var(--zfa-mm-about-easing),
		transform 180ms var(--zfa-mm-about-easing),
		visibility 0s linear 0s;
}

/* The card itself shouldn't have a left/right border anymore; the
 * card-base carries it. Keep a transparent border so layout shifts
 * don't surprise anyone. */
.zfa-about-megamenu__card {
	border: 0;
}

/* Scrollable viewport (when > 8 items). Keyboard-focusable so the
 * panel stays operable when the page itself isn't scrolled. */
/* Wrap is the only flex child of the flyout; flex:1 + min-height:0 makes
 * it honor the flyout's padding-bottom (the area reserved for view-all). */
 .zfa-about-megamenu__sublist-wrap {
 	flex: 1 1 auto;
 	min-height: 0;
 	display: flex;
 	flex-direction: column;
 }
 /* Viewport fills the wrap and provides internal scroll when content
 * exceeds the available height. max-height is a safety ceiling for
 * extra-large viewports — usually the wrap+flyout height is the limiter. */
 .zfa-about-megamenu__sublist-viewport {
 	flex: 1 1 auto;
 	min-height: 0;
 	overflow-y: auto;
 	scrollbar-width: thin;
 	scrollbar-color: var(--zfa-mm-about-color-hair) transparent;
 	mask-image: linear-gradient(
 		to bottom,
 		#000 0,
 		#000 calc(100% - 24px),
 		rgba(0, 0, 0, 0) 100%
 	);
 	-webkit-mask-image: linear-gradient(
 		to bottom,
 		#000 0,
 		#000 calc(100% - 24px),
 		rgba(0, 0, 0, 0) 100%
 	);
 }

.zfa-about-megamenu__sublist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

/* Two-column variant (when > 4 items). Splits into 2 columns on desktop;
 * collapses to 1 column at <=991px. */
.zfa-about-megamenu__sublist.is-two-col {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 10px;
	row-gap: 2px;
}

.zfa-about-megamenu__sublist-item {
	margin: 0;
	padding: 0;
	min-width: 0;          /* allow grid columns to actually shrink */
}

/* Link row: [thumb] [text] [chevron] */
.zfa-about-megamenu__sublist-link {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr) 14px;
	align-items: center;
	gap: 8px;
	color: var(--zfa-mm-about-color-muted);
	font-size: 13px;
	line-height: 1.45;
	text-decoration: none;
	padding: 4px 6px;

	transition:
		color 140ms var(--zfa-mm-about-easing),
		background-color 140ms var(--zfa-mm-about-easing),
		transform 140ms var(--zfa-mm-about-easing);
}

.zfa-about-megamenu__sublist-link:hover,
.zfa-about-megamenu__sublist-link:focus-visible {
	color: var(--zfa-mm-about-color-ink);
	background: rgba(242, 112, 36, 0.06);
}
.zfa-about-megamenu__sublist-link:focus-visible {
	outline: 2px solid var(--zfa-mm-about-color-primary);
	outline-offset: 1px;
}

/* Thumbnail (real image OR first-letter avatar). Square, rounded. */
.zfa-about-megamenu__sublist-thumb {
	width: 22px;
	height: 22px;

	background: var(--zfa-mm-about-color-hair);
	flex: none;
	display: grid;
	place-items: center;
	overflow: hidden;
	color: var(--zfa-mm-about-color-primary);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
}
.zfa-about-megamenu__sublist-thumb.has-image {
	background: var(--zfa-mm-about-color-hair);
}
.zfa-about-megamenu__sublist-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.zfa-about-megamenu__sublist-initial {
	text-transform: uppercase;
}

.zfa-about-megamenu__sublist-text {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Chevron. Hidden by default, slides in on hover/focus for a clear
 * "click me" affordance without competing with the text on rest. */
.zfa-about-megamenu__sublist-arrow {
	color: var(--zfa-mm-about-color-primary);
	opacity: 0;
	transform: translateX(-4px);
	transition:
		opacity 140ms var(--zfa-mm-about-easing),
		transform 140ms var(--zfa-mm-about-easing);
}
.zfa-about-megamenu__sublist-link:hover .zfa-about-megamenu__sublist-arrow,
.zfa-about-megamenu__sublist-link:focus-visible .zfa-about-megamenu__sublist-arrow {
	opacity: 1;
	transform: translateX(0);
}

/* Subtle entrance: stagger the items so they fade in when the panel opens.
 * Honors prefers-reduced-motion via the reduced-motion block below. */
.zfa-about-megamenu__sublist-item {
	opacity: 0;
	transform: translateY(2px);
	animation: zfa-about-sublist-in 220ms var(--zfa-mm-about-easing) forwards;
}
.zfa-about-megamenu__sublist-item:nth-child(2)  { animation-delay: 20ms; }
.zfa-about-megamenu__sublist-item:nth-child(3)  { animation-delay: 40ms; }
.zfa-about-megamenu__sublist-item:nth-child(4)  { animation-delay: 60ms; }
.zfa-about-megamenu__sublist-item:nth-child(5)  { animation-delay: 80ms; }
.zfa-about-megamenu__sublist-item:nth-child(6)  { animation-delay: 100ms; }
.zfa-about-megamenu__sublist-item:nth-child(7)  { animation-delay: 120ms; }
.zfa-about-megamenu__sublist-item:nth-child(n+8){ animation-delay: 140ms; }

@keyframes zfa-about-sublist-in {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Active-route indicator */
.zfa-about-megamenu__card.is-active .zfa-about-megamenu__image,
.zfa-about-megamenu__card.is-active .zfa-about-megamenu__image-img,
.zfa-about-megamenu__card.is-active .zfa-about-megamenu__image-fallback {
	outline: 2px solid var(--zfa-mm-about-color-primary);
	outline-offset: 2px;
}

/* ---------- Footer (single CTA) ---------- */

.zfa-about-megamenu__footer {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--zfa-mm-about-color-hair);
}
.zfa-about-megamenu__footer-text {
	color: var(--zfa-mm-about-color-muted);
	font-size: 13px;
}
.zfa-about-megamenu__footer-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--zfa-mm-about-color-primary);
	color: var(--zfa-mm-about-color-ink); /* was #fff — failed AA (2.95:1 on #f27024) */
	padding: 8px 16px;

	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 140ms var(--zfa-mm-about-easing), transform 140ms var(--zfa-mm-about-easing);
}
.zfa-about-megamenu__footer-cta:hover,
.zfa-about-megamenu__footer-cta:focus-visible {
	background: #c9571a; /* AA contrast on white */
	transform: translateY(-1px);
}
.zfa-about-megamenu__footer-arrow {
	transition: transform 140ms var(--zfa-mm-about-easing);
}
.zfa-about-megamenu__footer-cta:hover .zfa-about-megamenu__footer-arrow,
.zfa-about-megamenu__footer-cta:focus-visible .zfa-about-megamenu__footer-arrow {
	transform: translateX(2px);
}

/* ---------- Focus ring (every link inside the panel) ---------- */

.zfa-about-megamenu a:focus-visible {
	outline: 2px solid var(--zfa-mm-about-color-primary);
	outline-offset: 3px;

}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.zfa-about-megamenu-slot,
	.zfa-about-megamenu__image-img,
	.zfa-about-megamenu__image-fallback > svg,
	.zfa-about-megamenu__title,
	.zfa-about-megamenu__sublist-link,
	.zfa-about-megamenu__sublist-arrow,
	.zfa-about-megamenu__sublist-item,
	.zfa-about-megamenu__flyout,
	.zfa-about-megamenu__card-base,
	.zfa-about-megamenu__footer-cta,
	.zfa-about-megamenu__footer-arrow {
		transition: none !important;
		animation: none !important;
	}
	/* Show flyout immediately, no transform. */
	.zfa-about-megamenu__flyout {
		opacity: 1;
		visibility: visible;
		transform: none;
		pointer-events: auto;
	}
	.zfa-about-megamenu__sublist-item {
		opacity: 1;
		transform: none;
	}
	.zfa-about-megamenu__footer-arrow {
		transition: none !important;
	}
	/* Keep the card-base hover lift still visible (it confirms hover), but
	 * without animation. */
	.zfa-about-megamenu__card.is-open .zfa-about-megamenu__card-base,
	.zfa-about-megamenu__card:hover .zfa-about-megamenu__card-base,
	.zfa-about-megamenu__card:focus-within .zfa-about-megamenu__card-base,
	.zfa-about-megamenu__footer-cta:hover,
	.zfa-about-megamenu__footer-cta:focus-visible {
		transform: none;
	}
}

/* Tablet and below: the nav stays a single vertical stack (grid + footer).
 * The grid uses mobile-first media queries ABOVE (line ~42) so we don't
 * fight against the 5-column rule here. We only adjust padding and the
 * sub-list 2-col collapse. */
@media (max-width: 991px) {
	.zfa-about-megamenu {
		padding: 20px 20px 16px;
	}
	/* Below tablet: flyout is inline below the card (no overlay). */
	.zfa-about-megamenu__flyout {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		pointer-events: auto;
		box-shadow: none;
		padding: 12px 0 0;
		margin-top: 10px;
		border-top: 1px solid var(--zfa-mm-about-color-hair);
	}
	.zfa-about-megamenu__card-base {
		border-right: 0;
		border-bottom: 1px solid var(--zfa-mm-about-color-hair);
		padding-bottom: 14px;
	}
	.zfa-about-megamenu__card:nth-last-child(-n+2) .zfa-about-megamenu__card-base { border-bottom: 0; }
	.zfa-about-megamenu__sublist.is-two-col {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 767px) {
	.zfa-about-megamenu {
		padding: 16px 16px 14px;
	}
	.zfa-about-megamenu__card { padding-bottom: 12px; }
}
@media (min-width: 1200px) {
	.zfa-about-megamenu { padding: 22px 24px 16px; }
	.zfa-about-megamenu__title { font-size: 15px; }
}

/* =========================================================================
   Partners card override (v2.0.3).

   The default sub-list layout forces 2 columns once the count exceeds 4
   (so each row shows ~5 items as a compact grid). For the Partners card
   the items are brand logos — typically wide horizontal rectangles — and
   they need more horizontal space per row to read cleanly. So:

     - Force 1 column regardless of count.
     - Bump the thumbnail to 48px so small logos actually appear.
     - Switch `object-fit` from `cover` (crops) to `contain` (letterbox)
       so wide logos are not truncated.
     - Give each row a touch more vertical breathing room.

   Other cards (Who-We-Are, Services, Industries, Clients) are unaffected
   because they don't emit the `is-partners` modifier class.
   ========================================================================= */
.zfa-about-megamenu__sublist.is-partners {
  display: block;                    /* override the .is-two-col grid */
}
.zfa-about-megamenu__sublist.is-partners .zfa-about-megamenu__sublist-link {
  grid-template-columns: 48px minmax(0, 1fr) 14px;
  gap: 12px;
  padding: 6px;
}
.zfa-about-megamenu__sublist.is-partners .zfa-about-megamenu__sublist-thumb {
  width: 48px;
  height: 35px;
}
.zfa-about-megamenu__sublist.is-partners .zfa-about-megamenu__sublist-thumb img {
  object-fit: contain;               /* letterbox, don't crop */
  padding: 4px;                      /* small inset so the logo doesn't
                                        touch the edge of the thumb */
}
.zfa-about-megamenu__sublist.is-partners .zfa-about-megamenu__sublist-text {
  font-weight: 500;
}
/* Mobile breakpoint should still collapse to a clean single column —
   which it already does, because is-partners is block-level and the
   .is-two-col breakpoint rule below only fires on the regular grid. */
.zfa-about-megamenu__sublist.is-partners .zfa-about-megamenu__sublist-item + .zfa-about-megamenu__sublist-item {
  margin-top: 2px;
}

/* =========================================================================
   Industries card override (v2.0.3).

   Same treatment as Partners: industries are page children whose
   thumbnails come from the page featured image (a hero — usually wider
   than tall). The 22px thumb + object-fit:cover default crops the
   hero; bumping to 48px + contain letterboxes it correctly. Items
   without a featured image still render the colored letter avatar,
   which looks intentional at 48px.
   ========================================================================= */
.zfa-about-megamenu__sublist.is-industries {
  display: block;
}
.zfa-about-megamenu__sublist.is-industries .zfa-about-megamenu__sublist-link {
  grid-template-columns: 48px minmax(0, 1fr) 14px;
  gap: 12px;
  padding: 6px;
}
.zfa-about-megamenu__sublist.is-industries .zfa-about-megamenu__sublist-thumb {
  width: 48px;
  height: 48px;
}
.zfa-about-megamenu__sublist.is-industries .zfa-about-megamenu__sublist-thumb img {
  object-fit: contain;
  padding: 4px;
}
.zfa-about-megamenu__sublist.is-industries .zfa-about-megamenu__sublist-text {
  font-weight: 500;
}
.zfa-about-megamenu__sublist.is-industries .zfa-about-megamenu__sublist-item + .zfa-about-megamenu__sublist-item {
  margin-top: 2px;
}


/* =========================================================================
   PRODUCT MODULE
   ========================================================================= */

/* ---------- Panel shell ---------- */
.zfa-megamenu {
  position: relative;
  z-index: 100;
  width: 100%;
  background: #fff;
  border-top: 2px solid var(--zfa-mm-product-topbar);
  border-bottom: 1px solid var(--zfa-mm-product-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}

.zfa-megamenu__inner {
  display: grid;
  grid-template-columns: minmax(190px, 0.85fr) minmax(210px, 1fr) minmax(520px, 2.9fr);
  width: min(100%, 1280px);
  min-height: 290px;
  margin: 0 auto;
}

.zfa-megamenu__parents,
.zfa-megamenu__children,
.zfa-megamenu__products {
  min-width: 0;
  padding: 24px 28px;                   /* was 22px 26px */
}

.zfa-megamenu__parents { border-right: 1px solid var(--zfa-mm-product-border); }
.zfa-megamenu__children {
  border-right: 1px solid var(--zfa-mm-product-border);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.zfa-megamenu__children > h3 { flex: 0 0 auto; }

/* ---------- Column 1: Parents ----------
   Row height ≈ 32px (min-height) + 10+10 padding = 52px.
   Show ~3-4 rows by default and let the rest scroll inside the column.
   v1.6.5: the column is now a positioned container so the top/bottom
   fade gradients (::before / ::after) can sit on top of the scroll
   viewport edges. */
.zfa-megamenu__parents {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 264px;
  padding-top: 24px;
  padding-bottom: 26px;
}
.zfa-megamenu__parents-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: var(--zfa-mm-product-border) transparent;
}
.zfa-megamenu__parents-list::-webkit-scrollbar { width: 8px; }
.zfa-megamenu__parents-list::-webkit-scrollbar-track { background: transparent; }
.zfa-megamenu__parents-list::-webkit-scrollbar-thumb {
  background: var(--zfa-mm-product-border);
  /* square thumb — no radius */
  border-radius: 0;
}

/* Top fade: shown when there's content above the current scrollTop. */
.zfa-megamenu__parents-list::before,
.zfa-megamenu__parents-list::after {
  content: "";
  position: absolute;
  left: 0;
  right: 8px;                          /* leave room for the scrollbar thumb */
  height: 16px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity .15s ease;
}
.zfa-megamenu__parents-list::before {
  top: 0;
  background: linear-gradient(to bottom, #fff 0%, rgba(255, 255, 255, 0) 100%);
}
.zfa-megamenu__parents-list::after {
  bottom: 0;
  background: linear-gradient(to top,    #fff 0%, rgba(255, 255, 255, 0) 100%);
}
.zfa-megamenu__parents-list--top::before    { opacity: 1; }
.zfa-megamenu__parents-list--bottom::after { opacity: 1; }

/* "Showing N of M" counter — sits at the bottom of col 1, below the
   scrollable list. Hidden when every parent fits in the viewport. */
.zfa-megamenu__parents-counter {
  margin-top: 10px;
  padding: 8px 8px 0;
  border-top: 1px dashed var(--zfa-mm-product-border);
  font-size: 11px;
  line-height: 1.5;
  color: var(--zfa-mm-product-muted);
  letter-spacing: .02em;
}
.zfa-megamenu__parents-counter strong {
  color: var(--zfa-mm-product-text);
  font-weight: 600;
}
.zfa-megamenu__parents-counter[hidden] { display: none; }

/* Parent with no direct products or product-bearing children — still
   listed in the column, but visually de-emphasised so the user can tell
   at a glance which categories currently have inventory. */
.zfa-megamenu__parent--empty {
  color: var(--zfa-mm-product-muted);
  opacity: 0.85;
}
.zfa-megamenu__parent--empty:hover,
.zfa-megamenu__parent--empty:focus-visible {
  color: var(--zfa-mm-product-accent);
  opacity: 1;
}

/* Parent row. Generous padding (10px vertical, 10px right) so the row
   has comfortable click area + breathing room. The hover/active state
   adds left padding (10px) so the text sits clear of the 3px accent bar
   instead of touching it. */
.zfa-megamenu__parent {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  padding: 10px 10px 10px 10px;          /* was 6px 6px 6px 0 */
  color: var(--zfa-mm-product-text);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  white-space: normal;
  transition: color .18s ease, padding-left .18s ease, background-color .18s ease;
}

/* v1.6.5 — accent bar on the left edge of the active row. 3px wide
   bar drawn via box-shadow so it doesn't shift the layout. The 10px
   padding-left on active/hover states keeps the text clear of the bar. */
.zfa-megamenu__parent.is-active {
  padding-left: 10px;
  background-color: var(--zfa-mm-product-active-bg);
  box-shadow: inset 3px 0 0 0 var(--zfa-mm-product-accent);
}
/* Hover/focus also get the same indent + tint so the visual feedback
   stays consistent across interaction modes. */
.zfa-megamenu__parent:hover,
.zfa-megamenu__parent:focus-visible {
  padding-left: 10px;
  background-color: var(--zfa-mm-product-active-bg);
}

/* v1.6.5 — "you're here" pointer on the right edge of the active row,
   shown only when the row is currently scrolled out of view in col 1.
   JS toggles the .is-offscreen class via IntersectionObserver. */
.zfa-megamenu__parent.is-active.is-offscreen::after {
  content: "●";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--zfa-mm-product-accent);
  font-size: 10px;
  line-height: 1;
  animation: zfa-mm-pulse 1.6s ease-in-out infinite;
}
@keyframes zfa-mm-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .zfa-megamenu__parent.is-active.is-offscreen::after { animation: none; }
}

/* Featured parent (orange + arrow, pushed to the bottom) — removed in
   v1.2.0. All parents now share the same styling. The `.is-active`
   class is applied at runtime by JS to whichever parent matches the
   current page or is being hovered. */

/* ---------- Column 2: Children ----------
   The column hosts many <div class="zfa-megamenu__children-group"> panels
   (one per parent) but only one is visible at a time. Each visible
   panel's content (children + popular block) sits inside
   .zfa-megamenu__children-list, which is the actual scrolling region.
   This mirrors the col 1 architecture: header + scrollable list +
   counter + fade gradients. */
.zfa-megamenu__children-group {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.zfa-megamenu__children-group[hidden] { display: none; }

/* Inner scrollable list. Mirrors .zfa-megamenu__parents-list exactly:
   max-height with overflow-y auto, square scrollbar thumb, position
   relative so the fade ::before/::after can sit on top of the viewport
   edges, and opacity toggles driven by JS scroll affordance wiring. */
.zfa-megamenu__children-list {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--zfa-mm-product-border) transparent;
}
.zfa-megamenu__children-list::-webkit-scrollbar { width: 8px; }
.zfa-megamenu__children-list::-webkit-scrollbar-track { background: transparent; }
.zfa-megamenu__children-list::-webkit-scrollbar-thumb {
  background: var(--zfa-mm-product-border);
  border-radius: 0;
}
/* Top/bottom fades. Same gradient + opacity toggles as col 1. */
.zfa-megamenu__children-list::before,
.zfa-megamenu__children-list::after {
  content: "";
  position: absolute;
  left: 0;
  right: 8px;
  height: 16px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity .15s ease;
}
.zfa-megamenu__children-list::before {
  top: 0;
  background: linear-gradient(to bottom, #fff 0%, rgba(255, 255, 255, 0) 100%);
}
.zfa-megamenu__children-list::after {
  bottom: 0;
  background: linear-gradient(to top,    #fff 0%, rgba(255, 255, 255, 0) 100%);
}
.zfa-megamenu__children-list--top::before    { opacity: 1; }
.zfa-megamenu__children-list--bottom::after { opacity: 1; }

/* "Showing N of M" counter — sits at the bottom of the visible children
   group, just under the scrollable list. Hidden when everything fits. */
.zfa-megamenu__children-counter {
  flex: 0 0 auto;
  margin-top: 10px;
  padding: 8px 8px 0;
  border-top: 1px dashed var(--zfa-mm-product-border);
  font-size: 11px;
  line-height: 1.5;
  color: var(--zfa-mm-product-muted);
  letter-spacing: .02em;
}
.zfa-megamenu__children-counter strong {
  color: var(--zfa-mm-product-text);
  font-weight: 600;
}
.zfa-megamenu__children-counter[hidden] { display: none; }

/* Hide the products-group alongside children-group (kept for compatibility). */
.zfa-megamenu__products-group[hidden] { display: none; }

/* Child rows. Same generous padding as col 1 parents, with the 3px
   accent bar + bg tint + 10px left padding on active/hover. */
/* Child rows. Same generous padding as col 1 parents, with the 3px
   accent bar + bg tint + 10px left padding on active/hover. */
.zfa-megamenu__children-list a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  padding: 10px 10px 10px 10px;
  color: var(--zfa-mm-product-text);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  transition: color .18s ease, padding-left .18s ease, background-color .18s ease;
}
.zfa-megamenu__children-list a:hover,
.zfa-megamenu__children-list a:focus-visible,
.zfa-megamenu__children-list a.is-active {
  padding-left: 10px;
  background-color: var(--zfa-mm-product-active-bg);
  box-shadow: inset 3px 0 0 0 var(--zfa-mm-product-accent);
  /* Brand orange stays as the 3px left bar + bg tint; the readable text
     reverts to ink so it passes AA on the pale orange surface. */
  color: var(--zfa-mm-product-text);
  font-weight: 600;
}

/* Featured styling — applied to the currently hovered/active row in
   column 1 (parents) and column 2 (children). Both are toggled at runtime
   via JS. v2.0.1 a11y: text reverts to ink so it passes AA on the pale
   orange active-bg. The orange stays as the 3px left-bar accent on
   .zfa-megamenu__children-list a (set above) and as the active-bg tint. */
.zfa-megamenu__parent.is-featured,
.zfa-megamenu__parent:hover,
.zfa-megamenu__parent:focus-visible,
.zfa-megamenu__parent.is-active,
.zfa-megamenu__children-list a.is-featured,
.zfa-megamenu__children-list a:hover,
.zfa-megamenu__children-list a:focus-visible,
.zfa-megamenu__children-list a.is-active {
  color: var(--zfa-mm-product-text);
  font-weight: 600;
}

/* v1.6.5 — empty state in col 2 is a real link button. ZFA brand uses
   no rounded corners so the pill is replaced with a square button that
   has generous padding (was a 6/4 pill, now a 10/16 square button). */
.zfa-megamenu__empty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 10px 16px;
  background: var(--zfa-mm-product-card);
  border: 1px solid var(--zfa-mm-product-card-border);
  border-radius: 0;
  color: var(--zfa-mm-product-text);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .15s ease;
}
.zfa-megamenu__empty::after {
  content: "→";
  display: inline-block;
  font-size: 13px;
  line-height: 1;
  transition: transform .2s ease;
}
.zfa-megamenu__empty:hover,
.zfa-megamenu__empty:focus-visible {
  background: var(--zfa-mm-product-accent);
  border-color: var(--zfa-mm-product-accent);
  color: #fff;
  outline: none;
}
.zfa-megamenu__empty:hover::after,
.zfa-megamenu__empty:focus-visible::after { transform: translateX(3px); }

/* ---------- Arrow glyph ---------- */
.zfa-megamenu__arrow {
  display: inline-block;
  flex-shrink: 0;
  margin-left: 8px;
  color: var(--zfa-mm-product-accent);
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  transition: transform .2s ease, opacity .2s ease;
  opacity: .85;
}
a:hover .zfa-megamenu__arrow,
a:focus-visible .zfa-megamenu__arrow { transform: translateX(3px); opacity: 1; }

/* =========================================================================
   Column 3: Product grid.

   A static grid of product cards. Each panel is a CSS-grid container
   that auto-fits 2, 3, or 4 cards per row depending on the panel's width.
   ========================================================================= */

.zfa-megamenu__products {
  position: relative;
  padding-right: 12px;
}

.zfa-megamenu__products-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 14px;                            /* was 12px */
  align-content: start;
  /* Cap so a tall grid stays inside the auto-injected drop-down. */
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--zfa-mm-product-border) transparent;
  padding-right: 4px;
}
.zfa-megamenu__products-group::-webkit-scrollbar { width: 8px; }
.zfa-megamenu__products-group::-webkit-scrollbar-track { background: transparent; }
.zfa-megamenu__products-group::-webkit-scrollbar-thumb {
  background: var(--zfa-mm-product-border);
  border-radius: 0;
}

/* The "see more" pill is its own row beneath the grid. */
.zfa-megamenu__see-more {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 6px;
}

.zfa-megamenu__product {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.zfa-megamenu__product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  overflow: hidden;
  background: var(--zfa-mm-product-card);
  border: 1px solid var(--zfa-mm-product-card-border);
  border-radius: 0;                     /* was 8px */
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.zfa-megamenu__product:hover .zfa-megamenu__product-image {
  border-color: var(--zfa-mm-product-accent);
  box-shadow: 0 4px 14px rgba(229, 139, 69, 0.18);
}
.zfa-megamenu__product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  padding: 8px;
  transition: transform .28s ease;
}
.zfa-megamenu__product:hover .zfa-megamenu__product-image img { transform: scale(1.06); }
.zfa-megamenu__no-image {
  display: block;
  width: 60%;
  height: 60%;
  background: #e9e9e9;
  border-radius: 0;                     /* was 4px */
}

.zfa-megamenu__product-title {
  display: block;
  margin-top: 8px;                       /* was 6px */
  padding: 0 2px;                        /* tiny breathing room */
  color: var(--zfa-mm-product-text);
  font-size: 12px;
  line-height: 1.35;                     /* was 1.3 */
  text-align: center;
  text-decoration: none;
  transition: color .18s ease;
}
.zfa-megamenu__product-title:hover,
.zfa-megamenu__product-title:focus-visible {
  /* Brand orange kept as the image border on .zfa-megamenu__product:hover
     (set above). The title text reverts to a darker ink so it passes AA. */
  color: var(--zfa-mm-about-color-ink);
}
.zfa-megamenu__product--empty .zfa-megamenu__product-title { color: var(--zfa-mm-product-muted); }

/* "See more" button beneath the grid. ZFA brand: no rounded corners.
   Generous padding for a touch-friendly button. */
.zfa-megamenu__see-more {
  display: inline-flex;
  align-items: center;
  border-radius: 0;                     /* was 999px pill */
  /* Brand orange kept as the border (and as the bg on hover/focus).
     v2.0.1 a11y: text reverts to ink so it passes AA on the gray card
     bg. Hover/focus state below uses ink on the orange bg (5.32:1). */
  color: var(--zfa-mm-about-color-ink);
  padding: 10px 18px 10px 16px;          /* was 8/16/8/14 */
  border: 1px solid var(--zfa-mm-product-accent);
  border-radius: 0;                     /* was 999px pill */
  color: var(--zfa-mm-product-accent);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .01em;
  transition: background .18s ease, color .18s ease, transform .15s ease;
}
.zfa-megamenu__see-more::after {
  content: "→";
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  transition: transform .2s ease;
}
.zfa-megamenu__see-more:focus-visible {
  background: var(--zfa-mm-product-accent);
  /* White on #e58b45 fails AA (2.59:1). Ink on the same accent is 6.58:1. */
  color: var(--zfa-mm-about-color-ink);
  outline: none;
}
.zfa-megamenu__see-more:hover::after,
.zfa-megamenu__see-more:focus-visible::after { transform: translateX(3px); }

/* =========================================================================
   Tier 1.3 — Column header labels (small uppercase eyebrows).
   ========================================================================= */

.zfa-megamenu__col-label {
  margin: 0 0 14px 0;                    /* was 12px */
  padding: 0 6px 10px;                   /* was 0 6px 8px */
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--zfa-mm-product-muted);
  border-bottom: 1px solid var(--zfa-mm-product-border);
}

/* Tier 1.5 — Trailing chevron on parent rows. */
.zfa-megamenu__parent--has-children .zfa-megamenu__parent-chevron {
  margin-left: 8px;
  color: var(--zfa-mm-product-muted);
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
  transition: transform .18s ease, color .18s ease;
}
.zfa-megamenu__parent--has-children:hover .zfa-megamenu__parent-chevron,
.zfa-megamenu__parent--has-children:focus-visible .zfa-megamenu__parent-chevron {
  color: var(--zfa-mm-product-accent);
  transform: translateX(3px);
}

/* Stack the label and chevron correctly (parent row uses space-between). */
.zfa-megamenu__parent {
  gap: 8px;
}
.zfa-megamenu__parent-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tier 2.2 — "Popular:" sub-label. */
.zfa-megamenu__popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 12px;                      /* was 10px */
  padding-top: 12px;                     /* was 10px */
  border-top: 1px dashed var(--zfa-mm-product-border);
}
.zfa-megamenu__popular-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--zfa-mm-product-accent);
  background: rgba(229, 139, 69, .08);
  padding: 4px 8px;                      /* was 2px 6px */
  border-radius: 0;                     /* was 3px */
}
.zfa-megamenu__popular-link {
  font-size: 12px;
  color: var(--zfa-mm-product-text);
  text-decoration: none;
  padding: 4px 6px;                      /* was 2px 4px */
  border-radius: 0;                     /* was 3px */
  transition: color .18s ease, background .18s ease;
}
.zfa-megamenu__popular-link:hover,
.zfa-megamenu__popular-link:focus-visible {
  color: var(--zfa-mm-product-accent);
  background: rgba(229, 139, 69, .08);
  outline: none;
}

/* Tier 1.1 — Friendly empty state when a parent has no products. */
.zfa-megamenu__empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;                    /* was 28px 16px */
  background: var(--zfa-mm-product-card);
  border-radius: 0;                     /* was 8px */
}
.zfa-megamenu__empty-state-icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 10px;                   /* was 8px */
  opacity: .65;
}
.zfa-megamenu__empty-state-title {
  margin: 0 0 6px 0;                     /* was 4px */
  font-size: 14px;
  font-weight: 600;
  color: var(--zfa-mm-product-text);
}
.zfa-megamenu__empty-state-body {
  margin: 0;
  font-size: 12px;
  /* #8a8a8a fails AA on white (3.45:1) at 12px. The new muted-text
     var (#6a6a6a) is 5.41:1 — passes AA. Brand muted #8a8a8a is
     preserved for decorative uses at AA-large (chevrons / counters). */
  color: var(--zfa-mm-product-muted-text);
  max-width: 280px;
}

/* ---------- Focus state ---------- */
.zfa-megamenu a:focus-visible {
  outline: 2px solid var(--zfa-mm-product-accent);
  outline-offset: 3px;
  border-radius: 0;                     /* was 2px */
}

/* =========================================================================
   Auto-mode (drop-down from header).
   ========================================================================= */
.zfa-megamenu-slot {
  /* Empty placeholder; the actual .zfa-megamenu element handles styling. */
}
.zfa-megamenu-slot .zfa-megamenu {
  position: fixed;
  top: 88px;                                  /* adjust to header height */
  left: 0;
  right: 0;
  max-height: calc(100vh - 88px);
  overflow-y: auto;
  display: none;
  z-index: 99;
}
.zfa-megamenu-slot.is-open .zfa-megamenu { display: block; }

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 1100px) {
  .zfa-megamenu__inner {
    grid-template-columns: minmax(170px, 0.8fr) minmax(195px, 1fr) minmax(440px, 2.2fr);
  }
  .zfa-megamenu__parents,
  .zfa-megamenu__children,
  .zfa-megamenu__products {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 860px) {
  .zfa-megamenu__inner {
    grid-template-columns: minmax(150px, 0.7fr) minmax(170px, 1fr) minmax(360px, 1.8fr);
    min-height: 260px;
  }
  .zfa-megamenu__product-image { height: 108px; }
}

@media (max-width: 640px) {
  .zfa-megamenu { border-top-width: 1px; }
  .zfa-megamenu__inner {
    display: block;
    min-height: 0;
  }
  .zfa-megamenu__parents,
  .zfa-megamenu__children,
  .zfa-megamenu__products {
    border-right: 0;
    border-bottom: 1px solid var(--zfa-mm-product-border);
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .zfa-megamenu__parents-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }
  .zfa-megamenu__product-image { height: 102px; }
  .zfa-megamenu__product-title { font-size: 11px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .zfa-megamenu *,
  .zfa-megamenu *::before,
  .zfa-megamenu *::after { transition: none !important; animation: none !important; }
}

/* =========================================================================
   Debug panel (shown only to logged-in editors when the menu has no data)
   ========================================================================= */
.zfa-megamenu--debug {
  display: block !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  max-height: none !important;
}

/* =========================================================================
   Focus polish (v2.0.1 a11y audit).

   The :focus-visible rules above only apply when the browser detects a
   keyboard-style focus (Tab, programmatic). To avoid leaving a stale
   focus ring after a mouse click, also reset outline for plain :focus
   on links/buttons that aren't currently :focus-visible.

   This keeps the visible keyboard ring intact while clearing the ring
   that browsers like Firefox / Safari still draw on mouse click.
   ========================================================================= */
.zfa-about-megamenu a:focus:not(:focus-visible),
.zfa-about-megamenu button:focus:not(:focus-visible),
.zfa-megamenu a:focus:not(:focus-visible),
.zfa-megamenu button:focus:not(:focus-visible) {
  outline: none;
}

/* Skip-link target: when the URL hash points to an in-page element,
   browsers draw a default focus ring on it. Suppress it unless the
   user is keyboard-navigating. */
.zfa-about-megamenu a:focus:focus-visible {
  outline: 2px solid var(--zfa-mm-about-color-primary);
  outline-offset: 3px;
}
.zfa-megamenu a:focus:focus-visible {
  outline: 2px solid var(--zfa-mm-product-accent);
  outline-offset: 3px;
}

/* =========================================================================
   v2.2.0 — MOBILE DRAWER (Figma-style dark overlay).

   Activated by JS in megamenu.js when the user taps "About us" or
   "Weighing Products" in the Bricks mobile nav (#menu-main-menu-en-1).
   The drawer DOM is appended to the Bricks offcanvas-inner so it visually
   fills the offcanvas — no double mobile UI.

   v2.2.0 changes:
     - Sticky header with breadcrumb sub-line (dim, smaller, 11px)
     - SVG chevron drawn as `::after` on branches — replaces the
       text `›` glyph (more consistent across platforms/fonts)
     - Branch rows: subtle right padding + 1px right rule to
       visually distinguish them from leaves at a glance
     - `:active` opacity flash (0.15s) for tap feedback
     - `overscroll-behavior: contain` on the body so iOS Safari doesn't
       bounce-scroll the page under the sticky header
   No logo, no nav chrome, no footer.
   ========================================================================= */

.zfa-mobile-drawer {
  /* Initial position: hidden in the wp_footer body slot. The JS
     reparents this element into the Bricks offcanvas on first open. */
  position: relative;
  width: 100%;
  min-height: 100%;
  background: #000;
  color: #fff;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.zfa-mobile-drawer[hidden] {
  display: none;
}

/* Overlay placement (v2.1.1). The drawer is moved into the Bricks
   offcanvas-inner on init. It must overlay every other child of that
   container (Bricks logo row, nav, footer CTA) without re-flowing the
   Bricks DOM. */
.zfa-mobile-drawer.is-mounted {
  position: absolute;
  inset: 0;
  z-index: 5;
}

/* Hide the desktop product panel on mobile — the drawer replaces it. */
@media (max-width: 860px) {
  .zfa-megamenu-slot {
    display: none !important;
  }
}

/* Lock body scroll while the drawer is open so the offcanvas doesn't
   jiggle behind it on iOS. */
.zfa-mm-drawer-open {
  overflow: hidden;
}


/* ---- Header -------------------------------------------------------- */

.zfa-mobile-drawer__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 12px;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.zfa-mobile-drawer__logo-img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.zfa-mobile-drawer__logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #f27024;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

/* v2.3.0 — Search input. Sticks to the top of the body. */
.zfa-mobile-drawer__search {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 16px 8px;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.zfa-mobile-drawer__search-label {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.zfa-mobile-drawer__search-input {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  color: #fff;
  font: inherit;
  font-size: 14px;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.zfa-mobile-drawer__search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.zfa-mobile-drawer__search-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
}
.zfa-mobile-drawer__search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

/* v2.3.0 — Contact footer. Sticks to the bottom of the body. */
.zfa-mobile-drawer__sections {
  flex: 1 1 auto;
}
.zfa-mobile-drawer__contact {
  flex: 0 0 auto;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.zfa-mobile-drawer__contact-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  transition: background-color 140ms ease;
}
.zfa-mobile-drawer__contact-link:hover,
.zfa-mobile-drawer__contact-link:focus-visible {
  background: rgba(255, 255, 255, 0.10);
  outline: none;
}
.zfa-mobile-drawer__contact-link strong {
  color: #f27024;
  font-weight: 600;
  white-space: nowrap;
}

/* v2.3.8 — "View all [parent]" link shown at the bottom of drilled views
   so the user can navigate from a sub-list to the category overview page
   (e.g. /weighing-products/load-cells/). Mirrors the desktop about-
   megamenu "View all" footer pattern. */
.zfa-mobile-drawer__view-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  margin: 0 16px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  transition: background-color 140ms ease;
}
.zfa-mobile-drawer__view-all:hover,
.zfa-mobile-drawer__view-all:focus-visible {
  background: rgba(255, 255, 255, 0.10);
  outline: none;
}
.zfa-mobile-drawer__view-all-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.zfa-mobile-drawer__view-all-arrow {
  flex: 0 0 auto;
  color: #f27024;
  font-weight: 600;
  transition: transform 140ms ease;
}
.zfa-mobile-drawer__view-all:hover .zfa-mobile-drawer__view-all-arrow,
.zfa-mobile-drawer__view-all:focus-visible .zfa-mobile-drawer__view-all-arrow {
  transform: translateX(2px);
}

/* v2.3.0 — Hide rows excluded by the search filter. Use a dedicated
   class so the row stays in the DOM (focus / screen readers can
   still find it). */
.zfa-mobile-drawer__row.is-hidden-by-search {
  display: none;
}
.zfa-mobile-drawer__no-results {
  padding: 24px 20px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  text-align: center;
}

/* ---- Header -------------------------------------------------------- */
/* v2.3.0 — Logo column + iOS safe-area. Logo lives to the right of
   the title in the center 4th column; the back button stays on the
   left and × on the right. The env() padding keeps the header below
   the iPhone notch without overlapping the status bar. */
.zfa-mobile-drawer__header {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 56px 1fr auto 56px;
  align-items: center;
  height: calc(56px + env(safe-area-inset-top, 0));
  padding: env(safe-area-inset-top, 0) 0 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}
.zfa-mobile-drawer__back,
.zfa-mobile-drawer__close {
  appearance: none;
  background: transparent;
  border: 0;
  color: #fff;
  font: inherit;
  cursor: pointer;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  transition: color 140ms ease, background-color 140ms ease;
}
.zfa-mobile-drawer__back[hidden] {
  visibility: hidden;
}
.zfa-mobile-drawer__back:hover,
.zfa-mobile-drawer__back:focus-visible,
.zfa-mobile-drawer__close:hover,
.zfa-mobile-drawer__close:focus-visible {
  color: rgba(255, 255, 255, 0.85);
  background-color: rgba(255, 255, 255, 0.05);
  outline: none;
}
.zfa-mobile-drawer__back:active,
.zfa-mobile-drawer__close:active {
  background-color: rgba(255, 255, 255, 0.10);
}

/* Title + breadcrumb stack. Breadcrumb is empty at section root; the
   JS fills it during drill views. */
.zfa-mobile-drawer__titles {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding-left: 4px;
}
.zfa-mobile-drawer__title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zfa-mobile-drawer__breadcrumb {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Empty by default; JS sets textContent for drill views. */
  min-height: 0;
}
.zfa-mobile-drawer__breadcrumb:empty {
  display: none;
}

/* ---- Body ----------------------------------------------------------- */
.zfa-mobile-drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  /* Contain the iOS Safari overscroll so it doesn't bounce the page
     under the sticky header. */
  overscroll-behavior: contain;
  padding: 0 0 24px;
  background: #000;
}
.zfa-mobile-drawer__section + .zfa-mobile-drawer__section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0;
  padding-top: 0;
}

.zfa-mobile-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.zfa-mobile-drawer__row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.zfa-mobile-drawer__row:first-child {
  border-top: 0;
}
.zfa-mobile-drawer__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  background: transparent;
  border: 0;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
  transition: background-color 140ms ease, opacity 140ms ease;
}
.zfa-mobile-drawer__link:hover,
.zfa-mobile-drawer__link:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}
.zfa-mobile-drawer__link:focus-visible {
  /* Visible keyboard ring on the active row. */
  box-shadow: inset 2px 0 0 #fff;
}
.zfa-mobile-drawer__link:active {
  /* v2.2.0 — tap flash for haptic feedback. */
  background: rgba(255, 255, 255, 0.12);
  opacity: 0.85;
}
.zfa-mobile-drawer__label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* v2.2.0 — Branch/leaf distinction. Branches (drillable items) get a
   faint right rule + an SVG chevron rendered via `::after`. Leaves
   stay plain. The text `›` glyph from the markup is visually hidden
   for branches (the SVG takes its place). */
.zfa-mobile-drawer__link.is-branch {
  padding-right: 56px; /* leave room for the chevron */
}
.zfa-mobile-drawer__link.is-branch::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.65);
  border-right: 1.5px solid rgba(255, 255, 255, 0.65);
  transform: translateY(-50%) rotate(45deg);
  transition: right 140ms ease, border-color 140ms ease;
}
.zfa-mobile-drawer__link.is-branch:hover::after,
.zfa-mobile-drawer__link.is-branch:focus-visible::after {
  right: 20px;
  border-color: #fff;
}
.zfa-mobile-drawer__link.is-leaf {
  /* Leaves stay at the original padding; no chevron. */
}
/* Hide the text `›` glyph in branches — the SVG ::after is the only
   chevron shown. Leaves don't render this element at all. */
.zfa-mobile-drawer__link.is-branch .zfa-mobile-drawer__chevron {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.zfa-mobile-drawer__link.is-leaf .zfa-mobile-drawer__chevron {
  display: none;
}

.zfa-mobile-drawer__empty {
  padding: 32px 20px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

/* Loading shimmer shown briefly while a drill fetches over REST. */
.zfa-mobile-drawer__loading {
  height: 80px;
  margin: 16px 20px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.10) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: zfa-mm-shimmer 1.2s linear infinite;
}
@keyframes zfa-mm-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .zfa-mobile-drawer *,
  .zfa-mobile-drawer *::before,
  .zfa-mobile-drawer *::after {
    transition: none !important;
    animation: none !important;
  }
  .zfa-mobile-drawer__loading {
    animation: none;
    background: rgba(255, 255, 255, 0.06);
  }
/* Above the Figma breakpoint — drawer is meaningless on desktop, but
   the DOM is still served. Hide it there so any accidental CSS bleed
   can't show it on ≥992px screens. */
@media (min-width: 992px) {
  .zfa-mobile-drawer {
    display: none !important;
  }
}}


