.teksands-chatbot-root {
	position: fixed;
	right: 20px;
	bottom: 140px;
	z-index: 2147483000;
	font-family: Inter, Arial, Helvetica, sans-serif;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 14px;
	transition: none !important;
	box-sizing: border-box;
}

.teksands-chatbot-root.is-chat-open .teksands-chatbot-launcher {
	display: none;
}

.teksands-chatbot-launcher {
	min-width: 64px;
	height: 64px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: #1a73e8;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-shadow: 0 12px 28px rgba(23, 59, 87, 0.24);
	cursor: grab;
	transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.teksands-chatbot-launcher.is-dragging {
	cursor: grabbing;
}

.teksands-chatbot-launcher:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 34px rgba(23, 59, 87, 0.28);
}

.teksands-chatbot-launcher-icon {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
}

.teksands-chatbot-launcher-icon svg,
.teksands-chatbot-icon-btn svg,
.teksands-chatbot-contact svg,
.teksands-chatbot-send svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
}

.teksands-chatbot-launcher-label {
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.teksands-chatbot-panel {
	box-sizing: border-box;
	transition: none !important;
	width: min(440px, calc(100vw - 32px));
	height: min(720px, calc(100vh - 100px));
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 24px);
	background: #f3f8ff;
	border: 1px solid #cfe1f4;
	border-radius: 24px;
	box-shadow: 0 24px 64px rgba(23, 59, 87, 0.22);
	overflow: hidden;
	display: none;
	flex-direction: column;
	backdrop-filter: blur(12px);
}

.teksands-chatbot-panel.is-open {
	display: flex;
	animation: teksands-chatbot-panel-in 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes teksands-chatbot-panel-in {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.985);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.teksands-chatbot-panel.is-expanded {
	position: static;
	width: min(760px, calc(100vw - 32px));
	height: min(820px, calc(100vh - 24px));
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 24px);
}

.teksands-chatbot-header {
	padding: 6px 14px;
	min-height: 52px;
	background: rgba(235, 245, 255, 0.96);
	color: #173b57;
	border-bottom: 1px solid #d8e4ee;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	cursor: move;
	user-select: none;
	touch-action: none;
}

.teksands-chatbot-header.is-dragging {
	cursor: grabbing;
}

.teksands-chatbot-actions {
	cursor: default;
}

.teksands-chatbot-header-brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 0;
}

.teksands-chatbot-brand-line {
	display: flex;
	align-items: center;
	gap: 7px;
}

.teksands-chatbot-header-logo {
	display: block;
	width: 112px;
	height: 25px;
	object-fit: contain;
	object-position: left center;
	flex: 0 0 auto;
}

.teksands-chatbot-header-ai {
	width: 26px;
	height: 26px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #1a73e8;
	border: 1px solid #1a73e8;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	flex: 0 0 auto;
}

.teksands-chatbot-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	line-height: 1;
	color: #64748b;
}

.teksands-chatbot-status i {
	display: block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #0eaa77;
	box-shadow: 0 0 0 3px rgba(14, 170, 119, 0.1);
}

.teksands-chatbot-actions {
	display: flex;
	align-items: center;
	gap: 7px;
	flex: 0 0 auto;
}

.teksands-chatbot-contact {
	width: 36px;
	height: 36px;
	padding: 9px;
	border: 1px solid #d3e4f5;
	border-radius: 50%;
	background: #f8fbff;
	color: #1674df;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	flex: 0 0 36px;
	box-shadow: 0 4px 12px rgba(23, 59, 87, 0.08);
}

.teksands-chatbot-contact svg {
	width: 16px;
	height: 16px;
}

.teksands-chatbot-contact:hover,
.teksands-chatbot-contact:focus-visible {
	background: #e3f1ff;
	color: #0f5fbd;
}

.teksands-chatbot-icon-btn {
	width: 36px;
	height: 36px;
	border: 1px solid #d3e4f5;
	border-radius: 50%;
	background: #f8fbff;
	color: #1a73e8;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 9px;
	box-shadow: 0 4px 12px rgba(23, 59, 87, 0.08);
	transition: background 0.16s ease, transform 0.16s ease;
}

.teksands-chatbot-icon-btn:hover {
	background: #f5f9fd;
	transform: translateY(-1px);
}

