/* V43.1: the book-purchase action stays reachable without opening a menu.
   Shared public headers PT / BR / EN and Angola. No changes to editorial
   content, private screens, forms or checkout templates. */
.header .header-inner > a.sm431-buy{
 display:inline-flex!important;align-items:center;justify-content:center;
 flex:0 0 auto;min-height:44px;white-space:nowrap;
 text-decoration:none;line-height:1.25!important;
 font-family:'DM Sans',system-ui,-apple-system,sans-serif!important;
 z-index:2;
}
.header .sm431-buy-long{display:inline!important}
.header .sm431-buy-short{display:none!important}
.header #main-nav a.nav-buy{display:none!important} /* no second CTA in expanded menu */
.header .header-inner > a.sm431-buy:focus-visible{outline:3px solid #2b2824;outline-offset:3px}
/* The contextual CTA on an offer page is preserved on large screens and in
   the page body; on smaller screens the global purchase shortcut takes priority. */
@media(max-width:1750px){
 .header .header-inner > a.button--wine:not(.sm431-buy){display:none!important}
}
@media(max-width:1450px){
 .header .header-inner > a.sm431-buy{
  display:inline-flex!important;order:4;min-height:44px!important;
  font-size:.74rem!important;font-weight:800!important;
  padding:10px 14px!important;max-width:unset!important;
 }
 .header .menu-btn{order:5!important}
 .header #main-nav.sm43-nav{order:6}
}
@media(max-width:900px){
 .header .header-inner{gap:clamp(3px,1vw,7px)!important;flex-wrap:nowrap!important}
 .header .header-inner > a.sm431-buy{
  padding:8px 10px!important;min-width:68px!important;min-height:44px!important;
  font-size:.70rem!important;letter-spacing:0!important;
 }
 .header .sm431-buy-long{display:none!important}
 .header .sm431-buy-short{display:inline!important}
 .header .sm-language-switch{flex-shrink:0!important;margin-left:auto!important}
 .header .brand{flex-shrink:1!important;min-width:0!important}
 .header .menu-btn{flex-shrink:0!important}
}
@media(max-width:430px){
 .header .header-inner > a.sm431-buy{min-width:61px!important;padding:8px 7px!important;font-size:.67rem!important}
 .header .brand-name{font-size:.68rem!important;letter-spacing:.02em!important}
}
@media(max-width:380px){
 .header .brand-words{display:none!important}
 .header .brand{width:32px!important;min-width:32px!important;flex:0 0 32px!important}
 .header .sm-language-switch{gap:0!important}
 .header .sm-language-switch a{min-width:20px!important;font-size:.58rem!important}
 .header .menu-btn{min-width:37px!important;padding:6px 2px!important;font-size:0!important;gap:0!important}
 .header .menu-btn svg{width:16px!important}
 .header .header-inner > a.sm431-buy{min-width:58px!important;padding:8px 6px!important}
}
@media(prefers-reduced-motion:reduce){.header .sm431-buy{transition:none!important}}
/* Angola has four language links; keep the identity symbol and all actions
   legible without forcing a second header row. */
@media(max-width:650px){
 .header:not(.v39-public-nav) .brand-words{display:none!important}
 .header:not(.v39-public-nav) .brand{width:32px!important;min-width:32px!important;flex:0 0 32px!important}
}
