Close button positioning and styling with backwards compat