﻿#header {
  overflow: visible;
}
#header > .content-small-width {
  position: relative;
}
.erp-mega[hidden],
.erp-mega [hidden] {
  display: none !important;
}
.erp-mega {
  position: absolute;
  top: 100%;
  right: 40px;
  z-index: 1100;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  width: min(1080px, calc(100vw - 80px));
  overflow: hidden;
  border: 1px solid #ececec;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  color: #252222;
  text-align: left;
}
.erp-mega,
.erp-mega * {
  box-sizing: border-box;
}
.erp-mega__sidebar {
  padding: 30px 20px;
  background: #f2f4f5;
}
.erp-mega__label {
  margin: 0 0 22px;
  color: #666;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.erp-mega__categorie {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  margin-bottom: 16px;
  padding: 22px 18px;
  border: 1px solid #e6e9eb;
  border-radius: 14px;
  background: #f9fafb;
  color: #252222;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.erp-mega__categorie > i {
  margin-top: 4px;
  color: #00afd7;
  font-size: 24px;
}
.erp-mega__categorie > span:nth-child(2) {
  flex: 1;
}
.erp-mega__categorie strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 600;
}
.erp-mega__categorie small {
  display: block;
  color: #727272;
  font-size: 13px;
  line-height: 1.5;
}
.erp-mega__categorie.is-actief {
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.erp-mega__categorie.is-actief::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 4px;
  border-radius: 4px;
  background: #00afd7;
  content: "";
}
.erp-mega__content {
  min-width: 0;
  padding: 32px 36px 24px;
}
.erp-mega__content h2 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
}
.erp-mega__content .erp-mega__label {
  margin-bottom: 10px;
}
.erp-mega__intro {
  margin: 0 0 24px;
  color: #727272;
  font-size: 16px;
}
.erp-mega__links {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(5, auto);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.erp-mega__links li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.erp-mega__links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  color: #252222;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.erp-mega__links a > i {
  display: flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 12px;
  background: #edfaff;
  color: #00afd7;
  font-size: 20px;
}
.erp-mega__links a > span {
  flex: 1;
}
.erp-mega__links a > b {
  font-size: 21px;
  font-weight: 400;
}
.erp-mega__links a:hover {
  color: #00afd7;
}
.erp-mega__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}
.erp-mega__alles {
  color: #00afd7;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.erp-mega__advies {
  padding: 11px 20px;
  border-radius: 30px;
  background: linear-gradient(90deg, #509f12, #79b63e);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}
.erp-mega a:focus-visible,
.erp-mega button:focus-visible {
  outline: 2px solid #00afd7;
  outline-offset: 3px;
}
#nav .erp-mega-trigger::after {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-3px) rotate(45deg);
}
@media (max-width: 1100px) {
  .erp-mega {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .erp-mega__content {
    padding: 26px;
  }
  .erp-mega__links {
    gap: 6px 16px;
  }
}
@media (max-width: 959px) {
  .erp-mega {
    display: none !important;
  }
}
@media (min-width: 960px) {
  /* De CMS-links worden door JavaScript in het megamenu gezet */
  #nav .desktop-menu > ul > li.erp-cms-source > ul {
    display: none !important;
  }
  /* Het pijltje bestaat al in de CMS-link */
/*  #nav .erp-mega-trigger::after {
    display: none;
  }*/

    @media (min-width: 960px) {
        #nav .erp-mega-trigger::after {
            content: "|";
            display: inline-block;
            position: static;
            width: auto;
            height: auto;
            margin-left: 16px;
            padding: 0;
            border: 0;
            background: none;
            color: #252222;
            font-size: 14px;
            font-weight: 400;
            line-height: 1;
            transform: none;
        }
    }

  #header .erp-mega {
    right: 40px;
    width: 960px;
    max-width: calc(100vw - 80px);
    grid-template-columns: 250px minmax(0, 1fr);
    border-radius: 16px;
  }
  #header .erp-mega__sidebar {
    padding: 24px 18px;
  }
  #header .erp-mega__categorie {
    margin-bottom: 12px;
    padding: 18px 14px;
  }
  #header .erp-mega__content {
    padding: 26px 28px;
  }
  #header .erp-mega__content h2 {
    margin: 0 0 8px;
    font-size: 25px;
    line-height: 1.3;
  }
  #header .erp-mega__intro {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
  }
  #header .erp-mega__links {
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 24px;
  }
  #header .erp-mega__links > li {
    display: block;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
  }
  #header .erp-mega__links a {
    padding: 5px 0;
    font-size: 14px;
    line-height: 1.4;
  }
  #header .erp-mega__links a > i {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  #header .erp-mega__footer {
    margin-top: 20px;
    padding-top: 18px;
  }
  #header .erp-mega__advies {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    line-height: 1.4;
    white-space: nowrap;
  }
}
/* Inklapbare submenu's op mobiel */
#offcanvas-menu .uk-offcanvas-bar ul ul {
  display: none !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 0 0 16px !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
#offcanvas-menu .uk-offcanvas-bar li.is-open > ul {
  display: block !important;
}
#offcanvas-menu .uk-offcanvas-bar ul ul > li {
  display: block !important;
  float: none !important;
  width: 100% !important;
}
#offcanvas-menu .uk-offcanvas-bar .food-mobile-toggle {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#offcanvas-menu .uk-offcanvas-bar .food-mobile-toggle > .parent-icon {
  display: none !important;
}
#offcanvas-menu .uk-offcanvas-bar .food-mobile-toggle::after {
  content: "+";
  flex-shrink: 0;
  font-size: 20px;
}
#offcanvas-menu .uk-offcanvas-bar .food-mobile-toggle[aria-expanded="true"]::after {
  content: "−";
}