CSS fixes for details/summary polyfills and alerts

These fixes normalize a lot of the styling between native and polyfill implementations of details/summary elements.

It also improves the layout of alerts when combined with details/summary.

Plus, some RTL enhancements.
This looks like the same code as earlier (lines 12 to 26). Should use placeholder/extend to avoid duplication in the output CSS (so it combines the selectors).