.config-apocrypha-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.5rem 0;
	cursor: pointer;
	font-size: 0.9rem;
	color: var(--color-text);
}

.config-switch {
	position: relative;
	flex-shrink: 0;
	width: 40px;
	height: 22px;
}

.config-switch input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}

.config-switch-track {
	position: absolute;
	inset: 0;
	background: var(--color-background-active);
	border: 1px solid var(--color-border);
	border-radius: 999px;
	transition: background 0.2s ease, border-color 0.2s ease;
	pointer-events: none;
}

.config-switch-track::after {
	content: '';
	position: absolute;
	top: 2px;
	inset-inline-start: 2px;
	width: 16px;
	height: 16px;
	background: var(--color-background);
	border-radius: 50%;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
	transition: translate 0.2s ease;
}

.config-switch input:checked + .config-switch-track {
	background: var(--color-primary);
	border-color: var(--color-primary);
}

.config-switch input:checked + .config-switch-track::after {
	translate: 18px 0;
}

[dir="rtl"] .config-switch input:checked + .config-switch-track::after {
	translate: -18px 0;
}

.config-switch input:focus-visible + .config-switch-track {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}
