@keyframes vialli-wa-enter {
    from { opacity: 0; transform: translate3d(0, 16px, 0) scale(.94); }
    to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes vialli-wa-pulse {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(0, 0, 0) scale(1.07); }
}

.vialli-wa {
    position: fixed;
    bottom: 24px;
    z-index: 7000;
    display: inline-flex;
    align-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #FFF;
    box-shadow: 0 4px 14px rgba(30, 24, 18, 0.16);
    text-decoration: none;
    opacity: 0;
    animation:
        vialli-wa-enter .5s cubic-bezier(.22, .61, .36, 1) .6s forwards,
        vialli-wa-pulse 2.6s cubic-bezier(.45, 0, .55, 1) 1.2s infinite;
    will-change: transform;
    backface-visibility: hidden;
    transition:
        width .32s cubic-bezier(.22, .61, .36, 1),
        border-radius .32s cubic-bezier(.22, .61, .36, 1),
        box-shadow .28s ease;
}

.vialli-wa--der { right: 24px; }
.vialli-wa--izq { left: 24px; }

.vialli-wa__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    flex-shrink: 0;
}

.vialli-wa__icon svg {
    width: 30px;
    height: 30px;
    fill: #514337;
    transition: fill .28s ease;
}

.vialli-wa__tip {
    white-space: nowrap;
    font-family: var(--wp--preset--font-family--argumentum-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .2px;
    color: #514337;
    opacity: 0;
    max-width: 0;
    padding-right: 0;
    overflow: hidden;
    transition:
        opacity .2s ease,
        max-width .32s cubic-bezier(.22, .61, .36, 1),
        padding-right .32s cubic-bezier(.22, .61, .36, 1);
}

.vialli-wa:focus-visible {
    outline: 2px solid #AB9D33;
    outline-offset: 4px;
}

@media (hover: hover) and (min-width: 769px) {
    .vialli-wa:hover,
    .vialli-wa:focus-visible {
        width: auto;
        border-radius: 29px;
        box-shadow: 0 8px 24px rgba(30, 24, 18, 0.22);
        animation-play-state: running, paused;
    }

    .vialli-wa:hover .vialli-wa__tip,
    .vialli-wa:focus-visible .vialli-wa__tip {
        opacity: 1;
        max-width: 260px;
        padding-right: 24px;
    }

    .vialli-wa:hover .vialli-wa__icon svg {
        fill: #AB9D33;
    }
}

.vialli-wa:active {
    box-shadow: 0 2px 8px rgba(30, 24, 18, 0.18);
}

@media (max-width: 768px) {
    .vialli-wa {
        bottom: 18px;
        width: 52px;
        height: 52px;
        box-shadow: 0 3px 12px rgba(30, 24, 18, 0.18);
        animation:
            vialli-wa-enter .5s cubic-bezier(.22, .61, .36, 1) .6s forwards,
            vialli-wa-pulse 3s cubic-bezier(.45, 0, .55, 1) 1.2s infinite;
    }

    .vialli-wa--der { right: 18px; }
    .vialli-wa--izq { left: 18px; }

    .vialli-wa__icon {
        width: 52px;
        height: 52px;
    }

    .vialli-wa__icon svg {
        width: 27px;
        height: 27px;
    }

    .vialli-wa__tip { display: none; }

    .vialli-wa:active .vialli-wa__icon svg { fill: #AB9D33; }
}

@media (max-width: 768px) {
    .vialli-wa--solo-escritorio { display: none; }
}

@media (min-width: 769px) {
    .vialli-wa--solo-movil { display: none; }
}

body.vialli-no-scroll .vialli-wa {
    opacity: 0;
    pointer-events: none;
    animation-play-state: paused;
    transition: opacity .2s ease;
}

@media (prefers-reduced-motion: reduce) {
    .vialli-wa {
        opacity: 1;
        animation: none;
        transition: width .2s ease, border-radius .2s ease;
    }
    .vialli-wa__tip {
        transition: opacity .2s ease, max-width .2s ease, padding-right .2s ease;
    }
}

@media print {
    .vialli-wa { display: none; }
}