Preheat oven to 180 degrees then line a deep rectangular baking tin.
Mix together flour, almonds, coconut, sugar, baking powder and salt.
Using your fingers, rub in the butter until the mixture resembles breadcrumbs.
Mix in the egg then press the dough in an even layer into the baking tin.
Toss together the raspberries, icing sugar, corn flour and lemon juice and zest then press onto the dough.
Mix together the flaked almonds, icing sugar and butter then spread evenly over the berries
Bake for 45 minutes or until the cookie base is golden and baked through – if the almonds on top brown too quickly, cover with foil and continue to bake.
Cool completely before cutting into squares.
Dust lightly with icing sugar before serving