.gb-ms {
	position: relative;
	width: 100%;
}

.gb-ms__trigger {
	display: block;
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 32px 0 12px;
	border: 1px solid #d2d2d2;
	border-radius: 3px;
	background-color: #fff;
	box-shadow: none;
	font-size: 14px;
	font-weight: 400;
	line-height: 42px;
	color: #141414;
	text-align: left;
	text-transform: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
}

.gb-ms__trigger:focus {
	outline: 0;
	border-color: #5cabcb;
	box-shadow: 0 0 0 2px rgba(92, 171, 203, 0.35);
}

.gb-ms__caret {
	position: absolute;
	top: 50%;
	right: 12px;
	margin-top: -2px;
	border: 5px solid transparent;
	border-top-color: #444;
	border-bottom: 0;
	pointer-events: none;
}

.gb-ms.is-open .gb-ms__caret {
	margin-top: -3px;
	border-top: 0;
	border-bottom: 5px solid #444;
}

.gb-ms__panel {
	position: absolute;
	z-index: 600;
	top: calc(100% + 2px);
	left: 0;
	min-width: 100%;
	max-height: 280px;
	padding: 6px;
	overflow-y: auto;
	border: 1px solid #e1e1e1;
	border-radius: 3px;
	background-color: #fff;
	box-shadow: 0 12px 28px rgba(0, 23, 46, 0.18);
}

.gb-ms__panel[hidden] {
	display: none;
}

.gb-ms.is-open {
	z-index: 600;
}

.gb-ms__clear {
	display: block;
	width: 100%;
	margin: 0 0 4px;
	padding: 6px 8px;
	border: 0;
	border-bottom: 1px solid #eee;
	background: none;
	font-size: 13px;
	line-height: 1.3;
	color: #0a5f86;
	text-align: left;
	cursor: pointer;
}

.gb-ms__clear[disabled] {
	color: #9a9a9a;
	cursor: default;
}

.gb-ms__option {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 7px 8px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	color: #141414;
	white-space: nowrap;
	cursor: pointer;
}

.gb-ms__option:hover {
	background-color: #f2f7fa;
}

.gb-ms__option[hidden] {
	display: none;
}

.gb-ms__option input[type="checkbox"] {
	width: 15px;
	height: 15px;
	margin: 0;
	flex: 0 0 auto;
}

.gb-ms--bar {
	width: auto;
	min-width: 150px;
}

.listing_filters_head .gb-ms--bar:has(.gb-ms__panel:not([hidden])) {
	z-index: 500;
}

/* Each bar is its own stacking context, so the whole bar must rise for an open panel to show. */
.listing_filters_head:has(.gb-ms__panel:not([hidden])),
.gb-search-filters:has(.gb-ms__panel:not([hidden])) {
	z-index: 900;
}

.listing_filters_head,
.gb-search-filters,
.gb-search-filters__inner {
	overflow: visible;
}

/* The hero's inner box sits at z-index 1, under the pagination, so it must rise too. */
.gb-hero__inner:has(.gb-ms.is-open),
.gb-hero__inner:has(.gb-ms__panel:not([hidden])) {
	z-index: 1000;
}
