/*!
 * 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) '../../../styles/variables';
@import (reference) '../../../styles/mixins';

:root {
	--popup-box-shadow: 0 4px 1px -2px rgb(76 76 76 / 20%),
		0 3px 3px 0 rgb(76 76 76 / 15%), 0 1px 4px 0 rgb(76 76 76 / 13%);
	--popup-max-height: max(50vh, 350px);
}

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

	position: fixed;
	z-index: var(--z-index-popup);
	display: inline-block;
	box-shadow: var(--popup-box-shadow);
	transform: translate3d(0, 0, 0);

	&__content {
		.font();

		overflow: auto;
		max-height: var(--popup-max-height, 400px);
		padding: var(--padding-default);
		background: var(--color-background-default);
		overflow-scrolling: touch;
	}

	&_padding_false &__content {
		padding: 0;
	}

	&_max-height_false &__content {
		max-height: fit-content;
	}
}
