demo-character-chat-panel {
	display: flex;
	flex-direction: column;
	height: 100%; /* Make the custom element fill its parent's height */
}

.demo-character-chat-panel {
	flex: 1; /* Make the inner gameHolder div fill the custom element */
	display: flex;
	flex-direction: column;
	max-height: 100%;
}

.demo-character-chat-panel .chat-container {
	position: relative;
	display: flex;
	flex: 1; /* Make chat history take remaining space */
	flex-direction: column;
	overflow-y: auto; /* Allow scrolling for the chat history */
}
.demo-character-chat-panel .chat-box-holder{
	display: block;
	flex: 1;
	overflow: auto;
}
.demo-character-chat-panel .chat-box {
	height: 100%;
	overflow-y: auto;
	padding-left: 0.5rem;
}
.demo-character-chat-panel .prompt-fixed {
	padding: 0;
	display: block;
	flex: 0 0 auto;
	margin-top: 0.6rem;
	overflow: visible;
}
@media (min-width: 768px) {
	.demo-character-chat-panel .prompt-fixed {
		margin-top: 1rem;
	}
}
.demo-character-chat-panel .chat-textarea {
	resize: none;
	overflow: hidden;
	flex-grow: 1;
	height: auto;
}
.demo-character-chat-panel .chat-baloon{
	display: flex;
	gap: 1rem;
	flex-direction: row;
	max-width: 85%;
	white-space: normal;
}
.demo-character-chat-panel .chat-baloon p{
	margin-bottom: 0.5rem;
}
.demo-character-chat-panel .chat-baloon img{
	display: block;
	max-height: 120px;
	margin-top: 0.5rem;
	margin-left: 0.5rem;
}
@media (max-width: 768px) {
	.demo-character-chat-panel .chat-baloon img{
		display: none;
		max-height: 120px;
	}
}

.demo-character-chat-panel .game-interface-notification{
	display: flex;
	align-items: center;
	justify-content: center;
}

/*  colors  */
.demo-character-chat-panel .prompt-fixed {
	background: var(--demo-light-grey);
}
.demo-character-chat-panel .chat-box {
	--bs-border-color: var(--demo-medium-grey);
	background-color: var(--demo-white);
}
.demo-character-chat-panel .prompt-fixed {
	--bs-border-color: var(--demo-medium-grey);
	background-color: var(--demo-light-grey);
	padding: 0.5rem;
}
.demo-character-chat-panel .chat-textarea, .chat-textarea:focus {
	border-color: var(--demo-medium-grey);
	background-color: var(--demo-white);
	color: var(--demo-text-color);
}
.demo-character-chat-panel .chat-textarea:focus {
	border-color: var(--demo-medium-grey);
	box-shadow: 0 0 0 0.25rem rgba(100, 116, 139, 0.25) !important;
	background-color: var(--demo-white);
	color: var(--demo-text-color);
}
.demo-character-chat-panel .chat-textarea:disabled {
	border-color: var(--demo-medium-grey);
	background-color: var(--demo-light-grey);
	color: var(--demo-dark-grey);
}
.demo-character-chat-panel .chat-textarea::placeholder {
	color: var(--demo-dark-grey);
}

.demo-character-chat-panel .chat-baloon{
	background-color: var(--demo-light-grey);
	color: var(--demo-text-color);
	border: 1px solid var(--demo-medium-grey);
}
.demo-character-chat-panel .chat-baloon-user{
	background-color: var(--demo-medium-grey);
	color: var(--demo-text-color);
	border: 1px solid var(--demo-dark-grey);
}
.demo-character-chat-panel .chat-baloon b{
	color: var(--demo-darker-grey);
}