/* ITTGO AI Assistant - front end widget
 *
 * Every rule is prefixed with .ittgo-ai-root on purpose. WordPress themes
 * routinely style bare `button`, `a` and `input` with selectors like
 * `.entry-content button`, which would otherwise outrank a single class here
 * and repaint the whole widget in the theme's colours.
 */

.ittgo-ai-root {
	--ittgo-ai-accent: #144ff5;
	--ittgo-ai-accent-dark: #15328f;
	--ittgo-ai-header: #101828;
	--ittgo-ai-bg: #ffffff;
	--ittgo-ai-bot: #f2f4f7;
	--ittgo-ai-text: #101828;
	--ittgo-ai-muted: #667085;
	--ittgo-ai-border: #e4e7ec;
	--ittgo-ai-radius: 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.55;
	letter-spacing: normal;
	text-transform: none;
	color: var(--ittgo-ai-text);
}

/* ---------- scoped reset ---------- */

.ittgo-ai-root *,
.ittgo-ai-root *::before,
.ittgo-ai-root *::after {
	box-sizing: border-box;
}

.ittgo-ai-root button,
.ittgo-ai-root input,
.ittgo-ai-root textarea,
.ittgo-ai-root a,
.ittgo-ai-root p,
.ittgo-ai-root h3,
.ittgo-ai-root ul,
.ittgo-ai-root li,
.ittgo-ai-root span,
.ittgo-ai-root strong,
.ittgo-ai-root label {
	margin: 0;
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
	float: none;
	min-width: 0;
	min-height: 0;
	max-width: none;
}

.ittgo-ai-root button {
	-webkit-appearance: none;
	appearance: none;
	width: auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	background-image: none;
	box-shadow: none;
	color: inherit;
	font-size: inherit;
	font-weight: 400;
	line-height: inherit;
	cursor: pointer;
	transition: none;
}

.ittgo-ai-root button:hover,
.ittgo-ai-root button:focus {
	box-shadow: none;
	transform: none;
}

.ittgo-ai-root a {
	background: none;
	box-shadow: none;
	text-decoration: none;
}

.ittgo-ai-root p,
.ittgo-ai-root ul,
.ittgo-ai-root h3 {
	padding: 0;
}

.ittgo-ai-root ul {
	list-style: disc;
}

.ittgo-ai-root li {
	list-style: inherit;
}

.ittgo-ai-root svg {
	display: block;
	max-width: none;
	box-shadow: none;
	vertical-align: middle;
}

.ittgo-ai-root img {
	max-width: 100%;
	border-radius: 0;
	box-shadow: none;
}

.ittgo-ai-root[hidden] {
	display: none;
}

/* Every display rule below would otherwise beat the browser default for
   [hidden], so state it once and explicitly. */
.ittgo-ai-root [hidden] {
	display: none !important;
}

.ittgo-ai-root .ittgo-ai-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---------- avatar ---------- */

.ittgo-ai-root .ittgo-ai-avatar {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--ittgo-ai-accent);
}

.ittgo-ai-root .ittgo-ai-avatar svg,
.ittgo-ai-root .ittgo-ai-avatar img {
	width: 100%;
	height: 100%;
	display: block;
	border-radius: 50%;
	object-fit: cover;
}

.ittgo-ai-root .ittgo-ai-avatar-lg {
	width: 38px;
	height: 38px;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

/* ---------- launcher ---------- */

.ittgo-ai-bubble {
	position: fixed;
	bottom: 22px;
	z-index: 99998;
}

.ittgo-ai-bubble[data-side="left"] {
	left: 22px;
}

.ittgo-ai-bubble:not([data-side="left"]) {
	right: 22px;
}

.ittgo-ai-root .ittgo-ai-launcher {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 58px;
	height: 58px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--ittgo-ai-header);
	color: #fff;
	font-size: 14.5px;
	font-weight: 600;
	box-shadow: 0 10px 26px rgba(16, 24, 40, 0.26);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ittgo-ai-root .ittgo-ai-launcher:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(16, 24, 40, 0.32);
	color: #fff;
}

