    .chat-container {
        width: 100vw;
        max-width: 420px;
        height: 520px;
        background-color: #ffffff;
        border-radius: 8px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border: none;
        flex: 1;
    }
    
    @media(max-width: 992px) {
        .chat-container {
            height: 400px;
            max-width: 100%;
        }
    }
    
    .chat-header {
        padding: 16px 20px;
        border-bottom: 1px solid #e0e0e0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-shrink: 0;
        width: 100%;
    }
    
    .chat-header h5 {
        font-size: 16px;
        font-weight: 600;
        margin: 0;
        color: #111;
    }

    .chat-messages {
        flex-grow: 1;
        padding: 20px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        background: #fafafa;
    }
    
    .chat-messages::-webkit-scrollbar {
        width: 6px;
    }
    .chat-messages::-webkit-scrollbar-track {
        background: transparent;
    }
    .chat-messages::-webkit-scrollbar-thumb {
        background-color: #f0f0f0;
        border-radius: 20px;
    }

    .message {
        display: flex;
        max-width: 90%;
    }
    
    /* Animated messages start hidden and slide in */
    .message.animate-in {
        opacity: 0;
        transform: translateY(20px);
        animation: slideIn 0.5s forwards;
    }
    
    /* Pre-rendered messages are immediately visible */
    .message.prerendered {
        opacity: 1;
        transform: none;
    }

    .message.user {
        align-self: flex-end;
    }

    .message.ai {
        align-self: flex-start;
    }
    
    .message.ai.product {
        width: 100%;
        max-width: 100%;
    }

    .message .bubble {
        padding: 12px 18px;
        border-radius: 8px;
        word-wrap: break-word;
        line-height: 1.5;
    }

    .message.user .bubble {
        background-color: #0060FF1C;
        color: #0060ff;
    }

    .message.ai .bubble {
        background-color: #ffffff;
        color: #374151;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    }
    
    .message.ai .bubble a {
        color: #2563eb;
        text-decoration: none;
        font-weight: 600;
    }
    
    .message.ai .bubble a:hover {
        text-decoration: underline;
    }

    .product-card {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .product-image {
        width: 60px;
        height: 60px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .product-details {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .product-title {
        font-weight: 600;
        font-size: 0.95rem;
        color: #111827;
    }

    .product-tag {
        background-color: #16a34a15;
        color: #16a34a;
        font-size: 0.75rem;
        font-weight: 500;
        padding: 2px 8px;
        border-radius: 20px;
        align-self: flex-start;
    }
    
    .product-description {
        font-size: 0.875rem;
        color: #4b5563;
    }

    .product-price {
        font-size: 14px;
        font-weight: 600;
        color: #111827;
        margin-top: 2px;
    }
    
    .product-stock {
        display: flex;
        align-items: center;
        gap: 3px;
        font-size: 0.875rem;
        font-weight: 500;
        color: #16a34a;
    }
    
    .chat-input-area {
        padding: 12px 20px;
        border-top: 1px solid #e5e7eb;
        background-color: #ffffff;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .chat-input-area input {
        width: 100%;
        border: none;
        padding: 12px;
        border-radius: 20px;
        background-color: #f3f4f6;
        font-size: 0.95rem;
        outline: none;
    }
    
    .chat-input-area input:focus {
        box-shadow: 0 0 0 2px #dbeafe;
    }
    
    .chat-input-area button {
        border: none;
        background-color: #1f2937;
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        flex-shrink: 0;
    }
    
    .chat-input-area button svg {
        width: 20px;
        height: 20px;
    }

    .demo-toggle-container {
        display: flex;
        justify-content: center;
        padding: 20px 0 0 0;
        gap: 12px;
    }
    
    .toggle-wrapper {
        background: #ffffff;
        border-radius: 100px;
        padding: 4px;
        display: inline-flex;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        position: relative;
    }
    
    .toggle-wrapper::before {
        content: '';
        position: absolute;
        background: linear-gradient(180deg, #DEEBFF 0%, #f2f7ff 100%);
        border-radius: 100px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        top: 4px;
        bottom: 4px;
        z-index: 1;
        pointer-events: none;
        left: var(--toggle-left, 4px);
        width: var(--toggle-width, 205px);
    }
    
    .toggle-option {
        padding: 10px 24px !important;
        border-radius: 100px;
        border: none;
        background: transparent;
        cursor: pointer;
        font-size: 16px !important;
        font-weight: 500;
        color: #6b7280;
        transition: color 0.3s ease;
        white-space: nowrap;
        position: relative;
        z-index: 2;
    }
    
    .toggle-option.active {
        color: #0060FF;
    }
    
    .toggle-option:hover:not(.active) {
        color: #374151;
    }

    @keyframes slideIn {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @media (max-width: 768px) {
        .toggle-option {
            padding: 8px 18px !important;
            font-size: 14px !important;
        }
    }
.k9m-cart-wrap {
    width: 100%;
}
.xr7-cart-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ai-chat-primary-color, #0073ee);
    background: var(--ai-chat-primary-color-light, rgba(0, 115, 238, 0.1));
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
    white-space: nowrap;
    width: auto;
    margin: 3px 0 5px 0;
}
.v3p-price-row {
    display: flex;
    align-items: center;
    gap: 5px;
}
.demo-title-wrap {display: flex; align-items: center; gap: 8px;}