/* Floating WhatsApp — bottom tuned just above theme “back to top”; safe-area on phones */
.whatsapp-float-btn {
    position: fixed;
    /* 88px (was 93px − 5px); may overlap back-to-top slightly */
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    z-index: 100002;
    pointer-events: auto;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #05a5c5;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.22),
        0 12px 28px rgba(18, 140, 106, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transform: rotate(-11deg);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.whatsapp-float-btn:hover {
    color: #fff;
    transform: rotate(-6deg) scale(1.05);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.28),
        0 14px 32px rgba(18, 140, 106, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.whatsapp-float-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.whatsapp-float-btn--right {
    right: 50px;
    left: auto;
}

.whatsapp-float-btn--left {
    left: 50px;
    right: auto;
}

/* Icon slightly counter-rotated so glyph reads cleaner while the chip stays playful */
.whatsapp-float-btn__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transform: rotate(4deg);
}

.whatsapp-float-btn:hover .whatsapp-float-btn__inner {
    transform: rotate(3deg);
}

.whatsapp-float-btn__icon {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
}

@media (max-width: 767px) {
    .whatsapp-float-btn {
        /* 59px (was 64px − 5px) */
        bottom: calc(59px + env(safe-area-inset-bottom, 0px));
        width: 54px;
        height: 54px;
    }

    .whatsapp-float-btn--right {
        right: 20px;
    }

    .whatsapp-float-btn--left {
        left: 20px;
    }

    .whatsapp-float-btn__icon {
        width: 28px;
        height: 28px;
    }
}
