Your approach should work. So I suspect your selector does not pick up your target element, or there is another higher precedence rule you are not aware of.
Another trick would be setting an inline important style to your target element, i.e. giving it a style="display: inline-flex !important;"
attribute.