/* Every rule is rooted in Aspired's own widget namespace. */
#aspich-chatbot-root .aspich-widget {
		font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
		gap: 10px;
}

#aspich-chatbot-root .aspich-panel {
		width: min(var(--ace-chat-width, 360px), calc(100vw - 24px));
		height: min(var(--ace-chat-height, 520px), calc(100vh - 88px));
		height: min(var(--ace-chat-height, 520px), calc(100dvh - 88px));
		min-height: 360px;
		border: 1px solid rgba(15, 23, 42, 0.1);
		border-radius: var(--ace-radius, 16px);
		box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
		animation: ace-panel-in 180ms ease-out;
}

#aspich-chatbot-root .aspich-header {
		height: var(--ace-header-height, 52px);
		box-sizing: border-box;
		display: flex;
		align-items: center;
		padding: 0 14px;
		font-size: 14px;
		letter-spacing: -0.01em;
}

#aspich-chatbot-root .aspich-messages {
		padding: 12px;
		background: #f7f9fc;
		font-size: var(--ace-font-size, 14px);
	}

#aspich-chatbot-root .aspich-message {
		max-width: 86%;
		margin-bottom: var(--ace-message-spacing, 8px);
		padding: 8px 11px;
		border-radius: 12px;
		line-height: 1.45;
	}

#aspich-chatbot-root .aspich-bot { border-bottom-left-radius: 5px; }
#aspich-chatbot-root .aspich-user { border-bottom-right-radius: 5px; }
#aspich-chatbot-root .aspich-chips { padding: 8px 12px 0; gap: 6px; }
#aspich-chatbot-root .aspich-chip { padding: 5px 9px; font-size: 12px; }
#aspich-chatbot-root .aspich-input-wrap { gap: 6px; padding: 9px 10px; background: #fff; }
#aspich-chatbot-root .aspich-input { min-width: 0; height: 40px; box-sizing: border-box; padding: 8px 10px; font-size: var(--ace-font-size, 14px); border-radius: 10px; }
#aspich-chatbot-root .aspich-chips[hidden] { display: none; }
#aspich-chatbot-root .aspich-send { min-width: 58px; height: 40px; padding: 8px 11px; border-radius: 10px; font-size: 13px; font-weight: 600; }
#aspich-chatbot-root .aspich-footer { padding: 6px 10px 9px; font-size: 11px; }
#aspich-chatbot-root .aspich-launcher { width: var(--ace-launcher-size, 52px); height: var(--ace-launcher-size, 52px); padding: 0; border-radius: 50%; box-shadow: 0 8px 22px rgba(15, 23, 42, 0.2); transition: transform 180ms ease, box-shadow 180ms ease; }
#aspich-chatbot-root .aspich-launcher:hover { transform: translateY(-2px); box-shadow: 0 11px 26px rgba(15, 23, 42, 0.25); }
#aspich-chatbot-root .aspich-launcher:focus-visible,
#aspich-chatbot-root .aspich-send:focus-visible,
#aspich-chatbot-root .aspich-chip:focus-visible,
#aspich-chatbot-root .aspich-input:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.35); outline-offset: 2px; }
#aspich-chatbot-root .aspich-enhancer-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
#aspich-chatbot-root .aspich-enhancer-turnstile { position: fixed !important; left: -1000px !important; top: -1000px !important; width: 1px !important; height: 1px !important; opacity: 0.01 !important; pointer-events: none !important; }

@keyframes ace-panel-in { from { opacity: 0; transform: translateY(8px) scale(0.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 480px) {
	#aspich-chatbot-root .aspich-widget { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
	#aspich-chatbot-root .aspich-panel { width: calc(100vw - 24px); height: min(var(--ace-chat-height, 520px), calc(100vh - 76px)); height: min(var(--ace-chat-height, 520px), calc(100dvh - 76px)); }
}
@media (prefers-reduced-motion: reduce) {
	#aspich-chatbot-root .aspich-panel, #aspich-chatbot-root .aspich-launcher { animation: none; transition: none; }
}
