/* Course / Bundle filter buttons on the Tutor course archive. */

.tcbf-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 24px;
}

.tcbf-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 18px;
	border: 1.5px solid #e0e2ea;
	border-radius: 999px;
	background: #fff;
	color: #212327;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	transition: border-color .15s, background-color .15s, color .15s;
}

.tcbf-button:hover,
.tcbf-button:focus {
	border-color: #3e64de;
	color: #3e64de;
	text-decoration: none;
}

.tcbf-button:focus-visible {
	outline: 2px solid #3e64de;
	outline-offset: 2px;
}

.tcbf-button.is-active {
	background: #3e64de;
	border-color: #3e64de;
	color: #fff;
}

.tcbf-count {
	font-size: 13px;
	font-weight: 600;
	padding: 1px 8px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .06);
}

.tcbf-button.is-active .tcbf-count {
	background: rgba(255, 255, 255, .22);
}

/* The page is Arabic: let the row follow the page direction. */
[dir="rtl"] .tcbf-buttons {
	justify-content: flex-start;
}

@media (max-width: 480px) {
	.tcbf-button { padding: 8px 14px; font-size: 14px; }
}
