#chat-button-agente {
  position: fixed;
  bottom: 22px;
  right: 80px;
  width: 64px;
  height: 64px;
  background: #313131;
  /*#0066cc;*/
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 99999;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#chat-button-agente img {
  width: 34px;
  height: 34px;
}

#chat-window {
  position: fixed;
  bottom: 100px;
  right: 22px;
  width: 360px;
  height: 500px;
  background: #313131;
  border-radius: 12px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 99999;
  font-family: Arial;
}

#chat-header {
  background: #CBFF00;
  color: #000;
  padding: 12px;
  font-size: 16px;
  font-weight: bolder;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#close-chat {
  background: transparent;
  color: #000;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  font-size: 24px;
  font-weight: bold;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

#close-chat:hover {
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
}

.message {
  padding: 8px 12px;
  margin: 6px 0;
  border-radius: 10px;
  max-width: 80%;
  line-height: 1.3;
  word-break: break-word;
}

.user {
  background: #d6e7ff;
  margin-left: auto;
}

.bot {
  background: #f1f1f1;
  margin-right: auto;
}

#chat-input-box {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ddd;
}

#chat-input {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.respuesta-btn {
  width: 100%;
  background: #2EA3F2;
  color: #FFF;
  padding: 10px 12px;
  margin-top: 6px;
  text-align: center;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

#send-message {
  margin-left: 10px;
  background: #2EA3F2;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}