/* The one header for every screen: marketing, sign-in, customer card, counter and owner. Loaded last. The homepage sets
   the measure: a 72px bar, a 172x44 logo on phones (200x44 above 430px), 64rem wide. The shop's avatar and name sit in the
   28px gap under the bar, which every screen leaves empty, so they never shrink the logo or move the content. */
:root{--mcc-header-height:72px;--mcc-header-gap:28px;--mcc-header-column:64rem;--mcc-header-gutter:var(--cc-page-gutter,20px)}
html body header.mcc-header{position:relative!important;display:flex!important;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:0 6px;width:min(100%,var(--mcc-header-column));max-width:none;height:auto!important;min-height:var(--mcc-header-height)!important;margin:0 auto!important;padding:14px var(--mcc-header-gutter)!important;background:transparent;border:0;box-shadow:none}
html body header.mcc-header :is(.logo,.site-logo){position:static!important;display:block;flex:0 1 200px;width:200px!important;min-width:104px;max-width:none;height:44px!important;margin:0!important;padding:0;transform:none!important;line-height:0}
html body header.mcc-header :is(.logo,.site-logo)>img{display:block;width:100%!important;height:100%!important;object-fit:contain;object-position:left center;transform:none!important}
html body header.mcc-header .header-tools{position:static!important;display:flex;align-items:center;flex:none;margin-left:auto;transform:none!important}
html body header.mcc-header .header-lang{display:inline-flex;align-items:center;gap:6px;height:44px;min-height:44px;padding:0 12px;border:2px solid var(--ink-line);border-radius:999px;background:var(--cc-white);color:var(--cc-ink);font:800 0.875rem/1 var(--cc-font-body);letter-spacing:.5px}
html body header.mcc-header .header-lang img{width:24px;height:auto}
html body header.mcc-header .header-menu{position:static!important;flex:none;width:44px;height:44px;margin:0 0 0 12px}
html body header.mcc-header .header-menu svg{width:100%;height:100%}
html body header.mcc-header #shop-label{display:none!important}

/* #614 the strip above the bar keeps one height from first paint, whichever role the app boots into. */
html body .review{box-sizing:border-box;min-height:28px}
html body:has(main#app>.loading) footer{visibility:hidden}

/* The shop's identity: secondary, in the gap under the bar. */
html body header.mcc-header .logo.has-cafe-brand{display:block}
html body header.mcc-header .logo .cafe-brand{position:absolute;top:var(--mcc-header-height);left:var(--mcc-header-gutter);right:var(--mcc-header-gutter);display:flex;flex-flow:row nowrap;align-items:center;gap:6px;width:auto;max-width:none;height:24px;min-height:0;padding:0;line-height:1}
html body header.mcc-header .logo .cafe-logo{display:block;flex:none;width:22px;height:22px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 1px var(--cafe-accent)}
html body header.mcc-header .logo .cafe-brand-text{display:flex;flex-direction:row;align-items:baseline;gap:6px;min-width:0}
html body header.mcc-header .logo .cafe-name{flex:none;max-width:100%;overflow:hidden;font:700 0.8125rem/1.2 var(--cc-font-body);letter-spacing:0;color:var(--cc-ink);text-overflow:ellipsis;white-space:nowrap}
html body header.mcc-header .logo .cafe-tagline{display:block;min-width:0;min-height:0;overflow:hidden;font:400 0.75rem/1.2 var(--cc-font-body);letter-spacing:0;color:var(--cc-muted,#7a5a42);text-overflow:ellipsis;white-space:nowrap}

/* Owner tabs: their own row, below the shop's line. */
html body[data-role=owner] header.mcc-header{flex-wrap:wrap;padding-bottom:0!important}
html body[data-role=owner] header.mcc-header #nav{margin:calc(var(--mcc-header-gap) + 14px) 0 0!important}

/* Content starts at the same height on every screen. */
html body main#app{align-content:start;padding-top:var(--mcc-header-gap)!important;margin-top:0!important}
html body[data-role=owner]:not([data-route=counter]) main#app{padding-top:16px!important}
html body[data-role=welcome] .welcome-screen{margin-top:0}

/* The customer and sign-in pages are a 480px column on desktop; the bar still spans the homepage's width. */
@media (min-width:481px){html body:is([data-role=customer],[data-role=welcome]) header.mcc-header{width:min(100vw,var(--mcc-header-column));margin-left:calc(50% - min(50vw,var(--mcc-header-column)/2))!important;margin-right:0!important}}
@media (min-width:700px){html body[data-role=owner] header.mcc-header{flex-wrap:nowrap;padding-bottom:14px!important}html body[data-role=owner] header.mcc-header #nav{order:1!important;margin:0 12px 0 auto!important}html body[data-role=owner] header.mcc-header .header-tools{order:2;margin-left:0}html body[data-role=owner]:not([data-route=counter]) main#app{padding-top:var(--mcc-header-gap)!important}}
@media (max-width:430px){html body header.mcc-header :is(.logo,.site-logo){flex-basis:172px;width:172px!important}html body header.mcc-header .header-lang{padding:0 10px}html body header.mcc-header .lang-menu summary{padding:0 8px}}
@media (max-width:374px){html body header.mcc-header :is(.logo,.site-logo){flex-basis:156px;width:156px!important}html body header.mcc-header .header-lang img{display:none}}
