/* Estilos para el mensaje de "pensando" */
.thinking .thinking-text {
    font-style: italic;
    color: #fff;
    display: inline-block;
}
.div-category-chat{
    margin-top:8px;
}
input#mi-chatbot-email {
    font-size: 12px;
}
textarea#mi-chatbot-input {
    position: absolute;
    bottom: 35px;
    max-width: 94%;
}
#mi-chatbot-input:disabled,
#mi-chatbot-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
div#mi-chatbot-user-info h2 {
    font-size: 16px;
    margin-bottom: 5px;
}
div#mi-chatbot-user-info p {
    font-size: 12px;
    margin-bottom:5px;
}
form#mi-chatbot-email-form, form#mi-chatbot-name-form {
    display: flex;
    
}
form#mi-chatbot-email-form input, form#mi-chatbot-name-form input{
    width:82%;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;    
}

form#mi-chatbot-email-form button, form#mi-chatbot-name-form button{
    width: 18%;
    padding: 0;
    background:#000;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;    
}
form#mi-chatbot-email-form button svg, form#mi-chatbot-name-form button svg{
    width:20px;
    height:20px;
}
.chat-bubble {
    display:none;
    background: #000;
    padding: 10px;
    border-radius: 13px;
    color: #fff;
    margin-top: 10px;
    max-width: 225px;
    float: right;
    font-family:"System-ui";
    font-size:14px;
}
.chat-bubble strong{
display:none;
    
}
span.selected-category {
    display:none;
    
    cursor:pointer;
    color: #000;
    background:#fff;
    border: 1px solid #fff;
    font-size: 13px;
    padding: 5px 12px;
    margin-left: 13px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration:none;
}
.div-category-chat a{
        font-size: 13px;
    font-family: monospace;
    border: 1px solid #000;
    color: #000;
    padding: 3px 15px;
    border-radius: 30px;
    font-weight: 400;
}
.powered-by {
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    position: absolute;
    bottom: 10px;
    left: 0;
    margin: auto;
    width: 100%;
}
.thinking .thinking-dots {
    display: inline-block;
    margin-left: 5px;
}
.product-card {
    background: #fff;
    border-radius: 10px;
    margin-top: 8px;
    margin-bottom: 10px;
    padding: 10px;
    padding-top: 0;
}

.product-card p{
        color: #000;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}
.thinking .dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 2px;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: blink 1s infinite;
}

.thinking .dot:nth-child(1) {
    animation-delay: 0s;
}

.thinking .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.thinking .dot:nth-child(3) {
    animation-delay: 0.4s;
}

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

/* Opcional: estilos para mensajes de error */
.chatbot-message-chatbot.error .chatbot-message-text {
    color: red;
}


.trigger-chatbot{
    position: fixed;
    bottom: 10px;
    right: 15px;
    cursor: pointer;
    z-index: 999999;
    background: #000;
    border-radius: 100%;
    padding: 16px 18px 8px 17px;
}
.trigger-chatbot svg path{
    fill: #fff;
}

.class-text-help-you {
    text-align: center;
    padding-top: 9px;
}
.class-text-help-you span {
   font-size: 14px;
    font-family: monospace;
 }

    span.chatbot-message-text {
    font-family: system-ui;
    line-height: 1.4;
}
    
div#mi-chatbot-container {
    display:none;
    position: fixed;
    bottom: 20px;
    min-width: 320px;
    right: 20px;
    border-radius: 17px;
}

.close-chatbot {
    float: right;
    position: absolute;
    top:22px;
    right: 14px;
    cursor:pointer;
}
.close-chatbot svg {

    width:35px;
}
#mi-chatbot-container {
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    max-width: 300px;
    padding: 10px;
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: white;
    z-index: 1000;
    height:500px;
}


#mi-chatbot-messages {
    height: 355px;
    overflow-y: auto;
    margin-bottom: 10px;
    padding-right:10px;
}

#mi-chatbot-input {
    width: 100%;
    font-size:14px;
    padding: 5px;
    border: 1px solid #c2c2c28a;
    max-height: 40px;
    border-radius: 11px;
    padding-top: 9px;
    text-wrap: balance;
    padding-right: 40px;
    padding-left: 10px;
}

.chatbot-message-user .chatbot-message-wrapper{
    background-color: rgb(242, 242, 242);
    padding: 12px 22px;
    border-radius: 10px;
    max-width:max-content;
}

#mi-chatbot-send {
    width: 50px;
    position: absolute;
    bottom: 16px;
    right: 9px;
    background: transparent;
    border: none;
    cursor: pointer;
}
#mi-chatbot-send svg{
    width:25px;
}

#mi-chatbot-send:focus,
#mi-chatbot-send svg:focus{
    outline:none !important;
}

.chatbot-message-time {
    font-size: 10px;
    text-align: right;
}
.chatbot-message-user {
    padding: 10px;
    border-radius: 14px;
    max-width: 100%;
    font-size: 14px;    
    font-weight: bold;
    color:#00000096;
    float:left;
    margin-top:20px;
    width:100%;
}

header.header-chatbot {
    border-bottom: 1px solid #c2c2c273;
    padding-bottom: 14px;
    padding-top: 8px;
    background: #000;
    border-radius: 10px;
    padding-left: 13px;
    padding-top: 13px;
}

.chatbot-message-chatbot {
    background: #000;
    padding: 13px 20px;
    border-radius: 14px;
    color: #fff;
    font-weight: 400;
    max-width: 80%;
    float: right;
    font-size: 14px;
    margin-top: 16px;
}



/*ANIMATION*/
/* Define una animación fade-in */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Clase para aplicar a tu contenedor de chatbot cuando está visible */
#mi-chatbot-container.visible {
  display: block !important; 
  animation: fadeIn 0.5s ease-out; /* Aplica la animación fade-in */
}

/* Clase para ocultar el trigger con una transición */
.trigger-chatbot.hidden {
  display: none;
  transition: opacity 0.5s ease-out;
}
