/* Gamanor-style greens; max z-index so chat stays above megamenu / overlays */
.ai-chat-root {
	position: relative;
	z-index: 2147483000;
	isolation: isolate;
}
.ai-chat-bubble {
	position: fixed;
	right: 16px;
	bottom: 16px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #2e7d32;
	color: #fff;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 18px rgba(46, 125, 50, 0.45);
	font-size: 22px;
	line-height: 56px;
	text-align: center;
	z-index: 2147483001;
}
.ai-chat-bubble:hover {
	background: #1b5e20;
}
.ai-chat-bubble:focus {
	outline: 2px solid #a5d6a7;
	outline-offset: 2px;
}
.ai-chat-panel {
	position: fixed;
	right: 16px;
	bottom: 84px;
	width: 360px;
	max-width: calc(100vw - 32px);
	height: 440px;
	max-height: calc(100vh - 120px);
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
	display: none;
	flex-direction: column;
	overflow: hidden;
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	font-size: 14px;
	color: #212121;
	z-index: 2147483001;
	border: 1px solid #c8e6c9;
}
.ai-chat-panel.ai-chat-open {
	display: flex;
}
.ai-chat-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 14px;
	background: #1b5e20;
	color: #fff;
	font-weight: 600;
}
.ai-chat-header-title {
	flex: 1;
	min-width: 0;
}
.ai-chat-header-close {
	flex-shrink: 0;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	padding: 0 2px 4px;
	cursor: pointer;
	opacity: 0.88;
	border-radius: 4px;
}
.ai-chat-header-close:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.12);
}
.ai-chat-header-close:focus {
	outline: 2px solid #a5d6a7;
	outline-offset: 1px;
}
.ai-chat-quick-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}
.ai-chat-quick-btn {
	border: 1px solid #43a047;
	background: #fff;
	border-radius: 8px;
	padding: 8px 12px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: #1b5e20;
	text-align: left;
	line-height: 1.35;
    margin-bottom: 10px;
}
.ai-chat-quick-btn:hover {
	background: #e8f5e9;
	border-color: #2e7d32;
}
.ai-chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
	background: #fafafa;
}
.ai-chat-msg {
	margin-bottom: 10px;
	padding: 8px 10px;
	border-radius: 8px;
	max-width: 92%;
	word-break: break-word;
	line-height: 1.45;
}
.ai-chat-msg-user {
	background: #e8f5e9;
	margin-left: auto;
	border: 1px solid #c8e6c9;
	color: #1b5e20;
}
.ai-chat-msg-assistant {
	background: #fff;
	border: 1px solid #e0e0e0;
	color: #333;
}
.ai-chat-options {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}
.ai-chat-opt {
	border: 1px solid #81c784;
	background: #fff;
	border-radius: 6px;
	padding: 4px 8px;
	cursor: pointer;
	font-size: 13px;
	color: #2e7d32;
}
.ai-chat-opt:hover {
	background: #e8f5e9;
	border-color: #43a047;
}
.ai-chat-input-row {
	display: flex;
	gap: 8px;
	padding: 10px;
	border-top: 1px solid #e0e0e0;
	background: #fff;
}
.ai-chat-input-row input {
	flex: 1;
	padding: 8px 10px;
	border: 1px solid #bdbdbd;
	border-radius: 6px;
	color: #333;
}
.ai-chat-input-row input:focus {
	border-color: #2e7d32;
	outline: none;
	box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}
.ai-chat-input-row button {
	padding: 8px 12px;
	background: #2e7d32;
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
}
.ai-chat-input-row button:hover {
	background: #1b5e20;
}
.ai-chat-input-row button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.ai-chat-welcome {
	font-size: 13px;
	color: #424242;
	margin-bottom: 8px;
}
