.rf-nps-survey,
.rf-nps-thankyou {
	--rf-nps-accent: #2271b1;
	--rf-nps-muted: #646970;
	max-width: 640px;
	margin: 2rem auto;
	padding: 1.5rem;
	border: 1px solid #dcdcde;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.rf-nps-survey__title {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
	line-height: 1.3;
}

.rf-nps-survey__prompt {
	margin: 0 0 1.25rem;
	color: var(--rf-nps-muted);
}

.rf-nps-survey__scale {
	display: grid;
	grid-template-columns: repeat(11, minmax(0, 1fr));
	gap: 0.35rem;
	margin-bottom: 0.5rem;
}

.rf-nps-survey__score {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.35rem;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	background: #f6f7f7;
	color: #1d2327;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rf-nps-survey__score:hover,
.rf-nps-survey__score:focus {
	border-color: var(--rf-nps-accent);
	outline: none;
}

.rf-nps-survey__score.is-selected {
	border-color: var(--rf-nps-accent);
	background: var(--rf-nps-accent);
	color: #fff;
}

.rf-nps-survey__labels {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
	color: var(--rf-nps-muted);
	font-size: 0.85rem;
}

.rf-nps-survey__comment-wrap {
	margin-top: 1rem;
}

.rf-nps-survey__comment-label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.rf-nps-survey__comment {
	width: 100%;
	margin-bottom: 0.75rem;
	padding: 0.75rem;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
}

.rf-nps-survey__submit {
	display: inline-block;
	padding: 0.65rem 1.25rem;
	border: 0;
	border-radius: 8px;
	background: var(--rf-nps-accent);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

.rf-nps-survey__submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.rf-nps-survey__message,
.rf-nps-message {
	margin-top: 1rem;
}

.rf-nps-survey__message.is-success,
.rf-nps-message--success {
	color: #008a20;
}

.rf-nps-survey__message.is-error,
.rf-nps-message--error {
	color: #b32d2e;
}

@media (max-width: 640px) {
	.rf-nps-survey__scale {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.rf-nps-survey__score:nth-child(n+7) {
		grid-column: span 1;
	}
}
