#rbw-chatbot-root {
	--rbw-primary: #1E2E36;
	--rbw-accent: #00AAED;
	--rbw-text: #1c1c1c;
	--rbw-bg: #ffffff;
	--rbw-bubble-bot: #f1f3f5;
	position: fixed;
	bottom: 24px;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 15px;
	line-height: 1.4;
}

#rbw-chatbot-root.rbw-pos-bottom-right { right: 24px; }
#rbw-chatbot-root.rbw-pos-bottom-left { left: 24px; }

.rbw-toggle {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: rgb(173, 204, 68);
	color: #fff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0,0,0,0.2);
	position: relative;
	transition: transform 0.15s ease;
}
.rbw-toggle:hover { transform: scale(1.05); }
.rbw-toggle svg { width: 26px; height: 26px; }

.rbw-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	background: var(--rbw-accent);
	color: #fff;
	border-radius: 50%;
	width: 20px;
	height: 20px;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: scale(0.5);
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.rbw-badge.rbw-show { opacity: 1; transform: scale(1); }

.rbw-window {
	position: absolute;
	bottom: 76px;
	width: 360px;
	max-width: calc(100vw - 32px);
	height: 480px;
	max-height: calc(100vh - 140px);
	background: var(--rbw-bg);
	border-radius: 14px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.2);
	display: none;
	flex-direction: column;
	overflow: hidden;
}
#rbw-chatbot-root.rbw-pos-bottom-right .rbw-window { right: 0; }
#rbw-chatbot-root.rbw-pos-bottom-left .rbw-window { left: 0; }
.rbw-window.rbw-open { display: flex; }

.rbw-header {
	background: var(--rbw-primary);
	color: #fff;
	padding: 14px 16px;
	font-weight: 600;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.rbw-header button {
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
}

.rbw-messages {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rbw-msg {
	max-width: 80%;
	padding: 9px 13px;
	border-radius: 14px;
	white-space: pre-wrap;
	word-wrap: break-word;
}
.rbw-msg.rbw-bot {
	background: var(--rbw-bubble-bot);
	color: var(--rbw-text);
	align-self: flex-start;
	border-bottom-left-radius: 4px;
}
.rbw-msg.rbw-user {
	background: var(--rbw-accent);
	color: #fff;
	align-self: flex-end;
	border-bottom-right-radius: 4px;
}

.rbw-typing {
	align-self: flex-start;
	display: flex;
	gap: 4px;
	padding: 10px 13px;
	background: var(--rbw-bubble-bot);
	border-radius: 14px;
	border-bottom-left-radius: 4px;
}
.rbw-typing span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #999;
	animation: rbw-blink 1.2s infinite;
}
.rbw-typing span:nth-child(2) { animation-delay: 0.2s; }
.rbw-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes rbw-blink {
	0%, 80%, 100% { opacity: 0.3; }
	40% { opacity: 1; }
}

.rbw-suggestions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0 16px 12px;
}
.rbw-suggestion-btn {
	background: var(--rbw-bubble-bot);
	border: 1px solid #e0e0e0;
	border-radius: 16px;
	padding: 6px 12px;
	font-size: 13px;
	cursor: pointer;
	color: var(--rbw-text);
}
.rbw-suggestion-btn:hover { background: #e6e6e6; }

.rbw-input-row {
	display: flex;
	border-top: 1px solid #eee;
	padding: 10px;
	gap: 8px;
}
.rbw-input-row input {
	flex: 1;
	border: 1px solid #ddd;
	border-radius: 20px;
	padding: 9px 14px;
	font-size: 14px;
	outline: none;
}
.rbw-input-row input:focus { border-color: var(--rbw-accent); }
.rbw-send-btn {
	background: var(--rbw-accent);
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 38px;
	height: 38px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.rbw-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.rbw-error {
	font-size: 12px;
	color: #c0392b;
	padding: 0 16px 10px;
}

@media (max-width: 480px) {
	.rbw-window {
		width: calc(100vw - 32px);
		height: calc(100vh - 120px);
	}
}
