/* WhatsApp floating button — public website */
.sh-wa-float {
    position: fixed;
    left: 16px;
    bottom: 24px;
    z-index: 99996;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 18px 0 14px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}

.sh-wa-float:hover {
    transform: translateY(-2px) scale(1.02);
    background: #1ebe57;
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
    color: #fff;
    text-decoration: none;
}

.sh-wa-float__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.55rem;
    flex-shrink: 0;
}

.sh-wa-float__pulse {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.35);
    animation: sh-wa-float-pulse 2.2s ease-out infinite;
    pointer-events: none;
}

.sh-wa-float__label {
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

@keyframes sh-wa-float-pulse {
    0% {
        transform: scale(1);
        opacity: 0.65;
    }
    70% {
        transform: scale(1.18);
        opacity: 0;
    }
    100% {
        transform: scale(1.18);
        opacity: 0;
    }
}

@media (max-width: 640px) {
    .sh-wa-float {
        left: 12px;
        bottom: 18px;
        min-height: 52px;
        padding: 0 14px 0 12px;
        font-size: 13px;
    }

    .sh-wa-float__label {
        display: none;
    }

    .sh-wa-float__icon {
        width: 44px;
        height: 44px;
        font-size: 1.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sh-wa-float__pulse {
        animation: none;
        display: none;
    }
}

/* Keep above footer; leave room if live chat bar is on the right */
body.has-panel-chat-float .sh-wa-float {
    bottom: 24px;
}
