/* ============================================
   Miwnix Tech — Floating Contact Menu
   ============================================ */

.floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    transition: bottom 0.3s ease;
}

body.cookie-banner-active .floating-container {
    bottom: 100px;
}

.floating-main {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(189, 0, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    animation: pulse 2s infinite;
}

.floating-container.active .floating-main {
    transform: rotate(360deg);
    background: var(--secondary);
    box-shadow: 0 5px 15px var(--secondary);
    animation: none;
}

.floating-options {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    pointer-events: none;
}

.float-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    transform: translateY(20px) scale(0);
    position: relative;
}

/* Tooltip Styles */
.float-item::after {
    content: attr(aria-label);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.float-item:hover::after {
    opacity: 1;
}

.floating-container.active .floating-options {
    pointer-events: all;
}

.floating-container.active .float-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.float-item:hover {
    transform: scale(1.1) !important;
}

/* Staggered Delay */
.floating-container.active .float-item:nth-child(1) {
    transition-delay: 0.1s;
}

.floating-container.active .float-item:nth-child(2) {
    transition-delay: 0.05s;
}

.floating-container.active .float-item:nth-child(3) {
    transition-delay: 0s;
}

.btn-line {
    background: #00B900;
}

.btn-fb {
    background: #1877F2;
}

.btn-phone {
    background: #ff4757;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(189, 0, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(189, 0, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(189, 0, 255, 0);
    }
}

/* --- Mobile --- */
@media screen and (max-width: 768px) {
    .floating-container {
        right: 20px;
    }

    body.cookie-banner-active .floating-container {
        bottom: 180px;
    }
}