The margins were only correct when the buttons are larger due to there also being a main action.
Before:
After: