
// Loading Editor screen

#elementor-loading {
	position: fixed;
	inset: 0;
	background: var(--e-a-bg-default);
	z-index: $editor-layer;
}

// Loading after APPLY button

#elementor-preview-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	inset: 0;
	background-color: var(--e-a-bg-default);

	i {
		color: var(--e-a-color-txt-disabled);
		font-size: 50px;
	}
}

.elementor-nerd-box {
	padding: 30px;
	text-align: center;

	&-icon {
		width: 100px;
	}

	&-title {
		margin-block-start: 20px;
		font-size: 16px;
		font-weight: bold;
		line-height: 1.4;
	}

	&-message {
		margin-block-start: 5px;
		line-height: 1.8;
		font-size: 11px;
	}

	.elementor-button {
		margin-block-start: 20px;
	}

	&--upsale {
		padding: 15px 30px 30px;

		.elementor-nerd-box-title {
			font-weight: 500;
			line-height: 1.2;
		}

		.elementor-nerd-box-message {
			line-height: 1.5;
		}
	}
}

.eicon-nerd {

	&:hover {

		&:before {
			content: '\e8b7';
		}
	}

	&:active {

		&:before {
			content: '\e8b6';
		}
	}
}

// Color Picker / Typography popovers common CSS
.e-group-control-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: bold;
	font-size: 12px;
	padding: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	margin-block-end: 15px;
}

.e-control-tools {
	display: flex;
}

.e-control-tool {
	width: 20px;
	height: 20px;
	display: inline-flex;
	border-radius: 3px;
	margin: 0 3px 0;
	border: 0;
	position: relative;
	background-color: var(--e-a-bg-default);

	&:not(.e-control-tool-disabled) {
		box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
		cursor: pointer;
	}

	&-disabled {
		background: var(--e-a-bg-default);
		pointer-events: none;

		i {
			color: var(--e-a-color-txt-disabled);
		}
	}

	i {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translateX(-50%) translateY(-50%);
		color: var(--e-a-color-txt-default);
		font-size: 13px;
	}
}

i.eicon-tilted {
	transform: rotate(90deg);
}
