#dac-chat-root {
	--dac-accent: #f07d1f;
	--dac-accent-dark: #d96a10;
	--dac-bg: #ffffff;
	--dac-text: #222222;
	--dac-bubble-user: #f07d1f;
	--dac-bubble-bot: #f1f1f1;
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.dac-chat-launcher {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--dac-accent);
	color: #fff;
	border: none;
	box-shadow: 0 4px 14px rgba(0,0,0,.25);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	transition: transform .15s ease;
}
.dac-chat-launcher:hover { transform: scale(1.06); }

.dac-chat-panel {
	position: absolute;
	bottom: 76px;
	right: 0;
	width: 360px;
	max-width: calc(100vw - 32px);
	height: 520px;
	max-height: calc(100vh - 120px);
	background: var(--dac-bg);
	border-radius: 14px;
	box-shadow: 0 10px 40px rgba(0,0,0,.25);
	display: none;
	flex-direction: column;
	overflow: hidden;
}
.dac-chat-panel.dac-open { display: flex; }

.dac-chat-header {
	background: var(--dac-accent);
	color: #fff;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.dac-chat-header strong { font-size: 15px; }
.dac-chat-header span { display: block; font-size: 11px; opacity: .9; }
.dac-chat-close {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	line-height: 1;
}

.dac-chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #fafafa;
}

.dac-msg {
	max-width: 85%;
	padding: 9px 12px;
	border-radius: 14px;
	font-size: 13.5px;
	line-height: 1.4;
	white-space: pre-wrap;
	word-wrap: break-word;
}
.dac-msg-user {
	align-self: flex-end;
	background: var(--dac-bubble-user);
	color: #fff;
	border-bottom-right-radius: 4px;
}
.dac-msg-bot {
	align-self: flex-start;
	background: var(--dac-bubble-bot);
	color: var(--dac-text);
	border-bottom-left-radius: 4px;
}
.dac-msg-system {
	align-self: center;
	background: transparent;
	color: #999;
	font-size: 11.5px;
}

.dac-chat-typing {
	align-self: flex-start;
	display: flex;
	gap: 4px;
	padding: 10px 12px;
}
.dac-chat-typing span {
	width: 6px; height: 6px; border-radius: 50%;
	background: #bbb;
	animation: dac-bounce 1.2s infinite ease-in-out;
}
.dac-chat-typing span:nth-child(2) { animation-delay: .15s; }
.dac-chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dac-bounce {
	0%, 80%, 100% { transform: translateY(0); opacity: .5; }
	40% { transform: translateY(-4px); opacity: 1; }
}

.dac-chat-inputrow {
	display: flex;
	border-top: 1px solid #eee;
	padding: 10px;
	gap: 8px;
}
.dac-chat-inputrow textarea {
	flex: 1;
	resize: none;
	border: 1px solid #ddd;
	border-radius: 10px;
	padding: 8px 10px;
	font-size: 13.5px;
	font-family: inherit;
	max-height: 70px;
}
.dac-chat-send {
	background: var(--dac-accent);
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 0 14px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
}
.dac-chat-send:hover { background: var(--dac-accent-dark); }
.dac-chat-send:disabled { opacity: .5; cursor: default; }

@media (max-width: 480px) {
	.dac-chat-panel { width: calc(100vw - 24px); right: -6px; }
}
