.chatbot-toggler {
  position: fixed;
  bottom: 25px;
  right: 30px;
  z-index: 999999999;
  outline: none;
  border: none;
  height: 50px;
  width: 50px;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  padding: 16px;
  color: inherit;
  background: none;
}

body.show-chatbot .chatbot-toggler {
  transform: rotate(90deg);
}

.chatbot-toggler span {
  color: #fff;
  position: absolute;
}

.chatbot-toggler span:last-child,
body.show-chatbot .chatbot-toggler span:first-child {
  opacity: 0;
}

body.show-chatbot .chatbot-toggler span:last-child {
  opacity: 1;
}

.chatbot {
  position: fixed;
  right: 30px;
  bottom: 25px;
  width: 400px;
  height: 440px;
  z-index: 999999999;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
  transform-origin: bottom right;
  box-shadow: 0 0 128px 0 rgba(0, 0, 0, 0.1),
    0 32px 64px -48px rgba(0, 0, 0, 0.5);
  transition: all 0.1s ease;
  display: flex;
  flex-direction: column;
}

body.show-chatbot .chatbot {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.chatbot header {
  padding: 0px;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
}

.chatbot header span {
  cursor: pointer;
  padding: 10px;
}

.chatbot header h2 {
  font-size: 1.4rem;
  padding-left: 5px;
  padding-right: 5px;
  flex: 1;
  text-align: center;
  margin: 0;
}

.chatbot .chatbox {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background: #FFFFFF;

}

.chatbot :where(.chatbox, textarea)::-webkit-scrollbar {
  width: 6px;
}

.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-track {
  background: #fff;
  border-radius: 25px;
}

.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 25px;
}

.chatbox .chat {
  display: flex;
  list-style: none;
}

.chatbox .outgoing {
  margin: 20px 0;
  justify-content: flex-end;
}

.chatbox .incoming span {
  width: 32px;
  height: 32px;
  color: #fff;
  cursor: default;
  text-align: center;
  line-height: 32px;
  align-self: flex-end;
  background: #724ae8;
  border-radius: 4px;
  margin: 0 10px 7px 0;
}

.chatbox .waiting span {
  width: 32px;
  height: 32px;
  color: #fff;
  cursor: default;
  text-align: center;
  line-height: 32px;
  align-self: flex-end;
  background: #724ae8;
  border-radius: 4px;
  margin: 0 10px 7px 0;
}

.chatbox .waiting p {
  animation: blink 1s step-start 0s infinite;
}

.chatbox .chat p {
  white-space: pre-wrap;
  padding: 12px 16px;
  border-radius: 10px 10px 0 10px;
  max-width: 80%;
  color: #fff;
  font-size: 0.95rem;
  background: #724ae8;
  margin-block-start: 0;
  margin-block-end: .1rem;
}

.chatbox .waiting p {
  border-radius: 10px 10px 10px 0;
}

.chatbox .chat p.error {
  color: #721c24;
  background: #f8d7da;
}

.chatbox .waiting p {
  color: #000;
  background: #f2f2f2;
}

.chatbot .chat-input {
  display: flex;
  gap: 5px;
  padding: 10px;
  position: sticky;
  bottom: 0;
  width: 100%;
  background: #fff;
  padding: 3px 20px;
  border-top: 1px solid #ddd;
  background: #FFFFFF;
}

.chat-input textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  max-height: 180px;
  font-size: 0.95rem;
  background: #FFFFFF;
  color: #000000;
}

.chat-input span {
  align-self: flex-end;
  color: #ffbe55;
  cursor: pointer;
  height: 55px;
  display: flex;
  align-items: center;
  visibility: hidden;
  font-size: 1.35rem;
}

.chat-input textarea:valid~span {
  visibility: visible;
}

/* Para pantallas muy pequeñas (teléfonos) */
@media (max-width: 490px) {

  .chatbot {
    right: 0;
    height: 85%;
    border-radius: 10px;
    width: 85%;
  }

  .chatbot .chatbox {
    height: 75%;
    padding: 10px 5px 50px;
  }

  .chatbot .chat-input {
    padding: 5px 5px;
  }

  .chatbot header span {
    cursor: pointer;
    padding: 10px;
  }
}


