#toto-chatbot-root {
	--toto-accent: #5b3df0;
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#toto-chatbot-toggle {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--toto-accent);
	color: #fff;
	border: none;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	padding: 0;
}

#toto-chatbot-toggle:hover {
	transform: scale(1.06);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.toto-chatbot-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	overflow: hidden;
}

.toto-chatbot-icon img,
.toto-chatbot-icon svg {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

#toto-chatbot-window {
	position: absolute;
	bottom: 76px;
	left: 0;
	width: 340px;
	max-width: 90vw;
	height: 460px;
	max-height: 70vh;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: toto-pop-in 0.15s ease;
}

@keyframes toto-pop-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.toto-hidden {
	display: none !important;
}

.toto-chatbot-header {
	background: var(--toto-accent);
	color: #fff;
	padding: 12px 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.toto-chatbot-header-icon {
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.toto-chatbot-header-icon img,
.toto-chatbot-header-icon svg {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.toto-chatbot-title {
	font-weight: 600;
	flex: 1;
}

#toto-chatbot-close {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}

#toto-chatbot-messages {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: #f7f7fb;
}

.toto-msg {
	max-width: 85%;
	padding: 8px 12px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.4;
	word-wrap: break-word;
}

.toto-msg.bot {
	background: #fff;
	border: 1px solid #ececf3;
	align-self: flex-start;
	border-bottom-left-radius: 2px;
}

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

.toto-msg a {
	color: inherit;
	text-decoration: underline;
}

#toto-chatbot-form {
	display: flex;
	gap: 6px;
	padding: 10px;
	border-top: 1px solid #ececf3;
	background: #fff;
}

#toto-chatbot-input {
	flex: 1;
	border: 1px solid #ddd;
	border-radius: 20px;
	padding: 8px 14px;
	font-size: 14px;
	outline: none;
}

#toto-chatbot-input:focus {
	border-color: var(--toto-accent);
}

#toto-chatbot-send {
	background: var(--toto-accent);
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
}

@media (max-width: 480px) {
	#toto-chatbot-root {
		left: 12px;
		bottom: 12px;
	}
	#toto-chatbot-window {
		width: 92vw;
	}
}

.toto-lead-wrap {
	max-width: 95% !important;
	width: 95%;
}

.toto-lead-form {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 4px;
}

.toto-lead-form input {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 7px 10px;
	font-size: 13px;
	outline: none;
}

.toto-lead-form input:focus {
	border-color: var(--toto-accent);
}

.toto-lead-submit {
	background: var(--toto-accent);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 7px 10px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.toto-lead-error {
	color: #c0392b;
	background: #fdecea;
	border: 1px solid #f5b7b1;
	border-radius: 6px;
	padding: 6px 10px;
	font-size: 12px;
	margin: 0;
}
