/* Never flash the main shop's hard-coded brand while tenant config loads. */
[data-reseller-style-probe] { --reseller-brand-ready: 1; }
:is(.uii-brand,.vault-header-brand,.uii-footer-brand,.site-header a.brand,.site-footer a.brand):not([data-reseller-brand]) { visibility:hidden !important; }
[data-reseller-brand] { visibility:visible !important; display:inline-flex !important; align-items:center !important; min-width:0; max-width:min(34vw,260px); overflow:hidden; white-space:nowrap; font-size:0 !important; letter-spacing:0 !important; }
[data-reseller-brand] > * { display:none !important; }
[data-reseller-brand]::before { display:inline-block !important; flex:0 0 auto; white-space:nowrap; }
[data-reseller-brand][data-reseller-mode='name']::before { content:attr(data-reseller-name) !important; color:var(--shell-ink,var(--foreground,#142b4b)) !important; font:700 21px/1.2 Arial,sans-serif !important; letter-spacing:0 !important; max-width:100%; overflow:hidden; text-overflow:ellipsis; }
[data-reseller-brand][data-reseller-mode='logo']::before { content:'' !important; width:min(34vw,180px); height:34px; background:var(--reseller-logo) left center/contain no-repeat !important; }
[data-reseller-brand]::after { content:none !important; display:none !important; }
@media(max-width:640px) {
  [data-reseller-brand] { max-width:44vw; }
  [data-reseller-brand][data-reseller-mode='name']::before { font-size:19px !important; }
  [data-reseller-brand][data-reseller-mode='logo']::before { width:44vw; height:30px; }
}
