/*reset*/
#webChatHey{
    all:unset;
}

#webChatHey{
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    border-radius: 15px 15px 0 0;
    font-size: small;
    position: fixed;
    display: flex !important;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 302px;
    opacity: 0;
    height: max-content;
    z-index: 100;
}

#webChatHey.hey-show{
    transition: opacity 500ms;
    transition: top 250ms, left 250ms;
    opacity: 1;
}

#webChatHey.hey-expanded{
    height: 500px;
}

#webChatHey:not(.hey-expanded),
#webChatHey:not(.hey-expanded) .hey-head{
    transition: opacity 1s;
    opacity: 1;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

#webChatHey:not(.hey-expanded) .hey-foot,
#webChatHey:not(.hey-expanded) .hey-body,
#webChatHey:not(.hey-expanded) .hey-head .minimizeButton,
#webChatHey:not(.hey-expanded) .hey-head h1{
    display: none;
}

#webChatHey:not(.hey-expanded).hey-alert .hey-head i.hey-hide{
    display: inline-block;
    margin: auto;
}

/* 🚫 animación eliminada de .hey-alert */
#webChatHey:not(.hey-expanded).hey-alert {
    transform: scale(1) !important;
    opacity: 1 !important;
    animation: none !important;
}

/* 🚫 keyframes eliminados */
/*@keyframes example {
    from { transform: scale(0.9); opacity: 0.75; }
    to { transform: scale(1.1); opacity: 1; }
}*/

#webChatHey iframe{
    height: 100%;
}

#webChatHey.hey-expanded .hey-head{
    background-color: #264E72;
    background-size: 30px;
    background-position: 12px center;
    background-image: url(/assets/chatbotssAssets/media/chatbot-icon.svg);
}

#webChatHey:not(.hey-expanded) .hey-head{
    background-position: center center;
    background-size: 40px 40px;
    background-image: url(/assets/chatbotssAssets/media/Icono-Chatbot-Web.svg);
    background-color: transparent;
}

#webChatHey .hey-head h1{
    color: white;
    text-align: center;
    margin: 0.5em;
    flex-grow: 1;
    flex-shrink: 1;
    font-size: 1.2em;
    font-weight: bold;
}

#webChatHey .hey-head .minimizeButton{
    color: white;
    margin-right: 0.5em;
    flex-grow: 0;
    flex-shrink: 0;
}

#webChatHey .hey-head .minimize{
    font-size: medium;
}

#webChatHey .hey-body{
    border-left: #4080ff 1px solid;
    border-right: #4080ff 1px solid;
    flex-grow: 0;
    flex-basis: 100%;
    min-height: 0;
}

#webChatHey .hey-foot{
    font-size: x-small;
    background-color: #F89420;
    flex-grow: 0;
    justify-content: flex-end;
    flex-basis: auto;
    display: none;
}

#webChatHey.hey-expanded .hey-foot{
    display: flex;
    height: 6px;
}

#webChatHey .hey-foot span{
    color: #F89420;
    margin: 0.2em;
}

#webChatHey .hey-foot span a{
    color: inherit;
}

#webChatHey.hey-dragging{
    transition: none;
    cursor: none;
}

#webChatHey.hey-dragging .hey-foot,
#webChatHey.hey-dragging .hey-body{
    display: none;
}

@media (max-width: 600px) , (max-height: 600px) {
    #webChatHey{
        position: fixed;
        box-shadow: unset;
    }

    #webChatHey.hey-expanded {
        height: 100vh;
        width: 100vw;
    }

    #webChatHey .hey-head{
        border-radius: 0 0 0 0;
    }

    #webChatHey .hey-poster.hey-show {
        display:none;
    }

    body.hey-expanded.hey-show{
        overflow:hidden;
    }
}

/* imagen de arriba */
#webChatHey:not(.hey-expanded).alert .hey-poster,
#webChatHey:not(.hey-expanded) .hey-poster.hey-show{
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: auto 100px;
    position: absolute;
    top: -101px;
    left: -12px;
    width: 136px;
    height: 100px;
    /* 🚫 animaciones eliminadas */
}
