.vol-wysiwyg {
	position: relative;
	border: 1px solid #cfd8d3;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}

.vol-wysiwyg__toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: center;
	padding: 7px;
	border-bottom: 1px solid #e3ebe7;
	background: #f7faf8;
}

.vol-wysiwyg__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 32px;
	border: 1px solid #d8e3dc;
	border-radius: 7px;
	color: #173426;
	background: #fff;
	line-height: 1;
	transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.vol-wysiwyg__button:hover,
.vol-wysiwyg__button:focus {
	border-color: #008318;
	color: #008318;
	background: #f0faf2;
	outline: 0;
}

.vol-wysiwyg__button:active {
	transform: translateY(1px);
}

.vol-wysiwyg__surface {
	min-height: 150px;
	padding: 13px 14px;
	color: #17241d;
	background: #fff;
	line-height: 1.55;
	outline: 0;
	white-space: pre-wrap;
}

.vol-wysiwyg__surface:focus {
	box-shadow: inset 0 0 0 2px rgba(0, 131, 24, .18);
}

.vol-wysiwyg__surface blockquote,
.vol-wysiwyg__surface [data-vol-tag="quote"] {
	margin: 8px 0 12px;
	padding: 10px 12px;
	border-left: 4px solid #008318;
	background: #f0f7f2;
	color: #23382b;
}

.vol-wysiwyg__surface pre,
.vol-wysiwyg__surface [data-vol-tag="code"] {
	margin: 8px 0 12px;
	padding: 10px 12px;
	border-radius: 7px;
	background: #111917;
	color: #f3fff5;
	white-space: pre-wrap;
	font-family: Consolas, Monaco, monospace;
}

.vol-wysiwyg__surface pre code,
.vol-wysiwyg__surface [data-vol-tag="code"] code {
	background: transparent !important;
	border: 0;
	color: inherit !important;
	padding: 0;
}

.vol-wysiwyg__surface code[data-vol-tag="inline-code"] {
	border: 1px solid #d8e3dc;
	border-radius: 5px;
	background: #f4f8f5;
	color: #12301d;
	font-family: Consolas, Monaco, monospace;
	font-size: .92em;
	padding: 1px 5px;
}

.vol-wysiwyg__surface ul,
.vol-wysiwyg__surface ol {
	margin: 8px 0 12px 22px;
	padding-left: 18px;
}

.vol-wysiwyg__surface li {
	margin: 3px 0;
}

.vol-wysiwyg__surface [data-vol-tag="spoiler"] {
	border: 1px dashed #b9c8bf;
	border-radius: 5px;
	background: #f4f8f5;
	color: #56635c;
	padding: 1px 6px;
}

.vol-wysiwyg__surface [data-vol-tag="youtube"] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 5px 0;
	padding: 7px 10px;
	border-radius: 999px;
	border: 1px solid #ffd6d6;
	color: #9c1d1d;
	background: #fff3f3;
}

.vol-wysiwyg__status {
	min-height: 0;
	padding: 0 12px 9px;
	color: #667085;
	font-size: 12px;
	line-height: 1.35;
}

.vol-wysiwyg__status:empty {
	display: none;
}

.vol-wysiwyg__status.is-error {
	color: #b42318;
	font-weight: 700;
}

.vol-wysiwyg__popover {
	position: absolute;
	z-index: 30;
	width: min(330px, calc(100% - 16px));
	padding: 10px;
	border: 1px solid #cfd8d3;
	border-radius: 8px;
	box-shadow: 0 16px 32px rgba(15, 23, 42, .16);
	background: #fff;
}

.vol-wysiwyg__popover[hidden] {
	display: none;
}

.vol-wysiwyg__popover label {
	display: block;
	margin: 0;
	color: #1f2d25;
	font-size: 12px;
	font-weight: 700;
}

.vol-wysiwyg__popover input {
	display: block;
	width: 100%;
	height: 36px;
	margin-top: 5px;
	padding: 7px 9px;
	border: 1px solid #cfd8d3;
	border-radius: 7px;
	color: #17241d;
	background: #fff;
	font-size: 13px;
}

.vol-wysiwyg__popover input:focus {
	border-color: #008318;
	box-shadow: 0 0 0 2px rgba(0, 131, 24, .14);
	outline: 0;
}

.vol-wysiwyg__popover-actions {
	display: flex;
	gap: 7px;
	justify-content: flex-end;
	margin-top: 9px;
}

.vol-wysiwyg__popover-actions button {
	border: 1px solid #cfd8d3;
	border-radius: 7px;
	background: #fff;
	color: #1f2d25;
	font-size: 12px;
	font-weight: 700;
	padding: 6px 10px;
}

.vol-wysiwyg__popover-actions .vol-wysiwyg__popover-apply {
	border-color: #008318;
	background: #008318;
	color: #fff;
}

.vol-wysiwyg__popover p {
	margin: 7px 0 0;
	color: #b42318;
	font-size: 12px;
	font-weight: 700;
}

.vol-wysiwyg__popover p:empty {
	display: none;
}

.vol-wysiwyg__textarea {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: .01 !important;
}

@media (max-width: 640px) {
	.vol-wysiwyg__toolbar {
		gap: 3px;
		padding: 6px;
	}

	.vol-wysiwyg__button {
		width: 32px;
		height: 31px;
	}

	.vol-wysiwyg__surface {
		min-height: 130px;
		padding: 11px;
	}
}
