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, plus correct
a few minor layout issues in RTL.

It also improves the layout of alerts
when combined with details/summary.
Merge pull request #5968 from Pacoup/alert-css-fixes

CSS fixes for details/summary polyfills and alerts