#webChatHey {
    inset: unset !important;
    box-shadow: none !important;
    position: fixed !important;
    bottom: 0em !important; 
    right: 1em !important;
    z-index: 999999 !important;
}

/* Encabezado del chat expandido */
#webChatHey.hey-expanded .hey-head {
    background-image: url('https://asertisbpo.s3.us-east-2.amazonaws.com/imgChatBotHey/diligente_chat.png');
    background-color: #9dcb3b !important;
    padding-left: 350px !important;
    background-size: 50px !important;
    background-repeat: no-repeat;
    background-position: 20px 7px;
    border-radius: 10px 10px 0 0;
    height: 5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* TÃƒÂ­tulo dentro del encabezado expandido */
#webChatHey.hey-expanded .hey-head h1 {
    font-size: 16px !important;
    color: #ffffff;
    margin: 0;
    margin-left: 12px !important;
    left: 75px !important;
    flex: 1;
    font-family: Arial, sans-serif;
}

/* Encabezado del chat no expandido */
#webChatHey:not(.hey-expanded) .hey-head {
    background-image: url('https://asertisbpo.s3.us-east-2.amazonaws.com/imgChatBotHey/logodiligente.gif');
    background-color: #77b55500 !important;
    transform: scale(2.5);
    width: 50px !important;
    height: 50px !important;
    background-size: 40px 40px;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    top: calc(-80%);
    left: calc(-80%);
}

/* Ajustes generales para ambas vistas */
#webChatHey .hey-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#webChatHey .hey-head h1 {
    position: absolute;
    top: 50%;
    left: 165px;
    transform: translateY(-50%);
    margin: 0;
    font-weight: bold;
}

/* Oculta texto de enlaces https SOLO dentro de .message.buttons.show y .message.show */
.message.buttons.show a[href^="https://"],
.message.show a[href^="https://"] {
    color: #f17721;
    font-size: 0; /* Oculta el texto original */
}

/* Agrega "Clic aquí" SOLO dentro de esas clases */
.message.buttons.show a[href^="https://"]::after,
.message.show a[href^="https://"]::after {
    content: "Clic aquí";
    font-size: 16px;
    display: inline;
    color: #f17721;
    font-weight: bold;
}

/* Estilo para los botones en el webchat */
.sendBox .buttons button {
    background-color: #f17721; /* Color de fondo */
    color: white; /* Color del texto */
    font-size: 18px; /* Aumentar el tamaÃ±o de la fuente */
    padding: 15px 30px; /* Aumentar el espacio interno */
    border: none; /* Sin borde */
    border-radius: 10px; /* Esquinas redondeadas */
    cursor: pointer; /* Cambiar el cursor al pasar sobre el botÃ³n */
    transition: background-color 0.3s, transform 0.3s; /* Transiciones suaves */
}

/* Efecto al pasar el mouse sobre el botÃ³n */
.sendBox .buttons button:hover {
    background-color: #ffa500; /* Color al pasar el cursor */
    transform: scale(1.05); /* Aumentar ligeramente el tamaÃ±o al pasar el mouse */
}

/* Efecto al hacer clic en el botÃ³n */
.sendBox .buttons button:active {
    transform: scale(0.95); /* Reducir ligeramente el tamaÃ±o al hacer clic */
}
.body {
    width: 45% !important;
}


.message .buttons {
    margin-top: 0.6em;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

/* .message .bubble {
    color: #292626 !important;
    background-color: #ffffff !important;
    padding-left: 20px !important; 
} */

.messages {
    background-color: #f0f1f5 !important;
}

.message .bubble {
    position: relative; /* necesario para ubicar el pico */
    color: #292626 !important;
    background-color: #ffffff !important;
    padding: 10px 15px 10px 20px !important;
    border-radius: 12px; /* bordes redondeados */
}
.message:not(.out) .bubble::before {
    content: "" !important;
    position: absolute !important;
    left: -8px !important; /* distancia del borde izquierdo */
    top: 15px !important;  /* altura del pico */
    width: 0 !important;
    height: 0 !important;
    border-top: 8px solid transparent !important;
    border-bottom: 8px solid transparent !important;
    border-right: 8px solid #ffffff !important; /* color igual al fondo de la burbuja */
}

.message.show{
    background-image: url('https://asertisbpo.s3.us-east-2.amazonaws.com/imgChatBotHey/diligente_chat.png') !important;
    background-repeat: no-repeat !important;
    background-position: left top !important;
    background-size: 45px 45px !important;
    padding-left: 48px !important;
}

.message.generic.show{
    background-position: left !important;
    background-size: 70px 70px !important;
}

.message.endsession.show{
    background-image: none !important;
    padding-left: 5px !important;
}

.message.out.show {
    background-image: none !important;
}

.message.out .bubble {
    color: #ffffff !important;
    background-color: #f17721 !important;
    background-image: none;
        background-position: center !important;
    padding-left: 22px !important;
   border-radius: 30px !important;
}

.btn {
  transition: background-color 0.5s ease, color 0.5s ease;
  border: 1px solid rgba(0,0,0,.20);
  background-color: #f17721;
  border-radius: 1.3em;
  color: #fff;
  display: inline-flex;           
  align-items: center;            
  justify-content: center;
  padding: .9em 1.2em;            
  margin: 2px;
  cursor: pointer;
  font-size: 16px;
  width: 48%;                     
  box-sizing: border-box;         
  white-space: normal;            
  overflow-wrap: anywhere;        
  word-wrap: break-word;
  word-break: break-word;         
  min-height: 3em;                
  height: auto !important;        
  overflow: visible;
}

.btn:hover {
    color: #ffffff;
    background-color: #ffa500;
}


/*Sirve para modificar el ancho del chat*/
/* Estilo general para el contenedor del chat */
#webChatHey.hey-expanded {
    height: 50em !important;
    width: 90%; /* Cambiado a 90% para pantallas pequeÃ±as */
    max-width: 400px; /* Establecer un ancho mÃ¡ximo */
    position: fixed;
    right: 10px; /* Alinear el chat a la derecha */
    bottom: 10px; /* Alinear el chat a la parte inferior */
}

