/* Estilos generales */
#wac-chat-container {
  font-family: "Poppins", Arial, sans-serif;
  /* Fuente moderna */
  display: flex;
  align-content: center;
  justify-content: center;

}

#chatboxWacChat {

  position: relative;
  width: 800px;


  min-height: 400px;
  height: 1000px;
  max-height: 70vh;
  max-width: 90vw;
  border-radius: 15px 15px 0px 0px;

  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: #ffffff;
  -webkit-box-shadow: 5px 9px 34px -21px rgba(0, 0, 0, 0.50);
  -moz-box-shadow: 5px 9px 34px -21px rgba(0, 0, 0, 0.50);
  box-shadow: 5px 9px 34px -21px rgba(0, 0, 0, 0.50);

  resize: vertical;
}

#chatboxWacChatWidget {

  width: 500px;
  min-height: 550px;
  max-height: 70vh;
  max-width: 90vw;
  border-radius: 15px 15px 0px 0px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: #ffffff;
  -webkit-box-shadow: 5px 9px 34px -21px rgba(0, 0, 0, 0.50);
  -moz-box-shadow: 5px 9px 34px -21px rgba(0, 0, 0, 0.50);
  box-shadow: 5px 9px 34px -21px rgba(0, 0, 0, 0.50);
  resize: vertical;
}

#widgetContainer {
  position: fixed;
  z-index: 999;

  bottom: 20px;

  flex-direction: column;
  /* display: flex;
  right: 20px; */
}

#widgetButton {
  /*background-color: var(--chat-color);
  #padding: 15px;*/
  /* border-radius: 15px;*/
  display: flex;
  justify-content: center;
  align-items: center;
  /*width: 100px;
  height: 100px;*/
  align-self: flex-end;
  margin-top: 20px;

  width: 80px;
  height: 80px;
  border-radius: 50%;
}

#widgetButtonImg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
	max-width: none !important;

}

#spinnerLoading {
  margin: 0;
  padding: 0;
}

.chatheader {
  display: flex;
  align-items: center;
  padding: 20px 25px;
  background-color: var(--chat-color3);
  color: white;

}

.chatImg {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 20px;
}

.chatName {
  font-size: 28px;
  font-weight: bold;
  color: var(--chat-color);
}

#mensajesWacChat, #mensajesWacChatWidget {
  flex-grow: 1;
  display: flex;
  overflow: auto;
  padding: 25px 15px;
  font-size: 14px;
  /* min-width: 380px; */
  max-width: 100%;
  flex-direction: column;
}



/* Tamaño del scroll */
#mensajesWacChat::-webkit-scrollbar {
  width: 8px;
  margin-top: 5px;
}

/* Estilos barra (thumb) de scroll */
#mensajesWacChat::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

#mensajesWacChat::-webkit-scrollbar-thumb:active {
  background-color: #999999;
}

#mensajesWacChat::-webkit-scrollbar-thumb:hover {
  background: #b3b3b3;
  box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
}

/* Estilos track de scroll */
#mensajesWacChat::-webkit-scrollbar-track {
  background: #e1e1e1;
  border-radius: 4px;
}

#mensajesWacChat::-webkit-scrollbar-track:hover,
#mensajesWacChat::-webkit-scrollbar-track:active {
  background: #d4d4d4;
}


.usuario,
.chatbot {
  display: block;
  border-radius: 10px;
  padding: 5px 10px;
  margin-bottom: 5px;
  /* Reducir el margen inferior */
}

.usuario {
  background-color: transparent;
  color: #333;
  margin-left: 10px;
}

.chatbot {
  background-color: #eee;
  color: #333;
  margin-right: 10px;
  margin-left: 30px;
}

#entrada {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 15px;
  /*border-top: 1px solid #adadad;*/
}

.textoInput {
  display: flex;
  border: none;
  resize: none;

  /* white-space: pre-wrap;*/
  padding: 10px;
  border-radius: 8px;
  /*word-wrap: break-word;*/
  border: 2px solid;
  border-color: #C0C0C0;
  /* height: 25px; */
  width: 100%;
  font-size: 16px;
  color: black;

  max-height: 200px;
  /*  height: 24px;*/
  overflow-y: hidden;

}

.textoInput:focus {
  border-color: #808080 !important;
  outline: none !important;
}

.textoInput::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #adadad;
  opacity: 1;
  font-family: "Poppins", Arial, sans-serif;
  /* Firefox */
}

.buttonGroup {
  display: flex;
  margin-left: 15px;
}

.enviarIcon {
  height: 20px;
}

.wac-chat-button {
  border: none;
  border-radius: 7px;
  padding: 10px;
  cursor: pointer;
  margin: 3px;
  background-color: transparent;

}

button:hover {
  background-color: #f1f1f1;
  -webkit-box-shadow: 5px 9px 34px -21px rgba(0, 0, 0, 0.50);
  -moz-box-shadow: 5px 9px 34px -21px rgba(0, 0, 0, 0.50);
  box-shadow: 5px 9px 34px -21px rgba(0, 0, 0, 0.705);

}


.resizer {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background-color: transparent;
  cursor: se-resize;
}

.mssgChatbot {
  margin-top: 0px;
  margin-bottom: 20px;
  padding: 0.5rem 1.5rem;
  border-radius: 8px 8px 8px 0px;
  max-width: 30rem;
  background-color: var(--chat-color2);
  font-size: 16px;
  word-wrap: break-word;
  width: fit-content;

}

#closeButton {
  position: absolute;
  right: 20px;
  top: 15px;
}

#closeButton:hover {
  background-color: rgba(0, 0, 0, 0.062);
  border-radius: 5px;
}

#closeIcon {
  display: block;
  height: 3px;
  width: 30px;
  background-color: rgb(184, 184, 184);
}

.mssgUsuario {
  margin-top: 0px;
  margin-bottom: 20px;
  padding: 0.5rem 1.5rem;
  border-radius: 8px 8px 0px 8px;
  width: fit-content;
  align-self: flex-end;
  font-size: 16px;
  color: black;
  background-color: #D9D9D9;
  max-width: 30rem;

  word-wrap: break-word;

}

@media screen and (max-width: 500px) {
  .mssgChatbot {
    width: auto;
  }

  .mssgUsuario {
    width: auto;
  }
}

.myTime {
  padding: 0;
  margin: 0;
  text-align: right;
  font-size: 14px;
}

.mssgOpcion {
  padding: 5px 10px;
  margin-bottom: 10px;
  margin-top: 0;
  border: 1px solid black;
  border-radius: 7px;
  width: fit-content;
  cursor: pointer;
}



/*/spinner*/
.lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 50px;
  height: 50px;
  ;
  margin-bottom: 40px;
}

.lds-ellipsis div {
  position: absolute;
  top: 33px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #5e5d5d;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}

.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}

@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(0);
  }
}

@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(24px, 0);
  }
}

#mensajeAlerta {
  padding: 16px 24px 8px 24px ;
  border-radius: 8px 8px 0px 8px;
  color: white;
  background-color: var(--chat-color);
  position: fixed;
  right: 110px;
  bottom: 80px;
  max-width: 250px;
}

#botonCerrarAlerta {
  position: absolute;
  right: 0px;
  top: 0px;
  padding: 2px
}
#botonCerrarAlerta:hover {
  background-color: rgba(0, 0, 0, 0.062);
}

#dialogCtn{
 display: flex;
 justify-content: flex-end;
 max-height: 90vw
}