.overlay-blur:before {
  content: '';
  filter: blur(20px);
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(5px);
}

.overlay-blur--active:before {
  height: 100vh;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 0;
}

.mega-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-menu__top-level-list-item {
  
}

.mega-menu__top-level-link {
  text-decoration: none;
  padding: 8px 0;
  display: block;
}

@media (min-width: 768px) {
  .mega-menu__top-level-list-item:hover > .mega-menu__panel,
  .mega-menu__top-level-list-item:focus-within > .mega-menu__panel,
  .mega-menu__top-level-link:focus + .mega-menu__panel {
    border: 0 !important;
    clip: unset !important;
    height: auto !important;
    overflow: visible !important;
    white-space: normal !important;
    width: 100% !important;
    opacity: 1;
  }

  .mega-menu__top-level-link {
    padding: 23px;
    position: relative;
  }
  
  .mega-menu__top-level-link:after {    
    bottom: 10px;
    content: "";
    display: block;
    height: 2px;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    transition: width 0.3s ease 0s, left 0.3s ease 0s;
    width: 0;
  }
  
  .mega-menu__top-level-link:hover:after,
  .mega-menu__top-level-link--active:after { 
    width: calc(100% - 46px);  
  }
  
  .mega-menu__mobile-back-button {
    display: none;
  }
}

.mega-menu__panel {
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mega-menu__panel > .content-wrapper {
  max-width: 1000px;
  width: 100%;
}

/* Horizontal Links */

.mega-menu__horizontal-links {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
  justify-content: space-between;
}

.mega-menu__horizontal-links li {
  flex: 0 0 18%;
}

.mega-menu__horizontal-links a {
  text-decoration: none;
}

.mega-menu__horizontal-links a img {
  height: 24px;
}

.mega-menu__product-suite-header {
  align-items: center;
  display: flex;
  column-gap: 5px;
}

.mega-menu__product-suite-header-text {
  display: none;
  margin: 0;
}

.mega-menu__product-suite-description {
  margin-top: 10px;
}

.mega-menu__promos {
  display: flex;
  column-gap: 25px;
  margin-top: 60px;
}

/* Small Promo */
.mega-menu__small-promo {
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mega-menu__small-promo a,
.mega-menu__large-promo a {
  display: block;
  font-size: 10px !important;
  text-decoration: none;
  font-weight: 700;
  margin-top: 30px;
  text-transform: uppercase;
}

.mega-menu__small-promo a:after,
.mega-menu__large-promo a:after{
  content: ">";
  display: inline-block;
  margin-left: 5px;
}

.mega-menu__small-promo a:hover,
.mega-menu__large-promo a:hover {
  text-decoration: underline;
}

/* Large Promo */
.mega-menu__large-promo {
  display: flex;
}

.mega-menu__large-promo-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px;
  flex: 1 1 50%;
}

.mega-menu__large-promo-image {
  flex: 1 1 auto;
  padding: 40px;
  text-align: center;
}

.mega-menu__large-promo-image img {
  max-width: 125px !important;
  width: 100%;
}

netbase-animated-icon {
  display: block;
  width: 40px;
}

/* Sub links Layout */

.mega-menu__sub-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  column-gap: 80px;
  row-gap: 50px;
}

.mega-menu__sub-links > li > a {
  text-decoration: none;
}

.mega-menu__sub-links > li > a > p {
  margin-bottom: 5px;
}

.mega-menu__sub-links > li > a > p.h3 {
  text-transform: capitalize;
}

/* Simple Sub links Layout */

.mega-menu__panel--layout-company > .content-wrapper {
  display: flex;
  justify-content: center;
}

.mega-menu__panel-company-inner {
  display: flex;
  column-gap: 50px;
}

.mega-menu__discount-promo {
  background-size: cover;
  background-position: center;
  padding: 20px 30px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  row-gap: 5px;
  overflow: hidden;
  min-width: 280px;
  justify-content: center;
}

.mega-menu__discount-promo-duration {
  text-transform: uppercase;
}

