/*!
 * Jodit Editor (https://xdsoft.net/jodit/)
 * Released under MIT see LICENSE.txt in the project root for license information.
 * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
 */

@import (reference) './mixins';

.jodit,
.jodit-container {
	&,
	* {
		box-sizing: border-box;
	}

	.jodit-workplace {
		position: relative;
		overflow: auto;

		.jodit-wysiwyg,
		.jodit-wysiwyg_iframe {
			width: 100%;
			height: 100%;
		}
	}
}

.jodit-wysiwyg {
	*[contenteditable='false'] {
		cursor: default;
	}
}

.jodit-container:not(.jodit_inline) {
	border: 1px solid var(--color-border);
	border-radius: var(--border-radius-default);
	background-color: var(--color-background-light-gray);

	.jodit-workplace {
		max-height: 100%;
		border: 0 solid var(--color-border);
		background-color: var(--color-background-default);
	}

	&.jodit_disabled {
		background: var(--color-background-gray);

		.jodit-workplace {
			opacity: 0.4;
		}
	}
}

.jodit_lock {
	user-select: none !important;
}

.jodit_disabled {
	user-select: none !important;
}

.jodit_hidden {
	display: none !important;
}

.jodit_vertical_middle {
	display: flex;
	align-items: center;
}

.jodit-box {
	.jodit-box();
}
