What's the maximum allowable height between a shower drain and the trap?
According to the International Residential Code, the maximum vertical distance between the sink drain and the entrance to the p-trap is 24 inches.
source

Be aware that it'll make a fair bit of noise dropping that far.