/* Chapter Quick Reactions — בסגנון הסגול הקיים של האתר */

.cqr,
.cqr * {
	font-family: 'Varela Round', sans-serif;
	box-sizing: border-box;
}

.cqr {
	direction: rtl;
	margin: 24px 0;
	padding: 18px 20px;
	background: #faf7ff;
	border: 1px solid #ede8f7;
	border-radius: 14px;
}

.cqr-title {
	font-size: 14px;
	font-weight: 700;
	color: #444;
	margin-bottom: 12px;
}

.cqr-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cqr-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: #fff;
	border: 1.5px solid #ede8f7;
	border-radius: 30px;
	font-size: 13px;
	color: #444;
	cursor: pointer;
	transition: transform 0.15s, border-color 0.15s, background 0.15s;
	font-family: inherit;
	line-height: 1.4;
}

.cqr-chip:hover:not(:disabled) {
	border-color: #c084fc;
	transform: translateY(-2px);
}

.cqr-chip:disabled {
	opacity: 0.55;
	cursor: default;
}

.cqr-chip.is-active {
	background: #f3eeff;
	border-color: #9b59b6;
	color: #7B4FA6;
	font-weight: 600;
}

.cqr-chip.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.cqr-emoji {
	font-size: 16px;
	line-height: 1;
}

.cqr-count {
	min-width: 18px;
	padding: 1px 6px;
	background: #f3eeff;
	color: #7B4FA6;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-align: center;
}

.cqr-count.is-empty {
	display: none;
}

.cqr-chip.is-active .cqr-count {
	background: #9b59b6;
	color: #fff;
}

.cqr-note {
	margin-top: 10px;
	font-size: 12px;
	color: #999;
}

.cqr-msg {
	margin-top: 10px;
	font-size: 12px;
	min-height: 16px;
}

.cqr-msg.is-ok { color: #27ae60; }
.cqr-msg.is-error { color: #e74c3c; }
.cqr-msg.is-login { color: #7B4FA6; }

@keyframes cqr-pop {
	0%   { transform: scale(1); }
	45%  { transform: scale(1.14); }
	100% { transform: scale(1); }
}

.cqr-chip.cqr-pop {
	animation: cqr-pop 0.4s ease;
}

@media (max-width: 480px) {
	.cqr {
		padding: 14px 14px;
	}

	.cqr-chip {
		padding: 7px 11px;
		font-size: 12px;
	}

	.cqr-row {
		gap: 6px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cqr-chip,
	.cqr-chip.cqr-pop {
		transition: none;
		animation: none;
	}
}
