.vq-chat-widget {
	--vq-chat-primary: #e23404;
	--vq-chat-bg: #ffffff;
	--vq-chat-text: #172033;
	--vq-chat-muted: #667085;
	--vq-chat-user-bg: var(--vq-chat-primary);
	--vq-chat-user-text: #ffffff;
	--vq-chat-assistant-bg: #f2f4f7;
	--vq-chat-error-bg: #fff1f0;
	--vq-chat-error-text: #9f1c18;
	--vq-chat-border: #e4e7ec;
	--vq-chat-radius: 20px;
	--vq-chat-bottom: 24px;
	--vq-chat-side: 24px;
	box-sizing: border-box;
	color: var(--vq-chat-text);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
}

.vq-chat-widget *,
.vq-chat-widget *::before,
.vq-chat-widget *::after {
	box-sizing: inherit;
}

.vq-chat-widget--floating {
	position: fixed;
	z-index: 999999;
	bottom: max(var(--vq-chat-bottom), env(safe-area-inset-bottom));
}

.vq-chat-widget--right { right: max(var(--vq-chat-side), env(safe-area-inset-right)); }
.vq-chat-widget--left { left: max(var(--vq-chat-side), env(safe-area-inset-left)); }

.vq-chat-widget .vq-chat-launcher {
	display: grid;
	width: 60px;
	height: 60px;
	min-width: 60px;
	min-height: 60px;
	margin-inline-start: auto;
	padding: 0 !important;
	place-items: center;
	border: 0 !important;
	border-radius: 19px !important;
	background: #fff !important;
	background-image: none !important;
	box-shadow: 0 12px 28px rgba(16, 24, 40, 0.22);
	color: var(--vq-chat-primary) !important;
	font: inherit;
	text-decoration: none !important;
	text-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.vq-chat-widget--left .vq-chat-launcher { margin-inline: 0 auto; }
.vq-chat-widget .vq-chat-launcher:hover,
.vq-chat-widget .vq-chat-launcher:focus,
.vq-chat-widget .vq-chat-launcher:active {
	border: 0 !important;
	background: #fff !important;
	background-image: none !important;
	color: var(--vq-chat-primary) !important;
}
.vq-chat-widget .vq-chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 15px 34px rgba(16, 24, 40, 0.28); }
.vq-chat-widget .vq-chat-launcher svg { width: 29px; height: 29px; fill: none !important; color: inherit !important; }
.vq-chat-widget .vq-chat-launcher svg path,
.vq-chat-widget .vq-chat-close svg path,
.vq-chat-widget .vq-chat-send svg path { fill: none !important; stroke: currentColor !important; }
.vq-chat-widget--open .vq-chat-launcher { visibility: hidden; pointer-events: none; }

.vq-chat-panel {
	display: flex;
	width: min(400px, calc(100vw - 32px));
	height: min(620px, calc(100vh - 110px));
	height: min(620px, calc(100dvh - 110px));
	min-height: 360px;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--vq-chat-border);
	border-radius: var(--vq-chat-radius);
	background: var(--vq-chat-bg);
	box-shadow: 0 24px 64px rgba(16, 24, 40, 0.2);
}

.vq-chat-panel[hidden] { display: none; }
.vq-chat-widget--floating .vq-chat-panel { animation: vq-chat-open 200ms ease-out; }

.vq-chat-widget--embedded { width: 100%; }
.vq-chat-widget--embedded .vq-chat-panel {
	width: 100%;
	height: min(620px, 80vh);
	box-shadow: 0 12px 36px rgba(16, 24, 40, 0.12);
}

.vq-chat-header {
	display: flex;
	min-height: 76px;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 16px;
	background: var(--vq-chat-primary);
	color: #fff;
}

