I agree that if everything goes against you (10 mins at immigration, 5 mins at security and gate 70) then you wouldn't have time for the lounge or shopping, but 40 minutes is CX's official cut-off time. On the other hand, if immigration and security have good days and your flights from gate 2 then you could have 20 minutes for shopping.