html.mobile-menu-default-active {
  @include media-max($xlarge) {
    overflow-y: hidden;
  }
  .header {
    background-color: #20222B;
  }
}

.mobile-menu {
  z-index: calc(#{$z-header} + 1);
  display: flex;
  transition: opacity 0.25s ease-in-out;
  position: fixed;
  top: calc(var(--header-height, 0rem) + var(--admin-bar-height, 0rem));
  right: 0;
  bottom: 0;
  left: 0;

  flex-direction: column;

  opacity: 0;
  pointer-events: none;

  overflow-y: scroll;

  @include media-min($xlarge) {
    display: none;
  }

  &__search {
    padding: 2rem 2rem 3rem;
    input {
      background-color: hsla(0, 0%, 100%, 0.1) !important;
      color: $white !important;
    }
    .icons {
      color: hsla(0, 0%, 100%, 0.4);
    }
  }
}

.mobile-menu-default {
  html.mobile-menu-default-active & {
    opacity: 1;
    pointer-events: all;
  }

  &__primary-group {
    border-top: 1px solid rgba($white, 0.1);

    &:last-of-type {
      border-bottom: 1px solid rgba($white, 0.1);
    }
  }

  &__primary-links {
    padding: 0rem 2rem 3rem;
  }

  .mobile-menu-default__primary-title-label,
  &__primary-link {
    padding: 0.8rem 0;
    font-size: 1.6rem;
    color: $white;
    text-decoration: none;
    transition: color $transition-params;
  }

  .mobile-menu-default__primary-title-label {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding-left: 0;
    line-height: var(--body-font-line-height);

    &::before,
    &::after {
      display: none;
    }

    &:hover {
      span {
        color: var(--color-blue);
      }
    }

    span {
      transition: color var(--default-transition-params);
    }
  }

  input:checked + .mobile-menu-default__primary-title-label {
    .mobile-menu-default__primary-button-icon {
      transform: rotate(90deg);
    }
  }

  &__primary-link {
    display: inline-block;
  }

  &__primary-button-icon {
    color: $white;
    transition: transform var(--default-transition-params);
  }

  &__primary-group-inner {
    position: relative;
    transition: all 0.3s cubic-bezier(0, 1, 0, 1);
    max-height: 0;
    overflow: hidden;
    pointer-events: none;

    // content is visible
    input:checked ~ & {
      transition: all 0.3s cubic-bezier(1, 0, 1, 0);
      max-height: 9999px;
      pointer-events: all;
    }
  }

  &__primary-group-content {
    display: flex;
    flex-direction: column;
    margin-left: 1.6rem;
    a {
      color: $white;
      line-height: 4.4rem;
      border-top: 1px solid rgba($white, 0.1);
    }
    img {
      vertical-align: middle;
      height: 2.4rem;
    }
  }

  &__secondary-links {
    padding: 0 2rem 4rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;

    a {
      font-weight: var(--font-weight-semibold);
      color: var(--color-white);
      text-decoration: none;
      transition: color var(--default-transition-params);

      &:hover {
        color: var(--color-blue);
      }
    }
  }
}
