/* Illestech IA Widget */
#illestech-ia-launcher {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--illestech-ia-color, #0b5ed7);
	color: #fff;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease;
}
#illestech-ia-launcher:hover {
	transform: scale(1.06);
}
#illestech-ia-launcher svg {
	width: 28px;
	height: 28px;
	fill: #fff;
}

#illestech-ia-window {
	position: fixed;
	bottom: 92px;
	right: 20px;
	width: 360px;
	max-width: calc(100vw - 32px);
	height: 520px;
	max-height: calc(100vh - 140px);
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	display: none;
	flex-direction: column;
	overflow: hidden;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
#illestech-ia-window.illestech-ia-open {
	display: flex;
}

#illestech-ia-header {
	background: var(--illestech-ia-color, #0b5ed7);
	color: #fff;
	padding: 14px 16px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
}
#illestech-ia-close {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

#illestech-ia-messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	background: #f5f7fb;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.illestech-ia-msg {
	max-width: 85%;
	padding: 9px 12px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.4;
	white-space: pre-wrap;
	word-wrap: break-word;
}
.illestech-ia-msg.bot {
	background: #fff;
	border: 1px solid #e3e6ec;
	align-self: flex-start;
	color: #1a1a1a;
}
.illestech-ia-msg.user {
	background: var(--illestech-ia-color, #0b5ed7);
	color: #fff;
	align-self: flex-end;
}
.illestech-ia-msg.error {
	background: #fdecec;
	color: #a3241f;
	border: 1px solid #f3c2c0;
	align-self: flex-start;
}
.illestech-ia-msg.typing {
	background: #fff;
	border: 1px solid #e3e6ec;
	align-self: flex-start;
	color: #888;
	font-style: italic;
}

#illestech-ia-whatsapp {
	display: block;
	text-align: center;
	font-size: 13px;
	padding: 8px 10px;
	background: #e9f8ee;
	color: #128c3f;
	text-decoration: none;
	border-top: 1px solid #e3e6ec;
	flex-shrink: 0;
}
#illestech-ia-whatsapp:hover {
	text-decoration: underline;
}

#illestech-ia-form {
	display: flex;
	gap: 8px;
	padding: 10px;
	border-top: 1px solid #e3e6ec;
	flex-shrink: 0;
	background: #fff;
}
#illestech-ia-input {
	flex: 1;
	resize: none;
	border: 1px solid #d8dce3;
	border-radius: 20px;
	padding: 9px 14px;
	font-size: 14px;
	font-family: inherit;
	max-height: 80px;
}
#illestech-ia-input:focus {
	outline: none;
	border-color: var(--illestech-ia-color, #0b5ed7);
}
#illestech-ia-send {
	background: var(--illestech-ia-color, #0b5ed7);
	border: none;
	color: #fff;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
#illestech-ia-send:disabled {
	opacity: 0.5;
	cursor: default;
}
#illestech-ia-send svg {
	width: 18px;
	height: 18px;
	fill: #fff;
}

@media (max-width: 480px) {
	#illestech-ia-window {
		right: 16px;
		left: 16px;
		width: auto;
	}
}
