.lc-chat-container {
    position: fixed;
    right: 24px;
    bottom: var(--lc-bottom-mobile, 24px);
    display: flex;
    flex-direction: column; /* Stack vertically: channels top, trigger bottom */
    align-items: flex-end;
    gap: 16px;
    z-index: 999999;
}

.lc-chat-channels {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lc-chat-channels.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lc-channel {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    text-decoration: none !important;
    position: relative !important;
    background-clip: padding-box !important;
    overflow: hidden !important;
}

.lc-channel:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.lc-channel::after {
    content: attr(title);
    position: absolute;
    right: 60px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.lc-channel:hover::after {
    opacity: 1;
    visibility: visible;
    right: 56px;
}

.lc-channel svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.lc-chat-trigger {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: #0071e3 !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    padding: 0 !important;
    position: relative !important;
    overflow: visible !important;
    background-clip: padding-box !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.lc-chat-trigger:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}

.lc-chat-trigger.is-active {
    background: #0071e3 !important; /* Keep the same brand color */
}

/* Pulse Animation */
.lc-chat-trigger.has-pulse::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    z-index: -1;
    animation: lc-pulse 2s infinite;
}

@keyframes lc-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.lc-chat-trigger svg {
    width: 30px;
    height: 30px;
    fill: #fff !important;
    transition: all 0.3s ease;
    position: absolute;
}

.lc-chat-trigger .icon-close {
    opacity: 0;
    transform: scale(0) rotate(-45deg);
}

.lc-chat-trigger.is-active .icon-chat {
    transform: scale(0) rotate(-90deg);
    opacity: 0;
}

.lc-chat-trigger.is-active .icon-close {
    transform: scale(1) rotate(0deg);
    opacity: 1;
}

.whatsapp { background: #25D366 !important; }
.messenger { background: #0084FF !important; }
.phone { background: #34A853 !important; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .lc-chat-container {
        right: 16px;
        bottom: var(--lc-bottom-mobile, 16px);
        gap: 12px;
    }
    .lc-chat-trigger {
        width: 54px;
        height: 54px;
    }
    .lc-chat-trigger svg {
        width: 26px;
        height: 26px;
    }
    .lc-channel {
        width: 44px;
        height: 44px;
    }
    .lc-channel::after {
        display: none;
    }
}

@supports (padding: env(safe-area-inset-bottom)) {
    .lc-chat-container {
        bottom: calc(var(--lc-bottom-mobile, 24px) + env(safe-area-inset-bottom));
        right: calc(24px + env(safe-area-inset-right));
    }
}