.ittgo-ai-root .ittgo-ai-launcher:focus-visible {
	outline: 3px solid var(--ittgo-ai-accent);
	outline-offset: 3px;
}

.ittgo-ai-root .ittgo-ai-launcher.is-open {
	min-width: 54px;
	width: 54px;
	height: 54px;
	padding: 0;
}

.ittgo-ai-root .ittgo-ai-launcher.is-open .ittgo-ai-launcher-label {
	display: none;
}

.ittgo-ai-root .ittgo-ai-launcher-icon {
	display: inline-flex;
}

.ittgo-ai-root .ittgo-ai-launcher:active {
	transform: scale(0.94);
}

@keyframes ittgo-ai-icon-in {
	from { opacity: 0; transform: rotate(-90deg) scale(0.5); }
	to { opacity: 1; transform: none; }
}

.ittgo-ai-root .ittgo-ai-launcher-icon svg {
	animation: ittgo-ai-icon-in 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ---------- proactive invitation ---------- */

.ittgo-ai-root .ittgo-ai-invite {
	position: fixed;
	bottom: 94px;
	width: min(300px, calc(100vw - 32px));
	padding: 30px 18px 16px;
	border-radius: 20px;
	background: linear-gradient(160deg, var(--ittgo-ai-accent-dark), var(--ittgo-ai-accent));
	color: #fff;
	box-shadow: 0 18px 44px rgba(16, 24, 40, 0.3);
	animation: ittgo-ai-invite-in 0.35s ease both;
}

.ittgo-ai-bubble[data-side="left"] .ittgo-ai-invite {
	left: 22px;
}

.ittgo-ai-bubble:not([data-side="left"]) .ittgo-ai-invite {
	right: 22px;
}

@keyframes ittgo-ai-invite-in {
	from { opacity: 0; transform: translateY(14px) scale(0.96); }
	to { opacity: 1; transform: none; }
}

@keyframes ittgo-ai-invite-out {
	from { opacity: 1; transform: none; }
	to { opacity: 0; transform: translateY(10px) scale(0.97); }
}

.ittgo-ai-root .ittgo-ai-invite.is-closing {
	animation: ittgo-ai-invite-out 0.2s ease both;
}

.ittgo-ai-root .ittgo-ai-invite-x {
	position: absolute;
	top: 11px;
	left: 11px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.ittgo-ai-root .ittgo-ai-invite-x:hover {
	background: rgba(255, 255, 255, 0.34);
	color: #fff;
}

.ittgo-ai-root .ittgo-ai-invite-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 13px;
}

.ittgo-ai-root .ittgo-ai-invite-bubble {
	position: relative;
	flex: 1 1 auto;
	padding: 11px 14px;
	border-radius: 13px;
	background: #fff;
	color: var(--ittgo-ai-text);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

.ittgo-ai-root .ittgo-ai-invite-bubble::after {
	content: "";
	position: absolute;
	right: -5px;
	top: 17px;
	width: 10px;
	height: 10px;
	background: #fff;
	transform: rotate(45deg);
}

.ittgo-ai-root .ittgo-ai-invite-avatar {
	position: relative;
	flex: 0 0 auto;
	display: inline-flex;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--ittgo-ai-accent-dark);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.ittgo-ai-root .ittgo-ai-invite-avatar svg,
.ittgo-ai-root .ittgo-ai-invite-avatar img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}

@keyframes ittgo-ai-pulse {
	0% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.6); }
	70% { box-shadow: 0 0 0 8px rgba(18, 183, 106, 0); }
	100% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0); }
}

.ittgo-ai-root .ittgo-ai-invite-dot {
	position: absolute;
	right: 1px;
	bottom: 1px;
	width: 13px;
	height: 13px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #12b76a;
	animation: ittgo-ai-pulse 2.6s ease-out infinite;
}

.ittgo-ai-root .ittgo-ai-invite-text {
	margin: 0 0 15px;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.92);
}

