Need help. How to commit that shoulder bone to body without rotation and displacement along inappropriate axes

I’m not good at riging. I’ve almost managed to do everything I wanted, but I can’t get the shoulder bone to stay in place. I made the arm using full body ik pin on input and since the shoulder is root, it is not subject to the limits that I need so much.