sea legs
(your) sea legs
the ability to keep your balance when walking on a moving ship and not feel ill.
It took me a while to get my sea legs, but I feel fine now.
Cambridge English Idioms Dictionary