/*
 * Max Mega Menu, in Foodyx.
 *
 * The plugin draws the menu from the "Foodyx" theme defined in
 * inc/navigation.php (colours, sizes, panel border and shadow, breakpoint).
 * This sheet adds only what those settings cannot express: the Producten
 * panel (icon rows and the POSHUB card), the Integraties panel (partner rows
 * and its POSHUB card), the intros, the partner badges and the demo CTA.
 *
 * Loaded after the plugin's stylesheet. Its rules are scoped by two IDs, so
 * these repeat that prefix and win on order -- no !important anywhere. Values
 * are the theme.json tokens.
 *
 * Mobile first: the accordion is the unconditional default; the desktop panel
 * rules sit behind 64rem, the plugin's breakpoint (1023px / 1024px).
 */

/* The nav holds the toggle on phones and the menu bar on desktop. */
.fx-navwrap--mega {
	flex: 1 1 auto;
	min-width: 0;
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-name,
#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-intro__title,
#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-intro__lede,
#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-group__title,
#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-card p {
	margin: 0;
}

/* Product and partner descriptions: plain and muted, not the plugin's italic. */
#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary li.mega-menu-item .mega-menu-link .mega-description-group .mega-menu-description {
	margin-block-start: 2px;
	color: var(--wp--preset--color--ink-muted);
	font-size: var(--wp--preset--font-size--xs);
	font-style: normal;
	font-weight: 400;
	line-height: 1.4;
}

/* ---- Intros, group names, POSHUB: text, set in the theme's scale -------- */

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-intro__title {
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--md);
	font-weight: 700;
	line-height: 1.3;
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-intro__lede {
	margin-block-start: 2px;
	color: var(--wp--preset--color--ink-muted);
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.5;
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-group__title {
	color: var(--wp--preset--color--ink-muted);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.4;
	text-transform: uppercase;
}

/* The "all" link under each panel. */
#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item.fx-mm-all > a.mega-menu-link {
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item.fx-mm-all > a.mega-menu-link:hover {
	color: var(--wp--preset--color--accent-strong);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/*
 * Panel links are matched through the same column path the plugin uses
 * (li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item ...), plus one
 * class: one step more specific than the plugin, never !important.
 */

/* ---- Partner rows: badge + name ------------------------------------------ */

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item li.mega-menu-item.fx-mm-partner > a.mega-menu-link {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-badge {
	display: block;
	flex: 0 0 auto;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
}

/* ---- Focus: the site's ring, on every link the plugin draws --------------- */

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary a.mega-menu-link:focus-visible {
	outline: var(--wp--custom--focus--width) solid var(--wp--preset--color--accent);
	outline-offset: var(--wp--custom--focus--offset);
}

/* ---- Phones and tablets: the accordion ---------------------------------- */

/*
 * The toggle keeps the old "Menu" control's box: 44px inside a hairline border
 * (46px overall, so the phone header keeps its height). The plugin sizes its
 * button to 100% of the toggle block, so the size is set on the button itself,
 * one element more specific.
 */
#mega-menu-wrap-foodyx-primary .mega-menu-toggle {
	justify-content: flex-end;
}

#mega-menu-wrap-foodyx-primary .mega-menu-toggle .mega-toggle-block-0 button.mega-toggle-animated {
	width: 46px;
	height: 46px;
	border: var(--wp--custom--border--hairline) solid var(--wp--preset--color--connector);
	border-radius: var(--wp--custom--radius--md);
	background-color: var(--wp--preset--color--field);
}

/*
 * The icon. Its colour, label and scale are the toggle block's settings; the
 * plugin can only scale the whole button, which would shrink the 44px box, so
 * the icon box inside it is scaled here instead: the plugin draws 40px bars
 * with fixed offsets for its animation, and 0.45 brings them to the old 1rem.
 */
#mega-menu-wrap-foodyx-primary .mega-menu-toggle .mega-toggle-block-0 .mega-toggle-animated-box {
	transform: scale(0.45);
}

#mega-menu-wrap-foodyx-primary .mega-menu-toggle .mega-toggle-block-0 button.mega-toggle-animated:focus-visible {
	outline: var(--wp--custom--focus--width) solid var(--wp--preset--color--accent);
	outline-offset: var(--wp--custom--focus--offset);
}

