/* ==========================================
   QTech Compact Multi-Channel Floating Chat
   Compact UI only - functionality unchanged
========================================== */
.qtech-chat-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.4;
}

.qtech-chat-widget.pos-right { right: 20px; left: auto; }
.qtech-chat-widget.pos-left { left: 20px; right: auto; }

/* Compact round launcher */
.qtech-chat-trigger,
.qtech-chat-trigger:hover,
.qtech-chat-trigger:focus {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #2f7bd8, #1756a8) !important;
    color: #fff !important;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(23, 86, 168, 0.28) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    transition: transform .2s ease, box-shadow .2s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.qtech-chat-trigger:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 26px rgba(23, 86, 168, 0.34) !important;
}

.qtech-chat-trigger svg {
    display: block;
    width: 25px;
    height: 25px;
}

/* Compact popup */
.qtech-chat-box {
    position: absolute;
    bottom: 66px;
    width: 280px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.16);
    overflow: hidden;
    animation: qtechFadeInUp .22s cubic-bezier(.16, 1, .3, 1);
}

.qtech-chat-widget.pos-right .qtech-chat-box { right: 0; left: auto; }
.qtech-chat-widget.pos-left .qtech-chat-box { left: 0; right: auto; }

/* Smaller, cleaner header */
.qtech-chat-header {
    background: linear-gradient(135deg, #2f7bd8, #1756a8);
    color: #fff;
    padding: 15px;
    position: relative;
}

.qtech-chat-header h4 {
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}


/* Compact channel list */
.qtech-chat-channels {
    padding: 9px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qtech-channel-item,
.qtech-channel-item:hover,
.qtech-channel-item:focus {
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 8px 10px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    background: #f8fafc !important;
    border: 1px solid #e7ebf0 !important;
    box-shadow: none !important;
    transition: background .18s ease, border-color .18s ease, transform .18s ease !important;
}

.qtech-channel-item:hover {
    background: #f1f5f9 !important;
    border-color: #dce3eb !important;
    transform: translateX(2px) !important;
}

.qtech-channel-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
}

.qtech-channel-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.channel-wa .qtech-channel-icon { background: #25D366 !important; }
.channel-phone .qtech-channel-icon { background: #2f7bd8 !important; }
.channel-email .qtech-channel-icon { background: #e74b3c !important; }

.qtech-channel-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.qtech-channel-text strong {
    margin: 0 !important;
    padding: 0 !important;
    color: #243447 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

.qtech-channel-text span {
    display: block;
    margin-top: 2px !important;
    color: #718096 !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes qtechFadeInUp {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
    .qtech-chat-widget.pos-right { right: 14px; }
    .qtech-chat-widget.pos-left { left: 14px; }
    .qtech-chat-widget { bottom: 14px; }

    .qtech-chat-trigger,
    .qtech-chat-trigger:hover,
    .qtech-chat-trigger:focus {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        min-height: 52px !important;
    }

    .qtech-chat-box {
        bottom: 64px;
        width: 272px;
        max-width: calc(100vw - 28px);
    }
}
