@media (min-width: 992px) {
  .megamenu .second-level.dropdown {
    position: static;
  }

  .megamenu .dropdown-menu {
    width: 100%;
  }

  .megamenu .subnav>.dropdown.open>.dropdown-menu {
    border-top: 1px solid #e0e0e0;
  }

  .megamenu .dropdown>.dropdown-menu li.third-level>a {
    border-top: none;
    border-bottom: none;
    border-right: none;
    border-left: 1px solid #e0e0e0;
    white-space: normal;
    padding-top: 0;
    padding-bottom: 0;
    padding-right: 15px;
    display: inline-block;
    vertical-align: top;
  }

  .megamenu .subnav>.dropdown>.dropdown-menu>li>a:hover {
    background-color: transparent;
  }

  .megamenu .dropdown>.dropdown-menu li.third-level {
    display: inline;
  }

  .megamenu .dropdown>.dropdown-menu li.third-level>a {
    width: 33.1%;
    margin-top: 24px;
    margin-bottom: 24px;
  }

  .megamenu .dropdown>.dropdown-menu li.third-level.multiline span {
    font-weight: 700;
  }

  /*for oneline 2 split*/
  .megamenu .dropdown>.dropdown-menu li.third-level.multiline~.oneline:nth-last-of-type(2)>a,
  .megamenu .dropdown>.dropdown-menu li.third-level.multiline+.oneline:last-child>a {
    border-left: none;
  }

  .megamenu .dropdown>.dropdown-menu li.third-level.multiline~.oneline:nth-last-of-type(-n+2)>a,
  .megamenu .dropdown>.dropdown-menu li.third-level.multiline+.oneline:last-child>a {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .megamenu .dropdown>.dropdown-menu li.third-level.multiline~.oneline:nth-last-of-type(-n+2) {
    border-top: 1px solid #e0e0e0;
    margin: 0;
    text-align: center;
  }

  .megamenu .dropdown>.dropdown-menu li.third-level.multiline~.oneline:nth-last-of-type(-n+2)>a {
    width: 50%;
    margin-left: -2px; /*Fix whitespace between inline elements*/
    margin-top: 0;
    margin-bottom: 0;
  }

  /*for one line nav split remove from other child elements*/
  .megamenu .dropdown>.dropdown-menu li.third-level.multiline+.oneline:nth-last-of-type(2)::before,
  .megamenu .dropdown>.dropdown-menu li.third-level.multiline+.oneline:last-child::before {
    content: '\A';
    white-space: pre;
  }

  .megamenu .dropdown>.dropdown-menu li.third-level.multiline+.oneline:last-child>a {
    width: 100%;
  }

  .megamenu .dropdown>.dropdown-menu li.third-level.multiline+.oneline:last-child {
    text-align: center;
    border-top: 1px solid #e0e0e0;
  }

  /*overwrite https://www.f-secure.com/documents/fs-components/css/fs-components-v1.3.0-min.css*/
  .megamenu .subnav>.dropdown>.dropdown-menu>li:last-child>a {
    border-bottom: none;
  }

  /* close button */
  .megamenu .megamenu-close {
    position: absolute;
    right: 5px;
    top: 5px;
    border: none;
    background-color: transparent;
  }

  .megamenu-close:before {
    content: "\f130";
    font-family: fsg-icon-regular;
  }

  .megamenu .first-level.active .megamenu-close:hover {
    color: #f33;
  }

  /*For Home*/
  .megamenu .first-level.active:first-child .megamenu-close:hover {
    color: #00baff;
  }
}

@media (min-width: 1280px) {
  /*Default 5 columns*/
  .megamenu .dropdown>.dropdown-menu li.third-level>a {
    width: 24.6%;
  }

  /*3 columns For Business*/
  .megamenu .first-level:nth-of-type(2) .dropdown>.dropdown-menu li.third-level>a {
    width: 33.1%;
  }
}

@media (max-width: 991px) {
  .megamenu-close {
    display: none;
  }
}