/* Cụm liên hệ */
.ivc-floating-contact {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Danh sách nút */
.ivc-floating-contact-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-height: 260px;
    opacity: 1;
    transition:
        opacity .25s ease,
        transform .25s ease,
        max-height .25s ease;
}

/* Nút chung */
.ivc-floating-contact-item {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
    max-width: 54px !important;
    max-height: 54px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 54px;
    text-decoration: none !important;
    cursor: pointer;
    line-height: 1 !important;
    box-shadow:
        0 7px 20px
        rgba(0, 0, 0, .14);
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        background .22s ease;
}

.ivc-floating-contact-item:hover {
    transform:
        translateY(-2px)
        scale(1.04);
    box-shadow:
        0 10px 24px
        rgba(0, 0, 0, .2);
}

/* Icon SVG */
.ivc-floating-contact-item svg {
    display: block;
    width: 23px;
    height: 23px;
    fill: currentColor;
}

/* Điện thoại */
.ivc-floating-phone {
    background: #25c76f;
    color: #fff !important;
}

.ivc-floating-phone:hover {
    background: #1eaf60;
    color: #fff !important;
}

/* Zalo */
.ivc-floating-zalo {
    position: relative;
    background: #087df5;
    color: #fff !important;
}

.ivc-floating-zalo::before {
    content: "";
    position: absolute;
    width: 36px;
    height: 36px;
    border:
        1px solid
        rgba(255, 255, 255, .65);
    border-radius: 50%;
}

.ivc-floating-zalo span {
    position: relative;
    z-index: 2;
    padding: 2px 4px;
    border-radius: 8px;
    background: #fff;
    color: #087df5;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
}

.ivc-floating-zalo:hover {
    background: #006fe0;
}

/* Messenger */
.ivc-floating-messenger {
    background: #0b83f6;
    color: #fff !important;
}

.ivc-floating-messenger:hover {
    background: #0872d8;
    color: #fff !important;
}

/* Nút đóng mở */
.ivc-floating-contact button.ivc-floating-toggle {
    position: relative;
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
    max-width: 54px !important;
    max-height: 54px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 54px;
    background: #087df5 !important;
    color: #fff !important;
    cursor: pointer;
    line-height: 1 !important;
    box-shadow:
        0 7px 20px
        rgba(0, 0, 0, .14);
    appearance: none;
    -webkit-appearance: none;
    transition:
        transform .22s ease,
        background .22s ease,
        box-shadow .22s ease;
}

.ivc-floating-contact button.ivc-floating-toggle:hover {
    background: #006fe0 !important;
    transform:
        translateY(-2px)
        scale(1.04);
    box-shadow:
        0 10px 24px
        rgba(0, 0, 0, .2);
}

/* Icon đóng */
.ivc-floating-close {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
    font-size: 0;
}

.ivc-floating-close::before,
.ivc-floating-close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 3px;
    border-radius: 99px;
    background: #fff;
    transform-origin: center;
}

.ivc-floating-close::before {
    transform:
        translate(-50%, -50%)
        rotate(45deg);
}

.ivc-floating-close::after {
    transform:
        translate(-50%, -50%)
        rotate(-45deg);
}

/* Icon mở */
.ivc-floating-open {
    display: none !important;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #fff;
    font-size: 29px;
    line-height: 18px;
    font-weight: 300;
}

/* Trạng thái đóng */
.ivc-floating-contact.is-hidden
.ivc-floating-contact-list {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.ivc-floating-contact.is-hidden
.ivc-floating-close {
    display: none;
}

.ivc-floating-contact.is-hidden
.ivc-floating-open {
    display: flex !important;
}

/* Mobile */
@media (max-width: 849px) {
    .ivc-floating-contact {
        left: 12px;
        bottom: 15px;
        gap: 8px;
    }

    .ivc-floating-contact-list {
        gap: 8px;
    }

    .ivc-floating-contact-item,
    .ivc-floating-contact button.ivc-floating-toggle {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        max-width: 48px !important;
        max-height: 48px !important;
        flex-basis: 48px;
    }

    .ivc-floating-contact-item svg {
        width: 21px;
        height: 21px;
    }

    .ivc-floating-zalo::before {
        width: 32px;
        height: 32px;
    }

    .ivc-floating-close {
        width: 18px;
        height: 18px;
    }

    .ivc-floating-close::before,
    .ivc-floating-close::after {
        width: 20px;
        height: 3px;
    }
}