.ktl-floating-contact {
    position: fixed;
    right: 32px;
    left: auto;
    bottom: 112px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    pointer-events: none;
}

.ktl-floating-contact-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 50%;
    text-decoration: none;
    overflow: visible;
    pointer-events: auto;
    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}

.ktl-floating-contact-item img {
    position: relative;
    z-index: 3;
    display: block;
    width: 52px;
    height: 52px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    object-fit: contain;
}

.ktl-floating-contact-item::before,
.ktl-floating-contact-item::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.ktl-floating-contact-item::before {
    z-index: 1;
    width: 66px;
    height: 66px;
}

.ktl-floating-contact-item::after {
    z-index: 0;
    width: 64px;
    height: 64px;
    background: transparent;
    border: 2px solid transparent;
    opacity: 0;
}

.ktl-floating-contact-call::before {
    background: rgba(246, 181, 74, 0.12);
    box-shadow:
        0 0 0 5px rgba(246, 181, 74, 0.075),
        0 0 14px rgba(246, 181, 74, 0.14);
}

.ktl-floating-contact-call::after {
    border-color: rgba(246, 181, 74, 0.42);
    animation: ktlFloatingContactRing 2.15s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.ktl-floating-contact-zalo::before {
    background: rgba(0, 104, 255, 0.12);
    box-shadow:
        0 0 0 5px rgba(0, 104, 255, 0.075),
        0 0 14px rgba(0, 104, 255, 0.15);
}

.ktl-floating-contact-zalo::after {
    border-color: rgba(0, 104, 255, 0.44);
    animation: ktlFloatingContactRing 2.35s cubic-bezier(0.22, 1, 0.36, 1) 0.18s infinite;
}

.ktl-floating-contact-item:hover {
    transform: scale(1.05);
    filter: brightness(1.08);
}

.ktl-floating-contact-item:active {
    transform: scale(0.98);
}

@keyframes ktlFloatingContactRing {
    0% {
        transform: translate(-50%, -50%) scale(0.94);
        opacity: 0;
    }

    18% {
        opacity: 0.58;
    }

    72% {
        opacity: 0.16;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.24);
        opacity: 0;
    }
}

@media (max-width: 767px) {
    .ktl-floating-contact {
        right: 18px;
        left: auto;
        bottom: 88px;
        gap: 28px;
    }

    .ktl-floating-contact-item,
    .ktl-floating-contact-item img {
        width: 40px;
        height: 40px;
    }

    .ktl-floating-contact-item::before {
        width: 50px;
        height: 50px;
    }

    .ktl-floating-contact-item::after {
        width: 48px;
        height: 48px;
        border-width: 1.5px;
    }

    .ktl-floating-contact-call::before {
        box-shadow:
            0 0 0 4px rgba(246, 181, 74, 0.07),
            0 0 10px rgba(246, 181, 74, 0.12);
    }

    .ktl-floating-contact-zalo::before {
        box-shadow:
            0 0 0 4px rgba(0, 104, 255, 0.07),
            0 0 10px rgba(0, 104, 255, 0.13);
    }

    @keyframes ktlFloatingContactRing {
        0% {
            transform: translate(-50%, -50%) scale(0.96);
            opacity: 0;
        }

        18% {
            opacity: 0.50;
        }

        72% {
            opacity: 0.12;
        }

        100% {
            transform: translate(-50%, -50%) scale(1.18);
            opacity: 0;
        }
    }
}

@media (max-width: 420px) {
    .ktl-floating-contact {
        right: 16px;
        left: auto;
        bottom: 84px;
        gap: 26px;
    }

    .ktl-floating-contact-item,
    .ktl-floating-contact-item img {
        width: 38px;
        height: 38px;
    }

    .ktl-floating-contact-item::before {
        width: 48px;
        height: 48px;
    }

    .ktl-floating-contact-item::after {
        width: 46px;
        height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ktl-floating-contact-item,
    .ktl-floating-contact-item::after {
        animation: none !important;
        transition: none !important;
    }
}