.zalo-float {
    align-items: center;
    background: #0068ff;
    border: 2px solid rgba(255, 255, 255, 0.96);
    border-radius: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));
    box-shadow: 0 10px 28px rgba(0, 42, 108, 0.28), 0 2px 8px rgba(0, 0, 0, 0.16);
    color: #fff;
    display: flex;
    height: 58px;
    justify-content: center;
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    text-decoration: none;
    transition: box-shadow 180ms ease, transform 180ms ease;
    width: 58px;
    z-index: 90;
}

.zalo-float__mark {
    align-items: center;
    background: #fff;
    border-radius: 9px;
    color: #0068ff;
    display: flex;
    font-family: "Readex Pro", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    height: 31px;
    justify-content: center;
    letter-spacing: -0.02em;
    line-height: 1;
    position: relative;
    width: 39px;
}

.zalo-float__mark::after {
    border-right: 5px solid transparent;
    border-top: 6px solid #fff;
    bottom: -4px;
    content: "";
    left: 7px;
    position: absolute;
    transform: rotate(12deg);
}

.zalo-float:hover {
    box-shadow: 0 14px 34px rgba(0, 42, 108, 0.34), 0 3px 10px rgba(0, 0, 0, 0.18);
    color: #fff;
    transform: translateY(-2px) scale(1.03);
}

.zalo-float:focus-visible {
    outline: 3px solid #ffcc34;
    outline-offset: 4px;
}

@media (max-width: 767px) {
    .zalo-float {
        bottom: max(16px, env(safe-area-inset-bottom));
        height: 54px;
        right: max(16px, env(safe-area-inset-right));
        width: 54px;
    }

    .zalo-float__mark {
        height: 29px;
        width: 37px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zalo-float {
        transition: none;
    }
}
