#chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

#chat-button button {
  background-color: #ffa500;
  border: none;
  color: white;
  font-size: 20px;
  padding: 12px 16px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.80);
  transition: background-color 0.2s ease;
  outline: none;
}


#chat-button button:hover {
  background-color: #E69500;
}

#chat-cliente {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 360px !important;
  height: 480px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.chat-header {
  padding: 10px;
  background: #ffa500;
  color: white;
  font-weight: bold;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header button {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.chat-body {
  flex: 1;
  padding: 10px;
  background: #f9f9f9;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

form#formMensagemCliente {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-top: 1px solid #ddd;
  background: #fff;
  gap: 8px;
}

/* Linha das ações (upload + emoji) */
form#formMensagemCliente .actions {
  display: flex;
  gap: 10px;
}

/* Botões upload e emoji */
form#formMensagemCliente .actions button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #555;
  padding: 0;
  margin: 0;
  outline: none;
}

form#formMensagemCliente .actions button:hover {
  color: #888;
}

#arquivoCliente {
  display: none;
}

/* Linha textarea + botão enviar juntos, lado a lado */
form#formMensagemCliente .input-group {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
}

#mensagemCliente {
  flex-basis: 70%;
  resize: none;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  min-height: 50px;
  max-height: 100px;
  overflow-y: auto;
  box-sizing: border-box;
  outline: none;
}

/* Botão enviar ocupa os 30% restantes */
form#formMensagemCliente button[type="submit"] {
  flex-basis: 27%;
  background-color: #ffa500;
  color: white;
  border: none;
  padding: 20px 0;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background-color 0.2s ease;
  font-size: 18px;
  outline: none;
}

form#formMensagemCliente button[type="submit"]:hover {
  background-color: #E69500;
}
#emoji-picker span {
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  user-select: none;
  display: inline-block;
}

#emoji-picker span:hover {
  background-color: #eee;
  border-radius: 5px;
}

#abrirListaClientes{
  cursor: pointer;
}
.mensagem-cliente strong{ 
  color:#faa500;
  font-size: 12px;
 }
 .lista-clientes {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 400px; /* define altura e scroll */
  overflow-y: auto;
}

.lista-clientes-ativos {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cliente-ativo-item {
  cursor: pointer;
  padding: 8px;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s ease;
}


.foto-cliente {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  transition: all 0.3s ease;
}

/* Borda piscando */
.piscando .foto-cliente {
  animation: piscarBorda 1.5s infinite;
  border: 2px solid orange;
}

@keyframes piscarBorda {
  0%   { box-shadow: 0 0 0px #ffa500; }
  50%  { box-shadow: 0 0 8px #ffa500; }
  100% { box-shadow: 0 0 0px #ffa500; }
}
