#alphaa-chatbot-root {
	position: fixed;
	z-index: 999999;
	bottom: 24px;
	right: 24px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.acb-launcher {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #1a56db;
	box-shadow: 0 6px 18px rgba(26, 86, 219, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border: none;
	transition: transform 0.15s ease;
}
.acb-launcher:hover { transform: scale(1.06); }
.acb-launcher svg { width: 28px; height: 28px; fill: #fff; }

.acb-badge {
	position: absolute;
	top: -2px;
	right: -2px;
	width: 14px;
	height: 14px;
	background: #f97316;
	border-radius: 50%;
	border: 2px solid #fff;
}

.acb-window {
	position: absolute;
	bottom: 76px;
	right: 0;
	width: 360px;
	max-width: calc(100vw - 32px);
	height: 520px;
	max-height: calc(100vh - 140px);
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0,0,0,0.18);
	display: none;
	flex-direction: column;
	overflow: hidden;
}
.acb-window.acb-open { display: flex; }

.acb-header {
	background: linear-gradient(135deg, #1a56db, #1e40af);
	color: #fff;
	padding: 16px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.acb-header-title { font-weight: 600; font-size: 15px; }
.acb-header-sub { font-size: 12px; opacity: 0.85; margin-top: 2px; }
.acb-close {
	background: none; border: none; color: #fff; cursor: pointer;
	font-size: 20px; line-height: 1; opacity: 0.85;
}
.acb-close:hover { opacity: 1; }

.acb-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	background: #f5f7fb;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.acb-msg {
	max-width: 82%;
	padding: 10px 13px;
	border-radius: 14px;
	font-size: 13.5px;
	line-height: 1.45;
}
.acb-msg-bot {
	background: #fff;
	color: #1f2937;
	border-bottom-left-radius: 4px;
	align-self: flex-start;
	box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.acb-msg-user {
	background: #1a56db;
	color: #fff;
	border-bottom-right-radius: 4px;
	align-self: flex-end;
}

.acb-options {
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-self: stretch;
}
.acb-option-btn {
	background: #fff;
	border: 1px solid #d7dee8;
	color: #1a56db;
	padding: 9px 12px;
	border-radius: 10px;
	font-size: 13px;
	text-align: left;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: background 0.12s ease, border-color 0.12s ease;
}
.acb-option-btn:hover { background: #eef3ff; border-color: #1a56db; }

.acb-form {
	background: #fff;
	border-radius: 12px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.acb-form-title { font-size: 13px; font-weight: 600; color: #1f2937; margin-bottom: 2px; }
.acb-field label {
	display: block;
	font-size: 11.5px;
	color: #55606e;
	margin-bottom: 3px;
}
.acb-field input,
.acb-field select,
.acb-field textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #d7dee8;
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 13px;
	font-family: inherit;
}
.acb-field textarea { resize: vertical; min-height: 50px; }
.acb-submit-btn {
	margin-top: 4px;
	background: #1a56db;
	color: #fff;
	border: none;
	padding: 10px;
	border-radius: 9px;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
}
.acb-submit-btn:disabled { opacity: 0.6; cursor: default; }
.acb-error { color: #dc2626; font-size: 12px; }

.acb-restart {
	align-self: flex-start;
	background: none;
	border: none;
	color: #1a56db;
	font-size: 12px;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
}

.acb-typing {
	display: flex;
	gap: 4px;
	padding: 10px 13px;
	background: #fff;
	border-radius: 14px;
	align-self: flex-start;
	box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.acb-typing span {
	width: 6px; height: 6px; border-radius: 50%; background: #9ca3af;
	animation: acb-bounce 1.1s infinite ease-in-out;
}
.acb-typing span:nth-child(2) { animation-delay: 0.15s; }
.acb-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes acb-bounce {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
	30% { transform: translateY(-4px); opacity: 1; }
}

@media (max-width: 420px) {
	#alphaa-chatbot-root { bottom: 16px; right: 16px; }
	.acb-window { width: calc(100vw - 24px); right: -12px; }
}
