Refactor styles for Firefox