/*==========================
Hiperall WhatsApp Widget
==========================*/

:root{
    --primary:#163A70;
    --green:#25D366;
}

#hw-widget{

    position:fixed;
    right:22px;
    bottom:22px;
    z-index:999999;
    font-family:Arial,Helvetica,sans-serif;

}

/***********************
PREVIEW
************************/

#hw-preview{

    position:absolute;

    right:8px;
    bottom:88px;

    width:350px;

    background:#fff;

    border-radius:10px;

    border:1px solid #ececec;

    box-shadow:0 8px 30px rgba(0,0,0,.12);

    padding:14px 16px;

    transition:.30s;
    opacity:0;
transform:translateY(15px);
display:none;

}

#hw-preview:after{

    content:"";

    position:absolute;

    right:22px;

    bottom:-8px;

    width:16px;

    height:16px;

    background:white;

    transform:rotate(45deg);

    border-right:1px solid #ececec;

    border-bottom:1px solid #ececec;

}

.hw-close{

    position:absolute;

    right:12px;

    top:10px;

    color:#777;

    cursor:pointer;

    font-size:20px;

}

.hw-row{

    display:flex;

    align-items:flex-start;

}

.hw-logo{

    width:42px;

    height:42px;

    object-fit:contain;

    margin-right:12px;

}

.hw-title{

    font-size:14px;

    font-weight:700;

    color:#222;

}

.hw-subtitle{

    font-size:11px;

    color:#777;

    margin-top:2px;

}

.hw-message{

    margin-top:10px;

    font-size:15px;

    color:#333;

    line-height:1.45;

    min-height:45px;

}

/***********************
BOTON
************************/

#hw-button{
    position:relative;
    width:78px;
    height:78px;
    border:none;
    border-radius:50%;
    background:var(--hw-button);

    cursor:pointer;

    display:flex;

    justify-content:center;

    align-items:center;

    float:right;

    padding:0;

    box-shadow:0 10px 30px rgba(0,0,0,.22);

    transition:.25s;

}

#hw-button:hover{

    transform:scale(1.05);

}

#hw-button svg{

    width:44px;
    height:44px;

}

/***********************
HALOS
************************/

#hw-button::before{

    content:"";

    position:absolute;

    width:108px;

    height:108px;

    border-radius:50%;

    background:rgba(37,211,102,.16);

    animation:wave 2s infinite;

    z-index:-2;

}

#hw-button::after{

    content:"";

    position:absolute;

    width:88px;

    height:88px;

    border-radius:50%;

    background:rgba(37,211,102,.24);

    animation:wave 2s infinite .5s;

    z-index:-1;

}

@keyframes wave{

0%{

transform:scale(.7);

opacity:.9;

}

100%{

transform:scale(1.3);

opacity:0;

}

}

.hw-dot{

    position:absolute;

    right:4px;

    top:4px;

    width:10px;

    height:10px;

    background:#ff3434;

    border-radius:50%;

    border:2px solid white;

}

/***********************
RESPONSIVE
************************/

@media(max-width:768px){

#hw-widget{

right:15px;

left:15px;

bottom:15px;

}

#hw-preview{

width:auto;

right:0;

left:0;

bottom:84px;

}

}

/***************/
#typingText{

    white-space:normal;

}

.hw-close{

    transition:.2s;

}

.hw-close:hover{

    transform:rotate(90deg);

    color:#111;

}

/*************/
#hw-chat{

display:none;

}

.hw-service.selected{

background:#163A70;

color:white;

}

/*******************/
/************************************
VENTANA GRANDE
************************************/

#hw-chat{

    position:absolute;
    right:8px;
    bottom:88px;

    width:360px;

    background:#fff;

    border-radius:14px;

    overflow:hidden;

    box-shadow:0 12px 40px rgba(0,0,0,.22);

    display:none;

    animation:hwOpen .25s ease;

}

@keyframes hwOpen{

from{

opacity:0;
transform:translateY(15px) scale(.95);

}

to{

opacity:1;
transform:translateY(0) scale(1);

}

}

.hw-header{
    background:var(--hw-header);
    color:#fff;
    padding:18px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.hw-header-info{

display:flex;
align-items:center;

}

.hw-chat-logo{

width:46px;
height:46px;

border-radius:50%;

background:white;

padding:4px;

margin-right:12px;

}

.hw-chat-title{

font-size:16px;

font-weight:bold;

}

.hw-chat-subtitle{

font-size:12px;

opacity:.85;

margin-top:3px;

}

#hw-chat-close{

font-size:22px;

cursor:pointer;

transition:.2s;

}

#hw-chat-close:hover{

transform:rotate(90deg);

}

.hw-chat-body{

padding:18px;

background:#ece5dd;

background-image:
radial-gradient(circle at 25px 25px,#f6f6f6 2px,transparent 2px);

background-size:40px 40px;

}

.hw-chat-message{

background:white;

padding:14px;

border-radius:12px;

font-size:15px;

line-height:1.5;

box-shadow:0 2px 6px rgba(0,0,0,.08);

margin-bottom:18px;

}

.hw-services{

display:flex;

flex-wrap:wrap;

gap:8px;

}

.hw-service{

background:#fff;

    color:#222;

    border:1px solid #d9d9d9;

    border-radius:22px;

    padding:10px 14px;

    cursor:pointer;

    font-size:13px;

    font-weight:600;

    transition:.25s;

    flex:1 1 calc(50% - 6px);

    text-align:center;

    min-width:140px;

}

.hw-service:hover{

 background:#163A70;

    color:#fff;

    border-color:#163A70;

}

.hw-service.selected{

background:#163A70;

color:white;

border-color:#163A70;

}

.hw-chat-footer{

padding:16px;

background:white;

border-top:1px solid #eee;

}

#hw-start-chat{
    width:100%;
    background:var(--hw-start);
    color:white;
    border:none;
    border-radius:8px;
    padding:14px;
    font-size:15px;
    font-weight:bold;
    cursor:pointer;
    transition:.25s;
}

#hw-start-chat:hover{

    filter:brightness(.90);

}

@media(max-width:768px){

#hw-chat{

left:0;

right:0;

width:auto;

bottom:82px;

}

}


.hw-service,
.hw-service:visited,
.hw-service:focus{

    color:#222 !important;

    text-decoration:none;

}
.hw-service.selected,
.hw-service.selected:hover{

    color:#fff !important;

}