.eaa-root.eaa-root--left {
	right: auto;
	left: var(--eaa-x, 20px);
}

.eaa-root--left .eaa-panel {
	right: auto;
	left: 0;
	transform-origin: bottom left;
}

.eaa-root {
	position: fixed;
	right: var(--eaa-x, 20px);
	bottom: var(--eaa-y, 20px);
	z-index: 10050;
	--eaa-accent: #2563eb;
	--eaa-accent-hover: color-mix(in srgb, var(--eaa-accent) 78%, #000);
	--eaa-accent-soft: color-mix(in srgb, var(--eaa-accent) 12%, #fff);
	--eaa-accent-ring: color-mix(in srgb, var(--eaa-accent) 35%, transparent);
	--eaa-chip: var(--eaa-accent);
	--eaa-chip-hover: var(--eaa-accent-hover);
	--eaa-size: 60px;
	--eaa-panel: 380px;
	--eaa-panel-wide: 560px;
	width: var(--eaa-size);
	height: var(--eaa-size);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: #0f172a;
	text-align: left;
}

.eaa-root *,
.eaa-root *::before,
.eaa-root *::after {
	box-sizing: border-box;
}

.eaa-root button {
	font: inherit;
	appearance: none;
	-webkit-appearance: none;
}

.eaa-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.eaa-root .eaa-launcher {
	width: var(--eaa-size);
	height: var(--eaa-size);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	padding: 0;
	margin: 0;
	border-radius: 50%;
	overflow: hidden;
	background: var(--eaa-accent);
	color: #fff;
	box-shadow: 0 10px 28px color-mix(in srgb, var(--eaa-accent) 42%, transparent);
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.eaa-root .eaa-launcher:hover {
	transform: translateY(-2px) scale(1.04);
	box-shadow: 0 14px 32px color-mix(in srgb, var(--eaa-accent) 50%, transparent);
	background: var(--eaa-accent-hover);
	color: #fff;
}

.eaa-root .eaa-launcher:has(img) {
	background: #fff;
	border: 3px solid var(--eaa-accent);
	box-shadow: 0 2px 12px rgba(20, 40, 70, 0.18);
}

.eaa-root .eaa-launcher:has(img):hover {
	background: #fff;
	border-color: var(--eaa-accent-hover);
	box-shadow: 0 6px 18px color-mix(in srgb, var(--eaa-accent) 28%, transparent);
}

.eaa-root.is-open .eaa-launcher:has(img),
.eaa-root.is-open .eaa-launcher:has(img):hover {
	background: var(--eaa-accent);
	border-color: transparent;
}

.eaa-root .eaa-launcher:focus-visible {
	outline: 3px solid var(--eaa-accent-ring);
	outline-offset: 3px;
}

.eaa-launcher-icon {
	display: none;
	width: 26px;
	height: 26px;
	color: #fff;
}

.eaa-launcher-icon svg {
	display: block;
	width: 26px;
	height: 26px;
	fill: currentColor;
}

.eaa-launcher-icon--chat {
	display: block;
}

.eaa-launcher-icon--chat:has(img) {
	width: 100%;
	height: 100%;
}

.eaa-root.is-open .eaa-launcher-icon--chat {
	display: none;
}

.eaa-root.is-open .eaa-launcher-icon--close {
	display: block;
}

.eaa-launcher-icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 50%;
	padding: var(--eaa-img-pad, 4%);
	box-sizing: border-box;
}

.eaa-root .eaa-teaser {
	position: absolute;
	z-index: 2;
	right: calc(100% + 12px);
	bottom: 50%;
	width: min(var(--eaa-teaser-w, 220px), calc(100vw - 120px));
	max-width: min(var(--eaa-teaser-w, 220px), calc(100vw - 120px));
	margin: 0;
	padding: 12px 16px;
	border: 0;
	border-radius: 18px;
	background: #e7eef4;
	color: #2b3340;
	font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
	text-align: left;
	white-space: pre-line;
	box-shadow: 0 4px 16px rgba(20, 40, 70, 0.12);
	cursor: pointer;
	opacity: 0;
	transform: translateY(calc(50% + 6px));
	pointer-events: none;
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.eaa-root .eaa-teaser.is-on {
	opacity: 1;
	transform: translateY(50%);
	pointer-events: auto;
}

.eaa-root .eaa-teaser::before {
	content: "";
	position: absolute;
	top: 50%;
	right: -8px;
	width: 0;
	height: 0;
	border: 8px solid transparent;
	border-left-color: #e7eef4;
	border-right-width: 0;
	transform: translateY(-50%);
}

.eaa-root.eaa-root--left .eaa-teaser {
	right: auto;
	left: calc(100% + 12px);
}

.eaa-root.eaa-root--left .eaa-teaser::before {
	right: auto;
	left: -8px;
	border-left-width: 0;
	border-right-width: 8px;
	border-left-color: transparent;
	border-right-color: #e7eef4;
}

.eaa-root .eaa-tool,
.eaa-root .eaa-upload {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	padding: 0;
	border-radius: 8px;
	background: transparent;
	color: #fff;
	cursor: pointer;
	flex-shrink: 0;
}

.eaa-root .eaa-tool .fa-solid,
.eaa-root .eaa-upload .fa-solid {
	font-size: 14px;
	line-height: 1;
}

.eaa-header .eaa-tool:hover {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.eaa-header .eaa-tool:disabled,
.eaa-header .eaa-tool.is-wait,
.eaa-header .eaa-tool[aria-disabled="true"] {
	opacity: 0.38;
	cursor: not-allowed;
}

.eaa-header .eaa-tool:disabled:hover,
.eaa-header .eaa-tool.is-wait:hover,
.eaa-header .eaa-tool[aria-disabled="true"]:hover {
	background: transparent;
	color: #fff;
}

.eaa-root .eaa-form .eaa-upload {
	color: #475569;
	background: transparent;
	border: 0;
	width: 44px;
	height: 44px;
	border-radius: 12px;
}

.eaa-root .eaa-form .eaa-upload:hover {
	background: var(--eaa-accent-soft);
	color: var(--eaa-accent);
}

.eaa-upload input {
	display: none;
}

.eaa-root .eaa-assistant {
	display: block;
	margin-top: 4px;
	max-width: 180px;
	border: 0;
	border-radius: 6px;
	padding: 2px 6px;
	font-size: 0.75rem;
	color: #0f172a;
	background: #fff;
}

.eaa-panel {
	position: absolute;
	right: 0;
	bottom: calc(var(--eaa-size) + 16px);
	width: min(var(--eaa-panel), calc(100vw - var(--eaa-x, 20px) - 16px));
	height: min(560px, calc(100vh - var(--eaa-y, 20px) - var(--eaa-size) - 40px));
	max-height: min(560px, calc(100vh - var(--eaa-y, 20px) - var(--eaa-size) - 40px));
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transform-origin: bottom right;
	animation: eaa-pop 0.18s ease;
}

.eaa-panel.eaa-panel--wide {
	width: min(var(--eaa-panel-wide, 560px), calc(100vw - 32px));
}

.eaa-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 14px 14px 16px;
	background: var(--eaa-accent);
	color: #fff;
	flex-shrink: 0;
}

.eaa-header-avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	position: relative;
	color: #fff;
}

.eaa-header-avatar svg {
	width: 18px;
	height: 18px;
	display: block;
	fill: currentColor;
}

.eaa-header-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}

.eaa-header-avatar::after {
	content: "";
	position: absolute;
	right: 1px;
	bottom: 1px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #4ade80;
	border: 2px solid var(--eaa-accent);
}

.eaa-header-copy {
	min-width: 0;
	flex: 1;
}

.eaa-root .eaa-title {
	margin: 0;
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
	color: #fff;
}

.eaa-note {
	margin: 0;
	padding: 8px 14px;
	font-size: 0.78rem;
	line-height: 1.35;
	color: var(--eaa-accent-hover);
	background: var(--eaa-accent-soft);
	flex-shrink: 0;
}

.eaa-note[hidden] {
	display: none;
}

.eaa-status {
	margin: 2px 0 0;
	font-size: 0.75rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.86);
	line-height: 1.25;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.eaa-root .eaa-close {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	padding: 0;
	border-radius: 8px;
	background: transparent;
	color: #fff;
	cursor: pointer;
	flex-shrink: 0;
}

.eaa-root .eaa-close:hover {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

.eaa-root .eaa-close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.eaa-close svg {
	width: 18px;
	height: 18px;
	display: block;
}

.eaa-messages {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #f8fafc;
}

.eaa-bubble {
	max-width: 84%;
	padding: 10px 13px;
	border-radius: 16px;
	font-size: 0.9rem;
	line-height: 1.5;
	white-space: pre-wrap;
	word-break: break-word;
}

.eaa-bubble--user {
	align-self: flex-end;
	background: var(--eaa-accent);
	color: #fff;
	border-bottom-right-radius: 5px;
}

.eaa-bubble--assistant a {
	color: var(--eaa-accent);
}

.eaa-shot-wrap {
	display: block;
	margin-top: 8px;
	border-radius: 8px;
	overflow: hidden;
	background: #e8eef4;
	min-height: 96px;
	position: relative;
}

.eaa-shot-wrap.is-loading::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, #e8eef4 0%, #f5f8fb 45%, #e8eef4 90%);
	background-size: 200% 100%;
	animation: eaa-skel 1.1s ease-in-out infinite;
}

.eaa-shot-wrap.is-error {
	display: none;
}

.eaa-shot {
	display: block;
	width: 100%;
	max-height: 140px;
	object-fit: cover;
	margin-top: 0;
	border-radius: 8px;
	opacity: 0;
	transition: opacity 0.2s ease;
	position: relative;
	z-index: 1;
}

.eaa-shot-wrap.is-ready {
	min-height: 0;
	background: transparent;
}

.eaa-shot-wrap.is-ready .eaa-shot {
	opacity: 1;
}

.eaa-bubble--assistant {
	align-self: flex-start;
	background: #fff;
	color: #0f172a;
	border: 1px solid #e2e8f0;
	border-bottom-left-radius: 5px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.eaa-bubble--error {
	align-self: flex-start;
	background: #fff7ed;
	color: #9a3412;
	border: 1px solid #fed7aa;
}

.eaa-bubble--typing {
	min-width: 58px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.eaa-typing {
	display: flex;
	align-items: center;
	gap: 5px;
}

.eaa-typing span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #94a3b8;
	animation: eaa-dots 1s ease-in-out infinite;
}

.eaa-typing span:nth-child(2) {
	animation-delay: 0.15s;
}

.eaa-typing span:nth-child(3) {
	animation-delay: 0.3s;
}

.eaa-prompts[hidden] {
	display: none;
}

.eaa-prompts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px;
	background: #f8fafc;
	flex-shrink: 0;
	border-top: 1px solid #eef2f7;
}

.eaa-root .eaa-chip {
	border: 1px solid color-mix(in srgb, var(--eaa-chip) 40%, #fff);
	background: #fff;
	border-radius: 999px;
	padding: 7px 12px;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	color: var(--eaa-chip);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.eaa-root .eaa-chip:hover {
	border-color: var(--eaa-chip);
	background: var(--eaa-accent-soft);
	color: var(--eaa-chip-hover);
}

.eaa-form {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 12px;
	border-top: 1px solid #e2e8f0;
	background: #fff;
	flex-shrink: 0;
}

.eaa-consent + .eaa-form,
.eaa-contact + .eaa-form {
	border-top: 0;
	padding-top: 8px;
}

.eaa-root .eaa-input {
	flex: 1;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	padding: 10px 12px;
	resize: none !important;
	overflow: hidden;
	font: inherit;
	font-size: 0.92rem;
	line-height: 1.4;
	min-height: 44px;
	max-height: 140px;
	color: #0f172a;
	background: #fff;
	box-shadow: none;
}

.eaa-root .eaa-input:focus {
	outline: 0;
	border-color: var(--eaa-accent);
	box-shadow: 0 0 0 3px var(--eaa-accent-ring);
}

.eaa-root .eaa-send {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	padding: 0;
	border-radius: 50%;
	background: var(--eaa-accent);
	color: #fff;
	cursor: pointer;
	flex-shrink: 0;
	box-shadow: 0 6px 14px color-mix(in srgb, var(--eaa-accent) 35%, transparent);
	transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.eaa-root .eaa-send svg {
	width: 20px;
	height: 20px;
	display: block;
	fill: currentColor;
}

.eaa-root .eaa-send:hover {
	background: var(--eaa-accent-hover);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 8px 16px color-mix(in srgb, var(--eaa-accent) 42%, transparent);
}

.eaa-root .eaa-send:active {
	transform: translateY(0) scale(0.96);
}

.eaa-root .eaa-send:focus-visible {
	outline: 3px solid var(--eaa-accent-ring);
	outline-offset: 2px;
}

.eaa-root .eaa-send:disabled {
	opacity: 0.55;
	cursor: wait;
}

.eaa-disclaimer {
	margin: 0;
	padding: 0 12px 10px;
	font-size: 0.72rem;
	color: #64748b;
	background: #fff;
	flex-shrink: 0;
}

.eaa-actions {
	display: flex;
	gap: 6px;
	align-self: flex-start;
	margin-top: -2px;
}

.eaa-root .eaa-fb {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid #e2e8f0;
	background: #fff;
	border-radius: 8px;
	padding: 0;
	cursor: pointer;
	color: #475569;
}

.eaa-root .eaa-fb--text {
	width: auto;
	height: auto;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 600;
	padding: 4px 9px;
}

.eaa-root .eaa-fb:hover {
	border-color: var(--eaa-accent);
	color: var(--eaa-accent);
	background: var(--eaa-accent-soft);
}

.eaa-root .eaa-fb.is-done {
	border-color: var(--eaa-accent);
	color: var(--eaa-accent);
	background: var(--eaa-accent-soft);
}

.eaa-root .eaa-fb:disabled {
	opacity: 0.45;
	cursor: default;
}

.eaa-sources {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #e2e8f0;
	font-size: 0.78rem;
	line-height: 1.4;
}

.eaa-sources a {
	color: var(--eaa-accent);
}

@keyframes eaa-pop {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.96);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes eaa-dots {
	0%,
	80%,
	100% {
		opacity: 0.35;
		transform: translateY(0);
	}

	40% {
		opacity: 1;
		transform: translateY(-2px);
	}
}

@keyframes eaa-skel {
	0% {
		background-position: 100% 0;
	}

	100% {
		background-position: -100% 0;
	}
}

@media (max-width: 767px) {
	.eaa-root .eaa-teaser,
	.eaa-root.eaa-root--left .eaa-teaser {
		left: auto;
		right: 0;
		bottom: calc(100% + 18px);
		width: min(var(--eaa-teaser-w, 220px), calc(100vw - 24px));
		max-width: min(var(--eaa-teaser-w, 220px), calc(100vw - 24px));
		transform: translateY(6px);
	}

	.eaa-root .eaa-teaser.is-on,
	.eaa-root.eaa-root--left .eaa-teaser.is-on {
		transform: none;
	}

	.eaa-root.eaa-root--left .eaa-teaser {
		left: 0;
		right: auto;
	}

	.eaa-root .eaa-teaser::before,
	.eaa-root.eaa-root--left .eaa-teaser::before {
		top: auto;
		right: auto;
		bottom: -8px;
		left: 24px;
		border: 8px solid transparent;
		border-top-color: #e7eef4;
		border-bottom-width: 0;
		transform: none;
	}
}

.eaa-root.eaa-root--inline {
	position: relative;
	right: auto;
	left: auto;
	bottom: auto;
	width: 100%;
	height: auto;
	z-index: 1;
}

.eaa-root.eaa-root--inline .eaa-panel {
	position: relative;
	right: auto;
	bottom: auto;
	width: 100%;
	height: min(560px, 70vh);
	max-height: 70vh;
	box-shadow: none;
	animation: none;
}

.eaa-consent {
	display: flex;
	gap: 10px;
	align-items: center;
	margin: 0;
	padding: 12px 12px 2px;
	border-top: 1px solid #e2e8f0;
	background: #fff;
	font-size: 0.8rem;
	line-height: 1.35;
	color: #475569;
	cursor: pointer;
}

.eaa-consent:has(input:checked) {
	color: var(--eaa-accent-hover);
}

.eaa-consent input {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--eaa-accent);
	cursor: pointer;
}

.eaa-consent input:focus-visible {
	outline: 3px solid var(--eaa-accent-ring);
	outline-offset: 2px;
}

.eaa-consent.is-needed {
	color: #b45309;
	animation: eaa-nudge 0.4s ease;
}

.eaa-consent.is-needed input {
	outline: 2px solid #f59e0b;
	outline-offset: 2px;
	border-radius: 3px;
}

@keyframes eaa-nudge {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}

.eaa-contact {
	margin: 0;
	padding: 8px 12px 0;
	font-size: 0.82rem;
}

.eaa-contact a {
	color: var(--eaa-accent);
}

@media (prefers-reduced-motion: reduce) {
	.eaa-panel,
	.eaa-root .eaa-launcher,
	.eaa-root .eaa-send,
	.eaa-consent,
	.eaa-typing span {
		animation: none;
		transition: none;
	}
}

@media (max-width: 480px) {
	.eaa-panel {
		width: min(var(--eaa-panel), calc(100vw - var(--eaa-x, 20px) - 16px));
	}
}

.eaa-root.eaa-root--flat .eaa-launcher,
.eaa-root.eaa-root--flat .eaa-launcher:hover,
.eaa-root.eaa-root--flat .eaa-teaser,
.eaa-root.eaa-root--flat .eaa-panel,
.eaa-root.eaa-root--flat .eaa-send,
.eaa-root.eaa-root--flat .eaa-send:hover,
.eaa-root.eaa-root--flat .eaa-bubble,
.eaa-root.eaa-root--flat .eaa-chip {
	box-shadow: none;
}
