.cpf-filter-wrap {
	position: relative;
	margin-bottom: 24px;
}

.cpf-filter-list {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	gap: 10px;
	list-style: none;
	margin: 0 0 12px;
	padding: 0 0 4px;
}

.cpf-filter-list::-webkit-scrollbar {
	height: 4px;
}

.cpf-filter-list::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 4px;
}

.cpf-filter-item {
	margin: 0;
	flex: 0 0 auto;
}

.cpf-filter-btn {
	cursor: pointer;
	background: #f2f2f2;
	border: 1px solid #ddd;
	border-radius: 999px;
	color: #333;
	font-size: 14px;
	line-height: 1;
	padding: 8px 18px;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cpf-filter-btn:hover {
	background: #e6e6e6;
}

.cpf-filter-item.cpf-active .cpf-filter-btn {
	background: #1a1a1a;
	border-color: #1a1a1a;
	color: #fff;
}

.cpf-loading {
	display: none;
	height: 3px;
	overflow: hidden;
	position: relative;
	background: #eee;
	border-radius: 3px;
}

.cpf-is-loading .cpf-loading {
	display: block;
}

.cpf-loading::after {
	content: '';
	position: absolute;
	top: 0;
	left: -30%;
	width: 30%;
	height: 100%;
	background: #1a1a1a;
	animation: cpf-loading-bar 0.9s ease-in-out infinite;
}

@keyframes cpf-loading-bar {
	0% {
		left: -30%;
	}
	100% {
		left: 100%;
	}
}

.cpf-load-more-wrap {
	margin-top: 20px;
	text-align: center;
}

.cpf-load-more-btn {
	cursor: pointer;
	background: #1a1a1a;
	border: none;
	border-radius: 4px;
	color: #fff;
	font-size: 14px;
	padding: 10px 24px;
}

.cpf-error {
	color: #b00020;
}

/*
 * NOTE: earlier versions wrapped each AJAX-rendered item in a .cpf-grid-item
 * div. That extra DOM level broke Elementor's column/gap CSS, which targets
 * each loop item only when it's a direct child of the grid container. Items
 * are now rendered with no wrapper so the DOM matches Elementor's native
 * markup exactly.
 */
