/* Floating contact buttons: Zalo + hotline */
.floating-contact {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 9990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
}

.floating-contact__item {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.floating-contact__item:hover,
.floating-contact__item:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
}

.floating-contact__item img,
.floating-contact__item svg {
    display: block;
    width: 44px;
    height: 44px;
}

/* Hotline: mobile only */
.floating-contact__item--hotline {
    display: none;
}

@media (max-width: 767.98px) {
    .floating-contact {
        right: 12px;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        gap: 10px;
    }

    .floating-contact__item {
        width: 46px;
        height: 46px;
    }

    .floating-contact__item img,
    .floating-contact__item svg {
        width: 40px;
        height: 40px;
    }

    .floating-contact__item--hotline {
        display: flex;
    }
}

/* Soft attention ring on the Zalo button */
.floating-contact__item--zalo::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(0, 104, 255, .45);
    animation: floatingContactPulse 2.6s ease-out infinite;
    pointer-events: none;
}

@keyframes floatingContactPulse {
    0%   { transform: scale(1); opacity: .7; }
    70%  { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .floating-contact__item { transition: none; }
    .floating-contact__item--zalo::after { animation: none; opacity: 0; }
}