.mega-menu__discount-promo-value {
  position: relative;
  font-size: 28px;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

.mega-menu__discount-promo-value:before {
  content: "";
  display: block;
  bottom: -2px;
  left: 0px;
  height:5px;
  width: 5px;
  border-radius: 50%;
  border: solid 1px currentcolor;
  position: absolute;
}

.mega-menu__discount-promo-value:after {
  content: "";
  display: block;
  bottom: 0;
  left: 5px;
  height:1px;
  width: 300%;
  border-bottom: solid 1px currentcolor;
  position: absolute;
}

.mega-menu__simple-sub-links {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
  row-gap: 25px;
}

.mega-menu__simple-sub-links a {
  text-decoration: none;
}

.mega-menu__simple-sub-links a:hover {
  text-decoration: underline;
}

@media (min-width: 1000px) and (max-width: 1100px) {
  
  .mega-menu__top-level-link {
    font-size: 0.8rem;
  }
}

@media (min-width: 768px) and (max-width: 999px) {
  
  .mega-menu__top-level-link {
    font-size: 0.6rem;
    padding: 23px 13px; 
  }
}

/* Mobile styles */
@media (max-width: 767px) {
  .mega-menu {
    flex-direction: column;
  }
  
  .mega-menu__top-level-link,
  .mega-menu__sub-links a,
  .mega-menu__simple-sub-links a,
  .mega-menu__product-suite-link {
    position: relative;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOSIgaGVpZ2h0PSIxNCIgdmlld0JveD0iMCAwIDkgMTQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xIDEzTDcgN0wxIDEiIHN0cm9rZT0iYmxhY2siIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4K);
    background-position: center right;
    background-repeat: no-repeat;
    display: block;
  }
  
  .mega-menu__panel {
    display: flex;
    flex-direction: column-reverse;
    height: 100dvh;
    justify-content: flex-end;
    opacity: 1;
    position: fixed;
    right: -100%;
    left: auto;
    top: 0;
    transition: right .3s ease-in-out;
    width: calc(100% - 90px);
    z-index: 3;
  }
  
  .mega-menu__panel > .content-wrapper {
    overflow-y: auto;
  }
  
  .mega-menu__top-level-link--open + .mega-menu__panel {
    opacity: 1;
    right: 0;
  }
  
  .mega-menu__horizontal-links {
    flex-direction: column;
  }
  
  .mega-menu__promos {
    flex-direction: column;
    row-gap: 20px;
    margin-top: 40px;
  }
  
  .mega-menu__mobile-back-button {
    border: none;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDE4IDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0wLjY0NjQ0NyAzLjY0NjQ1QzAuNDUxMTg0IDMuODQxNzEgMC40NTExODQgNC4xNTgyOSAwLjY0NjQ0NyA0LjM1MzU1TDMuODI4NDMgNy41MzU1M0M0LjAyMzY5IDcuNzMwOCA0LjM0MDI3IDcuNzMwOCA0LjUzNTUzIDcuNTM1NTNDNC43MzA4IDcuMzQwMjcgNC43MzA4IDcuMDIzNjkgNC41MzU1MyA2LjgyODQzTDEuNzA3MTEgNEw0LjUzNTUzIDEuMTcxNTdDNC43MzA4IDAuOTc2MzExIDQuNzMwOCAwLjY1OTcyOCA0LjUzNTUzIDAuNDY0NDY2QzQuMzQwMjcgMC4yNjkyMDQgNC4wMjM2OSAwLjI2OTIwNCAzLjgyODQzIDAuNDY0NDY2TDAuNjQ2NDQ3IDMuNjQ2NDVaTTEgNC41SDE4VjMuNUgxVjQuNVoiIGZpbGw9ImJsYWNrIi8+Cjwvc3ZnPgo=);
    background-position: center left;
    background-repeat: no-repeat;
    background-color: transparent;
    padding-left: 25px;
    margin-bottom: 40px;
  }
  
  .mega-menu__product-suite-description,
  .mega-menu__product-suite-link netbase-animated-icon,
  .mega-menu__product-suite-link svg {
    display: none; 
  }
  
  .mega-menu__large-promo {
    flex-direction: column;
  }
  
  .mega-menu__product-suite-link {
    display: block;
    padding: 8px 0;
  }
  
  .mega-menu__product-suite-header-text {
    display: block;
  }
  
  .mega-menu__sub-links {
    display: flex;
    flex-direction: column;
    row-gap: 0;
  }
  
  .mega-menu__sub-links a {
    padding: 8px 0;
    display: block;
  }
  
  .mega-menu__sub-links a .h3 {
    font-weight: 400 !important;
    font-size: 1rem;
  }
  
  .mega-menu__panel--layout-company > .content-wrapper {
    display: block;
  }

  .mega-menu__panel-company-inner {
    flex-direction: column;
    row-gap: 40px;
  }

}