.nfc-editor {
	border: 1px solid #ced4da;
	border-radius: 4px;
	background: #fff;
	color: inherit;
}

.nfc-editor-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 6px;
	border-bottom: 1px solid #ced4da;
}

.nfc-editor-toolbar button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 4px;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.nfc-editor-toolbar button:hover,
.nfc-editor-toolbar button:focus {
	background: rgba(127, 127, 127, .15);
}

.nfc-editor-toolbar button.is-active {
	background: #0d6efd;
	border-color: #0d6efd;
	color: #fff;
}

.nfc-editor-toolbar svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
	pointer-events: none;
}

.nfc-editor-visual {
	position: relative;
	min-height: 160px;
	padding: 10px;
	outline: 0;
	z-index: 0;
}

.nfc-editor.nfc-visual-empty:not(.is-source) .nfc-editor-visual[data-ph]::before {
	content: attr(data-ph);
	color: inherit;
	font: inherit;
	line-height: 1.45;
	opacity: 0.52;
	pointer-events: none;
	position: absolute;
	left: 10px;
	right: 10px;
	top: 10px;
	white-space: pre-wrap;
	overflow-wrap: break-word;
	word-wrap: break-word;
	z-index: 0;
}

.nfc-editor-source {
	display: none;
	width: 100%;
	min-height: 160px;
	border: 0;
	padding: 10px;
	font: inherit;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	resize: vertical;
}

.nfc-editor.is-source .nfc-editor-visual {
	display: none;
}

.nfc-editor.is-source .nfc-editor-source {
	display: block;
}

.nfc-editor-original {
	display: none !important;
}
