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

.jodit-form__inserter {
	--color-table-cell-background-hover: var(--color-button-background-hover);

	.jodit-form__table-creator-box {
		display: flex;

		@media (max-width: @screen-sm) {
			flex-direction: column;
		}

		.jodit-form__container {
			min-width: 180px;
			padding: 0;
			margin: 0;
			font-size: 0;

			& > div {
				& > span {
					display: inline-block;
					width: var(--width-element-default);
					height: var(--height-element-default);
					box-sizing: border-box;
					border: 1px solid var(--color-border);
					margin-bottom: 2px;
					margin-left: 2px;
					vertical-align: top;
					cursor: pointer;

					&:first-child {
						margin-left: 0;
					}

					&.jodit_hovered {
						border-color: var(--color-table-cell-background-hover);
						background: var(--color-table-cell-background-hover);
					}
				}
			}
		}

		.jodit-form__options {
			font-size: var(--font-size-default);

			label {
				padding-top: 0;
				text-align: left;

				input {
					margin-right: var(--padding-default);
				}
			}
		}
	}

	label {
		padding: 8px;
		margin: 0;
		font-size: 14px;
		text-align: center;
	}
}
