.account-nav {
  padding: 8px 0;

  &--old-pages {
    position: relative;

    .accordion {
      width: 100%;
      position: absolute;
    }
  }

  &__toggle {
    padding: 0;
    position: relative;
  }

  &__icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;

    .icon {
      font-size: 1rem;
      color: $blue-satin;
    }

    .custom-icon {
      width: auto;
      font-size: .65rem;
      height: auto;

      path {
        fill: $blue-satin;
      }
    }
  }

  &__list {
    padding-left: 0;
    list-style-type: none;
    margin-bottom: 0;
  }

  &__link {
    display: flex;
    font-weight: 500;
    font-size: .875rem;
    line-height: 1.375rem;
    color: $gray-dark;
    text-decoration: none;
    padding: 8px 16px;
    align-items: center;

    &:hover,
    &:focus {
      color: $blue;
      text-decoration: none;
    }

    &.active {
      background: $ma-white;

      &:hover,
      &:focus {
        background: $white;
      }
    }
  }

  .rewards {
    width: 20px;
    height: 20px;
    border-radius: 50px;
    background: $blue-dark;
    color: $white;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 500;
    line-height: 1rem;
  }

  .accordion {
    &__header {
      padding: 8px 8px 8px 16px;
      display: flex;
      align-items: center;

      &-text {
        font-weight: 500;
        font-size: 1rem;
        line-height: 1.5rem;
        color: $gray-dark;
      }

      &-icon {
        margin-left: auto;
        position: relative;
      }
    }

    &__content {
      position: relative;
      padding: 0;
    }

    &__holder {
      padding: 0;
      box-shadow: 0 0 8px rgba(0, 0, 0, .12);
      background: $white;
      border-radius: 4px;
      z-index: 5;
      width: 100%;
      position: absolute;
      top: 8px;
      left: 0;
    }
  }
}

@include media-breakpoint-up(lg) {
  .account-nav {
    display: none;
  }
}
