/**
 * Onyx mega menu.
 *
 * Eigen CSS, geen framework: dit is één component en een hele bibliotheek
 * binnenhalen zou de winkel alleen maar trager maken. De kleuren sluiten aan
 * op de bestaande huisstijl (blauw #3452EF, oranje-geel #F5A623).
 */

.omm {
	--omm-blue: #3452ef;
	--omm-blue-dark: #2238c4;
	--omm-amber: #f5a623;
	--omm-ink: #1c1d22;
	--omm-muted: #71727a;
	--omm-line: #e9eaf0;
	--omm-bg: #fff;
	font-family: inherit;
	padding: 34px 40px 28px;
	background: var(--omm-bg);
	color: var(--omm-ink);
}

/* ---------------------------------------------------------------- kolommen */

.omm-cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 26px 32px;
	align-items: start;
}

.omm-col {
	min-width: 0;
}

/* ---------------------------------------------------------------- koppen */

.omm-head {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0 0 12px;
	padding-bottom: 9px;
	border-bottom: 2px solid var(--omm-line);
	color: var(--omm-blue);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: border-color .18s ease, color .18s ease;
}

.omm-head:hover,
.omm-head:focus-visible {
	color: var(--omm-blue-dark);
	border-bottom-color: var(--omm-amber);
}

.omm-head--wide {
	margin-bottom: 14px;
}

/* ---------------------------------------------------------------- lijsten */

.omm-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.omm-list li {
	margin: 0;
	break-inside: avoid;
}

.omm-list a {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 5px 0;
	color: var(--omm-ink);
	font-size: 14px;
	line-height: 1.45;
	text-decoration: none;
	transition: color .16s ease, transform .16s ease;
}

.omm-list a:hover,
.omm-list a:focus-visible {
	color: var(--omm-blue);
	transform: translateX(3px);
}

/* Een platte reeks categorieën vult zichzelf over meerdere kolommen.
   Zo ontstaan er geen halflege kolommen als het aantal verandert. */
.omm-flat {
	column-count: 4;
	column-gap: 32px;
}

.omm-flatwrap {
	min-width: 0;
}

/* ---------------------------------------------------------------- tellers */

.omm-n {
	color: var(--omm-muted);
	font-size: 11.5px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- rest */

.omm-sep {
	height: 1px;
	margin: 26px 0 22px;
	background: var(--omm-line);
}

.omm-foot {
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid var(--omm-line);
}

.omm-cta {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--omm-blue);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background .18s ease, gap .18s ease;
}

.omm-cta:hover,
.omm-cta:focus-visible {
	background: var(--omm-blue-dark);
	color: #fff;
	gap: 13px;
}

.omm a:focus-visible,
.omm-mobile a:focus-visible,
.omm-mobile button:focus-visible {
	outline: 2px solid var(--omm-blue);
	outline-offset: 2px;
	border-radius: 3px;
}

@media (max-width: 1200px) {
	.omm {
		padding: 26px 24px 22px;
	}

	.omm-flat {
		column-count: 3;
	}
}

@media (prefers-reduced-motion: reduce) {
	.omm-list a,
	.omm-cta,
	.omm-head,
	.omm-m-stage {
		transition: none;
	}
}

/* ================================================================ mobiel */

.omm-mobile {
	border-top: 1px solid var(--omm-line, #e9eaf0);
}

.omm-mobile[hidden] {
	display: none;
}

.omm-m-stage {
	position: relative;
	overflow: hidden;
}

.omm-m-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.omm-m-item {
	display: flex;
	width: 100%;
	align-items: center;
	gap: 10px;
	/* Ruime raakvlakken: 52px hoog, de hele regel is aanraakbaar. */
	min-height: 52px;
	padding: 13px 16px;
	border: 0;
	border-bottom: 1px solid #eceef4;
	background: none;
	color: #1c1d22;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.omm-m-item > span:first-child {
	flex: 1 1 auto;
	min-width: 0;
}

.omm-m-item--head {
	color: #3452ef;
	font-weight: 600;
}

.omm-m-item--sub {
	padding-left: 30px;
	font-weight: 400;
}

.omm-m-item:active {
	background: #f4f6ff;
}

.omm-m-meta {
	color: #8a8b93;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

.omm-m-chev {
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-top: 2px solid #9a9ba3;
	border-right: 2px solid #9a9ba3;
	transform: rotate(45deg);
}

.omm-m-chev--back {
	transform: rotate(-135deg);
}

.omm-m-panel[hidden] {
	display: none;
}

.omm-m-back {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid #eceef4;
	background: #f7f8fc;
	color: #3452ef;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}

.omm-m-all {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 13px 16px;
	border-bottom: 1px solid #eceef4;
	color: #1c1d22;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

/* Geen horizontaal schuiven, wat er ook in de namen staat. */
.omm-mobile,
.omm-m-stage,
.omm-m-list {
	max-width: 100%;
	overflow-x: hidden;
}

.omm-m-item span,
.omm-m-all {
	overflow-wrap: anywhere;
}
