:root {
	--rendher-chat-accent: #c5ff00;
	--rendher-chat-bg: #0b0d11;
	--rendher-chat-panel: #121417;
	--rendher-chat-border: rgba(197, 255, 0, 0.24);
	--rendher-chat-text: #f7f8fb;
	--rendher-chat-muted: rgba(241, 244, 251, 0.7);
}

.rendher-chatbot {
	position: fixed;
	right: 28px;
	bottom: 28px;
	z-index: 99999;
	font-family: "Segoe UI", Arial, sans-serif;
}

.rendher-chatbot__launcher {
	width: 78px;
	height: 78px;
	border: 0;
	border-radius: 999px;
	background: var(--rendher-chat-accent);
	color: #0b0d11;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.rendher-chatbot__launcher svg {
	width: 30px;
	height: 30px;
	display: block;
	margin: 0 auto;
}

.rendher-chatbot__panel {
	position: absolute;
	right: 0;
	bottom: 98px;
	width: min(var(--rendher-chat-panel-width, 460px), calc(100vw - 24px));
	background: linear-gradient(180deg, rgba(11, 13, 17, 0.98), rgba(19, 21, 24, 0.98));
	color: var(--rendher-chat-text);
	border: 1px solid var(--rendher-chat-border);
	border-radius: 26px;
	overflow: hidden;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
	display: none;
}

.rendher-chatbot.is-open .rendher-chatbot__panel {
	display: block;
}

.rendher-chatbot__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 20px 18px;
	border-bottom: 1px solid rgba(197, 255, 0, 0.16);
}

.rendher-chatbot__identity {
	display: flex;
	align-items: center;
	gap: 14px;
}

.rendher-chatbot__logo {
	width: 56px;
	height: 56px;
	border-radius: 999px;
	border: 2px solid var(--rendher-chat-accent);
	overflow: hidden;
	flex: none;
	background: #111;
}

.rendher-chatbot__logo img,
.rendher-chatbot__brand img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rendher-chatbot__name {
	font-size: 1.55rem;
	font-weight: 700;
	line-height: 1;
}

.rendher-chatbot__status {
	margin-top: 6px;
	font-size: 0.95rem;
	color: var(--rendher-chat-muted);
	display: flex;
	align-items: center;
	gap: 8px;
}

.rendher-chatbot__status::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--rendher-chat-accent);
	box-shadow: 0 0 0 4px rgba(197, 255, 0, 0.16);
}

.rendher-chatbot__close {
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.65);
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

.rendher-chatbot__body {
	padding: 22px 20px 20px;
}

.rendher-chatbot__welcome,
.rendher-chatbot__chat,
.rendher-chatbot__lead,
.rendher-chatbot__handoff {
	display: none;
}

.rendher-chatbot__view--welcome .rendher-chatbot__welcome,
.rendher-chatbot__view--chat .rendher-chatbot__chat,
.rendher-chatbot__view--lead .rendher-chatbot__lead,
.rendher-chatbot__view--handoff .rendher-chatbot__handoff {
	display: block;
}

.rendher-chatbot__brand {
	text-align: center;
	margin-bottom: 22px;
}

.rendher-chatbot__brand img {
	width: 92px;
	height: 92px;
	border-radius: 18px;
	margin-bottom: 16px;
}

.rendher-chatbot__title {
	margin: 0 0 8px;
	font-size: 2rem;
	line-height: 1.1;
}

.rendher-chatbot__title strong {
	color: var(--rendher-chat-accent);
}

.rendher-chatbot__subtitle,
.rendher-chatbot__handoff-copy {
	margin: 0;
	color: var(--rendher-chat-muted);
	font-size: 1rem;
}

.rendher-chatbot__lang-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 8px;
	margin-top: 18px;
}

.rendher-chatbot__lang {
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.04);
	border-radius: 12px;
	padding: 10px 4px;
	color: #fff;
	cursor: pointer;
	text-align: center;
}

