#ix-wa-widget-container{
    position:fixed;
    right:20px;
    bottom:20px;
    z-index:99999;
    font-family:Arial,sans-serif;
    width:58px;
    height:58px;
}

#ix-wa-chat-box{
    display:none;
    position:absolute;
    right:0;
    bottom:70px;
    width:320px;
    max-width:min(320px, calc(100vw - 24px));
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 12px 30px rgba(0,0,0,.18);
}

.ix-wa-header{
    background:#075e54;
    color:#fff;
    padding:14px 16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    font-weight:700;
    font-size:15px;
}

.ix-wa-close{
    cursor:pointer;
    border:none;
    background:transparent;
    color:#fff;
    font-size:20px;
    line-height:1;
    padding:0;
    min-width:28px;
    min-height:28px;
}

.ix-wa-body{
    background:#f7f7f7;
    padding:16px;
}

.ix-wa-welcome{
    margin:0 0 12px;
    font-size:14px;
    color:#1f2937;
    line-height:1.5;
}

.ix-wa-input{
    width:100%;
    min-height:90px;
    resize:vertical;
    border:1px solid #d1d5db;
    border-radius:10px;
    padding:12px;
    box-sizing:border-box;
    font-size:14px;
    margin-bottom:10px;
    outline:none;
}

.ix-wa-input:focus{
    border-color:#25d366;
    box-shadow:0 0 0 3px rgba(37,211,102,.15);
}

.ix-wa-send{
    width:100%;
    border:none;
    background:#25d366;
    color:#fff;
    font-weight:700;
    border-radius:10px;
    padding:12px;
    cursor:pointer;
    transition:transform .15s ease, opacity .15s ease;
}

.ix-wa-send:hover{
    opacity:.95;
    transform:translateY(-1px);
}

#ix-wa-button{
    width:58px;
    height:58px;
    border:none;
    border-radius:999px;
    padding:0;
    margin:0;
    background:#25d366;
    color:#fff;
    cursor:pointer;
    box-shadow:0 10px 25px rgba(37,211,102,.35);
    display:flex;
    align-items:center;
    justify-content:center;
    transition:transform .15s ease, box-shadow .15s ease;
    user-select:none;
    -webkit-user-select:none;
    touch-action:manipulation;
}

#ix-wa-button:hover{
    transform:translateY(-1px);
    box-shadow:0 12px 28px rgba(37,211,102,.42);
}

.ix-wa-icon{
    width:31px;
    height:31px;
    display:block;
    pointer-events:none;
}

#ix-wa-hide{
    position:absolute;
    left:-8px;
    top:-8px;
    width:22px;
    height:22px;
    border:none;
    border-radius:999px;
    background:#0f172a;
    color:#fff;
    font-size:14px;
    line-height:1;
    padding:0;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 6px 16px rgba(0,0,0,.22);
    opacity:0;
    visibility:hidden;
    transform:scale(.9);
    transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
}

#ix-wa-widget-container:hover #ix-wa-hide,
#ix-wa-widget-container:focus-within #ix-wa-hide{
    opacity:.96;
    visibility:visible;
    transform:scale(1);
}

.ix-wa-hidden{
    display:none !important;
}

.ix-wa-drag-ready,
.ix-wa-drag-ready *{
    cursor:grab !important;
}

.ix-wa-dragging,
.ix-wa-dragging *{
    cursor:grabbing !important;
    user-select:none !important;
    -webkit-user-select:none !important;
}

@media (max-width: 767px){
    #ix-wa-widget-container{
        right:12px;
        bottom:12px;
        width:56px;
        height:56px;
    }

    #ix-wa-button{
        width:56px;
        height:56px;
    }

    .ix-wa-icon{
        width:29px;
        height:29px;
    }

    #ix-wa-chat-box{
        position:fixed;
        right:10px;
        left:10px;
        bottom:78px;
        width:auto;
        max-width:none;
        border-radius:16px;
    }

    .ix-wa-body{
        padding:14px;
    }

    .ix-wa-input{
        min-height:84px;
        resize:none;
        font-size:16px;
    }

    .ix-wa-send{
        min-height:46px;
        font-size:15px;
    }

    /* La X flotante no debe salir siempre en móvil */
    #ix-wa-hide{
        display:none !important;
    }
}

@media (max-width: 420px){
    #ix-wa-chat-box{
        right:8px;
        left:8px;
        bottom:74px;
    }

    .ix-wa-header{
        padding:12px 14px;
        font-size:14px;
    }

    .ix-wa-body{
        padding:12px;
    }
}