/* TECH-REL-001 R18: 14 ajustes sobre R17, sem mudanças no tema aprovado. */
/* WhatsApp: um único ícone com a MESMA cor do texto no repouso e hover. */
body.wp-theme-technolife .tl-r18-wa-mark,
body.wp-theme-technolife .tl-r18-mobile-wa .tl-r18-wa-mark,
body.wp-theme-technolife #sites .tl-r18-wa-mark {
 display:inline-block!important;flex:0 0 19px!important;width:19px!important;height:19px!important;
 margin:0!important;padding:0!important;background-color:currentColor!important;
 -webkit-mask:url('../icons/iconify/whatsapp.svg') center/contain no-repeat;
 mask:url('../icons/iconify/whatsapp.svg') center/contain no-repeat;
 border:0!important;vertical-align:middle;opacity:1;
}
body.wp-theme-technolife .tl-r17-wa-cta,
body.wp-theme-technolife .tl-r18-mobile-wa {
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 gap:11px!important;white-space:nowrap;line-height:1.3!important;
}
body.wp-theme-technolife :is(.tl-r17-wa-cta,.tl-r18-mobile-wa) > img {display:none!important;}
body.wp-theme-technolife .tl-r17-wa-cta:is(:hover,:focus-visible) {
 color:#fff!important;background-color:#168b47!important;border-color:#168b47!important;
}
body.wp-theme-technolife #sites .tl-ti-sites-contact .tl-r18-wa-mark{
 color:inherit!important;background-color:currentColor!important;
}
/* Copiar: ícone à ESQUERDA, sem caixa/borda; mesma implementação nas três visitas. */
body.wp-theme-technolife :is(.tl-visit-details,.tl-a-visit-details,.tl-ti-visit-details) .tl-r18-copy-first{
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 gap:10px!important;width:100%;max-width:100%;min-width:0;
 margin:0!important;flex-wrap:nowrap!important;
}
body.wp-theme-technolife :is(.tl-visit-details,.tl-a-visit-details,.tl-ti-visit-details) .tl-r18-copy-first > :is(p,div){
 flex:1 1 auto;min-width:0;max-width:100%;margin:0!important;
}
body.wp-theme-technolife .tl-r17-copy-button{
 box-sizing:border-box;flex:0 0 36px!important;width:36px!important;height:36px!important;
 padding:8px!important;margin:0!important;background:transparent!important;
 border:0!important;border-radius:8px!important;box-shadow:none!important;
 color:#fff!important;cursor:pointer;
}
body.wp-theme-technolife .tl-r17-copy-button img{width:19px;height:19px;filter:brightness(0) invert(1)}
body.wp-theme-technolife .tl-r17-copy-button:is(:hover,:focus-visible){
 background:rgba(255,255,255,.12)!important;border:0!important;
}
body.wp-theme-technolife .tl-r17-copy-button.is-copied{background:rgba(31,162,84,.22)!important}
body.wp-theme-technolife .tl-r18-copy-phone-row{align-self:flex-start;width:auto!important;}
body.wp-theme-technolife .tl-r18-copy-phone-row .wp-block-button {flex:0 1 auto!important;}
/* CTA legível de fundo branco: não aplicar filtros ou SVG branco fixo. */
body.wp-theme-technolife :is(.tl-ti-mid-cta-button,.tl-a-contact-button) .tl-r18-wa-mark {
 background-color:currentColor!important;
}
/* Setas dos previews TI: fora da zona do ícone no topo. */
body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-carousel-preview::after {
 top:auto!important;bottom:17px!important;right:18px!important;left:auto;
}
body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-carousel-preview-prev::after{
 top:auto!important;bottom:17px!important;left:18px!important;right:auto!important;
}
/* Padrão de títulos com link nos cards de Assistência (inclui links Gutenberg persistidos). */
body.wp-theme-technolife .tl-a-main .tl-a-services-grid .tl-a-flip-front h3.tl-a-service-title,
body.wp-theme-technolife .tl-a-main .tl-a-services-grid .tl-a-flip-front h3.tl-a-service-title a{
 text-align:left!important;font-size:20px!important;line-height:1.28!important;
 font-weight:720!important;letter-spacing:-.02em;text-decoration:none;
 color:inherit;
}
/* Ícone hamburguer verdadeiro: três linhas Lucide, sem quadrado/borda. */
html body.wp-theme-technolife :is(.tl-portal-header,.tl-a-header,.tl-ti-header) :is(.tl-portal-nav,.tl-a-nav,.tl-ti-nav)
  button.wp-block-navigation__responsive-container-open{
 appearance:none!important;border:0!important;background:transparent!important;
 box-shadow:none!important;border-radius:0!important;padding:8px!important;
 min-width:44px;min-height:44px;align-items:center;justify-content:center;
}
html body.wp-theme-technolife :is(.tl-portal-header,.tl-a-header,.tl-ti-header) :is(.tl-portal-nav,.tl-a-nav,.tl-ti-nav)
 button.wp-block-navigation__responsive-container-open > svg {display:none!important}
