.innox-agent,
.innox-agent * {
	box-sizing: border-box;
}

.innox-agent {
	--innox-agent-surface: #ffffff;
	--innox-agent-text: #111827;
	--innox-agent-muted: #667085;
	--innox-agent-line: #e5e7eb;
	--innox-agent-soft: #f5f7fb;
	color: var(--innox-agent-text);
	font-family: Tahoma, Arial, sans-serif;
	line-height: 1.6;
	text-align: right;
	z-index: 2147483000;
	-webkit-font-smoothing: antialiased;
}

.innox-agent--floating {
	--innox-chat-button-size: 58px;
	--innox-chat-side-offset: var(--innox-agent-desktop-side, 20px);
	--innox-chat-bottom-offset: var(--innox-agent-desktop-bottom, 20px);
	display: flex;
	flex-direction: column;
	position: fixed;
	bottom: var(--innox-chat-bottom-offset);
	width: var(--innox-chat-button-size);
}

.innox-chat-widget--right {
	align-items: flex-end;
}

.innox-chat-widget--left {
	align-items: flex-start;
}

.innox-chat--desktop-right,
.innox-agent--bottom-right {
	right: var(--innox-chat-side-offset);
	left: auto;
}

.innox-chat--desktop-left,
.innox-agent--bottom-left {
	left: var(--innox-chat-side-offset);
	right: auto;
}

.innox-agent__attention {
	align-items: center;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 14px 34px rgba(17, 24, 39, 0.18), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
	color: var(--innox-agent-text);
	direction: rtl;
	display: flex;
	gap: 8px;
	width: max-content;
	max-width: min(340px, calc(100vw - (var(--innox-chat-side-offset, 20px) * 2) - 8px));
	padding: 10px 12px;
	position: absolute;
	bottom: calc(var(--innox-chat-button-size, 58px) + 10px);
	overflow-wrap: anywhere;
	text-wrap: pretty;
	text-align: right;
	transform: translateY(0);
	transition: opacity 180ms ease, transform 180ms ease;
}

.innox-agent__attention span {
	flex: 1 1 auto;
	min-width: 0;
}

.innox-agent__attention::after {
	background: #fff;
	block-size: 12px;
	content: "";
	inline-size: 12px;
	position: absolute;
	inset-block-end: -5px;
	transform: rotate(45deg);
}

.innox-chat--desktop-right .innox-agent__attention,
.innox-chat-attention--right .innox-agent__attention {
	align-self: flex-end;
	right: 0;
	left: auto;
	transform-origin: right bottom;
}

.innox-chat--desktop-right .innox-agent__attention::after,
.innox-chat-attention--right .innox-agent__attention::after {
	right: 22px;
	left: auto;
}

.innox-chat--desktop-left .innox-agent__attention,
.innox-chat-attention--left .innox-agent__attention {
	align-self: flex-start;
	left: 0;
	right: auto;
	transform-origin: left bottom;
}

.innox-chat--desktop-left .innox-agent__attention::after,
.innox-chat-attention--left .innox-agent__attention::after {
	left: 22px;
	right: auto;
}

.innox-agent__attention.is-hidden {
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
}

.innox-agent__attention-close {
	align-items: center;
	background: #f3f4f6;
	border: 0;
	border-radius: 999px;
	color: var(--innox-agent-muted);
	cursor: pointer;
	display: flex;
	flex: 0 0 auto;
	font-size: 17px;
	height: 28px;
	justify-content: center;
	line-height: 1;
	margin-inline-start: 2px;
	padding: 0;
	position: relative;
	width: 28px;
	z-index: 1;
}

.innox-agent__bubble {
	align-items: center;
	background: var(--innox-agent-primary);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 16px 36px rgba(17, 24, 39, 0.22);
	color: #fff;
	cursor: pointer;
	display: flex;
	font-size: 25px;
	height: var(--innox-chat-button-size, 58px);
	justify-content: center;
	padding: 0;
	transition: transform 180ms ease, box-shadow 180ms ease;
	width: var(--innox-chat-button-size, 58px);
}

.innox-chat-widget--right .innox-agent__bubble {
	align-self: flex-end;
}

