.lupi-filter-grid {
	--brand-grid-gap-col: 0.5rem;
	--brand-grid-gap-row: 1rem;
	--brand-card-bg: #f5f5f5;
	--brand-card-radius: 0.5rem;
	--brand-card-padding: 1.5rem;
	--header-grid-spacing: 1.5rem;
	--filter-label-size: 0.875rem;
	--filter-label-color: #a3a3a3;
	--filter-pill-bg: #f5f5f5;
	--filter-pill-active-bg: #f97316;
	--filter-pill-active-text: #ffffff;
	--filter-pill-text-disabled: #a3a3a3;
	--font-family-poppins: 'Poppins', sans-serif;
	--fade-width: 6.25rem;

	width: 100%;
	display: flex;
	flex-direction: column;
	gap: var(--header-grid-spacing);
	font-family: var(--font-family-poppins);
}

.lupi-filter-grid,
.lupi-filter-grid *,
.lupi-filter-grid *::before,
.lupi-filter-grid *::after {
	box-sizing: border-box;
}

.lupi-filter-grid :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure) {
	margin: 0;
	padding: 0;
}

.lupi-filter-grid :where(ul, ol) {
	list-style: none;
}

.lupi-filter-grid :where(a) {
	color: inherit;
	text-decoration: none;
}

.lupi-filter-grid :where(button) {
	font: inherit;
}

.lupi-filter-grid img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	min-width: 0;
	border: 0;
	vertical-align: middle;
}

.lupi-filter-grid .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.lupi-filter-grid [hidden] {
	display: none !important;
}

.lupi-filter-grid__header {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	width: 100%;
}

.lupi-filter-grid__label {
	font-size: var(--filter-label-size);
	font-weight: 500;
	color: var(--filter-label-color);
	white-space: nowrap;
}

.lupi-filter-grid__pills-wrapper {
	position: relative;
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.lupi-filter-grid__pills-wrapper::before,
.lupi-filter-grid__pills-wrapper::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 2.5rem;
	z-index: 2;
	pointer-events: none;
	transition: opacity 0.2s ease;
	opacity: 0;
}

.lupi-filter-grid__pills-wrapper::before {
	left: 0;
	background: linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.lupi-filter-grid__pills-wrapper.has-left-fade::before {
	opacity: 1;
}

.lupi-filter-grid__pills-wrapper::after {
	right: 0;
	background: linear-gradient(to left, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.lupi-filter-grid__pills-wrapper.has-right-fade::after {
	opacity: 1;
}

.lupi-filter-grid__pills {
	display: flex;
	gap: 0.5rem;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 0.25rem 0;
	align-items: center;
}

.lupi-filter-grid__pills::-webkit-scrollbar {
	display: none;
}

button.lupi-filter-grid__pill {
	all: unset;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: var(--filter-pill-bg);
	color: inherit;
	font-size: 0.875rem;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s ease;
	height: 32px;
	min-height: 32px;
	max-height: 32px;
	line-height: 1;
	padding-block: 0;
	flex: 0 0 auto;
}

.lupi-filter-grid__pill.brand-filter__pill--square {
	width: 32px;
	min-width: 32px;
	max-width: 32px;
	height: 32px;
	min-height: 32px;
	max-height: 32px;
	flex: 0 0 32px;
	border-radius: 50%;
	padding-inline: 0;
}

.lupi-filter-grid__pill.brand-filter__pill--word {
	padding-inline: 16px;
	border-radius: 2rem;
}

.lupi-filter-grid__pill:hover:not(.is-active) {
	background: #ebebeb;
}

.lupi-filter-grid__pill.is-active {
	background: var(--filter-pill-active-bg);
	color: var(--filter-pill-active-text);
}

.lupi-filter-grid__pill:disabled {
	color: var(--filter-pill-text-disabled);
	cursor: not-allowed;
}

.lupi-filter-grid__grid-wrapper {
	position: relative;
	width: 100%;
}

.lupi-filter-grid__grid-wrapper::before,
.lupi-filter-grid__grid-wrapper::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: var(--fade-width);
	z-index: 2;
	pointer-events: none;
	transition: opacity 0.2s ease;
	opacity: 0;
}

.lupi-filter-grid__grid-wrapper::before {
	top: 0;
	background: linear-gradient(to bottom, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.lupi-filter-grid__grid-wrapper.has-top-fade::before {
	opacity: 1;
}

.lupi-filter-grid__grid-wrapper::after {
	bottom: 0;
	background: linear-gradient(to top, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.lupi-filter-grid__grid-wrapper.has-bottom-fade::after {
	opacity: 1;
}

.lupi-filter-grid__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	column-gap: var(--brand-grid-gap-col);
	row-gap: var(--brand-grid-gap-row);
	max-height: 500px;
	overflow-y: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 1rem 0;
}

.lupi-filter-grid__grid::-webkit-scrollbar {
	display: none;
}

a.lupi-filter-grid__card,
article.lupi-filter-grid__card {
	all: unset;
	box-sizing: border-box;
	aspect-ratio: 217 / 92;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--brand-card-padding);
	border: 1px solid transparent;
	border-radius: var(--brand-card-radius);
	background: var(--brand-card-bg);
	transition: all 0.2s ease;
	cursor: pointer;
	position: relative;
}

article.lupi-filter-grid__card {
	cursor: default;
}

.lupi-filter-grid__card:hover,
.lupi-filter-grid__card:focus-visible {
	border-color: #000000;
	background-color: #ededed;
}

.lupi-filter-grid__media {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lupi-filter-grid__logo {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	opacity: 0.65;
	filter: grayscale(1) brightness(0.95);
	transition: all 0.2s ease;
}

.lupi-filter-grid__card:hover .lupi-filter-grid__logo,
.lupi-filter-grid__card:focus-visible .lupi-filter-grid__logo {
	opacity: 1;
	filter: none;
}

.lupi-filter-grid__fallback-text {
	display: inline-block;
	font-size: 1rem;
	line-height: 1.3;
	font-weight: 600;
	text-align: center;
	color: #171717;
}

.lupi-filter-grid__empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 3rem;
	color: #666;
}

@media (max-width: 1200px) {
	.lupi-filter-grid__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 768px) {
	.lupi-filter-grid__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}

	.lupi-filter-grid__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	a.lupi-filter-grid__card,
	article.lupi-filter-grid__card {
		aspect-ratio: 217 / 80;
	}

	.lupi-filter-grid__pills-wrapper::before,
	.lupi-filter-grid__pills-wrapper::after {
		width: 1.5rem;
	}
}
