.top-menu-wrapper {
  ul {
    list-style: none;
    margin: 0;
    flex-direction: row;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    li,
    a {
      margin: 0;
      font-size: 12px;
      font-weight: 500;
      line-height: 18px;
      text-transform: capitalize;
    }
  }
  @media only screen and (max-width: 1023px) {
    display: none;
  }
}

.drawer__head.is-hidden {
  display: none;
}

.header__desktop {
  .btn--transparent {
    color: var(--link);
    border-color: var(--link);
  }
  .btn--transparent:hover {
    opacity: 0.6;
  }
}

.header__wrapper {
  .header__desktop__button--cta {
    .btn:hover {
      opacity: 0.6;
    }
  }
}

.header__wrapper.meganav--visible {
  .header__desktop__button--cta .btn {
    color: #131a30;
    border-color: rgba(19, 26, 48, 0.6);
  }
}

#header-menu {
  .drawer__head {
    padding: 24px;
    padding-bottom: 20px;
    position: relative;
    &::after {
      content: "";
      position: absolute;
      left: 24px;
      right: 24px;
      bottom: 0;
      height: 1px;
      background: #dcd3cb;
    }
  }

  .drawer__close {
    left: unset;
    right: 24px;
    top: 38px;
    position: absolute;
    width: 20px;
    height: 20px;
    padding: 0;
    z-index: 10;
  }
}

.menu-bottom {
  padding: 24px;
  &:after {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 0;
    height: 1px;
    background: #dcd3cb;
  }
  .menu-bottom__text {
    font-weight: 400;
    font-size: 13px;
    line-height: 20px;
    letter-spacing: 0;
    color: #131a30bf;
  }
}

.sliderule__wrapper {
  .sliderow {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
}

.sliderow--level-2 {
  .sliderow__title {
    padding-bottom: 12px;
    font-weight: 400;
    font-size: 11px;
    line-height: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #131a3099;

    &::after {
      content: none;
    }
  }
  .wrap-sub-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    align-items: flex-start;
    padding: 24px;
    padding-top: 0;
    &::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 24px;
      right: 24px;
      height: 1px;
      background: #dcd3cb;
    }
    &:last-child {
      &::after {
        display: none;
      }
    }
    .sub-menu span {
      font-weight: 400;
      font-size: 13px;
      line-height: 20px;
      letter-spacing: 0;
      color: #131a30;
    }
  }
}

.header__desktop__button .navlink--search {
  svg {
    width: 20px;
    height: 20px;
  }
}
.header__desktop__button .socials {
  @media only screen and (min-width: 750px) {
    display: none;
  }
}

#header-menu.drawer--header {
  .drawer__bottom {
    background-color: #e8e4e1;

    .drawer__bottom__row--socials .socials {
      margin: 0;
      padding: 0;
    }
  }

  .drawer__inner:has(.drawer__head.is-hidden) .drawer__bottom {
    display: none;
  }

  .menu-top {
    .sliderule__wrapper:last-child {
      .sliderow__title::after {
        display: none;
      }
    }
  }

  .sliderow__links {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    overflow: auto;

    .sliderule__wrapper:last-child {
      .wrap-sub-menu::after {
        display: none !important;
      }
    }

    .sliderule-grid {
      display: flex;
      margin-top: auto;
      max-width: 100%;
      overflow: auto;
      -ms-overflow-style: none;
      scrollbar-width: none;
      min-height: 240px;
      &::-webkit-scrollbar {
        display: none;
      }

      .menu__block {
        width: max-content;
        min-width: 188px;
        height: 240px;
        padding: 0;
        margin-right: 6px;

        .header__dropdown__image {
          width: max-content;
          height: 100%;

          .image-wrapper {
            padding: 0 !important;
            width: max-content;
            height: 100%;

            img {
              position: relative;
              height: 100%;
              min-width: max-content;
              width: auto;
            }
          }
        }
      }
    }
  }

  .sliderow--back {
    position: sticky;
    top: 0;
    .sliderow__back-button {
      padding-left: 24px;
    }

    .sliderow__title {
      padding: 24px;
      justify-content: left;

      span {
        padding: 8px 0 8px 32px;
      }
    }
  }
}
