/* Persistent WhatsApp contact control shared by every public page. */
.jtf-floating-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 70;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 50%;
    background: #bd2026;
    box-shadow: 0 10px 24px rgb(0 0 0 / 24%);
    color: #fff;
    text-decoration: none;
    transition: width .2s ease, border-radius .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.jtf-floating-whatsapp img {
    width: 27px;
    height: 27px;
    filter: brightness(0) invert(1);
}

.jtf-floating-whatsapp span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.jtf-floating-whatsapp:hover,
.jtf-floating-whatsapp:focus-visible {
    width: 174px;
    border-radius: 999px;
    background: #a9191f;
    box-shadow: 0 14px 28px rgb(0 0 0 / 30%);
    transform: translateY(-2px);
}

.jtf-floating-whatsapp:hover span,
.jtf-floating-whatsapp:focus-visible span {
    position: static;
    width: auto;
    height: auto;
    margin-left: 9px;
    overflow: visible;
    clip: auto;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.jtf-floating-whatsapp:focus-visible {
    outline: 3px solid rgb(189 32 38 / 32%);
    outline-offset: 3px;
}

.jtf-floating-whatsapp.is-footer-visible {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

@media (max-width: 640px) {
    .jtf-floating-whatsapp {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }

    .jtf-floating-whatsapp:hover,
    .jtf-floating-whatsapp:focus-visible { width: 54px; border-radius: 50%; transform: none; }

    .jtf-floating-whatsapp:hover span,
    .jtf-floating-whatsapp:focus-visible span {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }
}
