/* Import Google font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  /*background: #E3F2FD;*/
 background:rgb(244,250,241)
}
.chatbot-toggler {
  position: fixed;
  bottom: 20px;
  right: 30px;
  outline: none;
  border: none;
  height: 130px;
  width: 130px;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  /*background: #724ae8;*/
  background: #ffbe55;
  transition: all 0.2s ease;
  z-index: 999;
  padding: 0px 0px;
  margin: 0 0 0;
}
#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;
}

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: 35px;
  bottom: 20px;
  width: 420px;
  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;
  z-index: 999
}
body.show-chatbot .chatbot {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.chatbot h2 {
  margin-top: 0;
  margin-bottom: 0;
}
.chatbot header {
  padding: 8px 0;
  position: relative;
  text-align: center;
  color: #fff;
  vertical-align: center;
  background: #ffbe55;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.chatbot header span {
  position: absolute;
  right: 15px;
  top: 50%;
  display: none;
  cursor: pointer;
  transform: translateY(-50%);
}
header h2 {
  font-size: 1.4rem;
}
.chatbot .chatbox {
  overflow-y: auto;
  height: 510px;
  padding: 30px 20px 60px;
}font-size:
.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 .chat p{
  margin-top: 0;
  margin-bottom: 0;
}
.chatbox .outgoing {
  margin: 20px 0;
  
  justify-content: flex-end;
}
.chatbot ul{
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.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: 10px;
  margin: 0 8px 8px 0;
}


.chatbox .chat p {
  white-space: pre-wrap;
  padding: 8px 8px;
  border-radius: 10px 10px 0 10px;
  max-width: 80%;
  color: #fff;
  /*font-size: 0.8rem;*/
  background: #724ae8;
}
.chatbox .incoming p {
  border-radius: 10px 10px 10px 0;
}
.chatbox .waiting p {
  border-radius: 10px 10px 10px 0;
}
.chatbox .chat p.error {
  color: #721c24;
  background: #f8d7da;
}
.chatbox .incoming p {
  color: #000;
  background: #f2f2f2;
  
  
}
.chatbox .waiting p {
  color: #000;
  background: #f2f2f2;
}

.chatbot .chat-input {
  display: flex;
  gap: 5px;
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #fff;
  padding: 4px 4px;
  border-top: 1px solid #ddd;
}
.chat-input textarea {
  height: 50px;
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  max-height: 38px;
  min-height: 30px;
  padding: 4px 4px 4px 0;
  /*font-size: 0.8rem;*/
}
.chat-input span {
  align-self: flex-end;
  color: #724ae8;
  cursor: pointer;
  max-height: 30px;
  min-height: 30px;
  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-toggler {
    right: 5px;
    bottom: 5px;
  }
  .chatbot {
    right: 0;
    bottom: 4px;
    height: 85%;
    border-radius: 10px;
    width: 85%;
  }
  .chatbot .chatbox {
    height: 75%;
    padding: 10px 5px 50px;
  }
  .chatbot .chat-input {
    padding: 5px 5px;
  }
  .chatbot header span {
    display: block;
  }
}


/* Para pantallas pequeñas (teléfonos en modo horizontal) */
@media (min-width: 491px) and (max-width: 767px) {
  .chatbot-toggler {
    right: 5px;
    bottom: 5px;
  }
  .chatbot {
    right: 0;
    bottom: 4px;
    height: 90%;
    border-radius: 10px;
    width: 90%;
  }
  .chatbot .chatbox {
    height: 80%;
    padding: 15px 10px 55px;
  }
  .chatbot .chat-input {
    padding: 2px 2px;
  }
  .chatbot header span {
    display: block;
  }
}



/* Para pantallas medianas (tabletas) */

@media (min-width: 768px) and (max-width: 1024px) {
  .chatbot-toggler {
    right: 30px;
    bottom: 20px;
  }
  .chatbot {
    right: 0;
    bottom: 4px;
    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 {
    display: inline-block;
  }
}

/* Para pantallas grandes (computadoras de escritorio) */

@media (min-width: 1025px) {
  .chatbot-toggler {
    right: 20px;
    bottom: 20px;
  }
  .chatbot {
    right: 10px;
    bottom: 15px;
    height: 78%;
    border-radius: 15px;
    width: 30%;
  }
  .chatbot .chatbox {
    height: 85%;
    padding: 4px 15px 55px;
  }
  .chatbot .chat-input {
    padding: 15px 15px;
  }
  .chatbot header span {
    display: inline-block;
  }
}