#ai-agent-chatbot-wrapper {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ai-agent-toggle {
	position: relative;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: none;
	background: #d97706;
	color: #fff;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease;
}

.ai-agent-toggle:hover {
	transform: scale(1.05);
}

.ai-agent-chat-window {
	position: absolute;
	right: 0;
	bottom: 70px;
	width: 340px;
	max-width: calc(100vw - 40px);
	height: 480px;
	max-height: calc(100vh - 110px);
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.ai-agent-closed .ai-agent-chat-window {
	display: none;
}

.ai-agent-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: #d97706;
	color: #fff;
	font-weight: 600;
}

#ai-agent-close {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.ai-agent-messages {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #f7f7f7;
}

.ai-agent-message {
	max-width: 80%;
	padding: 8px 12px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.4;
	word-wrap: break-word;
}

.ai-agent-bot {
	background: #fff;
	border: 1px solid #e5e7eb;
	align-self: flex-start;
	border-top-left-radius: 2px;
}

.ai-agent-user {
	background: #d97706;
	color: #fff;
	align-self: flex-end;
	border-top-right-radius: 2px;
}

.ai-agent-form {
	display: flex;
	gap: 8px;
	padding: 10px;
	border-top: 1px solid #e5e7eb;
	background: #fff;
}

.ai-agent-input {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 14px;
}

.ai-agent-input:focus {
	outline: none;
	border-color: #d97706;
}

.ai-agent-send {
	padding: 8px 14px;
	border: none;
	border-radius: 8px;
	background: #d97706;
	color: #fff;
	cursor: pointer;
	font-size: 14px;
}

.ai-agent-send:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

@media (max-width: 480px) {
	.ai-agent-toggle {
		width: 54px;
		height: 54px;
		right: 14px;
		bottom: 14px;
	}
}
