Hierarchy of CSS Rules for Button and BUTTON_LINK

I am getting confused in the manner Button and Button_Link style rules are named. Included with- disabled, wrap, caption, and my own custom styles, its even more complicated. What exactly is the hierarchy, and method of referencing custom styles made by user?