#pds-ai-widget {
	--pds-ai-color: #0b3d91;
	position: fixed;
	bottom: 20px;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

#pds-ai-widget.pds-ai-pos-right {
	right: 20px;
}

#pds-ai-widget.pds-ai-pos-left {
	left: 20px;
}

#pds-ai-toggle {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--pds-ai-color);
	color: #fff;
	border: none;
	font-size: 26px;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

#pds-ai-chatbox {
	position: absolute;
	bottom: 74px;
	width: 340px;
	max-width: 90vw;
	height: 460px;
	max-height: 70vh;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0,0,0,0.25);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

#pds-ai-widget.pds-ai-pos-right #pds-ai-chatbox {
	right: 0;
}

#pds-ai-widget.pds-ai-pos-left #pds-ai-chatbox {
	left: 0;
}

#pds-ai-header {
	background: var(--pds-ai-color);
	color: #fff;
	padding: 12px 14px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 600;
	font-size: 14px;
}

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

#pds-ai-messages {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
	background: #f5f7fa;
}

.pds-ai-msg {
	margin-bottom: 10px;
	max-width: 85%;
	padding: 8px 12px;
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.4;
	white-space: pre-wrap;
}

.pds-ai-msg.user {
	background: var(--pds-ai-color);
	color: #fff;
	margin-left: auto;
	border-bottom-right-radius: 2px;
}

.pds-ai-msg.assistant {
	background: #e9edf3;
	color: #1a1a1a;
	margin-right: auto;
	border-bottom-left-radius: 2px;
}

.pds-ai-msg.assistant a {
	color: var(--pds-ai-color);
	font-weight: 600;
	text-decoration: underline;
	word-break: break-word;
}

.pds-ai-msg.typing {
	background: #e9edf3;
	color: #888;
	font-style: italic;
}

#pds-ai-input-row {
	display: flex;
	border-top: 1px solid #e2e2e2;
	padding: 8px;
	background: #fff;
}

#pds-ai-input {
	flex: 1;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 8px 10px;
	font-size: 13px;
	outline: none;
}

#pds-ai-send {
	margin-left: 8px;
	background: var(--pds-ai-color);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 8px 14px;
	font-size: 13px;
	cursor: pointer;
}

#pds-ai-send:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