.teksands-chatbot-messages {
	flex: 1;
	padding: 22px 20px 14px;
	overflow-y: auto;
	background: linear-gradient(180deg, #eef7ff 0%, #f8fbff 48%, #f3f8ff 100%);
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.teksands-chatbot-message {
	display: flex;
	align-items: flex-end;
	gap: 7px;
}

.teksands-chatbot-message.user {
	justify-content: flex-end;
}

.teksands-chatbot-message.bot {
	justify-content: flex-start;
}

.teksands-chatbot-message.bot::before {
	content: "AI";
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #1a73e8;
	border: 4px solid #d9ecff;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	box-shadow: 0 5px 14px rgba(26, 115, 232, 0.16);
	box-sizing: border-box;
	flex: 0 0 34px;
}

.teksands-chatbot-bubble {
	max-width: min(88%, 560px);
	padding: 14px 15px;
	border-radius: 20px;
	line-height: 1.6;
	font-size: 14px;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.teksands-chatbot-message.user .teksands-chatbot-bubble {
	background: #1a73e8;
	color: #fff;
	border-bottom-right-radius: 7px;
	box-shadow: 0 6px 16px rgba(26, 115, 232, 0.14);
}

.teksands-chatbot-message.bot .teksands-chatbot-bubble {
	background: #fff;
	color: #173b57;
	border: 1px solid #d8e4ee;
	border-bottom-left-radius: 7px;
	box-shadow: 0 8px 24px rgba(23, 59, 87, 0.08);
	white-space: normal;
}


.teksands-chatbot-suggestion-panel {
	margin: 8px 18px 6px;
	padding: 14px;
	border: 1px solid #d3e4f5;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.82);
}

.teksands-chatbot-suggestion-panel[hidden] {
	display: none;
}

.teksands-chatbot-suggestion-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0 2px 10px;
	font-size: 11px;
	font-weight: 700;
	line-height: 20px;
	color: #365b78;
}

.teksands-chatbot-suggestion-heading button {
	width: 20px;
	height: 20px;
	padding: 4px;
	border: 0;
	background: transparent;
	color: #64748b;
	cursor: pointer;
}

.teksands-chatbot-suggestion-heading svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.teksands-chatbot-suggestions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	max-height: 112px;
	overflow-y: auto;
}

.teksands-chatbot-suggestions button {
	min-width: 0;
	min-height: 38px;
	height: auto;
	padding: 8px 10px;
	border: 1px solid #cfe0f2;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.9);
	color: #126bd1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
	box-shadow: 0 3px 10px rgba(23, 59, 87, 0.04);
	transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.teksands-chatbot-quick-links {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 7px;
	margin: 2px 18px 8px;
	font-size: 12px;
}

.teksands-chatbot-quick-links a {
	min-width: 0;
	height: 32px;
	min-height: 32px;
	padding: 2px 4px;
	border: 1px solid #c7def5;
	border-radius: 7px;
	background: #e7f3ff;
	color: #126bd1;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	line-height: 1.05;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.teksands-chatbot-quick-links a:hover,
.teksands-chatbot-quick-links a:focus-visible {
	background: #d7ebff;
	border-color: #8fbee9;
	text-decoration: none;
	transform: translateY(-1px);
}

.teksands-chatbot-suggestions button:hover,
.teksands-chatbot-suggestions button:focus-visible {
	background: #e7f3ff;
	border-color: #91bee9;
	transform: none;
}

.teksands-chatbot-suggestions svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: 0 0 auto;
}

.teksands-chatbot-rich-line + .teksands-chatbot-rich-line,
.teksands-chatbot-rich-list + .teksands-chatbot-rich-line,
.teksands-chatbot-rich-line + .teksands-chatbot-rich-list {
	margin-top: 8px;
}

.teksands-chatbot-rich-list {
	margin: 8px 0 0;
	padding-left: 20px;
}

.teksands-chatbot-rich-list li + li {
	margin-top: 5px;
}

.teksands-chatbot-citations {
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid #e2e8f0;
	display: grid;
	gap: 6px;
}

.teksands-chatbot-citations a {
	font-size: 12px;
	font-weight: 600;
	color: #1a73e8;
	text-decoration: none;
}

.teksands-chatbot-citations a:hover {
	text-decoration: underline;
}

.teksands-chatbot-bubble > .teksands-chatbot-rich-line a,
.teksands-chatbot-rich-list a {
	color: #1a73e8;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	overflow-wrap: anywhere;
}

.teksands-chatbot-bubble > .teksands-chatbot-rich-line a:hover,
.teksands-chatbot-rich-list a:hover {
	color: #155fbd;
}

.teksands-chatbot-form {
	margin: 0 18px 8px;
	padding: 9px;
	border: 1px solid #d3e1ef;
	border-radius: 18px;
	background: #fff;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 46px;
	gap: 10px;
	align-items: center;
}

.teksands-chatbot-input-wrap {
	min-width: 0;
	position: relative;
	height: 58px;
}

.teksands-chatbot-input {
	display: block;
	width: 100%;
	height: 58px;
	min-height: 58px;
	max-height: 58px;
	resize: none;
	border: 0;
	border-radius: 12px;
	padding: 11px 14px 25px;
	font-size: 14px;
	line-height: 1.45;
	outline: none;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.teksands-chatbot-word-count {
	position: absolute;
	right: 10px;
	bottom: 7px;
	color: #64748b;
	font-size: 10px;
	line-height: 1;
	pointer-events: none;
}

.teksands-chatbot-word-count.is-limit {
	color: #b45309;
	font-weight: 700;
}

.teksands-chatbot-input:focus {
	box-shadow: none;
	background: #fff;
}

.teksands-chatbot-send {
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	background: #1a73e8;
	color: #fff;
	cursor: pointer;
	padding: 13px;
	box-shadow: 0 14px 28px rgba(29, 78, 216, 0.18);
	transition: transform 0.16s ease;
}

.teksands-chatbot-trust {
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	color: #5f8fbd;
	font-size: 10px;
	background: #f3f8ff;
}

.teksands-chatbot-trust svg {
	width: 11px;
	height: 11px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

.teksands-chatbot-send:hover {
	transform: translateY(-1px);
}

.teksands-chatbot-loading {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #64748b;
	font-size: 12px;
}

.teksands-chatbot-loading span {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: #94a3b8;
	animation: teksands-chatbot-pulse 1.1s infinite ease-in-out;
}

.teksands-chatbot-loading span:nth-child(2) {
	animation-delay: 0.15s;
}

.teksands-chatbot-loading span:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes teksands-chatbot-pulse {
	0%, 80%, 100% {
		transform: scale(0.7);
		opacity: 0.6;
	}
	40% {
		transform: scale(1);
		opacity: 1;
	}
}

@media (max-width: 900px) {
	.teksands-chatbot-panel.is-expanded {
		width: calc(100vw - 24px);
		height: calc(100vh - 24px);
		max-width: calc(100vw - 24px);
		max-height: calc(100vh - 24px);
	}
}

@media (max-width: 767px) {
	.teksands-chatbot-root {
		right: 12px;
		left: 12px;
		bottom: 112px;
		align-items: stretch;
	}

	.teksands-chatbot-root.is-chat-open {
		bottom: 12px;
	}

	.teksands-chatbot-panel,
	.teksands-chatbot-panel.is-expanded {
		position: static;
		width: 100%;
		max-width: 100%;
		height: min(84vh, calc(100vh - 24px));
		max-height: calc(100vh - 24px);
		border-radius: 10px;
	}

	.teksands-chatbot-launcher {
		align-self: flex-end;
		height: 58px;
		padding: 0 16px;
	}

	.teksands-chatbot-launcher-label {
		font-size: 13px;
	}

	.teksands-chatbot-header {
		padding: 6px 10px;
		min-height: 52px;
		cursor: default;
		touch-action: auto;
	}

	.teksands-chatbot-messages {
		padding: 16px 14px 10px;
	}

	.teksands-chatbot-suggestions {
		gap: 7px;
		max-height: 100px;
	}

	.teksands-chatbot-suggestions button {
		min-height: 36px;
		padding: 7px 8px;
		font-size: 11px;
	}

	.teksands-chatbot-suggestion-panel {
		margin: 6px 12px;
		padding: 14px 12px 12px;
	}

	.teksands-chatbot-quick-links {
		margin: 0 12px 7px;
	}

	.teksands-chatbot-form {
		margin: 0 12px 6px;
	}

	.teksands-chatbot-bubble {
		max-width: 92%;
	}

	.teksands-chatbot-message.bot::before {
		width: 30px;
		height: 30px;
		flex-basis: 30px;
		border-width: 3px;
	}

}

@media (max-width: 420px) {
	.teksands-chatbot-quick-links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.teksands-chatbot-quick-links a:last-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 380px) {
	.teksands-chatbot-header-logo {
		width: 90px;
		height: 20px;
	}

	.teksands-chatbot-header-brand {
		gap: 5px;
	}

}

@media (max-height: 680px) {
	.teksands-chatbot-suggestion-panel {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.teksands-chatbot-panel.is-open {
		animation: none;
	}
}
