/*!
 * 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) './variables';

.jodit-wysiwyg {
	outline: 0;

	&::selection,
	*::selection {
		background: @color-background-selection;
		color: @color-dark;
	}
}

.jodit-container:not(.jodit_inline) .jodit-wysiwyg {
	position: relative;
	padding: 8px;
	margin: 0;
	outline: 0;
	overflow-x: auto;

	img {
		position: relative;
		max-width: 100%;
	}

	// It is custom tag
	jodit-media {
		position: relative;

		* {
			position: relative;
			z-index: 0;
		}

		&::before {
			position: absolute;
			z-index: 1;
			content: '';
			inset: 0;
		}
	}
}
