.wd-breed-catalog .bwp-archive-heading-container {
	margin-bottom: 16px;
}

.wd-breed-tools:not([hidden]) {
	display: grid;
	grid-template-columns: minmax(12rem, 1fr) auto;
	align-items: center;
	gap: 10px 16px;
	padding: 14px;
	margin-bottom: 14px;
	background: #fff;
	border: 1px solid #e1e7ed;
	border-radius: 10px;
}

.wd-breed-tools input[type='search'] {
	width: 100%;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid #aebbc8;
	border-radius: 7px;
	background: transparent;
	color: inherit;
	font-size: 16px;
}

.wd-breed-tools fieldset {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.wd-breed-filter {
	position: relative;
	margin: 0;
}

.wd-breed-filter input[type='radio'] {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
}

.wd-breed-filter span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 5px 12px;
	border: 1px solid #cdd7e0;
	border-radius: 999px;
	color: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.wd-breed-filter span:hover {
	border-color: #2e5f8f;
}

.wd-breed-filter input:checked + span {
	background: #315e87;
	border-color: #315e87;
	color: #fff;
}

.wd-breed-filter input:focus-visible + span,
.wd-breed-tools :is(input[type='search'], button):focus-visible {
	outline: 2px solid #477eab;
	outline-offset: 2px;
}

.wd-breed-results {
	grid-column: 1 / -1;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	min-height: 30px;
	font-size: 14px;
}

.wd-breed-results output {
	color: inherit;
}

.wd-breed-reset {
	padding: 4px;
	border: 0;
	background: transparent;
	color: inherit;
	text-decoration: underline;
}

.wd-breed-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: 10px;
}

.wd-breed-card[hidden] {
	display: none;
}

.wd-breed-card .entry-title {
	height: 100%;
	margin: 0;
}

.wd-breed-card a {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 100%;
	min-height: 72px;
	padding: 7px;
	border: 1px solid #e1e7ed;
	border-radius: 8px;
	background: #fff;
	color: #23272b;
}

.wd-breed-card a:hover {
	border-color: #8daac5;
	text-decoration: underline;
}

.wd-breed-card a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.wd-breed-card img {
	display: block;
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 5px;
	object-fit: cover;
}

.wd-breed-card span {
	min-width: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.bwp-dark-style .wd-breed-tools,
.bwp-dark-style .wd-breed-card a {
	border-color: #414b54;
	background: #202428;
	color: #fff;
}

@media (max-width: 767px) {
	.wd-breed-tools:not([hidden]) {
		grid-template-columns: minmax(0, 1fr);
	}
}