.innox-chat-widget--left .innox-agent__bubble {
	align-self: flex-start;
}

.innox-agent__bubble:active,
.innox-agent__attention-close:active,
.innox-agent__composer button:active,
.innox-agent__cta a:active {
	transform: scale(0.96);
}

.innox-agent__bubble:hover,
.innox-agent__bubble:focus {
	box-shadow: 0 18px 42px rgba(17, 24, 39, 0.28);
	outline: 2px solid rgba(22, 163, 74, 0.28);
	outline-offset: 3px;
	transform: translateY(-2px);
}

.innox-agent__panel {
	background: var(--innox-agent-surface);
	border: 1px solid rgba(17, 24, 39, 0.08);
	border-radius: 8px;
	box-shadow: 0 22px 60px rgba(17, 24, 39, 0.22);
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto auto auto auto;
	width: min(var(--innox-agent-chat-width, 380px), calc(100vw - 24px));
	max-height: min(var(--innox-agent-chat-max-height-desktop, 680px), calc(100vh - 96px));
	overflow: hidden;
	position: absolute;
	bottom: 74px;
	opacity: 0;
	pointer-events: none;
	transform: translateY(10px);
	transition: opacity 180ms ease, transform 180ms ease;
}

.innox-agent--bottom-right .innox-agent__panel {
	right: 0;
	left: auto;
}

.innox-chat-panel--right .innox-agent__panel {
	right: 0;
	left: auto;
	transform-origin: right bottom;
}

.innox-agent--bottom-left .innox-agent__panel {
	left: 0;
	right: auto;
}

.innox-chat-panel--left .innox-agent__panel {
	left: 0;
	right: auto;
	transform-origin: left bottom;
}

