/* Container chính */
.vhp-container {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Cài đặt vị trí cho Desktop */
.vhp-container.vhp-desktop-right {
    top: var(--vhp-offset-vertical);
    right: var(--vhp-offset-horizontal);
    align-items: flex-end;
}

.vhp-container.vhp-desktop-left {
    top: var(--vhp-offset-vertical);
    left: var(--vhp-offset-horizontal);
    align-items: flex-start;
}
.vhp-desktop-left .vhp-item {
    flex-direction: row-reverse;
}
.vhp-desktop-left .vhp-tooltip {
    border-radius: 4px 0 0 4px;
    margin-right: -10px;
    margin-left: 0;
}
.vhp-desktop-left .vhp-item:hover .vhp-tooltip {
    transform: translateX(0);
}


/* Từng mục liên hệ */
.vhp-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
}

.vhp-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.vhp-icon svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.vhp-item:hover .vhp-icon {
    transform: scale(1.1);
}

/* Tooltip */
.vhp-tooltip {
    position: absolute;
    white-space: nowrap;
    padding: 8px 16px;
    background-color: #333;
    color: #fff;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.vhp-desktop-right .vhp-tooltip {
    right: 100%;
    margin-right: 10px;
}
.vhp-desktop-left .vhp-tooltip {
    left: 100%;
    margin-left: 10px;
}
.vhp-item:hover .vhp-tooltip {
    visibility: visible;
    opacity: 1;
}


/* Màu sắc mặc định cho các icon */
.vhp-item-phone .vhp-icon { background: #d62929; }
.vhp-item-sms .vhp-icon { background: #59cd6a; }
.vhp-item-zalo .vhp-icon { background: #0068ff; }
.vhp-item-messenger .vhp-icon { background: linear-gradient(45deg, #0078ff, #7f36ff); }
.vhp-item-facebook .vhp-icon { background: #1877f2; }
.vhp-item-viber .vhp-icon { background: #7360f2; }
.vhp-item-whatsapp .vhp-icon { background: #25d366; }
.vhp-item-wechat .vhp-icon { background: #09b83e; }
.vhp-item-google-maps .vhp-icon { background: #ea4335; }


/* --- Mobile Styles --- */
@media (max-width: 768px) {
    .vhp-container {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background-color: #ffffff;
        padding: 8px 0;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
        
        /* Reset desktop positioning */
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
    }

    .vhp-item {
        flex-direction: column;
    }

    .vhp-icon {
        width: 45px;
        height: 45px;
    }

    .vhp-icon svg {
        width: 24px;
        height: 24px;
    }

    .vhp-tooltip {
        display: none; /* Ẩn tooltip trên mobile */
    }
}