/* SPJ v3.457 — estabilidade do tempo no primeiro paint de Franquia/Rede.
   A v3.456 estabilizou o portal comum. Esta folha replica no HEAD somente a
   geometria FINAL já usada pelo cabeçalho de unidades de franquia, evitando
   que previsão, seletor e busca nasçam em posições genéricas e só depois
   encaixem no grid da rede. Não muda o desenho final do cabeçalho. */

@media (min-width:992px){
  html body.pc header.head.spb-header-franchise-cities:not(.spb-header-model-laranja){
    min-height:128px!important;
  }

  html body.pc header.head.spb-header-franchise-cities:not(.spb-header-model-laranja)>.wrap{
    position:relative!important;
    height:128px!important;
    min-height:128px!important;
    display:grid!important;
    grid-template-columns:max-content minmax(0,1fr) 300px!important;
    grid-template-rows:128px!important;
    align-items:center!important;
    align-content:center!important;
    column-gap:28px!important;
    padding-top:0!important;
    padding-bottom:0!important;
    overflow:visible!important;
  }

  html body.pc header.head.spb-header-franchise-cities:not(.spb-header-model-laranja)>.wrap>.spb-franchise-brand-cluster{
    grid-column:1!important;
    grid-row:1!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    align-self:center!important;
    justify-self:start!important;
    height:128px!important;
    min-height:128px!important;
    width:max-content!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    gap:0!important;
    overflow:visible!important;
  }

  html body.pc header.head.spb-header-franchise-cities:not(.spb-header-model-laranja)>.wrap>.spb-franchise-brand-cluster>a.logo{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    align-self:center!important;
    position:relative!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    bottom:auto!important;
    transform:none!important;
    height:128px!important;
    min-height:128px!important;
    width:300px!important;
    max-width:300px!important;
    flex:0 0 300px!important;
    margin:0!important;
    padding:0 18px 0 0!important;
  }

  html body.pc header.head.spb-header-franchise-cities:not(.spb-header-model-laranja)>.wrap>.spb-franchise-brand-cluster>.spb-city-switcher{
    position:relative!important;
    display:flex!important;
    align-items:center!important;
    align-self:center!important;
    height:44px!important;
    min-height:44px!important;
    margin:0!important;
    padding:0 18px!important;
    overflow:visible!important;
  }

  html body.pc header.head.spb-header-franchise-cities:not(.spb-header-model-laranja)>.wrap>.spb-franchise-brand-cluster>.spb-city-switcher>summary{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    height:44px!important;
    min-height:44px!important;
    padding:0!important;
    margin:0!important;
    line-height:1!important;
  }

  html body.pc header.head.spb-header-franchise-cities:not(.spb-header-model-laranja)>.wrap>.weather,
  html body.pc header.head.spb-header-franchise-cities:not(.spb-header-model-laranja)>.wrap>.weather.spb-weather-top{
    grid-column:2!important;
    grid-row:1!important;
    align-self:center!important;
    justify-self:center!important;
    position:relative!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    bottom:auto!important;
    transform:none!important;
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
    min-height:50px!important;
    margin:0!important;
    overflow:hidden!important;
  }

  html body.pc header.head.spb-header-franchise-cities:not(.spb-header-model-laranja)>.wrap>.weather:not(.spb-weather-top){
    display:none!important;
  }

  html body.pc header.head.spb-header-franchise-cities:not(.spb-header-model-laranja)>.wrap>form.spb-header-search,
  html body.pc header.head.spb-header-franchise-cities:not(.spb-header-model-laranja)>.wrap>form.search.spb-header-search{
    grid-column:3!important;
    grid-row:1!important;
    align-self:center!important;
    justify-self:end!important;
    position:relative!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    bottom:auto!important;
    transform:none!important;
    width:300px!important;
    max-width:300px!important;
    margin:0!important;
  }

  /* O modelo laranja de franquia já não usa a previsão central: impedir qualquer flash. */
  html body.pc header.head.spb-header-franchise-cities.spb-header-model-laranja>.wrap>.weather,
  html body.pc header.head.spb-header-franchise-cities.spb-header-model-laranja>.wrap>.weather.spb-weather-top{
    display:none!important;
  }
}

@media (min-width:992px) and (max-width:1180px){
  html body.pc header.head.spb-header-franchise-cities:not(.spb-header-model-laranja)>.wrap{
    grid-template-columns:max-content minmax(0,1fr) 280px!important;
    column-gap:18px!important;
  }
  html body.pc header.head.spb-header-franchise-cities:not(.spb-header-model-laranja)>.wrap>.spb-franchise-brand-cluster>a.logo{
    width:260px!important;
    max-width:260px!important;
    flex-basis:260px!important;
  }
  html body.pc header.head.spb-header-franchise-cities:not(.spb-header-model-laranja)>.wrap>form.spb-header-search,
  html body.pc header.head.spb-header-franchise-cities:not(.spb-header-model-laranja)>.wrap>form.search.spb-header-search{
    width:280px!important;
    max-width:280px!important;
  }
}
