Begin by preheating your oven to 350°F (175°C). Grease a 9-inch pie pan generously with coconut oil to prevent sticking.
In a large mixing bowl, whisk together the almond flour, rolled oats, coconut sugar, baking soda, and salt until thoroughly combined, ensuring there are no lumps.
In a separate bowl, combine the melted coconut oil, maple syrup, and vanilla extract, whisking until the mixture is smooth and uniform.
Gradually pour the wet mixture into the dry ingredients, stirring gently until everything is just combined—avoid overmixing for optimal texture.
Carefully fold in the dark chocolate chips and, if desired, the chopped walnuts, ensuring they are evenly distributed throughout the dough.
Transfer the cookie dough to the prepared pie pan. Use your hands or a spatula to press it down evenly, creating a nice, flat crust.
Place the pie pan in the preheated oven and bake for 20-25 minutes, or until the edges are golden brown and the center feels firm to the touch.
Once baked, take the cookie pie out of the oven and allow it to cool for about 10 minutes. If you prefer, sprinkle flaky sea salt on top for an enticing flavor contrast.
After cooling, slice the cookie pie into wedges, and serve warm or at room temperature. It pairs beautifully with a scoop of your favorite ice cream or a dollop of yogurt on the side for an indulgent touch.