/* Seteg Chatbot - as cores vêm da página de configurações */
.seteg-cb {
  --seteg-principal: #000000;
  --seteg-destaque: #FB7916;
  --seteg-fundo: #FFFFFF;
  font-family: "Barlow", "Segoe UI", Arial, sans-serif;
}
.seteg-cb, .seteg-cb * { box-sizing: border-box; }

/* Posição */
.seteg-cb-abrir, .seteg-cb-janela { position: fixed; bottom: 20px; }
.seteg-cb--esquerda .seteg-cb-abrir, .seteg-cb--esquerda .seteg-cb-janela { left: 20px; }
.seteg-cb--direita  .seteg-cb-abrir, .seteg-cb--direita  .seteg-cb-janela { right: 20px; }

/* Botão flutuante */
.seteg-cb .seteg-cb-abrir {
  z-index: 99998;
  display: flex; align-items: center; gap: 10px;
  margin: 0; background: var(--seteg-principal); color: #fff;
  border: none; border-left: 6px solid var(--seteg-destaque);
  padding: 14px 20px; border-radius: 4px 30px 30px 4px;
  font-weight: 600; font-size: 16px; line-height: 1.2; font-family: inherit;
  cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.seteg-cb .seteg-cb-abrir:hover { filter: brightness(1.25); }
.seteg-cb .seteg-cb-abrir:focus-visible { outline: 3px solid var(--seteg-destaque); outline-offset: 3px; }
.seteg-cb .seteg-cb-abrir[hidden] { display: none; }
.seteg-cb-abrir-icone { font-size: 20px; }

/* Janela */
.seteg-cb .seteg-cb-janela {
  z-index: 99999;
  width: 370px; max-width: calc(100vw - 40px);
  height: 560px; max-height: calc(100vh - 40px);
  display: flex; flex-direction: column;
  background: var(--seteg-fundo); border-radius: 12px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
  color: #1c2430; font-size: 15px; text-align: left;
}
.seteg-cb .seteg-cb-janela[hidden] { display: none; }

.seteg-cb-topo {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--seteg-principal); color: #fff; padding: 14px 16px;
  border-bottom: 4px solid var(--seteg-destaque);
}
.seteg-cb-topo strong { display: block; font-size: 18px; color: #fff; }
.seteg-cb-topo span { font-size: 13px; opacity: .8; color: #fff; }
.seteg-cb .seteg-cb-fechar {
  background: none; border: none; color: #fff; margin: 0;
  font-size: 20px; cursor: pointer; padding: 4px 8px; box-shadow: none;
}
.seteg-cb .seteg-cb-fechar:focus-visible { outline: 2px solid var(--seteg-destaque); }

/* Mensagens */
.seteg-cb-lista {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.seteg-cb-msg {
  max-width: 85%; padding: 10px 14px; line-height: 1.45;
  word-wrap: break-word; white-space: pre-line; margin: 0;
}
.seteg-cb-msg--bot {
  align-self: flex-start; background: #fff; color: #1c2430;
  border: 1px solid #e2e4e8; border-left: 3px solid var(--seteg-destaque);
  border-radius: 2px 14px 14px 14px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.seteg-cb-msg--usuario {
  align-self: flex-end; background: var(--seteg-principal); color: #fff;
  border-radius: 14px 2px 14px 14px;
}
.seteg-cb-msg a { color: inherit; font-weight: 700; text-decoration: underline; }
.seteg-cb-digitando { align-self: flex-start; background: #fff; color: #6b7685; font-style: italic; font-size: 14px;
  padding: 4px 10px; border-radius: 12px; border: 1px solid #e2e4e8; }

/* Sugestões */
.seteg-cb-sugestoes {
  border-top: 1px solid #e2e4e8;
  display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px;
}
.seteg-cb .seteg-cb-sugestoes button {
  flex-shrink: 0; background: #fff; color: var(--seteg-principal); margin: 0;
  border: 1px solid var(--seteg-principal); border-radius: 20px;
  padding: 6px 12px; font-weight: 500; font-size: 13px; line-height: 1.2; font-family: inherit; cursor: pointer;
}
.seteg-cb .seteg-cb-sugestoes button:hover { background: var(--seteg-principal); color: #fff; }

/* Envio */
.seteg-cb-envio { display: flex; margin: 0; border-top: 1px solid #d5dbe3; background: #fff; }
.seteg-cb .seteg-cb-envio input {
  flex: 1; border: none; padding: 14px; margin: 0; font-size: 15px; font-family: inherit;
  outline: none; background: #fff; color: #1c2430; box-shadow: none; border-radius: 0; height: auto;
}
.seteg-cb .seteg-cb-envio button {
  background: var(--seteg-destaque); color: #fff; border: none; margin: 0; border-radius: 0;
  padding: 0 18px; font-weight: 700; font-size: 15px; font-family: inherit; cursor: pointer;
}
.seteg-cb .seteg-cb-envio button:hover { filter: brightness(.95); }

@media (max-width: 480px) {
  .seteg-cb .seteg-cb-janela {
    left: 0; right: 0; bottom: 0; width: 100vw; max-width: 100vw;
    height: 100%; max-height: 100%; border-radius: 0;
  }
  .seteg-cb-abrir-texto { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .seteg-cb * { transition: none !important; }
}

/* Hover/foco em laranja - !important para o tema/Elementor não sobrescrever */
.seteg-cb .seteg-cb-abrir:hover,
.seteg-cb .seteg-cb-abrir:focus,
.seteg-cb .seteg-cb-abrir:active {
  background: var(--seteg-destaque) !important;
  color: #fff !important;
  border-left-color: var(--seteg-principal) !important;
  filter: none !important;
}
.seteg-cb .seteg-cb-sugestoes button:hover,
.seteg-cb .seteg-cb-sugestoes button:focus,
.seteg-cb .seteg-cb-sugestoes button:active {
  background: var(--seteg-destaque) !important;
  border-color: var(--seteg-destaque) !important;
  color: #fff !important;
}
.seteg-cb .seteg-cb-envio button:hover,
.seteg-cb .seteg-cb-envio button:focus,
.seteg-cb .seteg-cb-envio button:active {
  background: var(--seteg-destaque) !important;
  color: #fff !important;
  filter: brightness(.92) !important;
}
.seteg-cb .seteg-cb-fechar:hover,
.seteg-cb .seteg-cb-fechar:focus,
.seteg-cb .seteg-cb-fechar:active {
  background: transparent !important;
  color: var(--seteg-destaque) !important;
}
