In the wake of the global economic downturn , Macedonia has experienced decreased foreign direct investment , lowered credit , and a large trade deficit .