.ess-whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 3px 12px rgb(0 0 0 / 18%);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.ess-whatsapp-float:hover,
.ess-whatsapp-float:focus-visible {
    background: #25d366;
    color: #fff;
    text-decoration: none;
}

.ess-whatsapp-float[data-ess-obstructed="true"] {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.ess-whatsapp-float:focus-visible {
    outline: 3px solid #071c3a;
    outline-offset: 3px;
}

.ess-whatsapp-icon {
    display: block;
    width: 29px;
    height: 29px;
    flex: none;
}

.ess-whatsapp-tooltip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    padding: 7px 11px;
    border-radius: 6px;
    background: #071c3a;
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-50%);
    transition: opacity .18s ease, visibility .18s ease;
}

.ess-whatsapp-float:hover .ess-whatsapp-tooltip,
.ess-whatsapp-float:focus-visible .ess-whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

@media (hover: hover) {
    .ess-whatsapp-float:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgb(0 0 0 / 22%);
    }
}

@media (max-width: 767px) {
    .ess-whatsapp-float {
        right: 14px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        width: 52px;
        height: 52px;
    }

    .ess-whatsapp-tooltip {
        display: none;
    }

    body.woocommerce-cart .ess-whatsapp-float {
        bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .ess-whatsapp-float,
    .ess-whatsapp-tooltip {
        transition: none;
    }
}
