/*
 * Floating WhatsApp button.
 *
 * Positioned around the theme's own fixed furniture rather than on top of it:
 * #goTop sits at bottom:90px on the same side, and .tf-toolbar-bottom covers
 * the bottom ~70px of the viewport below 1150px. So the button takes the gap
 * beneath #goTop on desktop, and lifts clear of the mobile toolbar below it.
 */
.ec-wa-float {
    position: fixed;
    bottom: 30px;
    z-index: 999; /* under #goTop (1000), over the page */
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    transition: transform .2s ease, box-shadow .2s ease;
}

.ec-wa-right { right: 40px; }
.ec-wa-left  { left: 40px; }

.ec-wa-float svg {
    width: 30px;
    height: 30px;
    fill: #fff;
    display: block;
}

.ec-wa-float:hover,
.ec-wa-float:focus-visible {
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

/* Below 1150px the theme shows .tf-toolbar-bottom, a fixed bar roughly 70px
   tall. Without this the button sits behind it and cannot be tapped. */
@media (max-width: 1149.98px) {
    .ec-wa-float { bottom: 86px; }
    .ec-wa-right { right: 16px; }
    .ec-wa-left  { left: 16px; }
    .ec-wa-no-mobile { display: none; }
}

@media (min-width: 1150px) {
    .ec-wa-no-desktop { display: none; }
}

/* A merchant who dislikes motion still gets the colour and shadow change. */
@media (prefers-reduced-motion: reduce) {
    .ec-wa-float { transition: none; }
    .ec-wa-float:hover { transform: none; }
}
