/* Centelon shell around SmartAgile embed — toolbar, FAB, transitions */
.centelon-sa-assistant {
	--sa-shell-accent: #0058ba;
	--sa-shell-accent-contrast: #ffffff;
	--sa-shell-bg: #ffffff;
	--sa-shell-border: #e2e8f0;
	--sa-shell-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
	--sa-shell-radius: 16px;
	--sa-shell-z: 2147483000;
	--sa-shell-font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: var(--sa-shell-z);
	font-family: var(--sa-shell-font);
	pointer-events: none;
}

.centelon-sa-assistant > * {
	pointer-events: auto;
}

.centelon-sa-assistant[data-position="bottom-left"] {
	right: auto;
	left: 20px;
}

.centelon-sa-fab {
	width: 56px;
	height: 56px;
	border: none;
	border-radius: 999px;
	background: var(--sa-shell-accent);
	color: var(--sa-shell-accent-contrast);
	box-shadow: var(--sa-shell-shadow);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.centelon-sa-fab:hover {
	transform: scale(1.05);
	box-shadow: 0 20px 52px rgba(0, 88, 186, 0.28);
}

.centelon-sa-fab:focus-visible {
	outline: 3px solid var(--sa-shell-accent);
	outline-offset: 3px;
}

.centelon-sa-fab svg {
	width: 26px;
	height: 26px;
}

.centelon-sa-panel-wrap {
	width: 380px;
	max-width: calc(100vw - 32px);
	background: var(--sa-shell-bg);
	border: 1px solid var(--sa-shell-border);
	border-radius: var(--sa-shell-radius);
	box-shadow: var(--sa-shell-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	animation: centelon-sa-slide-up 0.22s ease;
}

.centelon-sa-assistant[data-state="minimized"] .centelon-sa-panel-wrap {
	display: none;
}

.centelon-sa-assistant[data-state="open"] .centelon-sa-fab {
	display: none;
}

@keyframes centelon-sa-slide-up {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.centelon-sa-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 12px;
	background: var(--sa-shell-accent);
	color: var(--sa-shell-accent-contrast);
}

.centelon-sa-toolbar-main {
	min-width: 0;
	flex: 1;
}

.centelon-sa-toolbar-title {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.centelon-sa-toolbar-subtitle {
	font-size: 11px;
	opacity: 0.88;
	line-height: 1.3;
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.centelon-sa-toolbar-actions {
	display: flex;
	align-items: center;
	gap: 2px;
	flex-shrink: 0;
}

.centelon-sa-tool {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease;
}

.centelon-sa-tool:hover {
	background: rgba(255, 255, 255, 0.18);
}

.centelon-sa-tool:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 1px;
}

.centelon-sa-tool svg {
	width: 18px;
	height: 18px;
}

.centelon-sa-tool-label {
	font-size: 11px;
	font-weight: 600;
	padding: 0 8px 0 4px;
	white-space: nowrap;
}

.centelon-sa-tool--link {
	width: auto;
	min-width: 32px;
	padding: 0 6px;
}

.centelon-sa-chat-mount {
	height: 520px;
	max-height: calc(100vh - 120px);
	overflow: hidden;
	background: #f8fafc;
}

.centelon-sa-chat-mount [data-smartagile-chat] {
	height: 100%;
}

.centelon-sa-chat-mount .sa-root.sa-inline {
	height: 100%;
}

.centelon-sa-chat-mount .sa-root.sa-inline .sa-panel {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

@media (max-width: 480px) {
	.centelon-sa-assistant {
		bottom: 12px;
		right: 12px;
		left: 12px;
	}

	.centelon-sa-assistant[data-position="bottom-left"] {
		left: 12px;
		right: 12px;
	}

	.centelon-sa-panel-wrap {
		width: 100%;
		max-width: none;
	}

	.centelon-sa-tool-label {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.centelon-sa-panel-wrap {
		animation: none;
	}

	.centelon-sa-fab {
		transition: none;
	}
}
