If an element is defined in more than one place within CSS, the last definition overrides the previous.
16 CSS Lessons via Post-it® Notes
Kaylan
32619
If the same selector is defined multiple times, elements will inherit the combination of the declarations contained in each. An override will only occur at the declaration level if the same declaration is present (with different values of course), even within a single selector, where the last declaration wins (assuming !important isn’t used in any case).