.jetpack-search-filters-widget__filter {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	padding: 0 12px;
	margin-bottom: 12px;
	cursor: move;
}

.jetpack-search-filters-widget__controls {
	text-align: right;
}

.jetpack-search-filters-widget .jetpack-search-filters-widget__sort-controls-enabled {
	margin-left: 24px;
}

.jetpack-search-filters-widget__controls .delete {
	color: #d63638;
	font-size: 1rem;
	text-decoration: none;
	cursor: pointer;
}

.jetpack-search-filters-widget__controls .delete:hover {
	text-decoration: underline;
}

.jetpack-search-filters-widget.hide-filters .jetpack-search-filters-widget__filter {
	display: none;
}

.button.jetpack-search-filters-widget__add-filter {
	margin-bottom: 10px;
}

/* Assume that taxonomy select is the default selected.
 * Other controls should be hidden here. */
.jetpack-search-filters-widget__post-type-select {
	display: none;
}

.jetpack-search-filters-widget__date-histogram-select {
	display: none;
}

.jetpack-search-filters-widget__filter-placeholder {
	border: 1px #555 dashed;
	background-color: #f0f0f1;
	height: 286px;
	margin-bottom: 12px;
}

/* When post type is selected, remove the other controls */
.jetpack-search-filters-widget__filter.is-post_type .jetpack-search-filters-widget__taxonomy-select {
	display: none;
}

/* When author type is selected, remove the other controls */
.jetpack-search-filters-widget__filter.is-author .jetpack-search-filters-widget__taxonomy-select {
	display: none;
}

/* When blog ID type is selected, remove the other controls */
.jetpack-search-filters-widget__filter.is-blog_id .jetpack-search-filters-widget__taxonomy-select {
	display: none;
}

/* When date is selected, remove the other controls */
.jetpack-search-filters-widget__filter.is-date_histogram .jetpack-search-filters-widget__date-histogram-select {
	display: inline;
}

.jetpack-search-filters-widget__filter.is-date_histogram .jetpack-search-filters-widget__taxonomy-select {
	display: none;
}

/* When product attribute is selected, hide taxonomy select,
   title, and filter count */
.jetpack-search-filters-widget__filter.is-product_attribute .jetpack-search-filters-widget__taxonomy-select {
	display: none;
}

.jetpack-search-filters-widget__filter.is-product_attribute .jetpack-search-filters-widget__title {
	display: none;
}

.jetpack-search-filters-widget__filter.is-product_attribute .jetpack-search-filters-widget__filter-count {
	display: none;
}

/* Hide product attribute inclusions by default */
.jetpack-search-filters-widget__product-attribute-inclusions {
	display: none;
}

/* Show product attribute inclusions only when product attribute is selected */
.jetpack-search-filters-widget__filter.is-product_attribute .jetpack-search-filters-widget__product-attribute-inclusions {
	display: block;
}

/* Style the attribute checkboxes in a three-column layout */
.jetpack-search-filters-widget__attribute-checkboxes {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 4px 12px;
	margin-bottom: 12px;
}

.jetpack-search-filters-widget__attribute-checkbox {
	display: flex;
	align-items: center;
	margin: 0;
	font-size: 0.9rem;
}

.jetpack-search-filters-widget__attribute-checkbox input[type="checkbox"] {
	margin: 0 6px 0 0;
}

.jetpack-search-filters-widget.hide-post-types .jetpack-search-filters-widget__post-types-select {
	display: none;
}

.jetpack-search-filters-help::before {
	display: inline-block;
	position: relative;
	font-family: dashicons;
	font-size: 20px;
	top: 5px;
	line-height: 1px;
	content: "\f223";
}

.jetpack-search-filters-help {
	padding: 5px 5px 15px 0;
}

.jetpack-search-filters-widget__post-types-select label {
	display: block;
	margin-bottom: 4px;
}

.jetpack-search-filters-widget__post-types-select input[type="checkbox"] {
	margin-left: 24px;
}

body.no-js .jetpack-search-filters-widget__add-filter-wrapper {
	display: none;
}
