    #whatsapp-widget {
        position: fixed;
        right: 24px;
        bottom: 24px;
        z-index: 99999;
        font-family: Arial, Helvetica, sans-serif;
    }

    /* =====================================================
       POPUP
       ===================================================== */

    #whatsapp-widget .wa-popup {
        position: absolute;
        right: 0;
        bottom: 70px;
        width: 280px;
        padding: 18px 20px;
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
        opacity: 0;
        visibility: hidden;
        transform: translateY(12px) scale(0.96);
        transition:
            opacity 0.3s ease,
            transform 0.3s ease,
            visibility 0.3s ease;
    }

    #whatsapp-widget .wa-popup.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    #whatsapp-widget .wa-popup::after {
        content: "";
        position: absolute;
        right: 21px;
        bottom: -8px;
        width: 16px;
        height: 16px;
        background: #fff;
        transform: rotate(45deg);
    }

    /* =====================================================
       PULSANTE CHIUSURA
       ===================================================== */

    #whatsapp-widget .wa-close {
        position: absolute;
        top: 8px;
        right: 9px;
        width: 24px;
        height: 24px;
        border: 0;
        padding: 0;
        background: transparent;
        color: #999;
        font-size: 18px;
        line-height: 24px;
        cursor: pointer;
        z-index: 2;
    }

    #whatsapp-widget .wa-close:hover {
        color: #333;
    }

    /* =====================================================
       TESTI POPUP
       ===================================================== */

    #whatsapp-widget .wa-popup-title {
        margin: 0 25px 7px 0;
        color: #222;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.35;
    }

    #whatsapp-widget .wa-popup-text {
        margin: 0 0 15px;
        color: #555;
        font-size: 14px;
        line-height: 1.5;
    }

    /* =====================================================
       LINK WHATSAPP DEL POPUP
       ===================================================== */

    #whatsapp-widget .wa-popup-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 42px;
        padding: 10px 15px;
        box-sizing: border-box;
        border-radius: 8px;
        background: #25D366;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
        transition:
            background 0.2s ease,
            transform 0.2s ease;
    }

    #whatsapp-widget .wa-popup-link:hover {
        background: #1ebe5d;
        color: #fff;
        transform: translateY(-1px);
    }

    /* =====================================================
       PULSANTE WHATSAPP
       ===================================================== */

    #whatsapp-widget .wa-button {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 58px;
        height: 58px;
        border-radius: 50%;
        background: #25D366;
        box-shadow:
            0 5px 18px rgba(0, 0, 0, 0.20);
        text-decoration: none;
        cursor: pointer;
        transition:
            transform 0.2s ease,
            box-shadow 0.2s ease;
    }

    #whatsapp-widget .wa-button:hover {
        transform: scale(1.08);
        box-shadow:
            0 7px 22px rgba(0, 0, 0, 0.25);
    }

    /* =====================================================
       ICONA WHATSAPP
       ===================================================== */

    #whatsapp-widget .wa-button svg {
        display: block;
        width: 40px;
        height: 40px;
        position: relative;
        z-index: 2;
        flex-shrink: 0;
    }

    /* =====================================================
       ANIMAZIONE PULSE
       ===================================================== */

    #whatsapp-widget .wa-button::before {
        content: "";
        position: absolute;
        width: 58px;
        height: 58px;
        border-radius: 50%;
        background: rgba(37, 211, 102, 0.35);
        animation: wa-pulse 2s infinite;
        pointer-events: none;
    }

    @keyframes wa-pulse {
        0% {
            transform: scale(1);
            opacity: 0.7;
        }

        70% {
            transform: scale(1.35);
            opacity: 0;
        }

        100% {
            transform: scale(1.35);
            opacity: 0;
        }
    }

    /* =====================================================
       RESPONSIVE MOBILE
       ===================================================== */

    @media (max-width: 767px) {

        #whatsapp-widget {
            right: 16px;
            bottom: 16px;
        }

        #whatsapp-widget .wa-button {
            width: 54px;
            height: 54px;
        }

        #whatsapp-widget .wa-button::before {
            width: 54px;
            height: 54px;
        }

        #whatsapp-widget .wa-button svg {
            width: 37px;
            height: 37px;
        }

        #whatsapp-widget .wa-popup {
            right: 0;
            bottom: 66px;
            width: calc(100vw - 42px);
            max-width: 280px;
        }
    }

    /* =====================================================
       ACCESSIBILITÀ
       ===================================================== */

    @media (prefers-reduced-motion: reduce) {

        #whatsapp-widget .wa-button::before {
            animation: none;
        }

        #whatsapp-widget .wa-popup,
        #whatsapp-widget .wa-button {
            transition: none;
        }
    }
