/* WeblySuitePress · ReAct pills (WEB-42) */

.wsp-react-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-bottom: 8px;
}

.wsp-react-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 9px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	background: var(--pill-bg, #f3f4f6);
	color: var(--pill-color, #6b7280);
	border: 1px solid transparent;
	transition: opacity 0.3s;
}

.wsp-react-pill.wsp-pill-active {
	animation: wspPillPulse 1.2s ease-in-out infinite;
	border-color: var(--pill-color, #6b7280);
}

@keyframes wspPillPulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.45;
	}
}

.wsp-pill-icon {
	font-size: 12px;
}

.wsp-answer-content {
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.6;
	color: #1f2937;
	word-break: normal;
	overflow-wrap: break-word;
}

.wsp-answer-content .wsp-p {
	word-break: normal;
	overflow-wrap: break-word;
}

.wsp-answer-content .wsp-p {
	margin: 0 0 8px 0;
}

.wsp-answer-content .wsp-h1,
.wsp-answer-content .wsp-h2,
.wsp-answer-content .wsp-h3 {
	font-weight: 700;
	margin: 10px 0 4px 0;
	line-height: 1.3;
}

.wsp-answer-content .wsp-h1 {
	font-size: 15px;
}

.wsp-answer-content .wsp-h2 {
	font-size: 14px;
}

.wsp-answer-content .wsp-h3 {
	font-size: 13px;
}

.wsp-answer-content .wsp-ul {
	margin: 4px 0 8px 18px;
	padding: 0;
	list-style: disc;
}

.wsp-answer-content .wsp-hr {
	border: 0;
	border-top: 1px solid #e5e7eb;
	margin: 10px 0;
}

.wsp-answer-content .wsp-table-wrap {
	overflow-x: auto;
	margin: 8px 0 12px;
	-webkit-overflow-scrolling: touch;
}

.wsp-answer-content .wsp-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
	line-height: 1.4;
}

.wsp-answer-content .wsp-table th,
.wsp-answer-content .wsp-table td {
	border: 1px solid #e5e7eb;
	padding: 6px 8px;
	text-align: left;
	vertical-align: top;
}

.wsp-answer-content .wsp-table th {
	background: #f9fafb;
	font-weight: 600;
}

.wsp-answer-content .wsp-table tr:nth-child(even) td {
	background: #fafafa;
}

.wsp-answer-content .wsp-code,
.wsp-answer-content pre.wsp-code {
	background: #f3f4f6;
	border-radius: 6px;
	padding: 8px 10px;
	font-size: 12px;
	overflow-x: auto;
}

.wsp-answer-content .wsp-inline-code {
	background: #f3f4f6;
	border-radius: 4px;
	padding: 1px 4px;
	font-size: 12px;
}

.wsp-error {
	color: #b91c1c;
}

.wsp-message-assistant.wsp-streaming .wsp-answer-content:empty {
	display: none;
}

.wsp-typing {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px 2px 4px;
	width: 100%;
	clear: both;
}

.wsp-typing span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #9ca3af;
	animation: wspTypingBounce 1.2s ease-in-out infinite;
}

.wsp-typing span:nth-child(2) {
	animation-delay: 0.15s;
}

.wsp-typing span:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes wspTypingBounce {
	0%,
	80%,
	100% {
		transform: translateY(0);
		opacity: 0.45;
	}
	40% {
		transform: translateY(-4px);
		opacity: 1;
	}
}