.vq-chat-identity { display: flex; min-width: 0; align-items: center; gap: 11px; }
.vq-chat-logo,
.vq-chat-avatar { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; }
.vq-chat-logo { object-fit: contain; background: #fff; padding: 4px; }
.vq-chat-avatar { display: grid; place-items: center; background: rgba(255,255,255,.15); }
.vq-chat-avatar svg { width: 25px; height: 25px; }
.vq-chat-identity-text { min-width: 0; }
.vq-chat-name { display: block; overflow: hidden; font-size: 16px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.vq-chat-subtitle { display: flex; align-items: center; gap: 6px; margin-top: 2px; color: rgba(255,255,255,.82); font-size: 13px; }
.vq-chat-status { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #75e6a4; box-shadow: 0 0 0 2px rgba(117,230,164,.18); }

.vq-chat-widget .vq-chat-close {
	display: grid;
	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	flex: 0 0 40px;
	padding: 0 !important;
	place-items: center;
	border: 0 !important;
	border-radius: 12px !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #fff !important;
	font: inherit;
	text-decoration: none !important;
	text-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: background 180ms ease;
}
.vq-chat-widget .vq-chat-close:hover,
.vq-chat-widget .vq-chat-close:focus,
.vq-chat-widget .vq-chat-close:active {
	border: 0 !important;
	background: rgba(255,255,255,.14) !important;
	background-image: none !important;
	color: #fff !important;
}
.vq-chat-widget .vq-chat-close svg { width: 23px; height: 23px; color: #fff !important; fill: none !important; stroke: currentColor !important; }

.vq-chat-messages {
	display: flex;
	min-height: 0;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 12px;
	overflow-y: auto;
	padding: 20px 16px;
	background: var(--vq-chat-bg);
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: #cfd4dc transparent;
}

.vq-chat-message { display: flex; max-width: 88%; }
.vq-chat-message--user { align-self: flex-end; }
.vq-chat-message--assistant,
.vq-chat-message--error { align-self: flex-start; }
.vq-chat-bubble { padding: 10px 13px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.vq-chat-message--user .vq-chat-bubble { border-bottom-right-radius: 5px; background: var(--vq-chat-user-bg); color: var(--vq-chat-user-text); }
.vq-chat-message--assistant .vq-chat-bubble { border-bottom-left-radius: 5px; background: var(--vq-chat-assistant-bg); color: var(--vq-chat-text); }
.vq-chat-message--error .vq-chat-bubble { border: 1px solid #fecaca; border-bottom-left-radius: 5px; background: var(--vq-chat-error-bg); color: var(--vq-chat-error-text); }

.vq-chat-message--loading .vq-chat-bubble { display: flex; min-width: 54px; align-items: center; justify-content: center; gap: 5px; padding-block: 15px; }
.vq-chat-message--loading span { width: 6px; height: 6px; border-radius: 50%; background: #98a2b3; animation: vq-chat-dot 1.1s infinite ease-in-out; }
.vq-chat-message--loading span:nth-child(2) { animation-delay: 120ms; }
.vq-chat-message--loading span:nth-child(3) { animation-delay: 240ms; }

.vq-chat-composer { flex: 0 0 auto; padding: 12px 14px 10px; border-top: 1px solid var(--vq-chat-border); background: var(--vq-chat-bg); }
.vq-chat-composer[hidden] { display: none; }
.vq-chat-input-wrap { display: flex; align-items: flex-end; gap: 8px; padding: 5px; border: 1px solid var(--vq-chat-border); border-radius: 15px; background: #fff; transition: border-color 180ms ease, box-shadow 180ms ease; }
.vq-chat-input-wrap:focus-within { border-color: var(--vq-chat-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vq-chat-primary) 16%, transparent); }
.vq-chat-input { width: 100%; min-height: 42px; max-height: 124px; resize: none; border: 0 !important; outline: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--vq-chat-text); font: inherit; line-height: 1.45; padding: 10px 8px; }
.vq-chat-input::placeholder { color: #98a2b3; }
.vq-chat-input:disabled { cursor: wait; opacity: .65; }
.vq-chat-widget .vq-chat-send { display: grid; width: 42px; height: 42px; min-width: 42px; min-height: 42px; flex: 0 0 42px; padding: 0 !important; place-items: center; border: 0 !important; border-radius: 12px !important; background: var(--vq-chat-primary) !important; background-image: none !important; box-shadow: none !important; color: #fff !important; font: inherit; text-decoration: none !important; text-shadow: none !important; -webkit-appearance: none; appearance: none; cursor: pointer; transition: opacity 180ms ease, transform 180ms ease; }
.vq-chat-widget .vq-chat-send:hover:not(:disabled),
.vq-chat-widget .vq-chat-send:focus:not(:disabled),
.vq-chat-widget .vq-chat-send:active:not(:disabled) { border: 0 !important; background: var(--vq-chat-primary) !important; background-image: none !important; color: #fff !important; transform: translateY(-1px); }
.vq-chat-widget .vq-chat-send:disabled { border: 0 !important; background: var(--vq-chat-primary) !important; background-image: none !important; color: #fff !important; cursor: not-allowed; opacity: .38; }
.vq-chat-widget .vq-chat-send svg { width: 21px; height: 21px; fill: none !important; stroke: currentColor !important; color: #fff !important; }
.vq-chat-counter { min-height: 17px; padding: 3px 4px 0; color: var(--vq-chat-muted); font-size: 11px; text-align: right; }
.vq-chat-counter--limit { color: var(--vq-chat-error-text); font-weight: 600; }

.vq-chat-contact-cta { flex: 0 0 auto; padding: 8px 14px 0; border-top: 1px solid var(--vq-chat-border); background: var(--vq-chat-bg); text-align: center; }
.vq-chat-contact-cta[hidden] { display: none; }
.vq-chat-widget .vq-chat-contact-button { width: 100%; padding: 9px 12px !important; border: 1px solid var(--vq-chat-primary) !important; border-radius: 12px !important; background: #fff !important; background-image: none !important; box-shadow: none !important; color: var(--vq-chat-primary) !important; font: inherit; font-weight: 650; cursor: pointer; transition: background 180ms ease, color 180ms ease; }
.vq-chat-widget .vq-chat-contact-button:hover,
.vq-chat-widget .vq-chat-contact-button:focus { background: var(--vq-chat-primary) !important; color: #fff !important; }
.vq-chat-lead-form { flex: 0 0 auto; max-height: 68%; overflow-y: auto; padding: 15px 16px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--vq-chat-border); background: #fff; }
.vq-chat-lead-form[hidden] { display: none; }
.vq-chat-lead-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.vq-chat-lead-title { display: block; font-size: 16px; line-height: 1.3; }
.vq-chat-lead-heading p { margin: 4px 0 0; color: var(--vq-chat-muted); font-size: 12px; line-height: 1.45; }
.vq-chat-widget .vq-chat-lead-close { display: grid; width: 32px; height: 32px; min-width: 32px; padding: 0 !important; place-items: center; border: 0 !important; border-radius: 9px !important; background: #f2f4f7 !important; color: var(--vq-chat-text) !important; cursor: pointer; }
.vq-chat-lead-close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; }
.vq-chat-lead-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.vq-chat-lead-fields label { min-width: 0; }
.vq-chat-lead-fields label > span { display: block; margin-bottom: 4px; color: var(--vq-chat-text); font-size: 11px; font-weight: 650; }
.vq-chat-widget .vq-chat-lead-fields input { width: 100%; min-height: 38px; padding: 7px 9px !important; border: 1px solid var(--vq-chat-border) !important; border-radius: 9px !important; background: #fff !important; box-shadow: none !important; color: var(--vq-chat-text) !important; font: inherit; font-size: 13px; }
.vq-chat-widget .vq-chat-lead-fields input:focus { border-color: var(--vq-chat-primary) !important; outline: 2px solid var(--vq-chat-primary); outline-offset: 1px; }
.vq-chat-consent { display: flex; align-items: flex-start; gap: 7px; margin-top: 11px; color: var(--vq-chat-muted); font-size: 10px; line-height: 1.4; }
.vq-chat-consent input { flex: 0 0 auto; margin-top: 2px; accent-color: var(--vq-chat-primary); }
.vq-chat-consent a { color: var(--vq-chat-primary); }
.vq-chat-lead-note { margin: 5px 0 10px; color: var(--vq-chat-muted); font-size: 10px; }
.vq-chat-widget .vq-chat-lead-submit { width: 100%; min-height: 40px; padding: 8px 12px !important; border: 0 !important; border-radius: 10px !important; background: var(--vq-chat-primary) !important; color: #fff !important; font: inherit; font-weight: 650; cursor: pointer; }
.vq-chat-widget .vq-chat-lead-submit:disabled { cursor: wait; opacity: .55; }
.vq-chat-lead-response { margin-top: 9px; font-size: 12px; line-height: 1.45; }
.vq-chat-lead-response:empty { display: none; }
.vq-chat-lead-response[data-state="error"] { color: var(--vq-chat-error-text); }
.vq-chat-lead-response[data-state="success"] { padding: 9px; border-radius: 9px; background: #ecfdf3; color: #067647; }
.vq-chat-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.vq-chat-lead-form.is-sent .vq-chat-lead-fields,
.vq-chat-lead-form.is-sent .vq-chat-consent,
.vq-chat-lead-form.is-sent .vq-chat-lead-note,
.vq-chat-lead-form.is-sent .vq-chat-lead-submit { display: none; }

.vq-chat-widget .vq-chat-launcher:focus-visible {
	outline: 3px solid var(--vq-chat-primary) !important;
	outline-offset: 3px;
}
.vq-chat-widget .vq-chat-close:focus-visible {
	outline: 2px solid #fff !important;
	outline-offset: 2px;
}
.vq-chat-widget .vq-chat-send:focus-visible,
.vq-chat-widget .vq-chat-contact-button:focus-visible,
.vq-chat-widget .vq-chat-lead-close:focus-visible,
.vq-chat-widget .vq-chat-lead-submit:focus-visible,
.vq-chat-messages:focus-visible { outline: 3px solid var(--vq-chat-primary) !important; outline-offset: 3px; }

.vq-chat-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

@keyframes vq-chat-open { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes vq-chat-dot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

@media (max-width: 600px) {
	.vq-chat-widget--floating.vq-chat-widget--open {
		position: fixed !important;
		top: var(--vq-chat-viewport-top, 0px) !important;
		right: 0 !important;
		bottom: auto !important;
		left: 0 !important;
		width: 100vw !important;
		height: var(--vq-chat-viewport-height, 100dvh) !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden !important;
	}
	.vq-chat-widget--floating .vq-chat-panel {
		width: 100% !important;
		height: 100% !important;
		max-height: 100% !important;
		min-height: 0 !important;
		margin: 0 !important;
		overflow: hidden !important;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}
	.vq-chat-widget--floating .vq-chat-header {
		flex: 0 0 auto;
		padding-top: max(14px, env(safe-area-inset-top));
	}
	.vq-chat-widget--floating .vq-chat-messages {
		min-height: 0;
		flex: 1 1 0;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
	.vq-chat-widget--floating .vq-chat-contact-cta,
	.vq-chat-widget--floating .vq-chat-lead-form,
	.vq-chat-widget--floating .vq-chat-composer {
		flex-shrink: 0;
	}
	.vq-chat-widget--floating .vq-chat-composer {
		position: relative;
		z-index: 2;
		padding-bottom: max(10px, env(safe-area-inset-bottom));
		background: var(--vq-chat-bg);
	}
	.vq-chat-widget--floating .vq-chat-lead-form {
		max-height: min(68%, calc(var(--vq-chat-viewport-height, 100dvh) - 96px));
	}
	.vq-chat-lead-fields { grid-template-columns: 1fr; }
	.vq-chat-widget--embedded .vq-chat-panel { min-height: 480px; }
}

@media (prefers-reduced-motion: reduce) {
	.vq-chat-widget *,
	.vq-chat-widget *::before,
	.vq-chat-widget *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@supports not (color: color-mix(in srgb, #000 10%, transparent)) {
	.vq-chat-input-wrap:focus-within { box-shadow: 0 0 0 3px rgba(0,0,0,.1); }
}

/* XatAI 3.6.0 - disparador configurable */
.vq-chat-widget .vq-chat-launcher { background:var(--vq-launcher-bg)!important; color:var(--vq-launcher-icon)!important; }
.vq-chat-widget .vq-chat-launcher:hover,.vq-chat-widget .vq-chat-launcher:focus,.vq-chat-widget .vq-chat-launcher:active { background:var(--vq-launcher-bg)!important; color:var(--vq-launcher-icon)!important; }
.vq-chat-widget .vq-chat-launcher--icon_text { display:flex; width:auto; min-width:60px; padding:0 20px!important; gap:10px; border-radius:18px!important; }
.vq-chat-widget .vq-chat-launcher--icon_text svg { flex:0 0 27px; width:27px; height:27px; }
.vq-chat-launcher-text { color:var(--vq-launcher-text); font-weight:700; white-space:nowrap; }
.vq-chat-launcher-teaser { position:absolute; right:0; bottom:72px; max-width:260px; padding:11px 15px; border:1px solid rgba(16,24,40,.10); border-radius:14px; background:#fff; box-shadow:0 10px 28px rgba(16,24,40,.18); color:#172033; font-size:14px; font-weight:650; line-height:1.35; white-space:nowrap; animation:vq-chat-teaser-in .24s ease-out; }
.vq-chat-widget--left .vq-chat-launcher-teaser { right:auto; left:0; }
.vq-chat-widget--open .vq-chat-launcher-teaser { display:none!important; }
@keyframes vq-chat-teaser-in { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:none; } }
@media(max-width:600px){.vq-chat-widget .vq-chat-launcher--icon_text{padding:0 16px!important}.vq-chat-launcher-teaser{max-width:min(260px,calc(100vw - 48px));white-space:normal}}