@media (max-width: 63.99rem) {
	/*
	 * The open menu is one white card under the header's bottom rule, the same
	 * surface as the desktop panel: hairline border, 14px radius, soft shadow.
	 * The plugin positions it under the toggle and forces it to .fx-bar's width.
	 */
	#mega-menu-wrap-foodyx-primary .mega-menu-toggle + #mega-menu-foodyx-primary {
		margin-block-start: var(--wp--preset--spacing--40);
		padding: var(--wp--preset--spacing--30);
		border: var(--wp--custom--border--hairline) solid var(--wp--preset--color--rule);
		border-radius: 14px;
		box-shadow: 0 12px 32px rgb(21 24 28 / 0.10);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary li.mega-menu-item > a.mega-menu-link {
		min-height: 48px;
		border-radius: var(--wp--custom--radius--md);
	}

	/* Inside the card an expanded panel is a flat, indented list, not a second card. */
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary li.mega-menu-megamenu > ul.mega-sub-menu {
		padding: 0 0 var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background-color: transparent;
	}

	/* Intros repeat the parent's name in the accordion: hidden there. */
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary li.fx-mm-intro {
		display: none;
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary li.fx-mm-group {
		padding-block-start: var(--wp--preset--spacing--40);
	}


	/* The CTA stays a button at the end of the list. */
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-cta {
		padding-block-start: var(--wp--preset--spacing--30);
	}
}

/* ---- The demo CTA, at every width --------------------------------------- */

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-item.fx-mm-cta > a.mega-menu-link {
	justify-content: center;
	border: var(--wp--custom--border--hairline) solid var(--wp--preset--color--accent);
	border-radius: var(--wp--custom--radius--md);
	color: var(--wp--preset--color--accent);
	font-weight: 700;
	text-align: center;
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-item.fx-mm-cta > a.mega-menu-link:hover,
#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-item.fx-mm-cta > a.mega-menu-link:focus-visible {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--field);
}

/*
 * Max Mega Menu's generated theme CSS sets font-weight: normal on every
 * top-level link's :hover and :focus from 1024px (two ids, three classes), so
 * the CTA dropped to regular weight under the pointer and after a click. One
 * class more keeps it bold in every state.
 */
#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-item.fx-mm-cta > a.mega-menu-link:is(:hover, :focus, :focus-visible, :active) {
	font-weight: 700;
}

/*
 * The CTA links to /contact/, so on that page Max Mega Menu marks it current
 * and its current-item colours (one class stronger than the CTA's own rules
 * before) turned it into a plain link — a second "current" next to Contact.
 * The CTA selectors carry .mega-menu-item so they win; on phones the resting
 * transparent ground is restated for the current state too.
 */
@media (max-width: 63.99rem) {
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-item.fx-mm-cta.mega-current-menu-item > a.mega-menu-link {
		background-color: transparent;
	}
}

/* ---- Over Foodyx dropdown on phones --------------------------------------- */

/* The accordion's rows are 48px; the flyout's two links match, not 40px, and
   sit indented under their parent so the hierarchy reads at a glance. */
@media (max-width: 63.99rem) {
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-about > ul.mega-sub-menu > li.mega-menu-item > a.mega-menu-link {
		height: 48px;
		padding-inline-start: var(--wp--preset--spacing--60);
		line-height: 48px;
	}
}

/* ---- Language switcher (inc/translatepress.php) ------------------------- */

/*
 * [ NL  EN ]: a segmented control, not a second button. A petrol-washed track;
 * the current language is a white segment with petrol text in bold, the other
 * muted ink in regular weight, so the state never rests on colour alone. No
 * separator, no underline. Phones: the first row of the opened menu, 44px
 * segments; desktop (below): 32px segments in a 40px track, the CTA's height.
 */
#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-lang {
	order: -1;
	padding: var(--wp--preset--spacing--30);
	border-block-end: var(--wp--custom--border--hairline) solid var(--wp--preset--color--rule);
}

