.jet-query-dialog {
	position: fixed;
	z-index: 9999;
	left: 0;
	right: 0;
	bottom: 0;
	top: 0;
	display: flex;
	justify-content: center;
	align-items: center;

	&__overlay {
		position: absolute;
		left: 0;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 1;
		background: rgba( 0, 0, 0, .8 );
	}

	&__content {
		background: #fff;
		padding: 30px;
		width: 900px;
		position: relative;
		z-index: 2;
		max-height: 100vh;
		overflow: auto;
	}
}

.jet-query-field {
	padding: 0 0 15px;
	&--layout-row {
		display: flex;
		justify-content: space-between;
		align-items:center;
		.jet-query-label {
			width: 100px;
			flex: 0 0 100px;
		}
		.jet-query-control {
			flex: 0 0 calc( 100% - 110px );
		}
	}
}

.jet-query-label {
	padding: 0 0 5px;
}

.jet-query-actions {
	padding: 20px 30px 25px;
	margin: 0 -30px -30px;
	background: #f1f3f5;
	display: flex;
	align-items: center;
	justify-content: flex-start;

	button.jet-query-action-cancel {
		background: none;
		border: none;
		color: #a4afb7;
		font-family: Roboto, Arial, Helvetica, Verdana, sans-serif;
		font-size: 12px;
		line-height: 1.5;
		font-weight: bold;
		margin: 0 0 0 10px;
		cursor: pointer;
		transition: color 0.3s;
		&:hover {
			color: #495157;
		}
	}
}

.jet-query-errors {
	text-align: center;
}

.jet-query-error {
	border: 1px solid #d72b3f;
	color: #d72b3f;
	padding: 30px;
	text-align: center;
	margin: 0 0 30px;
}

.jet-query-repeater {
	margin: 0 -30px;
	padding: 15px 30px;
	border-top: 1px solid #e6e9ec;
	&-label {
		padding: 0 0 10px;
		font-weight: bold;
	}
	&-row {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		&__columns {
			display: flex;
			justify-content: space-between;
			flex: 0 0 calc( 100% - 50px );
		}
		.jet-query-field {
			padding: 0 0 10px;
			display: flex;
			flex-direction: column;
			.jet-query-label {
				order: 1;
			}
			.jet-query-field-description {
				order: 3;
				font-size: 11px;
				font-style: italic;
				color: #a4afb7;
			}
			.jet-query-control {
				order: 2;
			}
		}
	}
}

button.elementor-button.jet-query-repeater-row__remove {
	padding: 0;
	text-align: center;
	margin: 18px 0 0 0;
	line-height: 26px;
	width: 27px;
	height: 27px;
	padding: 0;
	background: none;
	box-sizing: border-box;
	border: 1px solid #a4afb7;
	color: #a4afb7;
	&:hover {
		border: 1px solid #d72b3f;
		color: #d72b3f;
		background: none;
	}
}

.jet-query-column {
	&-100 {
		flex: 0 0 100%;
	}
	&-50 {
		flex: 0 0 48%;
	}
	&-33 {
		flex: 0 0 31%;
	}
	&-25 {
		flex: 0 0 24%;
	}
}

.jet-query-control {
	input,
	select,
	textarea {
		width: 100%;
		max-width: 100%;
	}
}