.whatsapp-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-widget i {
    color: #ffffff;
    font-size: 30px;
    position: relative;
    z-index: 2;
}

.whatsapp-widget:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.6);
}

/* Soft pulsing ring behind the icon to draw the eye without being noisy */
.whatsapp-widget__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.55;
    animation: whatsapp-pulse 2.2s ease-out infinite;
    z-index: 1;
}

@keyframes whatsapp-pulse {
    0% { transform: scale(1); opacity: 0.55; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Hover tooltip label */
.whatsapp-widget__tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: #0f172a;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.whatsapp-widget__tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #0f172a;
}

.whatsapp-widget:hover .whatsapp-widget__tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 576px) {
    .whatsapp-widget {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
    }
    .whatsapp-widget i { font-size: 26px; }
    /* Tooltip on hover doesn't apply on touch devices — hide to avoid a
       stray floating label if something long-presses it. */
    .whatsapp-widget__tooltip { display: none; }
}
