/*AI chat*/

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	/* background: #fff; */
	color: #ccc;
	font-family: 'Inter', sans-serif;
	font-weight: 300;
	/* min-height: 100vh; */
	/* display: flex;*/
	align-items: center;
	justify-content: center;
	padding: 0px 0px;
}

.widget {
	width: 100%;
	max-width: 840px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	text-overflow: ellipsis;
}

.messages {
	min-height: 450px;
	max-height: 450px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 28px;
	scroll-behavior: smooth;
	padding: 20px;
	margin-bottom: 40px;
	
	border-style: dotted;
	border-right: none;
	border-top: none;
	border-bottom: none;
	border-width: thin;
	border-color: #222222;
}

.messages::-webkit-scrollbar {
	display: none;
}

.message {
	display: flex;
	flex-direction: column;
	gap: 5px;
	animation: fadeIn 0.2s ease forwards;
	opacity: 0;
	text-overflow: ellipsis;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.label {
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #ddd;
}

.bubble {
	font-size: 14px;
	line-height: 1.8;
	color: #ccc;
}

.message.user .bubble {
	color: #aaa;
}

.typing-indicator {
	display: flex;
	gap: 5px;
	align-items: center;
	padding: 3px 0;
}

.typing-indicator span {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #ccc;
	animation: bounce 1.2s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
	animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
	animation-delay: 0.4s;
}

@keyframes bounce {

	0%,
	80%,
	100% {
		transform: translateY(0);
		opacity: 0.3;
	}

	40% {
		transform: translateY(-4px);
		opacity: 1;
	}
}

.input-row {
	display: flex;
	align-items: center;
	border: 1px solid #e8e8e8;
	padding: 10px 14px;
	margin-bottom: 12px;
	transition: border-color 0.2s;
}

.input-row:focus-within {
	border-color: #bbb;
}

.input-row input {
	flex: 1;
	background: transparent;
	border: none;
	outline: none;
	font-family: 'Inter', sans-serif;
	font-weight: 300;
	font-size: 14px;
	color: #ccc;
}

.input-row input::placeholder {
	color: #ccc;
}

.send-btn {
	background: transparent;
	border: none;
	color: #ccc;
	cursor: pointer;
	font-family: 'Inter', sans-serif;
	font-weight: 300;
	font-size: 14px;
	padding: 0;
	margin-left: 12px;
	transition: color 0.15s;
}

.send-btn:hover:not(:disabled) {
	color: #fff;
}

.send-btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.footer {
	font-size: 10px;
	color: #e0e0e0;
	letter-spacing: 0.05em;
}