html body.wp-theme-technolife :is(.tl-portal-header,.tl-a-header,.tl-ti-header) :is(.tl-portal-nav,.tl-a-nav,.tl-ti-nav)
 button.wp-block-navigation__responsive-container-open::before {
 content:"";display:block;width:28px;height:28px;
 background:url('../icons/iconify/bars.svg') center/contain no-repeat;
}
/* Todos os menus Gutenberg: conteúdo ALINHADO À ESQUERDA, sem quebras e sem pseudo botões quebrados. */
@media(max-width:1179px){
 html body.wp-theme-technolife :is(.tl-portal-header,.tl-a-header,.tl-ti-header) :is(.tl-portal-nav,.tl-a-nav,.tl-ti-nav)
 .wp-block-navigation__responsive-container.is-menu-open{
  box-sizing:border-box!important;overflow-y:auto!important;overflow-x:hidden!important;
  max-height:100dvh;background:#fff!important;text-align:left!important;
  padding:26px clamp(18px,5vw,40px)!important;
 }
 html body.wp-theme-technolife :is(.tl-portal-header,.tl-a-header,.tl-ti-header) :is(.tl-portal-nav,.tl-a-nav,.tl-ti-nav)
 .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  width:100%!important;max-width:100%!important;padding:48px 0 12px!important;
 }
 html body.wp-theme-technolife :is(.tl-portal-header,.tl-a-header,.tl-ti-header) :is(.tl-portal-nav,.tl-a-nav,.tl-ti-nav)
 .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  justify-content:flex-start!important;gap:0!important;width:100%!important;
  max-width:100%!important;min-width:0!important;text-align:left!important;
 }
 html body.wp-theme-technolife :is(.tl-portal-header,.tl-a-header,.tl-ti-header) :is(.tl-portal-nav,.tl-a-nav,.tl-ti-nav)
 .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item{
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;
  flex:0 0 auto!important;margin:0!important;align-self:stretch!important;
  text-align:left!important;border:0!important;
 }
 html body.wp-theme-technolife :is(.tl-portal-header,.tl-a-header,.tl-ti-header) :is(.tl-portal-nav,.tl-a-nav,.tl-ti-nav)
 .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:not(:first-child):not(.tl-a-mobile-phone):not(.tl-ti-mobile-phone):not(.tl-portal-mobile-phone){
  border-top:1px solid rgba(58,67,134,.075)!important;
 }
 html body.wp-theme-technolife :is(.tl-portal-header,.tl-a-header,.tl-ti-header) :is(.tl-portal-nav,.tl-a-nav,.tl-ti-nav)
 .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{
  box-sizing:border-box!important;display:flex!important;align-items:center!important;
  justify-content:flex-start!important;min-height:49px!important;
  width:100%!important;max-width:100%!important;padding:12px 4px!important;
  font-size:clamp(14px,3.8vw,16px)!important;line-height:1.35!important;
  white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;
  margin:0!important;text-align:left!important;border:0!important;
 }
 html body.wp-theme-technolife :is(.tl-portal-header,.tl-a-header,.tl-ti-header) :is(.tl-portal-nav,.tl-a-nav,.tl-ti-nav)
 .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content span:not(.tl-r18-wa-mark){
  white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;
 }
 html body.wp-theme-technolife :is(.tl-portal-header,.tl-a-header,.tl-ti-header) :is(.tl-portal-nav,.tl-a-nav,.tl-ti-nav)
 .wp-block-navigation__responsive-container.is-menu-open :is(.tl-portal-mobile-phone,.tl-a-mobile-phone,.tl-ti-mobile-phone){
  display:flex!important;align-items:flex-start!important;justify-content:flex-start!important;
  width:100%!important;margin:15px 0 0!important;padding:0!important;
  border:0!important;background:transparent!important;
 }
 html body.wp-theme-technolife :is(.tl-portal-header,.tl-a-header,.tl-ti-header) :is(.tl-portal-nav,.tl-a-nav,.tl-ti-nav)
 .wp-block-navigation__responsive-container.is-menu-open :is(.tl-portal-mobile-phone,.tl-a-mobile-phone,.tl-ti-mobile-phone) .wp-block-navigation-item__content{
  display:inline-flex!important;justify-content:center!important;align-items:center!important;
  flex:0 0 auto!important;width:max-content!important;max-width:100%!important;
  min-height:48px!important;padding:12px 18px!important;
  background:#158c43!important;color:#fff!important;border:0!important;
  border-radius:10px!important;white-space:nowrap!important;
  font-size:14px!important;font-weight:750!important;text-align:left!important;
  gap:11px!important;margin:0!important;
 }
 html body.wp-theme-technolife :is(.tl-portal-header,.tl-a-header,.tl-ti-header) :is(.tl-portal-nav,.tl-a-nav,.tl-ti-nav)
 .wp-block-navigation__responsive-container.is-menu-open .tl-r18-wa-mark{
  color:inherit!important;background-color:currentColor!important;
 }
}
/* Assistência: centralizar o conjunto sem centrar o TEXTO ou aumentar ícones. */
@media(max-width:767px){
 body.wp-theme-technolife .tl-a-main .tl-a-services-grid .tl-a-flip-front > :is(h3.tl-a-service-title,ul.tl-a-service-list){
  box-sizing:border-box!important;width:100%!important;max-width:270px!important;
  margin-left:auto!important;margin-right:auto!important;text-align:left!important;
 }
 body.wp-theme-technolife .tl-a-main .tl-a-services-grid .tl-a-flip-front > .tl-a-service-icon.wp-block-image{
  margin-left:max(0px,calc((100% - 270px)/2))!important;margin-right:auto!important;
 }
 body.wp-theme-technolife .tl-a-main .tl-a-services-grid .tl-a-flip-front ul.tl-a-service-list > li{text-align:left!important}
 body.wp-theme-technolife .tl-a-main .tl-a-services-grid .tl-a-flip-back > :is(h3.tl-a-flip-back-title,p.tl-a-service-seo-copy){
  box-sizing:border-box!important;width:100%!important;max-width:280px!important;
  margin-inline:auto!important;text-align:left!important;
 }
}


