/* Customer Service Floating Widget */
#customer-service-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: inherit;
}

.cs-float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--bs-primary, #378ADD);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 0;
}

.cs-float-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.cs-btn-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.cs-panel {
    position: absolute;
    bottom: 68px;
    right: 0;
    width: 320px;
    max-height: 480px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: csSlideUp 0.25s ease-out;
}

@keyframes csSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cs-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bs-primary, #378ADD);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.cs-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    padding: 0 4px;
}

.cs-close-btn:hover {
    opacity: 1;
}

.cs-panel-body {
    padding: 18px;
    overflow-y: auto;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cs-info-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.cs-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    min-width: 48px;
}

.cs-value {
    font-size: 13px;
    color: #1f2937;
    word-break: break-all;
}

.cs-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 2px 0;
}

.cs-section-title {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

.cs-social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.cs-social-item {
    text-align: center;
    flex: 0 0 auto;
}

.cs-qr-wrapper {
    width: 64px;
    height: 64px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 6px;
}

.cs-qr-img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.cs-social-name {
    font-size: 11px;
    color: #6b7280;
    display: block;
}

.cs-ai-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #1f2937;
    width: 100%;
    text-align: left;
}

.cs-ai-btn:hover {
    background: #e5e7eb;
}

.cs-online-badge {
    font-size: 11px;
    color: #059669;
    margin-left: auto;
}

@media (max-width: 400px) {
    .cs-panel {
        width: 280px;
        right: -8px;
    }
}
