
/****************************************************************************/
/*-- El botón de Chatbot -- */
/****************************************************************************/

::selection {
    color: #fff;
    background: #c5bbbe;
}
::-webkit-scrollbar {
    width: 3px;
    border-radius: 25px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #ddd;
}
::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}
.wrapper {
    width: 370px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid lightgrey;
    border-top: 0px;
    position: fixed;
    bottom: 100px;
    right: 100px;
    display: none;
    flex-direction: column;
     z-index: 12;
}




.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
}

.close-btn:hover {
    color: #ff0000; /* Cambia el color al pasar el mouse */
}




.wrapper .title {
    background: #9c59b7;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    line-height: 60px;
    text-align: center;
    border-bottom: 1px solid #831fad;
    border-radius: 5px 5px 0 0;
}
.wrapper .form {
    padding: 20px 15px;
    min-height: 400px;
    max-height: 400px;
    overflow-y: auto;
}
.wrapper .form .inbox {
    width: 100%;
    display: flex;
    align-items: baseline;
}
.wrapper .form .user-inbox {
    justify-content: flex-end;
    margin: 13px 0;
}
.wrapper .form .inbox .icon {
    height: 40px;
    width: 40px;
    color: #fff;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    font-size: 18px;
    background: #fff;
}
.wrapper .form .inbox .msg-header {
    max-width: 68%;
    margin-left: 10px;
}

.wrapper .form .product-table {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.wrapper .form .product-btn {
    background: #9c59b7;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
    flex: 1 1 calc(33.333% - 10px);
    box-sizing: border-box;
}

.wrapper .form .product-btn:hover {
    background-color: #e8a4fe;
}


.form .inbox .msg-header p {
    color: black;
    background: #e8a4fe;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 14px;
    word-break: normal; /* Para evitar que las palabras se corten */
   
    overflow: hidden; /* Para manejar el desbordamiento del texto */
   
}



.form .user-inbox .msg-header p {
    color: black;
    background: #d6d5d5;
}





.wrapper .typing-field {
    display: flex;
    height: 60px;
    width: 100%;
    align-items: center;
    justify-content: space-evenly;
    background: #c5bbbe;
    border-top: 1px solid #d9d9d9;
    border-radius: 0 0 5px 5px;
}
.wrapper .typing-field .input-data {
    height: 40px;
    width: 235px;
    left: -45px;
    position: relative;
}
.wrapper .typing-field .input-data input {
    height: 100%;
    width: 100%;
    outline: none;
    border: 1px solid transparent;
    padding: 0 80px 0 15px;
    border-radius: 3px;
    font-size: 15px;
    background: #fff;
    transition: all 0.3s ease;
}
.typing-field .input-data input:focus {
    border-color: rgba(0,123,255,0.8);
}
.input-data input::placeholder {
    color: #a8778e;
    transition: all 0.3s ease;
}
.input-data input:focus::placeholder {
    color: #bfbfbf;
}
.wrapper .typing-field .input-data button {
    position: absolute;
    right: -75px;
    top: 50%;
    height: 30px;
    width: 65px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    outline: none;
    opacity: 0;
    pointer-events: none;
    border-radius: 3px;
    background: #831fad;
    border: 1px solid #831fad;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}
.wrapper .typing-field .input-data input:valid ~ button {
    opacity: 1;
    pointer-events: auto;
}
.typing-field .input-data button:hover {
    background: #9c59b7;
}



.chat-icon {
   

    
    
    position: fixed;
    bottom: 100px;
    right: 30px;
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
     z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
     box-shadow: 5px 10px 18px rgba(156, 89, 183, 0.8);
}


/* Estilo inicial del ícono */
.chat-icon {
    display: inline-block;
    transform: scale(1);
    transition: transform 0.5s ease-in-out;
}

.chat-icon.grow {
    transform: scale(1.5);
}



/* Estilos generales para los botones */
.yes-btn, .no-btn {
    padding: 5px 10px;
    margin: 10px 5px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

/* Estilo para el botón "Sí" */
.yes-btn {
    background-color: #894725; /* Verde */
    color: white;
}

.yes-btn:hover {
    background-color: #ae9b72; /* Verde más oscuro */
    transform: scale(1.05);
}

/* Estilo para el botón "No" */
.no-btn {
    background-color: #c5bbbe; /* Rojo */
    color: #000;
}

.no-btn:hover {
    background-color: #c4bfc1; /* Rojo más oscuro */
    transform: scale(1.05);
}

/* Asegurar que los botones estén bien separados en dispositivos pequeños */
@media (max-width: 600px) {
    .yes-btn, .no-btn {
        width: 100%;
        margin: 10px 0;
    }
}



  
/****************************************************************************/
/*-- El botón de WhatsApp -- */
/****************************************************************************/

.whatsapp_button {
    font-size: 50px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1bfb1b;
    color: white;
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 2;
    transition: transform 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}
.whatsapp_button::before {
    content: "";
    display: block;
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    border: 2px solid rgba(44, 220, 0, 0.55);
    border-radius: 50%;
    animation: ripple 2s linear infinite;
    pointer-events: none;
}




/* Media query para dispositivos más pequeños */
@media (max-width: 600px) {
    .wrapper {
        right: 10px; /* Ajustar según sea necesario para dispositivos pequeños */
        width: calc(100% - 20px); /* Ajuste el ancho para que no salga de la pantalla */
        bottom: 80px; /* Ajustar para que no se solape con el ícono */
    }

    .chat-icon {
        bottom: 120px; /* Ajustar la posición del ícono */
        right: 30px; /* Ajustar la posición del ícono */
    }
}


