/* NOVVIA Esthetic Finder — Frontend Rich-Text Editor (Über uns) */

.nef-description-editor,
.nef-account__editor {
	--nef-ed-border: var(--nef-border, rgba(0, 0, 0, 0.12));
	--nef-ed-surface: var(--nef-surface, #f7f7f7);
	--nef-ed-card: var(--nef-card, #fff);
	--nef-ed-text: var(--nef-body, #3d3d3d);
	--nef-ed-muted: var(--nef-muted, #5a5a5a);
	--nef-ed-accent: var(--nef-accent-dark, #5f7591);
	--nef-ed-radius: var(--nef-radius, 8px);
	--nef-ed-font: var(--nef-font, "Manrope", system-ui, sans-serif);
	width: 100%;
}

.nef-description-editor .wp-editor-wrap,
.nef-account__editor .wp-editor-wrap {
	border: 1px solid var(--nef-ed-border);
	border-radius: var(--nef-ed-radius);
	overflow: hidden;
	background: var(--nef-ed-card);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Toolbar header with Visuell / Code tabs */
.nef-description-editor .wp-editor-tools,
.nef-account__editor .wp-editor-tools {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-height: 36px;
	padding: 6px 8px;
	background: var(--nef-ed-surface);
	border-bottom: 1px solid var(--nef-ed-border);
}

.nef-description-editor .wp-editor-tabs,
.nef-account__editor .wp-editor-tabs {
	display: inline-flex;
	align-items: stretch;
	float: none !important;
	gap: 0;
	margin: 0;
	padding: 0;
	border: 1px solid var(--nef-ed-border);
	border-radius: 6px;
	overflow: hidden;
	background: var(--nef-ed-card);
}

.nef-description-editor .wp-switch-editor,
.nef-account__editor .wp-switch-editor {
	all: unset;
	box-sizing: border-box;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 72px !important;
	width: auto !important;
	height: 30px !important;
	padding: 0 14px !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--nef-ed-muted) !important;
	font-family: var(--nef-ed-font) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	letter-spacing: 0.02em;
	text-transform: none !important;
	cursor: pointer !important;
	box-shadow: none !important;
}

.nef-description-editor .wp-switch-editor + .wp-switch-editor,
.nef-account__editor .wp-switch-editor + .wp-switch-editor {
	border-left: 1px solid var(--nef-ed-border) !important;
}

.nef-description-editor .wp-editor-wrap.tmce-active .switch-tmce,
.nef-description-editor .wp-editor-wrap.html-active .switch-html,
.nef-account__editor .wp-editor-wrap.tmce-active .switch-tmce,
.nef-account__editor .wp-editor-wrap.html-active .switch-html {
	background: var(--nef-ed-accent) !important;
	color: #fff !important;
}

/* TinyMCE toolbar */
.nef-description-editor .wp-editor-container,
.nef-account__editor .wp-editor-container {
	border: none;
}

.nef-description-editor .mce-toolbar-grp,
.nef-account__editor .mce-toolbar-grp {
	background: var(--nef-ed-surface) !important;
	border-bottom: 1px solid var(--nef-ed-border) !important;
	padding: 4px 6px !important;
}

.nef-description-editor .mce-toolbar .mce-btn-group,
.nef-account__editor .mce-toolbar .mce-btn-group {
	padding: 2px 0;
}

.nef-description-editor .mce-toolbar .mce-btn,
.nef-account__editor .mce-toolbar .mce-btn {
	all: unset;
	box-sizing: border-box;
	display: inline-block;
	margin: 1px;
	border-radius: 6px !important;
	background: transparent !important;
	border: 1px solid transparent !important;
	box-shadow: none !important;
}

.nef-description-editor .mce-toolbar .mce-btn button,
.nef-account__editor .mce-toolbar .mce-btn button {
	all: unset;
	box-sizing: border-box;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	min-height: 32px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 6px !important;
	background: transparent !important;
	color: var(--nef-ed-text) !important;
	font-family: var(--nef-ed-font) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	cursor: pointer !important;
	box-shadow: none !important;
}

.nef-description-editor .mce-toolbar .mce-btn:hover button,
.nef-account__editor .mce-toolbar .mce-btn:hover button,
.nef-description-editor .mce-toolbar .mce-btn.mce-active button,
.nef-account__editor .mce-toolbar .mce-btn.mce-active button {
	background: color-mix(in srgb, var(--nef-ed-accent) 14%, #fff) !important;
	color: var(--nef-ed-accent) !important;
}

.nef-description-editor .mce-toolbar .mce-listbox button,
.nef-account__editor .mce-toolbar .mce-listbox button {
	width: auto !important;
	min-width: 96px !important;
	padding: 0 10px !important;
	font-weight: 500 !important;
}

.nef-description-editor .mce-toolbar .mce-ico,
.nef-account__editor .mce-toolbar .mce-ico {
	color: inherit !important;
}

/* Quicktags (Code tab) */
.nef-description-editor .quicktags-toolbar,
.nef-account__editor .quicktags-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 8px !important;
	background: var(--nef-ed-surface) !important;
	border-bottom: 1px solid var(--nef-ed-border) !important;
}

.nef-description-editor .quicktags-toolbar input.button.button-small,
.nef-account__editor .quicktags-toolbar input.button.button-small {
	all: unset;
	box-sizing: border-box;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	height: 30px !important;
	padding: 0 10px !important;
	border: 1px solid var(--nef-ed-border) !important;
	border-radius: 6px !important;
	background: var(--nef-ed-card) !important;
	color: var(--nef-ed-text) !important;
	font-family: var(--nef-ed-font) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
}

.nef-description-editor .quicktags-toolbar input.button.button-small:hover,
.nef-account__editor .quicktags-toolbar input.button.button-small:hover {
	border-color: var(--nef-ed-accent) !important;
	color: var(--nef-ed-accent) !important;
}

/* Editing area */
.nef-description-editor .wp-editor-area,
.nef-account__editor .wp-editor-area {
	width: 100% !important;
	min-height: 160px;
	padding: 14px 16px !important;
	border: none !important;
	border-radius: 0 !important;
	background: var(--nef-ed-card) !important;
	color: var(--nef-ed-text) !important;
	font-family: var(--nef-ed-font) !important;
	font-size: 0.95rem !important;
	line-height: 1.65 !important;
	resize: vertical;
}

.nef-description-editor .mce-edit-area iframe,
.nef-account__editor .mce-edit-area iframe {
	min-height: 160px;
}

.nef-description-editor .mce-statusbar,
.nef-account__editor .mce-statusbar {
	display: none !important;
}

/* Account table: editor full width */
.nef-account__editor-row th {
	vertical-align: top;
	padding-top: 14px !important;
}

.nef-account__editor-row td {
	padding-top: 8px !important;
}

.nef-account__editor-hint {
	margin: 8px 0 0;
	color: var(--nef-ed-muted);
	font-size: 13px;
	line-height: 1.5;
}
