@import 'variables';

.jet-template-types-popup {
	display: none;
	justify-content: center;
	align-items: center;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999;
	&.jet-template-types-popup-active {
		display: flex;
	}
	&__overlay {
		position: absolute;
		left: 0;
		right: 0;
		top: 0;
		bottom: 0;
		background: rgba( 0, 0, 0, .8 );
		z-index: 1;
		transition: opacity 200ms linear;
		opacity: 0;
		z-index: 1000;
		.jet-template-types-popup-active & {
			opacity: 1;
		}
	}
	&__content {
		background: #fff;
		padding: 40px;
		width: 500px;
		position: relative;
		z-index: 2;
		transition: opacity 200ms linear;
		opacity: 0;
		z-index: 1001;
		.jet-template-types-popup-active & {
			opacity: 1;
		}
	}
	&__heading {
		margin: 0 0 20px;
	}
	&__form {
		&-row {
			padding: 0 0 20px;
			label {
				display: block;
				padding: 0 0 4px;
			}
			input,
			select {
				width: 100%;
				padding: 10px 20px;
				line-height: 20px;
				height: auto;
			}
		}
		&-actions {
			button {
				width: 100%;
			}
		}
	}
	&__error {
		border-color: #dc3232;
	}
}

.jet-conditions {
	display: flex;
	align-items: center;
	&-active {
		margin-left: 10px;
		color: $editor-success;
	}
}
