.zalo-float {
    position: fixed;
    z-index: 90;
    bottom: 22px;
    left: 22px;
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border: 3px solid #111;
    border-radius: 50%;
    background: #0877e8;
    box-shadow: 5px 5px #111;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zalo-float:hover,
.zalo-float:focus-visible {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px #111;
}

.zalo-float:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.zalo-icon {
    position: relative;
    display: grid;
    width: 43px;
    height: 33px;
    place-items: center;
    border-radius: 11px;
    color: #0877e8;
    background: #fff;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.5px;
}

.zalo-icon::after {
    position: absolute;
    bottom: -5px;
    left: 9px;
    width: 0;
    height: 0;
    border-top: 8px solid #fff;
    border-right: 8px solid transparent;
    content: "";
    transform: rotate(10deg);
}

.zalo-tooltip {
    position: absolute;
    bottom: 50%;
    left: calc(100% + 13px);
    width: max-content;
    padding: 9px 12px;
    border: 2px solid #111;
    color: #fff;
    background: #111;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0;
    transform: translate(-6px, 50%);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.zalo-float:hover .zalo-tooltip,
.zalo-float:focus-visible .zalo-tooltip {
    opacity: 1;
    transform: translate(0, 50%);
}

@media (max-width: 600px) {
    .zalo-float {
        bottom: max(15px, env(safe-area-inset-bottom));
        left: 15px;
        width: 56px;
        height: 56px;
        box-shadow: 4px 4px #111;
    }

    .zalo-icon {
        width: 39px;
        height: 30px;
        font-size: 12px;
    }

    .zalo-tooltip {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zalo-float,
    .zalo-tooltip {
        transition: none;
    }
}