.ittgo-ai-root .ittgo-ai-invite-btn {
	display: block;
	width: 100%;
	margin-bottom: 9px;
	padding: 12px 16px;
	border: 0;
	border-radius: 999px;
	background: #e4ecff;
	color: var(--ittgo-ai-accent-dark);
	font-size: 14.5px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.14s ease;
}

.ittgo-ai-root .ittgo-ai-invite-btn:hover {
	background: #fff;
	color: var(--ittgo-ai-accent-dark);
}

.ittgo-ai-root .ittgo-ai-invite-link {
	display: block;
	width: 100%;
	padding: 5px 0 0;
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.82);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ittgo-ai-root .ittgo-ai-invite-link:hover {
	color: #fff;
}

/* ---------- panel ---------- */

.ittgo-ai-root .ittgo-ai-panel {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--ittgo-ai-bg);
	border: 0;
	border-radius: var(--ittgo-ai-radius);
	box-shadow: 0 20px 52px rgba(16, 24, 40, 0.2), 0 0 0 1px rgba(16, 24, 40, 0.05);
}

.ittgo-ai-bubble .ittgo-ai-panel {
	position: fixed;
	bottom: 94px;
	width: min(408px, calc(100vw - 32px));
	height: min(620px, calc(100vh - 142px));
	transform-origin: bottom right;
	animation: ittgo-ai-panel-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ittgo-ai-bubble[data-side="left"] .ittgo-ai-panel {
	transform-origin: bottom left;
}

.ittgo-ai-bubble .ittgo-ai-panel.is-closing {
	animation: ittgo-ai-panel-out 0.18s ease both;
}

@keyframes ittgo-ai-panel-in {
	from { opacity: 0; transform: translateY(16px) scale(0.96); }
	to { opacity: 1; transform: none; }
}

@keyframes ittgo-ai-panel-out {
	from { opacity: 1; transform: none; }
	to { opacity: 0; transform: translateY(10px) scale(0.98); }
}

.ittgo-ai-bubble[data-side="left"] .ittgo-ai-panel {
	left: 22px;
}

.ittgo-ai-bubble:not([data-side="left"]) .ittgo-ai-panel {
	right: 22px;
}

.ittgo-ai-bubble.is-expanded .ittgo-ai-panel {
	width: min(560px, calc(100vw - 32px));
	height: min(820px, calc(100vh - 142px));
}

.ittgo-ai-inline .ittgo-ai-panel {
	width: 100%;
	max-width: 100%;
}

/* ---------- header ---------- */

.ittgo-ai-root .ittgo-ai-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 12px 14px 16px;
	background: var(--ittgo-ai-header);
	color: #fff;
}

.ittgo-ai-root .ittgo-ai-header-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1 1 auto;
}

.ittgo-ai-root .ittgo-ai-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: #fff;
}

.ittgo-ai-root .ittgo-ai-subtitle {
	font-size: 12px;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.66);
	min-height: 16px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ittgo-ai-root .ittgo-ai-header-actions {
	display: flex;
	gap: 2px;
	flex: 0 0 auto;
}

.ittgo-ai-root .ittgo-ai-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: rgba(255, 255, 255, 0.8);
	transition: background-color 0.14s ease, color 0.14s ease;
}

.ittgo-ai-root .ittgo-ai-icon-btn:hover {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

/* ---------- log ---------- */

.ittgo-ai-root .ittgo-ai-log {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 18px 16px 10px;
	background: var(--ittgo-ai-bg);
	display: flex;
	flex-direction: column;
	gap: 11px;
}

.ittgo-ai-root .ittgo-ai-row {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	max-width: 100%;
}

@keyframes ittgo-ai-msg-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}

/* Applied to direct children only, so a bubble inside a row is not
   animated twice. */
