
Similar to ::part, the :host selector is not usable from within userChrome.css. So I guess the only way here would be to make the things inside the shadow-root inherit some variables and use those:
.infobar{
--uc-container-block-padding: 0px;
--uc-close-button-block-margin: 0px;
}
moz-button.close{ margin-block: var(--uc-close-button-block-margin, 4px) !important }
div.container { padding-block: var(--uc-container-block-padding, 3px) !important }
This is a bit unfortunate complication, that could in theory break a bit if eg. eg.container elements would ever be outside of .infobar (which I don’t think is currently the case). But otherwise it should work just fine.

div.text-container { padding-block: var(--uc-container-block-padding, initial) !important }Sure, if padding-block isn’t set then
initialshould be alright. I’m guessing the initial value would be0pxso it’s probably ok to not set any fallback value.But there’s actually a rather recent value that you could use in place of
initial- that isrevert-rule. Whereasinitialmakes the property use it’s “browser default” value, usingrevert-ruleas a fallback makes it use whatever it would have been without that custom style rule - so it would in this case revert tocalc((var(--message-bar-container-min-height) - 1lh) / 2).