#pagehost-whatsapp-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 72px;
    height: 72px;
    z-index: 999999999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

#pagehost-whatsapp-pulse {
    position: absolute;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.28);
    animation: pagehostPulse 1.8s infinite;
}

#pagehost-whatsapp-circle {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    animation: pagehostRing 2.2s infinite;
}

#pagehost-whatsapp-circle svg {
    width: 36px;
    height: 36px;
    display: block;
    fill: #ffffff;
}

#pagehost-whatsapp-popup {
    position: fixed;
    right: 98px;
    bottom: 28px;
    width: 285px;
    max-width: calc(100vw - 130px);
    background: #ffffff;
    color: #1f2937;
    border-radius: 14px;
    padding: 15px 16px 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    z-index: 999999998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.96);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

#pagehost-whatsapp-popup.pagehost-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

#pagehost-whatsapp-popup::after {
    content: "";
    position: absolute;
    right: -8px;
    bottom: 20px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    transform: rotate(45deg);
}

#pagehost-whatsapp-popup-close {
    position: absolute;
    top: 7px;
    right: 9px;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    font-size: 20px;
    line-height: 26px;
    text-align: center;
}

#pagehost-whatsapp-popup-close:hover { color: #374151; }

.pagehost-whatsapp-popup-title {
    display: block;
    margin: 0 24px 5px 0;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    color: #111827;
}

.pagehost-whatsapp-popup-text {
    display: block;
    margin: 0 0 11px;
    font-size: 13px;
    line-height: 1.5;
    color: #5f6875;
}

.pagehost-whatsapp-popup-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 13px;
    border-radius: 8px;
    background: #25D366;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease;
}

.pagehost-whatsapp-popup-action:hover {
    background: #20bd5a;
    color: #ffffff !important;
    transform: translateY(-1px);
}

@keyframes pagehostPulse {
    0% { transform: scale(0.85); opacity: 0.75; }
    70%, 100% { transform: scale(1.35); opacity: 0; }
}

@keyframes pagehostRing {
    0%, 84%, 100% { transform: rotate(0deg); }
    86% { transform: rotate(-10deg); }
    88% { transform: rotate(10deg); }
    90% { transform: rotate(-8deg); }
    92% { transform: rotate(8deg); }
    94% { transform: rotate(-5deg); }
    96% { transform: rotate(5deg); }
    98% { transform: rotate(0deg); }
}

#pagehost-whatsapp-button:hover #pagehost-whatsapp-circle {
    transform: scale(1.08);
}

@media (max-width: 767px) {
    #pagehost-whatsapp-button {
        right: 15px;
        bottom: 15px;
        width: 66px;
        height: 66px;
    }

    #pagehost-whatsapp-pulse {
        width: 66px;
        height: 66px;
    }

    #pagehost-whatsapp-circle {
        width: 54px;
        height: 54px;
    }

    #pagehost-whatsapp-circle svg {
        width: 33px;
        height: 33px;
    }

    #pagehost-whatsapp-popup {
        right: 16px;
        bottom: 92px;
        width: calc(100vw - 32px);
        max-width: 320px;
        padding: 14px 15px 13px;
    }

    #pagehost-whatsapp-popup::after {
        right: 24px;
        bottom: -8px;
    }

    .pagehost-whatsapp-popup-title { font-size: 14px; }
    .pagehost-whatsapp-popup-text { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    #pagehost-whatsapp-pulse,
    #pagehost-whatsapp-circle {
        animation: none !important;
    }

    #pagehost-whatsapp-popup {
        transition: none !important;
    }
}

/* V128 - WhatsApp acima da barra fixa de checkout no mobile */
@media (max-width:767px){
    #pagehost-whatsapp-button{
        bottom:178px !important;
    }

    #pagehost-whatsapp-popup{
        bottom:252px !important;
    }
}