/* TECH-REL-001 R19 — correção de regressão observada no preview real.
   WordPress renderiza o botão e o menu de navegação no mesmo bloco.
   R18 havia forçado o botão display:flex em TODAS as larguras,
   produzindo ícone no topo + links em segunda linha. Os modos
   abaixo são mutuamente exclusivos, iguais nos três cabeçalhos. */
@media (min-width:1180px) {
  html body.wp-theme-technolife :is(.tl-portal-header,.tl-a-header,.tl-ti-header)
    :is(.tl-portal-nav,.tl-a-nav,.tl-ti-nav) .wp-block-navigation__responsive-container-open {
    display:none!important;
  }
  html body.wp-theme-technolife :is(.tl-portal-header,.tl-a-header,.tl-ti-header)
    :is(.tl-portal-nav,.tl-a-nav,.tl-ti-nav) .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display:block!important;
  }
}
@media (max-width:1179px) {
  /* Uma linha para logo + botão, sem faixa inferior de links. */
  html body.wp-theme-technolife .wp-site-blocks > :is(header.tl-header,header.tl-a-header-wrap,header.tl-ti-header-wrap) {
    box-sizing:border-box!important;height:76px!important;min-height:76px!important;
    padding:0!important;
  }
  html body.wp-theme-technolife :is(.tl-portal-header,.tl-a-header,.tl-ti-header).wp-block-group {
    display:grid!important;box-sizing:border-box!important;
    grid-template-columns:minmax(0,1fr) 48px!important;
    grid-template-rows:76px!important;
    grid-template-areas:"brand nav"!important;
    align-items:center!important;justify-content:initial!important;
    column-gap:14px!important;row-gap:0!important;
    width:calc(100% - 32px)!important;max-width:1360px!important;
    min-height:76px!important;height:76px!important;
    padding:0!important;margin-inline:auto!important;
  }
  html body.wp-theme-technolife :is(.tl-portal-header,.tl-a-header,.tl-ti-header)
    :is(.tl-brand,.tl-a-header-brand,.tl-ti-header-brand) {
    grid-area:brand!important;width:132px!important;max-width:100%!important;
    height:68px!important;min-width:0!important;align-self:center!important;
  }
  html body.wp-theme-technolife :is(.tl-portal-header,.tl-a-header,.tl-ti-header)
    :is(.tl-brand,.tl-a-header-brand,.tl-ti-header-brand) img {
    width:128px!important;max-width:100%!important;height:auto!important;
  }
  html body.wp-theme-technolife :is(.tl-portal-header,.tl-a-header,.tl-ti-header)
    :is(.tl-header-actions,.tl-a-header-actions,.tl-ti-header-actions) {
    display:none!important;
  }
  html body.wp-theme-technolife :is(.tl-portal-header,.tl-a-header,.tl-ti-header)
    :is(nav.tl-portal-nav,nav.tl-a-nav,nav.tl-ti-nav) {
    box-sizing:border-box!important;grid-area:nav!important;display:flex!important;
    align-items:center!important;justify-content:flex-end!important;align-self:center!important;
    width:48px!important;min-width:48px!important;max-width:48px!important;
    height:48px!important;margin:0!important;padding:0!important;
    border:0!important;
  }
  html body.wp-theme-technolife :is(.tl-portal-header,.tl-a-header,.tl-ti-header)
    :is(.tl-portal-nav,.tl-a-nav,.tl-ti-nav) button.wp-block-navigation__responsive-container-open {
    display:flex!important;justify-content:center!important;align-items:center!important;
    box-sizing:border-box!important;width:48px!important;height:48px!important;
    padding:8px!important;color:#3a4386!important;
    border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;
  }
  /* A sobreposição padrão Gutenberg abre APENAS ao receber .is-menu-open. */
  html body.wp-theme-technolife :is(.tl-portal-header,.tl-a-header,.tl-ti-header)
    :is(.tl-portal-nav,.tl-a-nav,.tl-ti-nav) .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display:none!important;
  }
  html body.wp-theme-technolife :is(.tl-portal-header,.tl-a-header,.tl-ti-header)
    :is(.tl-portal-nav,.tl-a-nav,.tl-ti-nav) .wp-block-navigation__responsive-container.is-menu-open {
    display:flex!important;
  }
}
