/* Quick Chat Widget v3.0 - Metrosoft IT */
.qcw-floating-wrapper {
    position: fixed;
    bottom: 20px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

.qcw-floating-wrapper *, 
.qcw-floating-wrapper *::before, 
.qcw-floating-wrapper *::after {
    box-sizing: border-box;
}

.qcw-pos-right {
    right: 20px;
}

.qcw-pos-left {
    left: 20px;
}

/* Card Styling */
.qcw-card {
    width: 215px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.qcw-card::-webkit-scrollbar {
    width: 4px;
}

.qcw-card::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.qcw-card:hover {
    transform: translateY(-5px);
}

.qcw-image-container {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #f1f5f9;
}

.qcw-agent-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qcw-badge-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
    padding: 16px 10px 8px 10px;
    color: #ffffff;
}

.qcw-agent-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.qcw-agent-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    opacity: 0.9;
    margin-top: 2px;
}

.qcw-status-dot {
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
}

.qcw-content {
    padding: 10px;
    background: #ffffff;
}

.qcw-message {
    font-size: 11px;
    color: #475569;
    margin: 0 0 8px 0;
    text-align: center;
    font-weight: 500;
    line-height: 1.35;
}

/* Button Channel Styling & Colors */
.qcw-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.qcw-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 8px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #ffffff !important;
    transition: all 0.2s ease;
}

.qcw-btn:hover {
    opacity: 0.92;
    transform: scale(1.01);
}

.qcw-btn-whatsapp  { background-color: #059669; }
.qcw-btn-call      { background-color: #16a34a; }
.qcw-btn-telegram  { background-color: #0088cc; }
.qcw-btn-messenger { background-color: #0084ff; }
.qcw-btn-discord   { background-color: #5865f2; }
.qcw-btn-imo       { background-color: #00a8e8; }
.qcw-btn-wechat    { background-color: #07c160; }
.qcw-btn-viber     { background-color: #7d51a0; }
.qcw-btn-custom    { background-color: #475569; }

.qcw-footer-branding {
    font-size: 8.5px;
    text-align: center;
    padding: 4px 0 5px 0;
    background: #f8fafc;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
}

.qcw-footer-branding a {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
}

/* Mobile Responsiveness */
@media screen and (max-width: 576px) {
    .qcw-floating-wrapper {
        bottom: 10px;
    }
    .qcw-pos-right { right: 10px; }
    .qcw-pos-left  { left: 10px; }
    .qcw-card {
        width: 145px;
        border-radius: 12px;
    }
    .qcw-image-container {
        height: 110px;
    }
    .qcw-btn {
        padding: 5px 4px;
        font-size: 8.5px;
        border-radius: 5px;
    }
    .qcw-btn svg {
        width: 12px;
        height: 12px;
    }
}