/*
 * Chips bar (B1-31): one shape on every page; printed on the server; scrolls sideways with CSS only.
 */
.tq-chips {
	margin-block: 0 var(--tq-gap-l);
}

.tq-chips__list {
	display: flex;
	gap: var(--tq-gap-s);
	margin: 0;
	padding: 0 0 4px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
}

.tq-chips__list > li {
	flex: none;
	scroll-snap-align: start;
}

.tq-chip {
	display: inline-flex;
	align-items: center;
	gap: var(--tq-gap-m);
	height: 32px;
	padding-inline: 12px;
	border-radius: 999px;
	background: var(--tq-soft);
	color: var(--tq-text);
	font: 700 13px/1 var(--tq-font-meta);
	text-decoration: none;
	white-space: nowrap;
	transition: var(--tq-effect);
}

.tq-chip:hover {
	color: var(--tq-accent);
}

/*
 * Brand colour per chip (map: tq-library Filters\Chip_Map -> data-tq-brand): neutral at rest, the chip's own colour on
 * hover, focus and selected (background = brand, text and icon = on-brand); no brand = the site colour.
 */
[data-tq-brand="playstation"] { --tq-chip-brand: var(--tq-brand-playstation); }
[data-tq-brand="xbox"] { --tq-chip-brand: var(--tq-brand-xbox); }
[data-tq-brand="windows"] { --tq-chip-brand: var(--tq-brand-windows); }
[data-tq-brand="nintendo"] { --tq-chip-brand: var(--tq-brand-nintendo); }
[data-tq-brand="steam"] { --tq-chip-brand: var(--tq-brand-steam); }
[data-tq-brand="mobile"] { --tq-chip-brand: var(--tq-brand-mobile); --tq-chip-on: var(--tq-on-brand-mobile); }
[data-tq-brand="offer"] { --tq-chip-brand: var(--tq-offer); }
[data-tq-brand="cut"] { --tq-chip-brand: var(--tq-kind-cut); }

.tq-chip:hover,
.tq-chip:focus-visible,
.tq-chip.is-active,
.tq-chip[aria-current],
.tq-chip[aria-pressed="true"] {
	background: var(--tq-chip-brand, var(--tq-accent));
	color: var(--tq-chip-on, var(--tq-on-brand));
}

.tq-chip:hover .tq-chip__count,
.tq-chip:focus-visible .tq-chip__count {
	color: inherit;
}

.tq-chip__count {
	color: var(--tq-muted);
	font-weight: 400;
}

.tq-chip.is-active .tq-chip__count {
	color: inherit;
}

button.tq-chip {
	border: 0;
	cursor: pointer;
}

/* a toggle chip's check mark shows only while it is on (live 5178 css: .tq4-pin[data-type="term"] .tq4-i) */
.tq-chip .tq-icon--check {
	display: none;
}

.tq-chip.is-active .tq-icon--check {
	display: inline-block;
}
