/* === Layout === */
.widget-container {
	width: 100%;
	max-width: 420px;
	height: 600px;
	display: flex;
	flex-direction: column;
	border-radius: 1rem;
	overflow: hidden;
	background-color: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}


.chatBox-scroll {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	padding-bottom: 6px;
	display: flex;
	flex-direction: column;
}

.chat-box {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.chat-msg {
	max-width: 80%;
	padding: 10px 14px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.4;
	word-break: break-word;
	margin-bottom: 6px;
}

.chat-msg.user {
	background-color: #e8faff;
	align-self: flex-end;
	border: 1px solid #bdefff;
	border-bottom-right-radius: 0;
}

.chat-msg.ai {
	background-color: #f0f2ff;
	align-self: flex-start;
	border: 1px solid #cdd9ff;
	border-bottom-left-radius: 0;
}

.chat-msg strong {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.chat-msg.ai p,
.chat-msg.ai ul,
.chat-msg.ai ol,
.chat-msg.ai li,
.chat-msg.ai div,
.chat-msg.ai pre {
	margin-top: 0.25rem;
	margin-bottom: 0.25rem;
}

.chat-msg.ai ul,
.chat-msg.ai ol {
	padding-left: 1.25rem;
}

/* === Suggestion Box === */
.suggestions-container {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 8px 12px;
	margin: 0;
	background-color: #fafafa;
	border-top: 1px solid #eee;
}

.suggestions-container button {
	background-color: #f3f7ff;
	color: #0056b3;
	border: 1px solid #c3d9ff;
	padding: 5px 10px;
	border-radius: 20px;
	font-size: 12px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.suggestions-container button:hover {
	background-color: #0056b3;
	color: white;
}

/* === Form/Input === */
.chatBox-main-bg {
	padding: 12px;
	border-top: 1px solid #eee;
	background-color: #f9f9f9;
}

#chatForm {
	display: flex;
	flex-direction: column;
}

.chatBox-form-control {
	width: 100%;
	resize: none;
	padding: 0.75rem 1rem;
	font-size: 14px;
	border-radius: 8px;
	border: 1px solid #ccc;
	outline: none;
	min-height: 50px;
	max-height: 120px;
}


.chat-btn-upload,
.chat-btn-send {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background-color: #fff;
	border: 1px solid #ccc;
	cursor: pointer;
	padding: 0;
}

.chat-btn-send {
	background-color: #4d6bfe;
	color: white;
	border: none;
}

#typingIndicator {
	font-size: 12px;
	margin: 4px 16px;
	color: #888;
}

.upload-form-control {
	display: none;
}