/**
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to http://www.prestashop.com for more information.
 * We offer the best and most useful modules PrestaShop and modifications for your online store.
 * 
 * @author    Carlos Ucha
 * @copyright 2010-2100 Carlos Ucha
 * @license   see file: LICENSE.txt
 * This program is not free software and you can't resell and redistribute it
 *
 * CONTACT WITH DEVELOPER
 * carlosucha92@gmail.com
 */


/* CSS code for the chatbox styling */
#chatbox {
  position: fixed;
  z-index: 9999;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  background-color: #fff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  padding: 20px;
}

#chatbox.bottom_right {
  bottom: 20px;
  right: 20px;
}

#chatbox.top_right {
  top: 20px;
  right: 20px;
}

#chatbox.bottom_left {
  bottom: 20px;
  left: 20px;
}

#chatbox.top_left {
  top: 20px;
  left: 20px;
}

#chatbox-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

#chatbox-title {
  font-weight: bold;
  margin-left:10px;
}

.message.chatbot-error {
  background-color: #FFCDD2; /* Background color for error messages */
  color: #D32F2F; /* Text color for error messages */
  padding: 8px 12px; /* Padding for error messages */
  border-radius: 8px; /* Border radius for error messages */
}

#chatbox-toggle {
  width: 100%;
  padding: 5px;
  border: none;
  cursor: pointer;
  float:left;
}

#chatbox-toggle img{
  max-width: 30px;
  height: auto;
}

#chatbox-content {
  display: none;
}

#chatbox-content.open {
  display: block;
  border-top: 1px solid grey;
  max-width: 400px;
}

#chatbox-messages {
  padding: 10px;
  height: 200px;
  overflow-y: scroll;
}

#chatbox-messages .message{
    padding-top: 7px;
}

#chatbox-messages .response{
    font-weight: bold;
}

#chatbox-input {
  display: flex;
  align-items: center;
  padding: 10px;
}

#chatbox-input-text {
  flex: 1;
  height: 30px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#chatbox-send-button {
  margin-left: 10px;
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#chatbox-send-button:disabled {
  cursor:inherit;
  opacity:0.7;
}

.btn-selected {
    border: 2px solid #4b4b4b;
}

/* Additional styling to show/hide the chatbox toggle button */
.chatbox-closed #chatbox-toggle {
  display: block;
}

.chatbox-open #chatbox-toggle {
  display: none;
}

#chatbox #consent-buttons{
    padding-top: 10px;
}

@keyframes dots {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

#waiting-dots {
  text-align: center;
  padding: 10px;
}

.dot {
  display: inline-block;
  height: 10px;
  width: 10px;
  border-radius: 50%;
  background-color: #000;
  margin: 0 3px;
  animation: dots 1s infinite;
}