.rankflow-chatbot {
	--rf-chat-accent: var(--rf-primary, #2563eb);
	--rf-chat-accent-dark: #1749b1;
	--rf-chat-ink: #0f172a;
	--rf-chat-muted: #64748b;
	bottom: 22px;
	font-family: inherit;
	position: fixed;
	right: 22px;
	z-index: 99990;
}

.rankflow-chatbot *,
.rankflow-chatbot *::before,
.rankflow-chatbot *::after {
	box-sizing: border-box;
}

.rankflow-chatbot__toggle {
	align-items: center;
	background: linear-gradient(135deg, var(--rf-chat-accent), var(--rf-chat-accent-dark));
	border: 0;
	border-radius: 50%;
	box-shadow: 0 16px 38px rgba(15, 23, 42, .3);
	color: #fff;
	cursor: pointer;
	display: flex;
	height: 60px;
	justify-content: center;
	margin-left: auto;
	padding: 0;
	transition: box-shadow .2s ease, transform .2s ease;
	width: 60px;
}

.rankflow-chatbot__toggle:hover {
	box-shadow: 0 18px 44px rgba(15, 23, 42, .38);
	transform: translateY(-2px);
}

.rankflow-chatbot__toggle:focus-visible,
.rankflow-chatbot__close:focus-visible,
.rankflow-chatbot__form button:focus-visible,
.rankflow-chatbot__suggestions button:focus-visible,
.rankflow-chatbot__cta:focus-visible {
	outline: 3px solid #67e8f9;
	outline-offset: 3px;
}

.rankflow-chatbot__toggle svg {
	fill: currentColor;
	height: 27px;
	width: 27px;
}

.rankflow-chatbot__toggle-close {
	display: none;
}

.rankflow-chatbot.is-open .rankflow-chatbot__toggle-chat {
	display: none;
}

.rankflow-chatbot.is-open .rankflow-chatbot__toggle-close {
	display: block;
}

.rankflow-chatbot__panel {
	background: #fff;
	border: 1px solid #dbe3ee;
	border-radius: 20px;
	box-shadow: 0 25px 70px rgba(15, 23, 42, .24);
	display: flex;
	flex-direction: column;
	height: min(610px, calc(100vh - 112px));
	margin-bottom: 14px;
	overflow: hidden;
	width: min(390px, calc(100vw - 32px));
}

.rankflow-chatbot__panel[hidden] {
	display: none;
}

.rankflow-chatbot__header {
	align-items: center;
	background: linear-gradient(135deg, #07111f, #12345a);
	color: #fff;
	display: grid;
	gap: 11px;
	grid-template-columns: 44px 1fr 36px;
	padding: 17px 18px;
}

.rankflow-chatbot__avatar {
	align-items: center;
	background: rgba(103, 232, 249, .16);
	border: 1px solid rgba(103, 232, 249, .36);
	border-radius: 13px;
	display: flex;
	height: 44px;
	justify-content: center;
	width: 44px;
}

.rankflow-chatbot__avatar svg {
	fill: #67e8f9;
	height: 25px;
	width: 25px;
}

.rankflow-chatbot__header strong {
	display: block;
	font-size: 16px;
	line-height: 1.3;
}

.rankflow-chatbot__header span {
	align-items: center;
	color: #cbd5e1;
	display: flex;
	font-size: 12px;
	gap: 6px;
	margin-top: 2px;
}

.rankflow-chatbot__header span i {
	background: #34d399;
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(52, 211, 153, .14);
	height: 7px;
	width: 7px;
}

.rankflow-chatbot__close {
	align-items: center;
	background: rgba(255, 255, 255, .08);
	border: 0;
	border-radius: 9px;
	color: #fff;
	cursor: pointer;
	display: flex;
	height: 34px;
	justify-content: center;
	padding: 0;
	width: 34px;
}

.rankflow-chatbot__close:hover {
	background: rgba(255, 255, 255, .16);
}

.rankflow-chatbot__close svg {
	fill: currentColor;
	height: 21px;
	width: 21px;
}

.rankflow-chatbot__messages {
	background:
		radial-gradient(circle at 100% 0, rgba(37, 99, 235, .06), transparent 35%),
		#f8fafc;
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 18px;
	scroll-behavior: smooth;
}

.rankflow-chatbot__message {
	clear: both;
	margin: 0 0 13px;
	max-width: 86%;
}

.rankflow-chatbot__message p {
	border-radius: 5px 16px 16px;
	box-shadow: 0 4px 15px rgba(15, 23, 42, .06);
	font-size: 14px;
	line-height: 1.55;
	margin: 0;
	padding: 11px 13px;
	white-space: pre-wrap;
}

.rankflow-chatbot__message--assistant {
	float: left;
}

.rankflow-chatbot__message--assistant p {
	background: #fff;
	border: 1px solid #e2e8f0;
	color: var(--rf-chat-ink);
}

.rankflow-chatbot__message--user {
	float: right;
}

.rankflow-chatbot__message--user p {
	background: var(--rf-chat-accent);
	border-radius: 16px 5px 16px 16px;
	color: #fff;
}

.rankflow-chatbot__message--typing p {
	color: var(--rf-chat-muted);
	font-style: italic;
}

.rankflow-chatbot__cta {
	color: var(--rf-chat-accent);
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	margin: 7px 0 0 12px;
	text-decoration: none;
}

.rankflow-chatbot__cta:hover {
	text-decoration: underline;
}

.rankflow-chatbot__suggestions {
	clear: both;
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	padding-top: 3px;
}

.rankflow-chatbot__suggestions[hidden] {
	display: none;
}

.rankflow-chatbot__suggestions button {
	background: #fff;
	border: 1px solid #bfdbfe;
	border-radius: 999px;
	color: #1d4ed8;
	cursor: pointer;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	padding: 8px 10px;
}

.rankflow-chatbot__suggestions button:hover {
	background: #eff6ff;
	border-color: #93c5fd;
}

.rankflow-chatbot__form {
	align-items: flex-end;
	background: #fff;
	border-top: 1px solid #e2e8f0;
	display: flex;
	gap: 8px;
	padding: 12px 13px 8px;
}

.rankflow-chatbot__form textarea {
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 13px;
	color: var(--rf-chat-ink);
	flex: 1 1 auto;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.45;
	max-height: 110px;
	min-height: 44px;
	padding: 11px 12px;
	resize: none;
}

.rankflow-chatbot__form textarea:focus {
	background: #fff;
	border-color: var(--rf-chat-accent);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
	outline: 0;
}

.rankflow-chatbot__form button {
	align-items: center;
	background: var(--rf-chat-accent);
	border: 0;
	border-radius: 12px;
	color: #fff;
	cursor: pointer;
	display: flex;
	flex: 0 0 44px;
	height: 44px;
	justify-content: center;
	padding: 0;
}

.rankflow-chatbot__form button:hover {
	background: var(--rf-chat-accent-dark);
}

.rankflow-chatbot__form button:disabled {
	cursor: wait;
	opacity: .55;
}

.rankflow-chatbot__form button svg {
	fill: currentColor;
	height: 21px;
	width: 21px;
}

.rankflow-chatbot__privacy {
	background: #fff;
	color: var(--rf-chat-muted);
	font-size: 10px;
	line-height: 1.35;
	margin: 0;
	padding: 0 14px 10px;
	text-align: center;
}

@media (max-width: 480px) {
	.rankflow-chatbot {
		bottom: 14px;
		right: 14px;
	}

	.rankflow-chatbot__panel {
		border-radius: 17px;
		height: min(620px, calc(100vh - 92px));
		width: calc(100vw - 28px);
	}

	.rankflow-chatbot__toggle {
		height: 56px;
		width: 56px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rankflow-chatbot__toggle,
	.rankflow-chatbot__messages {
		scroll-behavior: auto;
		transition: none;
	}
}
