.block-library-query-toolbar__popover .components-popover__content {
	min-width: 230px;
}

.wp-block-query__create-new-link {
	padding: 0 $grid-unit-20 $grid-unit-20 56px;
}

.block-library-query__pattern-selection-content .block-editor-block-patterns-list {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-gap: $grid-unit-10;

	.block-editor-block-patterns-list__list-item {
		margin-bottom: 0;
		.block-editor-block-preview__container {
			max-height: 250px;
		}
	}
}

.block-editor-query-pattern__selection-modal .components-modal__content {
	padding: 0;
	margin-bottom: $header-height; // $header-height to accommodate bottom toolbar
	&::before {
		margin-bottom: 0;
	}
}

.block-editor-query-pattern__selection-modal {
	// To keep modal dimensions consistent as subsections are navigated, width
	// and height are used instead of max-(width/height).
	@include break-small() {
		width: calc(100% - #{ $grid-unit-20 * 2 });
		height: calc(100% - #{ $header-height * 2 });
	}
	@include break-medium() {
		width: $break-medium - $grid-unit-20 * 2;
	}
	@include break-large() {
		height: 80%;
		width: 80%;
		max-height: none;
	}
}

.block-library-query-toolspanel__filters {
	.components-form-token-field__help {
		margin-bottom: 0;
	}
	.block-library-query-inspector__taxonomy-control:not(:last-child) {
		margin-bottom: $grid-unit-30;
	}
}