/* Media Queries para pantallas pequeÃ±as */
@media (max-width: 768px) {
    .sendBox {
        flex-direction: column; /* Cambiar la direcciÃ³n de flex a columna */
        height: auto; /* Ajustar altura automÃ¡ticamente */
    }

    .sendBox input {
        width: 100%; /* El input ocupa todo el ancho disponible */
        margin: 5px 0; /* Margen vertical entre elementos */
    }

    .sendBox .buttons button {
        width: 100%; /* Botones ocupan todo el ancho */
        margin: 5px 0; /* Margen vertical entre botones */
    }

    .message .bubble {
        padding-left: 25px; /* Ajustar el padding del bubble */
        background-size: 20px 20px; /* Reducir el tamaÃ±o del GIF */
    }

    #webChatHey iframe{
        max-height: 90vh !important;
    }

    #webChatHey.hey-expanded{          
        max-height: 90vh !important;
    }
}

/* Efecto hover para botones en pantallas mÃ¡s grandes */
@media (min-width: 769px) {
    .sendBox .buttons button {
        width: auto; /* Botones mantienen su ancho automÃ¡tico en pantallas mÃ¡s grandes */
    }

    #webChatHey iframe{
        max-height: 90vh !important;
    }

    #webChatHey.hey-expanded{          
        max-height: 90vh !important;
    }
}

/* dekar de nuevo con hidden  */
#webChatHey .poster {
    display: block !important;
}



#webChatHey:not(.hey-expanded).alert .hey-poster, #webChatHey:not(.hey-expanded) .hey-poster.hey-show {
    background-image: url("") !important;
    display: hidden !important;
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: auto 100px;
    position: absolute;
    top: -101px;
    left: -12px;
    width: 136px;
    height: 100px;
    -webkit-animation-name: rubberBand;
    animation-name: rubberBand;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
} 

.sendButton {
    display: flex !important; /* Asegura que se muestre */
    visibility: visible !important; /* Asegura que no esté oculto */
    cursor: pointer;
    flex-grow: 1;
    flex-shrink: 0;
    width: auto;
    height: 100%;
    margin-right: 1px;
    margin-left: 1px;
}

.attachButon .material-icons{
    color: #f17721  !important;
}

.sendButton .material-icons{
    color: #f17721 !important;
}

.material-icons {
    font-family: 'Material Icons';
    color: #ffffff;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 5;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}


.material-icons.btntoolbar {
    display: none !important; 
}

.material-icons.attachButon{
border: #ffffff !important;
border-width: 0 !important;
}

button.attachButon {
    cursor: pointer;
    color: #666;
    border-width: 0 !important;
}
    

.sendBox {
    top: 20px;
    flex-grow: 0;
    flex-shrink: 0;
    height: 90px; /* AsegÃºrate de especificar unidades */
    top: -2px;
    display: flex;
    flex-direction: row;
    padding-bottom: 1px;
    position: relative;
    margin-bottom: 10px;
}

.sendBox input {
    flex-grow: 1;
    flex-shrink: 1;
    width: 80%;
    height: 80%;
    margin-right: 20px;
    margin-left: 20px;
    position: relative;
    top: 14px;
    /* Estilos para hacerlo sin bordes y mÃ¡s redondeado */
    padding: 10px;
    border: none; /* Elimina los bordes */
    border-radius: 10px; /* Hace el input mÃ¡s redondeado */
    font-size: 16px;
    background-color: #e0e4e8; /* Fondo mÃ¡s claro */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important; /* Sombra ligera */
    outline: none; /* Elimina el borde de enfoque predeterminado */
}

 .sendBox input:focus {
    outline: none;
    background-color: #d6dce3 !important;
    box-shadow: 0 2px 5px rgb(224 228 232) !important; /* Rojo */
}

/* Efecto hover para darle interactividad */
.sendBox input:hover {
    background-color: #e8e8e8; /* Cambio de color al pasar el cursor */
}

/* Efecto cuando el input estÃ¡ enfocado */
.sendBox input:focus {
    background-color: #ffffff; /* Fondo blanco al estar enfocado */
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3); /* Sombra mÃ¡s intensa */
}

.rowbtn {

    border-radius: 20px !important; 
    padding: 0.5em 1em !important; 
    width: 90% !important;
    height: 2em !important;
    color: #fff6f0 !important;
    background-color: #f17721 !important;
    
}


.rowbtn:hover {
    color: #fff;
    background-color: #f17721;
}


.generic .info {
    position: relative;
    margin: 1em;
    border: solid #C0C0C0 0px;
    border-top-left-radius: 1em;
    border-top-right-radius: 1em;
}

.generic h2 {

    color: #292626;
    font-weight: normal;
    background-size: 30px 30px;
    background-repeat: no-repeat;
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 1.5em 2em;
    margin-right: 1em;
    margin-left: 0px;
    font-size: 16px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.generic img {
    visibility: hidden !important;
}