/* Para pantallas pequeñas (teléfonos en modo horizontal) */
@media (min-width: 491px) and (max-width: 767px) {

  .chatbot {
    right: 0;
    height: 90%;
    border-radius: 10px;
    width: 90%;
  }

  .chatbot .chatbox {
    height: 80%;
    padding: 15px 10px 55px;
  }

  .chatbot .chat-input {
    padding: 2px 2px;
  }

  .chatbot header span {
    cursor: pointer;
    padding: 10px;
  }
}



/* Para pantallas medianas (tabletas) */

@media (min-width: 768px) and (max-width: 1024px) {


  .chatbot {
    right: 0;

    height: 80%;
    border-radius: 10px;
    width: 80%;
  }

  .chatbot .chatbox {
    height: 85%;
    padding: 30px 25px 60px;
    margin-top: 4px;
    margin-bottom: 4px;

  }

  .chatbot .chat-input {
    padding: 10px 15px;
  }

  .chatbot header span {
    cursor: pointer;
    padding: 10px;

  }
}

/* Para pantallas grandes (computadoras de escritorio) */

@media (min-width: 1025px) {
  .chatbot {
    right: 10px;
    height: 85%;
    border-radius: 15px;
    width: 30%;
  }

  .chatbot .chatbox {
    height: 85%;
    padding: 4px 15px 100px;
  }

  .chatbot .chat-input {
    padding: 15px 15px;
    width: 95%;
  }

  .chatbot header span {
    cursor: pointer;
    padding: 10px;
  }
}

/* CSS */
.button-42 {

  cursor: pointer;
  outline: 0;
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  border: 1px solid transparent;
  padding: 6px 12px;
  font-size: 16px;
  border-radius: .25rem;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;

}

.button-42:hover {
  color: #fff;
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

.button-4 {

  cursor: pointer;
  outline: 0;
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  border: 1px solid transparent;
  padding: 4px 8px;
  font-size: 10px;
  border-radius: .25rem;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;

}

.button-4:hover {
  color: #fff;
  background-color: #0b5ed7;
  border-color: #0a58ca;
}


/* Split the screen in half */
.split {
  height: 100%;
  position: fixed;
  z-index: 1;
  top: 0;
  overflow-x: hidden;
  padding-top: 20px;
}

/* Control the left side */
.left {
  left: 0;
  width: 10%;
  background-color: black;
}

/* Control the right side */
.right {
  right: 0;
  width: 90%;

}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

.paginate_button {
  cursor: pointer;
  outline: 0;
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  border: 1px solid transparent;
  padding: 4px 8px;
  margin-right: 6px;
  font-size: 10px;
  border-radius: .25rem;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;

}

.disabled {
  cursor: not-allowed;
  outline: 0;
  color: #fff;
  background-color: transparent;
  border-color: #0d6efd;
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  border: 1px solid transparent;
  padding: 4px 8px;
  margin-right: 6px;
  font-size: 10px;
  border-radius: .25rem;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.logo {
  margin: 5px;
  padding: 5px;
  background-color: #ffbe55;
  max-width: 200px;
  max-height: 160px;
}

.chatbox .entrante p {
  border-radius: 10px 10px 10px 0;
  background: #f2f2f2;
  margin-left: 10px;
  color: #000000;
}

.chatbox .outgoing p {
  border-radius: 10px 10px 10px 0;
  background: #f2f2f2;
  color: #000000;
}

.chatbox .incoming p {
  border-radius: 10px 10px 10px 0;
  background: #f2f2f2;
  color: #000000;
}

.chatbox .entrante a {
  color: #0000ff;
}

#chatbox_thumb_up {
  color: #ffbe55;
  cursor: pointer;
}

#chatbox_thumb_down {
  color: #ffbe55;
  cursor: pointer;
}

#chatbox_thumb_up:hover {
  color: #008000;
}

#chatbox_thumb_down:hover {
  color: #ff0000;
}

#ecpangenic-button-bot {
  border-style: none;
  height: auto;
  max-width: none;
}