#hcprc-chatbot-root { --hcprcbot-color: #0a6ebd; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#hcprc-chatbot-root * { box-sizing: border-box; }
#hcprc-chatbot-root [hidden] { display: none !important; }

.hcprcbot-toggle {
	position: fixed; right: 20px; bottom: 20px; z-index: 99998;
	width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--hcprcbot-color); color: #fff; font-size: 28px; line-height: 1;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.hcprcbot-panel {
	position: fixed; right: 20px; bottom: 20px; z-index: 99999;
	width: 360px; max-width: calc(100vw - 24px); height: 520px; max-height: calc(100vh - 40px);
	display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
}
.hcprcbot-header {
	display: flex; align-items: center; justify-content: space-between;
	background: var(--hcprcbot-color); color: #fff; padding: 12px 14px; font-weight: 600;
}
.hcprcbot-close { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.hcprcbot-log { flex: 1; overflow-y: auto; padding: 12px; background: #f4f6f8; }
.hcprcbot-msg {
	max-width: 88%; margin: 0 0 8px; padding: 9px 12px; border-radius: 12px;
	font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word;
}
.hcprcbot-bot { background: #fff; color: #222; border: 1px solid #e1e5ea; border-bottom-left-radius: 3px; }
.hcprcbot-user { background: var(--hcprcbot-color); color: #fff; margin-left: auto; border-bottom-right-radius: 3px; }
.hcprcbot-bot a { color: var(--hcprcbot-color); }
.hcprcbot-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px; background: #f4f6f8; }
.hcprcbot-chips:not(:empty) { padding-bottom: 10px; }
.hcprcbot-chip {
	background: #fff; color: var(--hcprcbot-color); border: 1px solid var(--hcprcbot-color);
	border-radius: 16px; padding: 5px 11px; font-size: 13px; cursor: pointer;
}
.hcprcbot-form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid #e1e5ea; background: #fff; }
.hcprcbot-input { flex: 1; min-width: 0; border: 1px solid #c9d0d8; border-radius: 8px; padding: 9px 10px; font-size: 14px; }
.hcprcbot-send { background: var(--hcprcbot-color); color: #fff; border: 0; border-radius: 8px; padding: 0 14px; cursor: pointer; font-size: 14px; }

@media (max-width: 480px) {
	.hcprcbot-panel { right: 8px; bottom: 8px; height: calc(100vh - 16px); max-height: none; }
}
