/* 🚧 WIP 🚧: BEM naming convention and file organization cleanup need to be completed for these styles */
.cpap__theme-header.scrolled-past-header .cpap__theme-navigation-menu {
  top: 72px;
  height: calc(100% - 70px);
}

.cpap__theme-header__container.dark-header {
  .cpap__theme-navigation-menu {
    .header__menu-item span {
      color: var(--cpap-primary-white);
    }

    .header__menu-item span {
      color: var(--cpap-primary-white);

      @media (max-width: 990.98px) {
        color: var(--cpap-primary-soft-black);
      }
    }

    .header__menu-item span svg path {
      stroke: var(--cpap-primary-white);

      @media (max-width: 990.98px) {
        stroke: var(--Fill-Primary-Soft-Black);
      }
    }
  }
}

.cpap__theme-navigation-menu {
  overflow: hidden;
  @media screen and (min-width: 991px) {
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    .list-menu--inline {
      height: 100%;
      align-items: center;
    }
    .list-menu--inline > li {
      height: 100%;
      display: inline-flex;
    }
  }

  @media (max-width: 990.98px) {
    @supports (interpolate-size: allow-keywords) {
      height: 0;
      transition: height 0.3s ease-in-out;
    }
    @supports not (interpolate-size: allow-keywords) {
      min-height: 0;
      max-height: 0;
      transition: min-height, max-height 0.3s ease-in-out;
    }
    display: block;
    overflow: hidden;
    position: fixed;
    left: 0;
    right: 0;
    top: 121px;
    margin: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    background: var(--cpap-primary-white);

    &.cpap__theme-navigation-menu--expanded {
      @supports (interpolate-size: allow-keywords) {
        height: calc(100% - 121px);
      }
      @supports not (interpolate-size: allow-keywords) {
        max-height: calc(100% - 121px);
        min-height: calc(100% - 121px);
      }
      z-index: 20;
    }

    .list-menu.list-menu--inline {
      display: block;
      background: var(--cpap-primary-white);
      padding-top: 8px;
    }
    .list-menu.list-menu--inline li .list-menu__item {
      padding: 10px 20px;
    }
    .list-menu.list-menu--inline li .list-menu__item > span {
      display: block;
      width: 100%;
      position: relative;
      font-size: var(--bs-body-font-size-16);
    }
    .list-menu.list-menu--inline li .list-menu__item > span svg {
      margin: 0;
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
    }
  }

  @media screen and (max-width: 1050px) and (min-width: 991px) {
    .cpap__theme-navigation-menu__categories li:last-child {
      display: none;
    }
  }

  .list-menu--inline li:hover a span svg {
    transform: rotate(-90deg);
  }

  .header__menu-item span svg {
    margin-left: 4px;
    display: inline-block;
    transform: rotate(90deg);
    position: relative;
    top: -3px;
    transition: all 0.2s linear;
  }
  .header__menu-item span {
    font-size: var(--bs-body-font-size-default);
    font-style: normal;
    text-decoration: none;
    color: var(--cpap-primary-soft-black);
  }
  .header__menu-item.active span {
    color: #d9d9d9;
  }
  .header__menu-item.active span svg path {
    stroke: #d9d9d9;
  }
  .header__menu-item:hover span {
    text-decoration: none;
  }
  .header__menu-item span svg path {
    stroke: var(--cpap-primary-soft-black);
  }

  @media screen and (max-width: 1245px) and (min-width: 991px) {
    .header__menu-item span {
      font-size: 13px;
    }
  }

  .cpap__theme-navigation-menu__categories li.active:hover .cpap__mega-menu {
    max-height: 100%;
    box-shadow: var(--cpap-popup-box-shadow);
  }

  .cpap__theme-navigation-menu__categories > li.active .cpap__mega-menu {
    @media (max-width: 990.98px) {
      transform: translate(0);
      visibility: visible;
      overflow: visible;
      max-height: 100%;
    }

    .mega-main {
      animation-name: fadeIn;
      animation-duration: 1.5s;
    }
  }

  .res-footer {
    padding: 20px;
    display: none;
    max-width: 460px;
    margin: 0 auto;
  }
  .res-footer .btn_solution {
    display: block;
    text-align: center;
    text-decoration: none;
    border-radius: 28px;
    border: 1px solid var(--cpap-primary-white);
    background: var(--cpap-accent-plum);
    padding: 9px 16px;
    font-size: var(--bs-body-font-size-default);
    font-weight: var(--bs-body-font-weight-700);
    color: var(--cpap-primary-white);
    margin-bottom: 28px;
  }
  .res-footer .btn_faq {
    display: block;
    text-decoration: none;
    color: var(--cpap-primary-soft-black);
    font-size: 13px;
    margin-bottom: 27px;
    text-align: center;
  }
  .res-footer .btn_faq span {
    display: inline-block;
    vertical-align: middle;
  }
  .res-footer .res-action a {
    text-decoration: none;
    color: var(--cpap-primary-soft-black);
    display: inline-block;
    vertical-align: top;
    border-right: 1px solid var(--cpap-stroke-gray);
    margin-right: 10px;
    padding-right: 14px;
    font-size: var(--bs-body-font-size-default);
  }
  .res-footer .res-action a span {
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
  }
  .res-footer .res-action a:last-child {
    margin: 0;
    padding: 0;
    border: none;
  }

  @media (max-width: 990.98px) {
    .res-footer {
      display: block;
    }
    .res-footer .btn_faq {
      font-size: var(--bs-body-font-size-default);
    }
  }

  @media screen and (max-width: 991px) {
    .res-footer .res-action a {
      &:first-child {
        display: none;
      }
    }
  }
}
