diff --git a/packages/css/src/components/mega-menu/mega-menu.scss b/packages/css/src/components/mega-menu/mega-menu.scss index ffac321835..05cb00b69e 100644 --- a/packages/css/src/components/mega-menu/mega-menu.scss +++ b/packages/css/src/components/mega-menu/mega-menu.scss @@ -7,12 +7,6 @@ padding-block: var(--amsterdam-mega-menu-padding-block); } -.amsterdam-mega-menu .amsterdam-grid__cell { - .amsterdam-heading:not(:first-child) { - padding-block-start: var(--amsterdam-mega-menu-heading-padding-block-start); - } -} - .amsterdam-mega-menu .amsterdam-unordered-list { column-gap: var(--amsterdam-grid-spacious-gap); columns: var(--amsterdam-mega-menu-list-column-width, 20rem) auto; @@ -21,4 +15,8 @@ &__item { padding-block-start: var(--amsterdam-mega-menu-list-padding-block-start); } + + &:has(+ .amsterdam-heading) { + margin-block-end: var(--amsterdam-mega-menu-heading-padding-block-start); + } }