/* Floating Chat Container */
.zdrive-floating-chat {
    position: fixed;
    bottom: 22px;
    right: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 9999;
}

/* Buttons */
.zdrive-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366; /* WhatsApp default */
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: transform 0.2s ease;
    position: relative; /* Needed for tooltip positioning */
}

.zdrive-btn img {
    width: 26px;
    height: 26px;
}

/* Telegram blue color */
.zdrive-telegram {
    background-color: #0088CC;
}

/* Hover scaling (desktop only) */
@media (hover: hover) {
    .zdrive-btn:hover {
        transform: scale(1.1);
    }
}

/* Tooltip Styling (Desktop Only — Hidden Initially) */
@media (hover: hover) {
    .zdrive-tooltip {
        position: absolute;
        right: 70px;
        top: 50%;
        transform: translateY(-50%) translateX(10px);
        background: #ffffff;
        color: #000000;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 600;
        opacity: 0 !important;            /* hidden initially */
        visibility: hidden !important;     /* hidden initially */
        white-space: nowrap;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        transition: opacity 0.25s ease, transform 0.25s ease;
        font-family: inherit;             /* Uses global Barlow typography */
        pointer-events: none;             /* Prevent interaction */
    }

    /* Tooltip Arrow */
    .zdrive-tooltip::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 100%;
        transform: translateY(-50%);
        border-width: 6px;
        border-style: solid;
        border-color: transparent transparent transparent #ffffff;
    }

    /* Show Tooltip on Hover */
    .zdrive-btn:hover .zdrive-tooltip {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(-50%) translateX(0);
    }
}

/* Mobile Optimization (Tooltips Hidden) */
@media (max-width: 768px) {
    .zdrive-btn {
        width: 46px;
        height: 46px;
    }

    .zdrive-btn img {
        width: 22px;
        height: 22px;
    }

    /* Tooltips disabled on mobile */
    .zdrive-tooltip {
        display: none !important;
    }
}