.nf-graphic-captcha {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	max-width: 100%;
}

.nf-graphic-captcha__image-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.nf-graphic-captcha__image {
	display: block;
	border: 1px solid #d9d9d9;
	border-radius: 4px;
	background: #f5f7fa;
	user-select: none;
}

.nf-graphic-captcha__refresh {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 3.75rem;
	width: 3.75rem;
	height: 2.75rem;
	padding: 0 0.5rem;
	cursor: pointer;
	border: 1px solid #d9d9d9;
	background: #fff;
	border-radius: 4px;
	color: #d31212;
	line-height: 0;
}

.nf-graphic-captcha__refresh-icon {
	display: block;
}

.nf-graphic-captcha__refresh:hover:not(:disabled) {
	border-color: #d31212;
	color: #d31212;
	background: #fff5f5;
}

.nf-graphic-captcha__refresh:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.nf-graphic-captcha__refresh.is-loading .nf-graphic-captcha__refresh-icon {
	animation: nf-gcap-spin 0.8s linear infinite;
}

@keyframes nf-gcap-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.nf-graphic-captcha__input {
	max-width: 14rem;
	padding: 0.6rem 0.85rem;
	border: 1px solid #d9d9d9;
	border-radius: 4px;
	font-size: 1.25rem;
	line-height: 1.5;
	letter-spacing: 0.2em;
}

.nf-graphic-captcha__input:focus {
	outline: none;
	border-color: #1677ff;
	box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.15);
}
