:root {
  --chat--color-primary: #1e88e5;
  --chat--color-primary-shade-50: #1565c0;
  --chat--color-primary-shade-100: #0d47a1;
  --chat--color-secondary: #20b69e;

  --chat--border-radius: 12px;
  --chat--message--border-radius: 12px;

  --chat--window--width: 380px;
  --chat--window--height: 500px;

  --chat--header--background: linear-gradient(135deg, #1e88e5, #0d47a1);
  --chat--header--color: #ffffff;
  --chat--heading--font-size: 1.2em;

  --chat--toggle--size: 70px;
  --chat--toggle--background: #e5721e;
  --chat--toggle--hover--background: #1565c0;
}

/* Fundo da janela do chat */
.chat-window-wrapper {
  background-image: url(/uploads/estamos-online-1.png);
  background-repeat: no-repeat;
  min-width: 220px;
  background-position-y: center;
}

/* Cabeçalho */
.chat-layout .chat-header {
  background-image: url(/uploads/atendente.png);
  background-repeat: no-repeat;
  background-position-x: 1.2rem;
  background-position-y: 0.8rem;
  height: 90px;
  background-color: #4d03ff;
  gap: 0;
}
.chat-layout .chat-header h1 {
  margin-block-end: 0rem;
}
.chat-layout .chat-header p {
  line-height: var(--chat--subtitle--line-height, 0px);
  padding-left: 80px;
  margin-top: 10px;
}
.chat-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-repeat: no-repeat;
  padding-left: 80px;
  height: 30px;
}

/* Remove o "Powered by" */
.chat-powered-by {
  display: none;
}

/* Mensagens */
.chat-message p {
  line-height: var(--chat--message-line-height, 1.2);
}
.chat-message-markdown {
  font-size: 100%;
}

/* Estilo do botão flutuante */
.n8n-chat-toggle {
  border-radius: 28px !important;
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3) !important;
  font-weight: 500 !important;
}
.n8n-chat-toggle::after {
  content: "Fale conosco 24hrs" !important;
  position: absolute;
  right: 60px;
  white-space: nowrap;
  background: #1e88e5;
  padding: 8px 12px;
  border-radius: 20px;
  color: white;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.n8n-chat-toggle:hover::after {
  background: #1565c0;
}

/* Campo de entrada de texto e botão */
.chat-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #f1f1f1;
  border-top: 1px solid #ddd;
  border-radius: 0 0 12px 12px;
}

.chat-inputs textarea {
  flex: 1;
  resize: none;
  height: 40px !important;
  padding: 10px 14px;
  border-radius: 20px;
  border: 1px solid #ccc;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  box-sizing: border-box;
  background-color: #fff;
  transition: border 0.2s ease-in-out;
  overflow: hidden !important;
}

.chat-inputs textarea:focus {
  border-color: var(--chat--color-primary);
  box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.1);
}

.chat-inputs-controls button {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background-color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.chat-inputs-controls button:hover {
  background-color: var(--chat--color-primary-shade-50);
  color: #0083ff;
}

.chat-inputs-controls button svg {
  fill: white;
  width: 18px;
  height: 18px;
}