.rendher-chatbot__lang:hover {
	border-color: rgba(197, 255, 0, 0.42);
}

.rendher-chatbot__lang-code {
	display: block;
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1;
}

.rendher-chatbot__actions {
	display: flex;
	gap: 12px;
	margin-top: 18px;
}

.rendher-chatbot__actions--stack {
	flex-wrap: wrap;
}

.rendher-chatbot__actions--wrap {
	flex-wrap: wrap;
}

.rendher-chatbot__button {
	flex: 1 1 30%;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	padding: 14px 16px;
	border-radius: 16px;
	cursor: pointer;
	font-weight: 600;
}

.rendher-chatbot__button--accent {
	border-color: var(--rendher-chat-accent);
	background: rgba(197, 255, 0, 0.1);
	color: var(--rendher-chat-accent);
}

.rendher-chatbot__messages {
	height: 340px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-right: 4px;
	margin-bottom: 14px;
}

.rendher-chatbot__bubble {
	max-width: 84%;
	padding: 14px 16px;
	border-radius: 18px;
	line-height: 1.55;
	font-size: 0.98rem;
	white-space: pre-wrap;
}

.rendher-chatbot__bubble--assistant {
	align-self: flex-start;
	background: rgba(255, 255, 255, 0.06);
}

.rendher-chatbot__bubble--user {
	align-self: flex-end;
	background: rgba(197, 255, 0, 0.12);
	border: 1px solid rgba(197, 255, 0, 0.2);
}

.rendher-chatbot__sources {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.rendher-chatbot__sources-label {
	color: var(--rendher-chat-muted);
	font-size: 0.76rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.rendher-chatbot__source-chip {
	border: 1px solid rgba(197, 255, 0, 0.2);
	background: rgba(197, 255, 0, 0.08);
	color: var(--rendher-chat-accent);
	font-size: 0.78rem;
	padding: 6px 10px;
	border-radius: 999px;
}

.rendher-chatbot__composer {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
}

.rendher-chatbot__composer textarea,
.rendher-chatbot__lead input,
.rendher-chatbot__lead textarea {
	width: 100%;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	color: #fff;
	padding: 14px 16px;
}

.rendher-chatbot__composer textarea {
	height: 56px;
	resize: none;
}

.rendher-chatbot__send {
	border: 0;
	background: var(--rendher-chat-accent);
	color: #0b0d11;
	border-radius: 16px;
	padding: 0 18px;
	font-weight: 700;
	cursor: pointer;
}

.rendher-chatbot__lead h4,
.rendher-chatbot__handoff h4 {
	margin: 0 0 8px;
	font-size: 1.3rem;
}

.rendher-chatbot__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 14px;
	color: var(--rendher-chat-muted);
	font-size: 0.9rem;
}

.rendher-chatbot__consent input {
	margin-top: 2px;
}

.rendher-chatbot__legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}

.rendher-chatbot__legal-links a {
	color: var(--rendher-chat-accent);
	font-size: 0.85rem;
	text-decoration: underline;
}

.rendher-chatbot__handoff-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 18px;
}

.rendher-chatbot__handoff-card {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 72px;
	text-align: center;
	text-decoration: none;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	padding: 14px;
}

.rendher-chatbot__handoff-card:hover {
	border-color: rgba(197, 255, 0, 0.35);
}

.rendher-chatbot__handoff-label {
	font-weight: 700;
}

.rendher-chatbot__fine {
	font-size: 0.85rem;
	color: var(--rendher-chat-muted);
}

@media (max-width: 680px) {
	.rendher-chatbot {
		right: 12px;
		bottom: 12px;
	}

	.rendher-chatbot__panel {
		right: -2px;
		bottom: 88px;
		width: calc(100vw - 24px);
	}

	.rendher-chatbot__lang-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.rendher-chatbot__handoff-grid {
		grid-template-columns: 1fr;
	}
}
