
:root {
    --fab-size: 60px;
    --icon-size: 24px;
}

.fab-container {
    position: fixed;
    bottom: 140px;
    right: 20px;
    z-index: 9999;
}

/* ALL buttons same size */
.fab-main,
.fab-item {
    width: var(--fab-size);
    height: var(--fab-size);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Main button */
.fab-main {
    background: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    position: relative;
}

/* Icons inside buttons */
.fab-main i,
.fab-item i {
    font-size: var(--icon-size);
    line-height: 1;
}

/* Child buttons */
.fab-item {
    position: absolute;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(0);
    transition: transform 0.25s ease, opacity 0.25s ease;
    text-decoration: none;
    color: #fff;
}

/* Colors */
.call {
    background: #0056b3;
}

.whatsapp {
    background: #0d6efd;
}

/* Open state */
.fab-container.open .fab-item {
    opacity: 1;
    pointer-events: auto;
}

.fab-container.open .call {
    transform: translateY(-70px);
}

.fab-container.open .whatsapp {
    transform: translateY(-140px);
}

/* Icon swap (OPEN / CLOSE) */
.icon-close {
    position: absolute;
    opacity: 0;
}

.fab-container.open .icon-open {
    opacity: 0;
}

.fab-container.open .icon-close {
    opacity: 1;
}

/* Tap feedback */
.fab-main:active {
    transform: scale(0.95);
}

/* @media (min-width: 1024px) {
    .call {
        display: none;
    }
} */