.ittgo-ai-root .ittgo-ai-log > .ittgo-ai-row,
.ittgo-ai-root .ittgo-ai-log > .ittgo-ai-msg {
	animation: ittgo-ai-msg-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ittgo-ai-root .ittgo-ai-msg {
	max-width: 84%;
	padding: 11px 14px;
	border: 0;
	border-radius: 14px;
	font-size: 14.5px;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.ittgo-ai-root .ittgo-ai-msg-user {
	align-self: flex-end;
	background: var(--ittgo-ai-accent);
	color: #fff;
	border-bottom-right-radius: 5px;
}

.ittgo-ai-root .ittgo-ai-msg-bot {
	background: var(--ittgo-ai-bot);
	color: var(--ittgo-ai-text);
	border-top-left-radius: 5px;
}

.ittgo-ai-root .ittgo-ai-msg-note {
	align-self: center;
	max-width: 100%;
	padding: 6px 0;
	background: transparent;
	color: var(--ittgo-ai-muted);
	font-size: 13px;
	text-align: center;
}

.ittgo-ai-root .ittgo-ai-msg-error {
	background: #fef3f2;
	color: #b42318;
	border-top-left-radius: 5px;
}

.ittgo-ai-root .ittgo-ai-msg p {
	margin: 0 0 8px;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.ittgo-ai-root .ittgo-ai-msg p:last-child {
	margin-bottom: 0;
}

.ittgo-ai-root .ittgo-ai-msg ul {
	margin: 0 0 8px;
	padding-left: 18px;
}

.ittgo-ai-root .ittgo-ai-msg li {
	margin-bottom: 3px;
	color: inherit;
}

.ittgo-ai-root .ittgo-ai-msg a {
	color: var(--ittgo-ai-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ittgo-ai-root .ittgo-ai-msg-user a {
	color: #fff;
}

.ittgo-ai-root .ittgo-ai-msg code {
	padding: 1px 5px;
	border-radius: 5px;
	background: rgba(16, 24, 40, 0.08);
	font-size: 0.9em;
}

.ittgo-ai-root .ittgo-ai-welcome strong {
	display: block;
	margin-bottom: 3px;
	font-size: 15px;
	font-weight: 700;
}

.ittgo-ai-root .ittgo-ai-typing span {
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-right: 3px;
	border-radius: 50%;
	background: var(--ittgo-ai-muted);
	animation: ittgo-ai-blink 1.2s infinite ease-in-out;
}

.ittgo-ai-root .ittgo-ai-typing span:nth-child(2) {
	animation-delay: 0.2s;
}

.ittgo-ai-root .ittgo-ai-typing span:nth-child(3) {
	animation-delay: 0.4s;
}

@keyframes ittgo-ai-blink {
	0%, 80%, 100% { opacity: 0.28; transform: none; }
	40% { opacity: 1; transform: translateY(-4px); }
}

/* One switch for everything that moves. Respecting this is not optional:
   motion can trigger nausea and migraine for some visitors. */
@media (prefers-reduced-motion: reduce) {
	.ittgo-ai-root *,
	.ittgo-ai-root *::before,
	.ittgo-ai-root *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.ittgo-ai-root .ittgo-ai-typing span {
		opacity: 0.6;
	}

	.ittgo-ai-root .ittgo-ai-launcher:hover,
	.ittgo-ai-root .ittgo-ai-launcher:active,
	.ittgo-ai-root .ittgo-ai-chip:hover,
	.ittgo-ai-root .ittgo-ai-send:active {
		transform: none;
	}
}

/* ---------- suggestion pills ---------- */

.ittgo-ai-root .ittgo-ai-suggestions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	max-width: 100%;
	padding: 2px 0 6px 37px;
}

.ittgo-ai-root .ittgo-ai-suggestions:empty {
	display: none;
}

.ittgo-ai-root .ittgo-ai-chip {
	max-width: 100%;
	padding: 9px 15px;
	border: 1px solid var(--ittgo-ai-border);
	border-radius: 999px;
	background: #fff;
	color: var(--ittgo-ai-accent);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.35;
	text-align: left;
	white-space: normal;
	transition: border-color 0.14s ease, background-color 0.14s ease, transform 0.14s ease;
}

.ittgo-ai-root .ittgo-ai-chip:hover {
	border-color: var(--ittgo-ai-accent);
	background: #f4f7ff;
	color: var(--ittgo-ai-accent);
	transform: translateY(-1px);
}

.ittgo-ai-root .ittgo-ai-chip:active {
	transform: none;
}

@keyframes ittgo-ai-chip-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

/* Staggered so the options arrive one after another, not as a block. */
.ittgo-ai-root .ittgo-ai-chip {
	animation: ittgo-ai-chip-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ittgo-ai-root .ittgo-ai-chip:nth-child(1) { animation-delay: 0.05s; }
.ittgo-ai-root .ittgo-ai-chip:nth-child(2) { animation-delay: 0.12s; }
.ittgo-ai-root .ittgo-ai-chip:nth-child(3) { animation-delay: 0.19s; }
.ittgo-ai-root .ittgo-ai-chip:nth-child(4) { animation-delay: 0.26s; }
.ittgo-ai-root .ittgo-ai-chip:nth-child(5) { animation-delay: 0.33s; }

.ittgo-ai-root .ittgo-ai-chip-contact {
	color: var(--ittgo-ai-text);
}

.ittgo-ai-root .ittgo-ai-chip-contact:hover {
	color: var(--ittgo-ai-text);
}

/* ---------- consent band ---------- */

.ittgo-ai-root .ittgo-ai-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 16px;
	background: #f7f8fa;
	border-top: 1px solid var(--ittgo-ai-border);
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--ittgo-ai-muted);
}

.ittgo-ai-root .ittgo-ai-consent a {
	color: var(--ittgo-ai-accent);
	text-decoration: underline;
}

.ittgo-ai-root .ittgo-ai-consent-text {
	flex: 1 1 auto;
}

.ittgo-ai-root .ittgo-ai-consent-close {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	background: transparent;
	color: var(--ittgo-ai-muted);
}

.ittgo-ai-root .ittgo-ai-consent-close:hover {
	background: rgba(16, 24, 40, 0.07);
	color: var(--ittgo-ai-text);
}

/* ---------- input ---------- */

.ittgo-ai-root .ittgo-ai-form {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 12px 16px 0;
	padding: 5px 5px 5px 16px;
	border: 1px solid var(--ittgo-ai-border);
	border-radius: 999px;
	background: #fff;
	box-shadow: none;
	transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.ittgo-ai-root .ittgo-ai-form:focus-within {
	border-color: var(--ittgo-ai-accent);
	box-shadow: 0 0 0 3px rgba(20, 79, 245, 0.12);
}

.ittgo-ai-root .ittgo-ai-input {
	flex: 1 1 auto;
	width: 100%;
	max-height: 104px;
	padding: 9px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--ittgo-ai-text);
	resize: none;
	outline: none;
}

.ittgo-ai-root .ittgo-ai-input:focus {
	border: 0;
	box-shadow: none;
	outline: none;
}

.ittgo-ai-root .ittgo-ai-input::placeholder {
	color: var(--ittgo-ai-muted);
	opacity: 1;
}

.ittgo-ai-root .ittgo-ai-send {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: var(--ittgo-ai-accent);
	color: #fff;
	transition: background-color 0.14s ease, opacity 0.14s ease, transform 0.12s ease;
}

.ittgo-ai-root .ittgo-ai-send:not(:disabled):active {
	transform: scale(0.9);
}

.ittgo-ai-root .ittgo-ai-send:hover {
	background: var(--ittgo-ai-accent-dark);
	color: #fff;
}

.ittgo-ai-root .ittgo-ai-send:disabled {
	opacity: 0.45;
	cursor: default;
}

.ittgo-ai-root .ittgo-ai-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

/* ---------- contact form ---------- */

.ittgo-ai-root .ittgo-ai-lead {
	flex: 1 1 auto;
	min-height: 0;
	padding: 18px 16px;
	background: var(--ittgo-ai-bg);
	overflow-y: auto;
}

.ittgo-ai-root .ittgo-ai-lead h3 {
	margin: 0 0 13px;
	font-size: 16px;
	font-weight: 700;
	color: var(--ittgo-ai-text);
}

.ittgo-ai-root .ittgo-ai-lead label {
	display: block;
	margin-bottom: 11px;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ittgo-ai-muted);
}

.ittgo-ai-root .ittgo-ai-lead input[type="text"],
.ittgo-ai-root .ittgo-ai-lead input[type="email"],
.ittgo-ai-root .ittgo-ai-lead input[type="tel"],
.ittgo-ai-root .ittgo-ai-lead textarea {
	display: block;
	width: 100%;
	margin-top: 4px;
	padding: 10px 12px;
	border: 1px solid var(--ittgo-ai-border);
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	font-size: 14.5px;
	font-weight: 400;
	color: var(--ittgo-ai-text);
}

.ittgo-ai-root .ittgo-ai-lead input:focus,
.ittgo-ai-root .ittgo-ai-lead textarea:focus {
	outline: none;
	border-color: var(--ittgo-ai-accent);
	box-shadow: 0 0 0 3px rgba(20, 79, 245, 0.12);
}

.ittgo-ai-root .ittgo-ai-lead-consent {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	font-size: 12px;
	font-weight: 400;
}

.ittgo-ai-root .ittgo-ai-lead-consent input[type="checkbox"] {
	width: auto;
	margin: 3px 0 0;
	flex: 0 0 auto;
}

.ittgo-ai-root .ittgo-ai-lead-actions {
	display: flex;
	gap: 8px;
	margin-top: 15px;
}

.ittgo-ai-root .ittgo-ai-btn {
	padding: 11px 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--ittgo-ai-accent);
	color: #fff;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.3;
}

.ittgo-ai-root .ittgo-ai-btn:hover {
	background: var(--ittgo-ai-accent-dark);
	color: #fff;
}

.ittgo-ai-root .ittgo-ai-btn-ghost {
	background: #fff;
	color: var(--ittgo-ai-muted);
	border-color: var(--ittgo-ai-border);
}

.ittgo-ai-root .ittgo-ai-btn-ghost:hover {
	background: #f7f8fa;
	color: var(--ittgo-ai-text);
}

.ittgo-ai-root .ittgo-ai-lead-error {
	margin: 9px 0 0;
	color: #b42318;
	font-size: 13px;
}

/* ---------- footer ---------- */

.ittgo-ai-root .ittgo-ai-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 3px 10px;
	padding: 9px 16px 13px;
	background: var(--ittgo-ai-bg);
	text-align: center;
	font-size: 11.5px;
	line-height: 1.45;
	color: var(--ittgo-ai-muted);
}

.ittgo-ai-root .ittgo-ai-link {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--ittgo-ai-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

.ittgo-ai-root .ittgo-ai-link:hover {
	background: none;
	color: var(--ittgo-ai-accent-dark);
}

.ittgo-ai-root .ittgo-ai-disclaimer {
	color: var(--ittgo-ai-muted);
}

@media (max-width: 480px) {
	.ittgo-ai-bubble .ittgo-ai-panel,
	.ittgo-ai-bubble.is-expanded .ittgo-ai-panel {
		right: 8px;
		left: 8px;
		bottom: 84px;
		width: auto;
		height: min(600px, calc(100vh - 108px));
	}

	.ittgo-ai-root .ittgo-ai-launcher {
		min-width: 54px;
		width: 54px;
		height: 54px;
		padding: 0;
	}

	.ittgo-ai-root .ittgo-ai-launcher-label {
		display: none;
	}

	/* The panel already fills the screen, so enlarging it does nothing. */
	.ittgo-ai-root .ittgo-ai-icon-btn[data-action="expand"] {
		display: none;
	}

	.ittgo-ai-root .ittgo-ai-invite {
		right: 8px;
		left: 8px;
		bottom: 84px;
		width: auto;
	}
}
