/* Ask mAI — public website assistant bubble. Self-contained; no external fonts. */

#askmai-root {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 9500;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 14px;
}

#askmai-bubble {
	display: flex;
	align-items: center;
	gap: 8px;
	border: none;
	border-radius: 999px;
	padding: 10px 18px;
	background: #0a1628;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	float: right;
}
#askmai-bubble:hover { background: #16294a; }
#askmai-bubble-icon { color: #ffc845; font-size: 17px; }

#askmai-panel {
	position: fixed;
	right: 18px;
	bottom: 74px;
	width: min(360px, calc(100vw - 36px));
	height: min(480px, calc(100vh - 110px));
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #c9c9c9;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
	overflow: hidden;
}
#askmai-panel[hidden] { display: none; }

#askmai-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 14px;
	background: #0a1628;
	color: #fff;
	font-weight: 600;
}
#askmai-close {
	border: none;
	background: none;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 0 2px;
}

#askmai-msgs {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
	background: #f5f5f7;
}
.askmai-msg {
	max-width: 85%;
	margin-bottom: 8px;
	padding: 8px 12px;
	border-radius: 12px;
	line-height: 1.45;
	white-space: pre-wrap;
	word-wrap: break-word;
}
.askmai-user {
	margin-left: auto;
	background: #0a1628;
	color: #fff;
	border-bottom-right-radius: 4px;
}
.askmai-assistant {
	margin-right: auto;
	background: #fff;
	color: #1a202c;
	border: 1px solid #ddd;
	border-bottom-left-radius: 4px;
}
.askmai-wait { opacity: 0.55; }

#askmai-form {
	display: flex;
	border-top: 1px solid #ddd;
	background: #fff;
}
#askmai-input {
	flex: 1;
	border: none;
	padding: 12px;
	font-size: 14px;
	outline: none;
	background: #fff;
	color: #1a202c;
}
#askmai-send {
	border: none;
	background: none;
	color: #0a1628;
	font-size: 18px;
	padding: 0 14px;
	cursor: pointer;
}
#askmai-send:disabled { opacity: 0.4; cursor: default; }

#askmai-foot {
	padding: 6px 12px 8px;
	font-size: 11px;
	color: #667;
	background: #fff;
	border-top: 1px solid #eee;
}
#askmai-foot a { color: #0a1628; }

@media (max-width: 480px) {
	#askmai-bubble-label { display: none; }
	#askmai-bubble { padding: 12px 14px; }
}

@media print {
	#askmai-root { display: none; }
}