.fx-lang {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 2px;
	width: max-content;
	padding: var(--wp--preset--spacing--20);
	border-radius: var(--wp--custom--radius--md);
	background-color: var(--wp--custom--surface--accent-wash);
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1;
}

.fx-lang__link {
	position: relative;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 56px;
	min-height: 44px;
	padding-inline: var(--wp--preset--spacing--30);
	border-radius: var(--wp--custom--radius--sm);
	color: var(--wp--preset--color--ink-muted);
	font-weight: 500;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition:
		background-color var(--wp--custom--motion--fast) var(--wp--custom--motion--ease),
		color var(--wp--custom--motion--fast) var(--wp--custom--motion--ease);
}

.fx-lang__link:hover {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.fx-lang__link[aria-current] {
	background-color: var(--wp--preset--color--field);
	box-shadow: var(--wp--preset--shadow--sm);
	color: var(--wp--preset--color--accent-strong);
	font-weight: 700;
}

.fx-lang__link:focus-visible {
	outline: var(--wp--custom--focus--width) solid var(--wp--preset--color--accent);
	outline-offset: var(--wp--custom--focus--offset);
}

@media (min-width: 64rem) {
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-lang {
		display: flex;
		align-items: center;
		order: 0;
		padding: 0;
		border-block-end: 0;
	}

	.fx-lang__link {
		min-width: 34px;
		min-height: 32px;
		padding-inline: var(--wp--preset--spacing--20);
	}
}

/* ---- Desktop: the panels ------------------------------------------------- */

@media (min-width: 64rem) {
	/* Same box as the old CTA: 40px tall, spaced off the last link. */
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-cta {
		margin-inline-start: var(--wp--preset--spacing--40);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-item.fx-mm-cta > a.mega-menu-link {
		height: 40px;
		padding-inline: var(--wp--preset--spacing--50);
		line-height: 38px;
	}

	/*
	 * The panel opens at the header's bottom rule, not across it: it is pushed
	 * down by the header's own bottom padding (spacing-40) plus the bar's
	 * desktop inset (--fx-bar-pad, style.css). A transparent strip covers that
	 * gap so the pointer can travel from the link into the panel.
	 */
	#mega-menu-wrap-foodyx-primary {
		--fx-panel-drop: calc(var(--wp--preset--spacing--40) + var(--fx-bar-pad, 0px));
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-megamenu > ul.mega-sub-menu,
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-flyout > ul.mega-sub-menu {
		margin-block-start: var(--fx-panel-drop);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-megamenu > ul.mega-sub-menu::before,
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-flyout > ul.mega-sub-menu::before {
		content: "";
		position: absolute;
		inset: calc(-1 * var(--fx-panel-drop) - 1px) 0 auto;
		height: calc(var(--fx-panel-drop) + 1px);
	}

	/*
	 * THE CLOSED HEADER. Top-level items in a medium weight with a little more
	 * air. The two mega-menu triggers get a designed state — a pale accent wash
	 * and accent-strong text on hover, on keyboard focus and while their panel
	 * is open — so they read as dropdowns without becoming buttons; the Over Foodyx
	 * flyout and, on hover and focus, the plain links Prijzen and Contact share
	 * it (30 September 2026); a plain link has no chevron and no open state. The
	 * current page is text colour only, for triggers and plain links alike. The chevron stays muted
	 * until its trigger is active. Only from 64rem: the accordion is untouched.
	 */
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-item:not(.fx-mm-cta) > a.mega-menu-link {
		padding-inline: var(--wp--preset--spacing--50);
		border-radius: var(--wp--custom--radius--md);
		font-weight: 500;
		transition:
			background-color var(--wp--custom--motion--fast) var(--wp--custom--motion--ease),
			color var(--wp--custom--motion--fast) var(--wp--custom--motion--ease);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-megamenu > a.mega-menu-link > span.mega-indicator,
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-flyout > a.mega-menu-link > span.mega-indicator {
		color: var(--wp--preset--color--ink-muted);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-megamenu > a.mega-menu-link:hover,
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-megamenu > a.mega-menu-link:focus-visible,
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-megamenu.mega-toggle-on > a.mega-menu-link,
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-flyout > a.mega-menu-link:hover,
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-flyout > a.mega-menu-link:focus-visible,
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-flyout.mega-toggle-on > a.mega-menu-link,
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-item:not(.mega-menu-item-has-children):not(.fx-mm-cta):not(.fx-mm-lang) > a.mega-menu-link:hover,
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-item:not(.mega-menu-item-has-children):not(.fx-mm-cta):not(.fx-mm-lang) > a.mega-menu-link:focus-visible {
		background-color: var(--wp--custom--surface--accent-wash);
		color: var(--wp--preset--color--accent-strong);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-megamenu > a.mega-menu-link:hover > span.mega-indicator,
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-megamenu > a.mega-menu-link:focus-visible > span.mega-indicator,
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-megamenu.mega-toggle-on > a.mega-menu-link > span.mega-indicator,
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-flyout > a.mega-menu-link:hover > span.mega-indicator,
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-flyout > a.mega-menu-link:focus-visible > span.mega-indicator,
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-flyout.mega-toggle-on > a.mega-menu-link > span.mega-indicator {
		color: inherit;
	}

	/*
	 * The demo CTA becomes the header's one filled control: accent, white text,
	 * accent-strong on hover and focus. Same 40px box and radius as before.
	 * Phones keep the outlined button at the end of the accordion.
	 */
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-item.fx-mm-cta > a.mega-menu-link {
		background-color: var(--wp--preset--color--accent);
		color: var(--wp--preset--color--field);
		transition:
			background-color var(--wp--custom--motion--fast) var(--wp--custom--motion--ease),
			border-color var(--wp--custom--motion--fast) var(--wp--custom--motion--ease);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-item.fx-mm-cta > a.mega-menu-link:hover,
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-item.fx-mm-cta > a.mega-menu-link:focus-visible {
		border-color: var(--wp--preset--color--accent-strong);
		background-color: var(--wp--preset--color--accent-strong);
		color: var(--wp--preset--color--field);
	}

	/* Partner rows: the whole row is the link, with a quiet ground on hover. */
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item li.mega-menu-item.fx-mm-partner > a.mega-menu-link {
		padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
		border-radius: var(--wp--custom--radius--md);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item li.mega-menu-item.fx-mm-partner > a.mega-menu-link:hover {
		background-color: var(--wp--preset--color--ground);
	}

	/* The intro row is a header for the panel: a hairline under it. */
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary li.fx-mm-intro {
		padding-block-end: var(--wp--preset--spacing--40);
		border-bottom: var(--wp--custom--border--hairline) solid var(--wp--custom--surface--rule-soft);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary li.fx-mm-group > .fx-mm-group__title {
		padding: 0 var(--wp--preset--spacing--30) var(--wp--preset--spacing--20);
	}

	/* The "all" link closes the panel, under a hairline. */
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary li.fx-mm-all {
		padding-block-start: var(--wp--preset--spacing--30);
		border-top: var(--wp--custom--border--hairline) solid var(--wp--custom--surface--rule-soft);
	}
}

/* ==== Producten panel ======================================================
 *
 * The approved composition: the intro and two columns of products on the
 * left, a thin rule, the POSHUB card on the right, and "Bekijk alle
 * producten" across the foot. Everything below is scoped to the Producten
 * item (.fx-mm-products), so the Integraties panel is untouched.
 *
 * The plugin gives the panel two columns (8/12 and 4/12) and a foot row; the
 * main column's list becomes a two-column grid here. Products flow down the
 * left column, then the right, so the menu order -- and the accordion order
 * on phones -- stays POS ... POS Analytics.
 */

/* Product rows: an icon tile, the name, a muted description. */
#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-products li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item.fx-mm-product > a.mega-menu-link {
	display: flex;
	align-items: flex-start;
	padding: var(--wp--preset--spacing--30);
	border-radius: var(--wp--custom--radius--lg);
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-products li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item.fx-mm-product > a.mega-menu-link:hover {
	background-color: var(--wp--preset--color--ground);
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-prod {
	display: flex;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--50);
	width: 100%;
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-prod__icon {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	border: var(--wp--custom--border--hairline) solid var(--wp--custom--surface--accent-soft);
	border-radius: 12px;
	background-color: var(--wp--custom--surface--accent-wash);
	color: var(--wp--preset--color--accent-strong);
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-prod__glyph,
#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-prod__glyph svg {
	display: block;
	width: 1.75rem;
	height: 1.75rem;
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-prod__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	padding-block-start: 2px;
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-prod__title {
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--md);
	font-weight: 700;
	line-height: 1.3;
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-prod__desc {
	color: var(--wp--preset--color--ink-muted);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 400;
	line-height: 1.45;
	white-space: normal;
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary a.mega-menu-link:hover .fx-mm-prod__title {
	color: var(--wp--preset--color--accent-strong);
}

/* The POSHUB card: the platform under the products, not a ninth product. */
#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-card {
	display: flex;
	flex-direction: column;
	border-radius: 14px;
	background-image: linear-gradient(160deg, var(--wp--custom--surface--accent-wash) 0%, var(--wp--custom--surface--accent-soft) 140%);
	color: var(--wp--preset--color--ink);
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-card__eyebrow {
	color: var(--wp--preset--color--accent-strong);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-transform: uppercase;
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-card__title {
	margin-block-start: var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-card__body {
	margin-block-start: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--ink-muted);
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.5;
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-card__cta {
	align-self: flex-start;
	margin-block-start: var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--accent-strong);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-card__cta:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-card__cta:focus-visible {
	outline: var(--wp--custom--focus--width) solid var(--wp--preset--color--accent);
	outline-offset: var(--wp--custom--focus--offset);
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-card__art {
	display: block;
	width: 100%;
	height: auto;
	margin-block-start: auto;
	padding-block-start: var(--wp--preset--spacing--40);
}

/* Phones and tablets: the accordion keeps the rows, smaller; the card keeps its words. */
@media (max-width: 63.99rem) {
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-prod {
		align-items: center;
		gap: var(--wp--preset--spacing--40);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-prod__icon {
		width: 2.5rem;
		height: 2.5rem;
		border-radius: 10px;
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-prod__glyph,
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-prod__glyph svg {
		width: 1.25rem;
		height: 1.25rem;
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-prod__title {
		font-size: var(--wp--preset--font-size--base);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary li.fx-mm-feature {
		margin-block: var(--wp--preset--spacing--30);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-card {
		padding: var(--wp--preset--spacing--50);
		border-radius: 12px;
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-card__title {
		font-size: var(--wp--preset--font-size--md);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-card__body {
		font-size: var(--wp--preset--font-size--sm);
	}

	/* The illustration is decoration; on a phone the words carry the card. */
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-card__art {
		display: none;
	}
}

@media (min-width: 64rem) {
	/* The panel: more air than the Integraties panel, as in the approved design. */
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-products > ul.mega-sub-menu {
		padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--70) var(--wp--preset--spacing--60);
	}

	/* Main column: intro across the top, then two equal columns of five (ten entries, all-you-can-eat included). */
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-products li.mega-menu-column.fx-mm-main > ul.mega-sub-menu {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: auto repeat(5, auto);
		grid-auto-flow: column;
		column-gap: var(--wp--preset--spacing--60);
		row-gap: var(--wp--preset--spacing--30);
		padding-inline-end: var(--wp--preset--spacing--60);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-products li.fx-mm-intro {
		grid-row: 1;
		grid-column: 1 / -1;
		padding-block-end: var(--wp--preset--spacing--40);
		border-bottom: 0;
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-products .fx-mm-intro__title {
		font-size: var(--wp--preset--font-size--xl);
		letter-spacing: -0.01em;
		line-height: 1.15;
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-products .fx-mm-intro__lede {
		margin-block-start: var(--wp--preset--spacing--20);
		font-size: var(--wp--preset--font-size--base);
	}

	/*
	 * The rule between the products and the card. The plugin styles columns
	 * through the full panel > row > column path, so this repeats it.
	 */
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-products > ul.mega-sub-menu > li.mega-menu-row > ul.mega-sub-menu > li.mega-menu-column.fx-mm-aside {
		padding-inline-start: var(--wp--preset--spacing--60);
		border-inline-start: var(--wp--custom--border--hairline) solid var(--wp--custom--surface--rule-soft);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-products li.mega-menu-column.fx-mm-aside > ul.mega-sub-menu,
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-products li.fx-mm-feature {
		height: 100%;
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-products .fx-mm-card {
		box-sizing: border-box;
		height: 100%;
		padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
		overflow: hidden;
	}

	/* The illustration runs to the card's side edges, as in the design. */
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-products .fx-mm-card__art {
		width: calc(100% + 2 * var(--wp--preset--spacing--60));
		max-width: none;
		margin-inline: calc(-1 * var(--wp--preset--spacing--60));
	}

	/* The foot: a hairline across the whole panel, then the link. */
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-products li.fx-mm-all {
		margin-block-start: var(--wp--preset--spacing--50);
		padding-block-start: var(--wp--preset--spacing--50);
	}
}

/* Smaller desktops (1024 - 1279px): a little less air, and the card's words one size down. */
@media (min-width: 64rem) and (max-width: 79.99rem) {
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-products > ul.mega-sub-menu {
		padding-inline: var(--wp--preset--spacing--60);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-products li.mega-menu-column.fx-mm-main > ul.mega-sub-menu {
		column-gap: var(--wp--preset--spacing--50);
		padding-inline-end: var(--wp--preset--spacing--50);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-products .fx-mm-card__title {
		font-size: var(--wp--preset--font-size--md);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-products .fx-mm-card__body,
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-products .fx-mm-card__cta {
		font-size: var(--wp--preset--font-size--sm);
	}
}

/* ==== Integraties panel ====================================================
 *
 * The approved composition: the intro, four partner groups divided by thin
 * rules and "Bekijk alle integraties" across their foot on the left; the
 * POSHUB card with the ecosystem illustration on the right. Everything below
 * is scoped to the Integraties item (.fx-mm-integrations), so the Producten
 * panel is untouched.
 *
 * The plugin gives the panel one row of two columns (3/4 and 1/4); the main
 * column's list becomes a four-column grid here, in menu order, so the
 * accordion on phones reads the same groups in the same order.
 */

/* Partner rows: badge, name, chevron -- a quiet card, the whole row the link. */
#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item li.mega-menu-item.fx-mm-partner > a.mega-menu-link {
	gap: var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border-radius: var(--wp--custom--radius--lg);
	background-color: var(--wp--preset--color--ground);
	color: var(--wp--preset--color--ink);
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item li.mega-menu-item.fx-mm-partner > a.mega-menu-link:hover {
	background-color: var(--wp--custom--surface--accent-wash);
	color: var(--wp--preset--color--accent-strong);
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations .fx-mm-name {
	flex: 1 1 auto;
	min-width: 0;
	font-weight: 500;
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations .fx-mm-chev {
	flex: 0 0 auto;
	color: var(--wp--preset--color--ink-muted);
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations .fx-mm-chev,
#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations .fx-mm-chev svg {
	display: block;
	width: 1rem;
	height: 1rem;
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations a.mega-menu-link:hover .fx-mm-chev {
	color: var(--wp--preset--color--accent-strong);
}

/*
 * Partner logos: the official brand files, whole and uncoloured by the theme,
 * in a neutral white tile. The tile keeps .fx-mm-badge, so it keeps the
 * badge's size at every width; only its shape and surface change here.
 */
#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations .fx-mm-badge.fx-mm-logo {
	display: grid;
	place-items: center;
	box-sizing: border-box;
	overflow: hidden;
	border: var(--wp--custom--border--hairline) solid var(--wp--custom--surface--rule-soft);
	border-radius: var(--wp--custom--radius--lg);
	background-color: var(--wp--preset--color--field);
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations .fx-mm-logo__img {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	padding: 3px;
	object-fit: contain;
}

/* Wordmarks use the tile's width; a square badge keeps an even margin. */
#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations .fx-mm-logo--word .fx-mm-logo__img {
	padding: 2px;
}

/* The POSHUB card: pale accent wash, a pill eyebrow, live copy, a filled CTA. */
#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-hub {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	padding: var(--wp--preset--spacing--50);
	border-radius: 14px;
	background-color: var(--wp--custom--surface--accent-wash);
	color: var(--wp--preset--color--ink);
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-hub p {
	margin: 0;
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-hub__eyebrow {
	align-self: flex-start;
	padding: 2px var(--wp--preset--spacing--30);
	border-radius: 999px;
	background-color: var(--wp--custom--surface--accent-soft);
	color: var(--wp--preset--color--accent-strong);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.5;
	text-transform: uppercase;
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-hub__title {
	margin-block-start: var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--md);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-hub__body {
	margin-block-start: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--ink-muted);
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.45;
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-hub__cta {
	display: block;
	margin-block-start: var(--wp--preset--spacing--50);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border-radius: var(--wp--custom--radius--lg);
	background-color: var(--wp--preset--color--accent-strong);
	color: var(--wp--preset--color--field);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-hub__cta:hover {
	background-color: var(--wp--preset--color--accent);
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-hub__cta:focus-visible {
	outline: var(--wp--custom--focus--width) solid var(--wp--preset--color--accent);
	outline-offset: var(--wp--custom--focus--offset);
}

#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-hub__art {
	display: block;
	width: 100%;
	height: auto;
	margin-block: auto 0;
	padding-block-start: var(--wp--preset--spacing--50);
}

/* Phones and tablets: badges stay, the card keeps its words and its button. */
@media (max-width: 63.99rem) {
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item li.mega-menu-item.fx-mm-partner {
		margin-block-end: var(--wp--preset--spacing--20);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations .fx-mm-badge {
		width: 2rem;
		height: 2rem;
	}

	/* The card's button is this same link; one is enough in a list. */
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations li.fx-mm-all {
		display: none;
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations li.fx-mm-feature {
		margin-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
	}

	/* The illustration is decoration; on a phone the words carry the card. */
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary .fx-mm-hub__art {
		display: none;
	}
}

@media (min-width: 64rem) {
	/* The panel: the card sits close to the edge, the main column has air. */
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations > ul.mega-sub-menu {
		padding: var(--wp--preset--spacing--50);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations li.mega-menu-column.fx-mm-main > ul.mega-sub-menu {
		display: grid;
		/* Loyaliteit holds one short name; its width goes to Bestelplatformen, whose "Thuisbezorgd" is the longest. */
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.85fr) minmax(0, 1fr);
		grid-template-rows: auto auto 1fr;
		column-gap: var(--wp--preset--spacing--40);
		height: 100%;
		box-sizing: border-box;
		padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--50) 0;
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations li.fx-mm-intro {
		grid-column: 1 / -1;
		padding-block-end: var(--wp--preset--spacing--70);
		border-bottom: 0;
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations .fx-mm-intro__title {
		font-size: var(--wp--preset--font-size--xl);
		letter-spacing: -0.01em;
		line-height: 1.15;
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations .fx-mm-intro__lede {
		margin-block-start: var(--wp--preset--spacing--20);
		font-size: var(--wp--preset--font-size--base);
	}

	/* Groups: a thin rule between neighbours, the heading above its rows. */
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item.fx-mm-group + li.fx-mm-group {
		padding-inline-start: var(--wp--preset--spacing--40);
		border-inline-start: var(--wp--custom--border--hairline) solid var(--wp--custom--surface--rule-soft);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations li.fx-mm-group > .fx-mm-group__title {
		padding: 0 0 var(--wp--preset--spacing--40);
		letter-spacing: 0.08em;
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations li.fx-mm-group > ul.mega-sub-menu {
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--30);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations .fx-mm-badge {
		width: 2.5rem;
		height: 2.5rem;
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item li.mega-menu-item.fx-mm-partner > a.mega-menu-link {
		gap: var(--wp--preset--spacing--30);
		padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30) var(--wp--preset--spacing--40) var(--wp--preset--spacing--40);
		font-size: var(--wp--preset--font-size--base);
	}

	/* The foot: a hairline across the groups, then the link, at the panel's bottom. */
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations li.fx-mm-all {
		grid-column: 1 / -1;
		align-self: end;
		margin-block-start: var(--wp--preset--spacing--60);
		padding-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--20);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item.fx-mm-all > a.mega-menu-link {
		color: var(--wp--preset--color--accent-strong);
		font-size: var(--wp--preset--font-size--base);
	}

	/* The rule between the groups and the card; the card fills the panel's height. */
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations > ul.mega-sub-menu > li.mega-menu-row > ul.mega-sub-menu > li.mega-menu-column.fx-mm-aside {
		padding-inline-start: var(--wp--preset--spacing--40);
		border-inline-start: var(--wp--custom--border--hairline) solid var(--wp--custom--surface--rule-soft);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations li.mega-menu-column.fx-mm-aside > ul.mega-sub-menu,
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations li.fx-mm-feature,
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations .fx-mm-hub {
		height: 100%;
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations .fx-mm-hub {
		padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50) var(--wp--preset--spacing--50);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations .fx-mm-hub__title {
		font-size: var(--wp--preset--font-size--lg);
	}
}

/* Narrow desktops (1024-1279px): the same four groups, set tighter to fit. */
@media (min-width: 64rem) and (max-width: 79.99rem) {
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations li.mega-menu-column.fx-mm-main > ul.mega-sub-menu {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.1fr);
		column-gap: var(--wp--preset--spacing--30);
		padding-inline: var(--wp--preset--spacing--30);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item.fx-mm-group + li.fx-mm-group {
		padding-inline-start: var(--wp--preset--spacing--30);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item li.mega-menu-item.fx-mm-partner > a.mega-menu-link {
		gap: var(--wp--preset--spacing--30);
		padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--20) var(--wp--preset--spacing--30) var(--wp--preset--spacing--30);
		font-size: var(--wp--preset--font-size--sm);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations .fx-mm-badge {
		width: 2rem;
		height: 2rem;
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations .fx-mm-chev,
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations .fx-mm-chev svg {
		width: 0.875rem;
		height: 0.875rem;
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations .fx-mm-hub {
		padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40) var(--wp--preset--spacing--40);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations .fx-mm-hub__title {
		font-size: var(--wp--preset--font-size--md);
	}

	/* One line for every group name, so the four columns' rows line up. */
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations li.fx-mm-group > .fx-mm-group__title {
		letter-spacing: 0.02em;
		white-space: nowrap;
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.fx-mm-integrations .fx-mm-hub__cta {
		padding-inline: var(--wp--preset--spacing--30);
		font-size: var(--wp--preset--font-size--xs);
	}
}

/* ---- Desktop, 64–80rem: five top-level items on one line ----------------- */

/*
 * Since content batch 2 (29 September 2026) the bar carries more items; at
 * 1024px, with a scrollbar, the plugin's 12px link padding wrapped the menu
 * under the logo. Half that padding until 80rem keeps the bar on one line with
 * the NL | EN switcher (the menu revision of 30 September 2026 — Prijzen, Over
 * Foodyx with Waarom Foodyx under it, Contact — needs no further squeezing).
 * The CTA keeps its own box.
 */
@media (min-width: 64rem) and (max-width: 79.99rem) {
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-item:not(.fx-mm-cta) > a.mega-menu-link {
		padding-inline: var(--wp--preset--spacing--30);
	}
}

/*
 * With Home and Hardware the top level is two items longer (1 October 2026):
 * between 1024px and 1120px, with a scrollbar, the padding above wrapped the
 * bar under the logo. Below 70rem the links get spacing-20, the items lose the
 * plugin's gap between them, and the CTA a little of its inner padding; from
 * 70rem the rule above fits again.
 */
@media (min-width: 64rem) and (max-width: 69.99rem) {
	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary {
		column-gap: 0;
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-item:not(.fx-mm-cta) > a.mega-menu-link {
		padding-inline: var(--wp--preset--spacing--20);
	}

	#mega-menu-wrap-foodyx-primary #mega-menu-foodyx-primary > li.mega-menu-item.fx-mm-cta > a.mega-menu-link {
		padding-inline: var(--wp--preset--spacing--40);
	}
}
