#aposhin-ai-widget-root {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 999999;
	font-family: -apple-system, "Segoe UI", "Noto Sans Bengali", Arial, sans-serif;
}

.aai-bubble {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #1a5f3f;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0,0,0,0.25);
	font-size: 26px;
	border: none;
}

.aai-window {
	display: none;
	flex-direction: column;
	position: fixed;
	bottom: 90px;
	right: 20px;
	width: 340px;
	max-width: calc(100vw - 40px);
	height: 460px;
	max-height: 70vh;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 8px 30px rgba(0,0,0,0.3);
	overflow: hidden;
}

.aai-window.aai-open {
	display: flex;
}

.aai-header {
	background: #1a5f3f;
	color: #fff;
	padding: 12px 16px;
	font-weight: 600;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.aai-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
}

.aai-messages {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: #f7f7f5;
}

.aai-msg {
	max-width: 85%;
	padding: 8px 12px;
	border-radius: 12px;
	line-height: 1.4;
	font-size: 14px;
	white-space: pre-wrap;
}

.aai-msg.aai-user {
	align-self: flex-end;
	background: #1a5f3f;
	color: #fff;
	border-bottom-right-radius: 2px;
}

.aai-msg.aai-assistant {
	align-self: flex-start;
	background: #fff;
	border: 1px solid #e2e2e0;
	border-bottom-left-radius: 2px;
}

.aai-msg.aai-assistant a {
	color: #1a5f3f;
	text-decoration: underline;
	word-break: break-all;
}

.aai-msg.aai-error {
	align-self: center;
	background: #fde8e8;
	color: #a33;
	font-size: 13px;
}

.aai-typing {
	align-self: flex-start;
	font-size: 13px;
	color: #888;
	padding: 4px 12px;
}

.aai-input-row {
	display: flex;
	border-top: 1px solid #e2e2e0;
	padding: 8px;
	gap: 6px;
}

.aai-input-row input {
	flex: 1;
	border: 1px solid #ddd;
	border-radius: 20px;
	padding: 8px 14px;
	font-size: 14px;
	outline: none;
}

.aai-input-row button {
	background: #1a5f3f;
	color: #fff;
	border: none;
	border-radius: 20px;
	padding: 0 16px;
	cursor: pointer;
	font-size: 14px;
}

.aai-input-row button:disabled {
	opacity: 0.5;
	cursor: default;
}
