/*
 * Transcotta Atendimento Online 1.1.0
 * CSS escopado em #tao-root para prevalecer sobre Hello Elementor/LiteSpeed.
 */
#tao-root,
#tao-root *,
#tao-root *::before,
#tao-root *::after { box-sizing: border-box; }

#tao-root.tao-root {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2147483000;
  margin: 0;
  padding: 0;
  width: auto;
  height: auto;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1;
}

#tao-root .tao-launcher,
#tao-root .tao-launcher:link,
#tao-root .tao-launcher:visited {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: auto;
  min-width: 224px;
  min-height: 64px;
  margin: 0;
  padding: 7px 16px 7px 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  outline: 0;
  background: linear-gradient(135deg, #df172c 0%, #c81022 62%, #a80c1b 100%);
  background-color: #c81022;
  color: #fff;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  box-shadow: 0 13px 30px rgba(93,0,10,.28), 0 2px 5px rgba(93,0,10,.14);
  cursor: pointer;
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

#tao-root .tao-launcher:hover {
  border: 0;
  background: linear-gradient(135deg, #e51a30 0%, #c81022 62%, #a80c1b 100%);
  background-color: #c81022;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  filter: saturate(1.04);
  box-shadow: 0 17px 38px rgba(93,0,10,.34), 0 3px 7px rgba(93,0,10,.16);
}

#tao-root .tao-launcher:focus {
  border: 0;
  background-color: #c81022;
  color: #fff;
  text-decoration: none;
}
#tao-root .tao-launcher:focus-visible {
  outline: 3px solid rgba(255,178,0,.72);
  outline-offset: 3px;
}

#tao-root .tao-launcher-icon {
  display: grid;
  place-items: center;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

#tao-root .tao-launcher-icon img {
  display: block;
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  margin: auto;
  padding: 0;
  border: 0;
  object-fit: contain;
  object-position: center center;
  transform: none;
}

#tao-root .tao-launcher-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #fff;
  text-align: left;
  line-height: 1;
}
#tao-root .tao-launcher-copy strong {
  display: block;
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.15px;
  text-transform: none;
}
#tao-root .tao-launcher-copy small {
  display: block;
  margin: 0;
  padding: 0;
  color: rgba(255,255,255,.86);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}
#tao-root .tao-launcher-arrow {
  display: block;
  flex: 0 0 auto;
  margin: 0 0 1px 1px;
  padding: 0;
  color: rgba(255,255,255,.94);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

@media (max-width:640px) {
  #tao-root.tao-root { right:14px; bottom:14px; }
  #tao-root .tao-launcher,
  #tao-root .tao-launcher:link,
  #tao-root .tao-launcher:visited {
    min-width:205px;
    min-height:58px;
    padding:6px 14px 6px 7px;
    gap:9px;
  }
  #tao-root .tao-launcher-icon {
    flex-basis:46px;
    width:46px;
    height:46px;
  }
  #tao-root .tao-launcher-icon img {
    width:40px;
    height:40px;
    max-width:40px;
    max-height:40px;
  }
  #tao-root .tao-launcher-copy strong { font-size:15px; }
  #tao-root .tao-launcher-copy small { font-size:9px; }
  #tao-root .tao-launcher-arrow { font-size:25px; }
}
@media (max-width:360px) {
  #tao-root .tao-launcher,
  #tao-root .tao-launcher:link,
  #tao-root .tao-launcher:visited { min-width:194px; }
  #tao-root .tao-launcher-copy strong { font-size:14px; }
}
@media (prefers-reduced-motion:reduce) {
  #tao-root .tao-launcher { transition:none; }
}

/* 1.1.0 — Chat Web incorporado (iframe) */
#tao-root .tao-painel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  display: flex;
  flex-direction: column;
  width: 430px;
  max-width: calc(100vw - 44px);
  height: 700px;
  max-height: calc(100vh - 130px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(30,10,12,.28), 0 4px 12px rgba(30,10,12,.12);
}
#tao-root .tao-painel[hidden] { display: none !important; }

#tao-root .tao-painel-barra {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  height: 40px;
  margin: 0;
  padding: 0 6px 0 16px;
  background: linear-gradient(135deg, #df172c 0%, #c81022 62%, #a80c1b 100%);
  color: #fff;
}
#tao-root .tao-painel-titulo {
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}
#tao-root .tao-painel-botao,
#tao-root .tao-painel-botao:link,
#tao-root .tao-painel-botao:visited,
#tao-root .tao-painel-botao:hover,
#tao-root .tao-painel-botao:focus {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  box-shadow: none;
  text-decoration: none;
  cursor: pointer;
}
#tao-root .tao-painel-botao:hover { background: rgba(255,255,255,.16); }
#tao-root .tao-painel-botao:focus-visible {
  outline: 2px solid rgba(255,255,255,.9);
  outline-offset: 1px;
}
#tao-root .tao-painel-botao svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#tao-root .tao-painel-corpo {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: #fff;
}
#tao-root .tao-iframe {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

@media (max-width:640px) {
  #tao-root .tao-painel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
  }
  #tao-root.tao-aberto .tao-launcher { display: none; }
  html.tao-chat-aberto,
  html.tao-chat-aberto body { overflow: hidden; }
}
