.atm-wa-container{
    position:fixed;
    bottom:var(--atm-vertical-position);
    z-index:999999001;
}


/* Overlay */

.atm-wa-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.35);
    opacity:0;
    visibility:hidden;
    transition:.3s;
}

.atm-wa-overlay.active{
    opacity:1;
    visibility:visible;
}

/* Botón */

.atm-wa-button{
    width:70px;
    height:70px;
    border:none;
    border-radius:50%;
    background:#25D366;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 10px 30px rgba(0,0,0,.20);
    transition:.3s;
}

.atm-wa-button:hover{
    transform:scale(1.05);
}

.atm-wa-button svg{
    width:34px;
    height:34px;
}

/* Popup */

.atm-wa-popup{
    position:absolute;
    bottom:90px;
    right:0;
    width:360px;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 15px 45px rgba(0,0,0,.15);

    opacity:0;
    visibility:hidden;

    transform:translateY(20px);

    transition:.3s;
}

.atm-wa-popup.active{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

/* Header */

.atm-wa-header{
     background: var(--atm-primary);
text-align: center;
    color: var(--atm-secondary);
    padding: 15px 10px;
}

.atm-wa-header h3{
    margin:0 0 10px;
    font-size:16px;
    line-height:1.1;
    color:var(--atm-text);
}

.atm-wa-header p{
    margin:0;
    font-size:14px;
    color:var(--atm-text);

}

/* Body */

.atm-wa-content{
    padding:15px;
    background:#f4f4f4;
}

.atm-wa-note{
    font-size:13px;
    color:#888;
    margin-bottom:15px;
    padding-left:4px;
}
.atm-wa-response{ text-align: center; margin-bottom: 15px; font-size: 13px; line-height: 14px}
/* Asesor */
.atm-wa-body{padding: 15px 10px} 

.atm-wa-advisor{
    display:flex;
    align-items:center;
    gap:15px;
    text-decoration:none;
    background:#fff;
    padding:15px;
    border-radius:8px;
    margin-bottom:12px;
    transition:.3s;
    border-left:3px solid #25D366;
}

.atm-wa-advisor:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.atm-wa-avatar{
    width:55px;
    min-width:55px;
    height:55px;
}

.atm-wa-avatar img{
    width:100%;
    height:100%;
    border-radius:50%;
    object-fit:cover;
}

.atm-wa-avatar-empty{
    width:55px;
    height:55px;
    border-radius:50%;
    background:#e8e8e8;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
}

.atm-wa-data{
    flex:1;
}

.atm-wa-data strong{
    display:block;
    color:#333;
    font-size:18px;
    margin-bottom:3px;
}

.atm-wa-data span{
    display:block;
    color:#888;
    font-size:14px;
}

.atm-wa-chat-icon{
    color:#25D366;
    font-size:24px;
}



/*
|--------------------------------------------------------------------------
| Posición
|--------------------------------------------------------------------------
*/

.atm-wa-right{
    right:var(--atm-side-spacing);
}

.atm-wa-left{
    left:var(--atm-side-spacing);
}

.atm-wa-left .atm-wa-popup{
    bottom: var(--atm-button-size);
    left: calc(
        var(--atm-button-size) + -15px
    );

}

/*
|--------------------------------------------------------------------------
| Botón
|--------------------------------------------------------------------------
*/

.atm-wa-button{

    width:var(--atm-button-size);

    height:var(--atm-button-size);

    background:var(--atm-button-color);

    color:var(--atm-button-icon-color);

    border-radius:50%;

}

.atm-wa-button svg{

    color:var(--atm-button-icon-color);

}

.atm-wa-button{

    display:flex;
    align-items:center;
    justify-content:center;

}

.atm-wa-button svg{

    width:55%;
    height:55%;

}

.atm-wa-button img{

    width:55%;
    height:55%;
    object-fit:contain;

}
/* Responsive */

.atm-wa-icon-close{
    display:none;
}

.atm-wa-button.opened
.atm-wa-icon-default{
    display:none;
}

.atm-wa-button.opened
.atm-wa-icon-close{
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:32px;
    line-height:1;
}

@media(max-width:480px){

    .atm-wa-container{
        right:15px;
        bottom:32%;
        z-index: 999991
    }

    .atm-wa-popup{
        width:320px;
        max-width:calc(100vw - 30px);
    }

}