.sme-wrapper {
	position: relative;
	width: 100%;
	margin: 0;
}

.sme-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 6px;
	border: 1px solid #d5d5d5;
	border-bottom: 0;
	background: rgba(0, 0, 0, 0.03);
}

.sme-button {
	min-width: 32px;
	height: 30px;
	padding: 3px 8px;
	border: 1px solid #c5c5c5;
	border-radius: 3px;
	background: #fff;
	color: #333;
	cursor: pointer;
	font: inherit;
	line-height: 1.2;
}

.sme-button:hover,
.sme-button:focus,
.sme-button.sme-active {
	background: #eef4fb;
	border-color: #8ab4df;
	outline: none;
}

.sme-bold {
	font-weight: 700;
}

.sme-italic {
	font-style: italic;
}


.sme-mode {
	margin-left: auto;
}

.sme-visual {
	min-height: 180px;
	overflow: auto;
	resize: vertical;
	padding: 10px 12px;
	border: 1px solid #d5d5d5;
	background: #fff;
	color: #333;
	line-height: 1.5;
	text-align: left;
}

.sme-visual:focus {
	border-color: #66afe9;
	outline: 0;
	box-shadow: 0 0 5px rgba(102, 175, 233, 0.4);
}

.sme-visual p {
	margin: 0 0 0.8em;
}

.sme-visual h1,
.sme-visual h2,
.sme-visual h3 {
	margin-top: 0.8em;
	margin-bottom: 0.4em;
}

.sme-visual blockquote {
	margin: 0.8em 0;
	padding-left: 12px;
	border-left: 3px solid #ccc;
}

.sme-visual pre {
	white-space: pre-wrap;
	padding: 8px;
	border: 1px solid #ddd;
	background: rgba(0, 0, 0, 0.03);
}

.sme-visual code {
	font-family: monospace;
	padding: 1px 3px;
	background: rgba(0, 0, 0, 0.06);
}

.sme-source {
	display: none !important;
	width: 100% !important;
	min-height: 180px;
	margin-top: 0;
	font-family: monospace;
	resize: vertical;
}

.sme-source.sme-source-visible {
	display: block !important;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

@media (max-width: 767px) {
	.sme-mode {
		margin-left: 0;
	}

	.sme-visual,
	.sme-source.sme-source-visible {
		min-height: 140px;
	}
}


.sme-visual table {
	width: 100%;
	margin: 0.8em 0;
	border-collapse: collapse;
	table-layout: auto;
}

.sme-visual th,
.sme-visual td {
	min-width: 80px;
	padding: 6px 8px;
	border: 1px solid #ccc;
	vertical-align: top;
}

.sme-visual th {
	font-weight: 700;
	background: rgba(0, 0, 0, 0.04);
}



.sme-select {
	height: 30px;
	padding: 3px 6px;
	border: 1px solid #c5c5c5;
	border-radius: 3px;
	background: #fff;
	color: #333;
	font: inherit;
}

.sme-select:focus {
	border-color: #8ab4df;
	outline: none;
}

.sme-visual hr {
	margin: 1.2em 0;
	border: 0;
	border-top: 1px solid #c5c5c5;
}

.sme-visual ul ul,
.sme-visual ul ol,
.sme-visual ol ul,
.sme-visual ol ol {
	margin-top: 0.25em;
	margin-bottom: 0.25em;
}


.sme-visual p[data-sme-table-spacer="1"] {
	min-height: 1.6em;
	margin: 0.35em 0;
	padding: 2px 0;
	cursor: text;
}


.sme-mention-autocomplete {
	position: absolute;
	z-index: 10000;
	min-width: 240px;
	max-width: 360px;
	max-height: 260px;
	overflow-y: auto;
	padding: 4px 0;
	border: 1px solid #c5c5c5;
	border-radius: 3px;
	background: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.sme-mention-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 7px 10px;
	border: 0;
	background: #fff;
	color: #333;
	text-align: left;
	cursor: pointer;
	font: inherit;
}

.sme-mention-item:hover,
.sme-mention-item.sme-active {
	background: #eef4fb;
}

.sme-mention-realname {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sme-mention-username {
	flex: 0 0 auto;
	color: #777;
	font-size: 0.9em;
}


.sme-visual p[data-sme-blank-line="1"] {
	min-height: 1.2em;
	margin: 0;
	padding: 0;
	cursor: text;
}