.innox-agent.is-open .innox-agent__panel,
.innox-agent--inline .innox-agent__panel {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.innox-agent--inline {
	position: relative;
	z-index: 1;
}

.innox-agent--inline .innox-agent__panel {
	inline-size: 100%;
	max-block-size: 720px;
	position: relative;
	inset: auto;
}

.innox-agent__header {
	align-items: center;
	background: var(--innox-agent-primary);
	color: #fff;
	display: grid;
	gap: 10px;
	grid-template-columns: 42px 1fr 34px;
	min-block-size: 68px;
	padding: 12px;
}

.innox-agent__avatar {
	align-items: center;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	display: flex;
	font-weight: 700;
	height: 42px;
	justify-content: center;
	width: 42px;
}

.innox-agent__header strong,
.innox-agent__header span {
	display: block;
}

.innox-agent__header strong {
	font-size: 15px;
	font-weight: 700;
}

.innox-agent__header span {
	color: rgba(255, 255, 255, 0.78);
	font-size: 12px;
}

.innox-agent__close {
	background: rgba(255, 255, 255, 0.12);
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font-size: 24px;
	height: 34px;
	line-height: 1;
	padding: 0;
	width: 34px;
}

.innox-agent__messages {
	background: var(--innox-agent-soft);
	block-size: 100%;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-block-size: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 14px;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}

.innox-agent__message {
	display: flex;
	inline-size: 100%;
}

.innox-agent__message--assistant {
	justify-content: flex-start;
}

.innox-agent__message--user {
	justify-content: flex-end;
}

.innox-agent__message-bubble {
	border: 1px solid var(--innox-agent-line);
	border-radius: 8px;
	font-size: 14px;
	max-inline-size: 86%;
	overflow-wrap: anywhere;
	padding: 10px 12px;
	white-space: pre-line;
}

.innox-agent__message--assistant .innox-agent__message-bubble {
	background: #fff;
}

.innox-agent__message--user .innox-agent__message-bubble {
	background: var(--innox-agent-primary);
	border-color: var(--innox-agent-primary);
	color: #fff;
}

.innox-agent__suggestions {
	align-self: stretch;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-block: 4px 10px;
	max-inline-size: 100%;
}

.innox-agent__suggestions-title {
	color: var(--innox-agent-muted);
	flex: 0 0 100%;
	font-size: 12px;
	font-weight: 700;
}

.innox-agent__suggestions button {
	background: #fff;
	border: 1px solid var(--innox-agent-line);
	border-radius: 8px;
	color: var(--innox-agent-text);
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	line-height: 1.5;
	max-width: 100%;
	padding: 9px 11px;
	text-align: right;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.innox-agent__suggestions button:hover,
.innox-agent__suggestions button:focus {
	border-color: var(--innox-agent-secondary);
	box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
	outline: 0;
}

.innox-agent__suggestions button:active {
	transform: scale(0.98);
}

.innox-agent__suggestions--full button {
	flex: 0 0 100%;
	width: 100%;
}

.innox-agent__starter {
	align-self: stretch;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	margin-block: 0 12px;
	max-inline-size: 100%;
}

.innox-agent__starter button {
	background: #fff;
	border: 1px solid var(--innox-agent-line);
	border-radius: 999px;
	color: var(--innox-agent-text);
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	line-height: 1.4;
	max-width: 100%;
	padding: 8px 12px;
	text-align: right;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.innox-agent__starter button:hover,
.innox-agent__starter button:focus {
	border-color: var(--innox-agent-secondary);
	box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
	outline: 0;
}

.innox-agent__starter button:active {
	transform: scale(0.98);
}

.innox-agent__typing .innox-agent__message-bubble {
	align-items: center;
	display: flex;
	gap: 4px;
	min-block-size: 38px;
}

.innox-agent__typing span {
	animation: innox-agent-dot 900ms infinite ease-in-out;
	background: var(--innox-agent-muted);
	border-radius: 999px;
	display: inline-block;
	height: 6px;
	width: 6px;
}

.innox-agent__typing span:nth-child(2) {
	animation-delay: 120ms;
}

.innox-agent__typing span:nth-child(3) {
	animation-delay: 240ms;
}

.innox-agent__quick {
	background: #fff;
	border-block-start: 1px solid var(--innox-agent-line);
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 10px 12px;
}

.innox-agent__quick button {
	background: #fff;
	border: 1px solid var(--innox-agent-line);
	border-radius: 999px;
	color: var(--innox-agent-text);
	cursor: pointer;
	flex: 0 0 auto;
	font-size: 12px;
	padding: 7px 10px;
	white-space: nowrap;
}

.innox-agent__quick button:hover,
.innox-agent__quick button:focus {
	border-color: var(--innox-agent-secondary);
	outline: 0;
}

.innox-agent__lead {
	background: #fff;
	border: 1px solid var(--innox-agent-line);
	border-radius: 8px;
	box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
	flex: 0 0 auto;
	margin-block: 2px;
	max-block-size: none;
	overflow: visible;
	padding: 12px;
}

.innox-agent__lead[hidden] {
	display: none;
}

.innox-agent__lead-grid {
	display: grid;
	gap: 8px;
	grid-template-columns: 1fr 1fr;
}

.innox-agent__lead input,
.innox-agent__composer input {
	background: #fff;
	border: 1px solid var(--innox-agent-line);
	border-radius: 8px;
	color: var(--innox-agent-text);
	font: inherit;
	min-block-size: 42px;
	min-width: 0;
	padding: 9px 11px;
	width: 100%;
}

.innox-agent__lead input:focus,
.innox-agent__composer input:focus {
	border-color: var(--innox-agent-secondary);
	box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
	outline: 0;
}

.innox-agent__lead-actions {
	display: grid;
	gap: 8px;
	grid-template-columns: 1fr 1fr;
	margin-block-start: 8px;
}

.innox-agent__lead button {
	background: var(--innox-agent-secondary);
	border: 0;
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	min-block-size: 42px;
	width: 100%;
}

.innox-agent__lead .innox-agent__lead-dismiss {
	background: #eef2f7;
	color: var(--innox-agent-text);
}

.innox-agent__cta {
	background: #fff;
	border-block-start: 1px solid var(--innox-agent-line);
	display: grid;
	gap: 8px;
	grid-template-columns: 1fr auto;
	padding: 10px 12px;
}

.innox-agent__cta a {
	align-items: center;
	border-radius: 8px;
	display: inline-flex;
	font-size: 14px;
	font-weight: 700;
	justify-content: center;
	min-block-size: 42px;
	padding: 9px 12px;
	text-decoration: none;
}

.innox-agent__cta-whatsapp {
	background: var(--innox-agent-secondary);
	color: #fff;
}

.innox-agent__cta-call {
	background: #eef2f7;
	color: var(--innox-agent-text);
}

.innox-agent__composer {
	align-items: center;
	background: #fff;
	border-block-start: 1px solid var(--innox-agent-line);
	display: grid;
	gap: 8px;
	grid-template-columns: minmax(0, 1fr) 52px;
	padding: 12px;
}

.innox-agent__composer button {
	background: var(--innox-agent-primary);
	border: 0;
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	font-size: 18px;
	height: 42px;
	line-height: 1;
	padding: 0;
	width: 52px;
}

.innox-agent__disclaimer {
	background: #fff;
	border-block-start: 1px solid #f3f4f6;
	color: #9ca3af;
	direction: rtl;
	font-size: 11px;
	line-height: 1.5;
	padding: 7px 12px 10px;
	text-align: center;
}

@keyframes innox-agent-dot {
	0%,
	80%,
	100% {
		opacity: 0.35;
		transform: translateY(0);
	}
	40% {
		opacity: 1;
		transform: translateY(-3px);
	}
}

@media (max-width: 782px), (hover: none) and (pointer: coarse) {
	.innox-agent--floating {
		--innox-chat-mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
		--innox-chat-bottom-offset: calc(var(--innox-agent-mobile-bottom, 16px) + var(--innox-chat-mobile-safe-bottom));
		bottom: var(--innox-chat-bottom-offset);
	}

	.innox-chat--mobile-right {
		align-items: flex-end;
		right: calc(var(--innox-agent-mobile-side, 12px) + env(safe-area-inset-right, 0px));
		left: auto;
		--innox-chat-side-offset: calc(var(--innox-agent-mobile-side, 12px) + env(safe-area-inset-right, 0px));
	}

	.innox-chat--mobile-left {
		align-items: flex-start;
		left: calc(var(--innox-agent-mobile-side, 12px) + env(safe-area-inset-left, 0px));
		right: auto;
		--innox-chat-side-offset: calc(var(--innox-agent-mobile-side, 12px) + env(safe-area-inset-left, 0px));
	}

	.innox-agent__bubble {
		margin-left: 0;
		margin-right: 0;
	}

	.innox-chat--mobile-right .innox-agent__bubble {
		align-self: flex-end;
	}

	.innox-chat--mobile-left .innox-agent__bubble {
		align-self: flex-start;
	}

	.innox-chat--mobile-right .innox-agent__attention {
		align-self: flex-end;
		right: 0;
		left: auto;
		max-width: min(320px, calc(100vw - (var(--innox-chat-side-offset, 12px) * 2) - 8px));
	}

	.innox-chat--mobile-right .innox-agent__attention::after {
		right: 22px;
		left: auto;
	}

	.innox-chat--mobile-left .innox-agent__attention {
		align-self: flex-start;
		left: 0;
		right: auto;
		max-width: min(320px, calc(100vw - (var(--innox-chat-side-offset, 12px) * 2) - 8px));
	}

	.innox-chat--mobile-left .innox-agent__attention::after {
		left: 22px;
		right: auto;
	}

	.innox-agent__panel {
		width: calc(100vw - (var(--innox-chat-side-offset, 12px) * 2));
		max-height: min(var(--innox-agent-chat-max-height-mobile, 620px), calc(100vh - 88px));
	}

	.innox-chat--mobile-right .innox-agent__panel {
		right: 0;
		left: auto;
	}

	.innox-chat--mobile-left .innox-agent__panel {
		left: 0;
		right: auto;
	}

	.innox-agent__lead-grid {
		grid-template-columns: 1fr;
	}

	.innox-agent__lead-actions {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.innox-agent__bubble,
	.innox-agent__attention,
	.innox-agent__panel,
	.innox-agent__typing span {
		animation: none;
		transition: none;
	}
}
