.chat-widget {
    position: fixed;
    z-index: 9995;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

.chat-widget--bottom-right { right: 20px; }
.chat-widget--bottom-left { left: 20px; align-items: flex-start; }

.chat-widget__panel {
    display: none;
    flex-direction: column;
    gap: 8px;
    pointer-events: auto;
    animation: cw-slide-up .2s ease;
    width: min(280px, calc(100vw - 32px));
}

.chat-widget.is-open .chat-widget__panel { display: flex; }

.chat-widget__channels-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 10px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, .18);
    border: 1px solid #e5e7eb;
}

.chat-widget__channel {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
    transition: transform .15s ease, box-shadow .15s ease;
}

.chat-widget__channel--icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 20px;
    flex-shrink: 0;
}

.chat-widget__channel:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}

.cw-channel-whatsapp { background: #25d366; }
.cw-channel-messenger { background: #0084ff; }
.cw-channel-call { background: #16a34a; }

.chat-widget__fab {
    pointer-events: auto;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--primary, #22c55e), var(--primary-d, #16a34a));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 22px rgba(34, 197, 94, .35);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .15s ease;
}

.chat-widget__fab:hover { transform: scale(1.04); }

.chat-widget__fab-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.chat-widget.is-open .chat-widget__fab-icon i.fa-comments::before { content: "\f00d"; }

@media (max-width: 767.98px) {
    .chat-widget--hide-mobile { display: none !important; }
    .chat-widget__fab-label { display: none; }
    .chat-widget__fab { padding: 12px; border-radius: 50%; }
    .chat-widget--bottom-right { right: 14px; }
    .chat-widget--bottom-left { left: 14px; }
    .chat-widget__panel { width: min(300px, calc(100vw - 28px)); }
    .chat-widget__channel--icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}

@media (min-width: 768px) {
    .chat-widget--hide-desktop { display: none !important; }
}

@keyframes cw-slide-up {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

body.page-checkout .chat-widget {
    display: none !important;
    pointer-events: none !important;
}
