/* CKC Breeders: breeder listing ([ckc_breeders]). */

/* Header: block styles; the dropdown fits its longest option, so the
   French distances aren't cut off. */
.ckc-breeders .ip-breeders-of-distinction__filter-wrapper {
	align-self: flex-start;
	max-width: 100%;
}
.ckc-breeders .ip-breeders-of-distinction__filter-select {
	color: var(--ckc-color-text-dark, #212121);
	font-family: inherit;
	min-width: 150px;
	padding-right: 40px;
	width: auto;
}
.ckc-breeders .ip-breeders-of-distinction__filter-select:focus {
	border-color: var(--ckc-color-brand-blue, #2575d0);
	box-shadow: 0 0 0 1px var(--ckc-color-brand-blue, #2575d0);
	outline: none;
}
/* Let the CKC box lines wrap (the block cuts them off with "…"), with room
   for descenders: the block's hidden overflow and 1.2 line height clipped
   the tails of g, p and y. */
.ckc-breeders .ip-breeders-of-distinction__cta-content {
	line-height: 1.4;
}
.ckc-breeders .ip-breeders-of-distinction__cta-item span {
	overflow: visible;
	text-overflow: clip;
	white-space: normal;
}
/* A wrapped line keeps its check mark beside the first line. */
.ckc-breeders .ip-breeders-of-distinction__cta-item {
	align-items: flex-start;
}
.ckc-breeders .ip-breeders-of-distinction__cta-icon {
	flex-shrink: 0;
	margin-top: 7px;
}
/* The block leaves 92px under the CKC box (64px under the filter) before
   the list; 40px is the site's section gap. */
.ckc-breeders.wp-block-ip-breeders-of-distinction .ip-breeders-of-distinction__header .ip-breeders-of-distinction__part1,
.ckc-breeders.wp-block-ip-breeders-of-distinction .ip-breeders-of-distinction__header .ip-breeders-of-distinction__part2 {
	margin-bottom: var(--ckc-spacing-section-gap, 40px);
}
/* Below 1080px the block hides the CKC box beside the heading, so a copy
   shows under the list instead. */
.ckc-breeders__cta-below {
	display: none;
}
@media (max-width: 1079px) {
	.ckc-breeders__cta-below {
		display: block;
		margin-top: var(--ckc-spacing-section-gap, 40px);
	}
	.ckc-breeders.wp-block-ip-breeders-of-distinction .ckc-breeders__cta-below .ip-breeders-of-distinction__cta-section {
		margin: 0;
		max-width: 440px;
	}
}
.ckc-breeders__locate {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 4px;
	max-width: 320px;
}
.ckc-breeders__locate[hidden],
.ckc-breeders__text-button[hidden] {
	display: none;
}
.ckc-breeders__text-button {
	align-items: center;
	align-self: flex-start;
	background: none;
	border: 0;
	color: var(--ckc-color-text-links, #2370c7);
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	gap: 6px;
	line-height: 21px;
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.ckc-breeders__text-button:hover {
	color: var(--ckc-color-brand-blue-dark, #1d5fa8);
}
.ckc-breeders__text-button:disabled {
	color: var(--ckc-color-text-disabled, #868686);
	cursor: progress;
}
.ckc-breeders__text-button:focus-visible,
.ckc-breeders__page:focus-visible,
.ckc-breeders__step:focus-visible {
	border-radius: 2px;
	outline: 2px solid var(--ckc-color-brand-blue, #2575d0);
	outline-offset: 2px;
}
.ckc-breeders__status {
	color: var(--ckc-color-text-light, #5e5e5e);
	font-size: 14px;
	line-height: 21px;
	margin: 0;
}
.ckc-breeders__status:empty {
	display: none;
}
.ckc-breeders__status .ckc-breeders__text-button {
	display: inline;
	font-weight: 400;
	margin-left: 4px;
}

/* Results */
.ckc-breeders__results {
	max-width: 957px;
	transition: opacity .2s ease;
}
.ckc-breeders__results[aria-busy="true"] {
	opacity: .45;
	pointer-events: none;
}
.ckc-breeders__count {
	color: var(--ckc-color-text-light, #5e5e5e);
	font-size: 14px;
	line-height: 21px;
	margin: 0 0 16px;
}
.ckc-breeders__count:focus {
	outline: none;
}
/* Two cards per row when each can be at least 400px wide (the
   957px desktop column), otherwise one. */
.ckc-breeders__grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Card: photo on the left, details on the right. */
.ckc-breeders__card {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05), -1px -1px 5px 0 rgba(0, 0, 0, .05);
	display: flex;
	margin: 0;
	min-height: 184px;
	overflow: hidden;
	position: relative;
}
.ckc-breeders__card--link {
	transition: box-shadow .2s ease, transform .2s ease;
}
.ckc-breeders__card--link:hover {
	box-shadow: 0 14px 20px -4px rgba(0, 0, 0, .14), 0 6px 8px -2px rgba(0, 0, 0, .06), -1px -1px 5px 0 rgba(0, 0, 0, .05);
	transform: translateY(-3px);
}
.ckc-breeders__card--link:focus-within {
	outline: 2px solid var(--ckc-color-brand-blue, #2575d0);
	outline-offset: 3px;
}
.ckc-breeders__photo {
	background: var(--ckc-color-brand-gold-light, #faf5e6);
	flex: 0 0 138px;
	position: relative;
}
.ckc-breeders__photo img {
	height: 100%;
	inset: 0;
	margin: 0;
	object-fit: cover;
	position: absolute;
	width: 100%;
}
.ckc-breeders__photo-empty {
	align-items: center;
	color: var(--ckc-color-logo-gold, #aa8516);
	display: flex;
	inset: 0;
	justify-content: center;
	position: absolute;
}
.ckc-breeders__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	padding: 20px 24px;
}
/* Name and kennel on the left, the Trupanion badge (if any) on the right. */
.ckc-breeders__intro {
	align-content: start;
	column-gap: 12px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	margin-bottom: 16px;
	row-gap: 2px;
}
.ckc-breeders__intro > :not(.ckc-breeders__trupanion) {
	grid-column: 1;
}
.ckc-breeders__trupanion {
	display: block;
	grid-column: 2;
	grid-row: 1 / span 2;
	height: 60px;
	margin: -2px -4px 0 0;
	width: auto;
}
@media (max-width: 479px) {
	.ckc-breeders__trupanion {
		height: 48px;
	}
}
.ckc-breeders__name {
	color: var(--ckc-color-text-dark, #212121);
	font-family: var(--ckc-font-family, inherit);
	font-size: 18px;
	font-weight: 700;
	line-height: 24px;
	margin: 0;
	overflow-wrap: anywhere;
}
.ckc-breeders__link,
.ckc-breeders__link:hover,
.ckc-breeders__link:focus {
	color: inherit;
	outline: none;
	text-decoration: none;
}
/* Stretch the name link over the whole card. */
.ckc-breeders__link::after {
	content: "";
	inset: 0;
	position: absolute;
}
.ckc-breeders__kennel {
	color: var(--ckc-color-text-light, #5e5e5e);
	font-size: 16px;
	line-height: 24px;
	margin: 0;
	overflow-wrap: anywhere;
}
/* Pinned to the bottom so the dividers line up across a row. */
.ckc-breeders__meta {
	border-top: 1px solid var(--ckc-color-divider, #e0e0e0);
	display: flex;
	flex-direction: column;
	gap: 6px;
	list-style: none;
	margin: auto 0 0;
	padding: 12px 0 0;
}
.ckc-breeders__meta li {
	align-items: flex-start;
	color: var(--ckc-color-text-light, #5e5e5e);
	display: flex;
	font-size: 14px;
	gap: 8px;
	line-height: 21px;
	margin: 0;
}
.ckc-breeders__meta svg {
	color: var(--ckc-color-text-disabled, #868686);
	flex-shrink: 0;
	margin-top: 2.5px;
}
.ckc-breeders__dot {
	margin: 0 2px;
}
.ckc-breeders__distance {
	color: var(--ckc-color-text-dark, #212121);
	font-weight: 700;
	white-space: nowrap;
}

/* Messages */
.ckc-breeders__message {
	align-items: flex-start;
	background: var(--ckc-color-bg-light, #f7f7f7);
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 32px;
}
.ckc-breeders__message .ckc-breeders__text-button {
	font-size: 16px;
}

/* Page links */
.ckc-breeders__pager {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	justify-content: center;
	margin-top: 40px;
}
.ckc-breeders__pages {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.ckc-breeders__pages li {
	margin: 0;
}
.ckc-breeders__page,
.ckc-breeders__gap {
	align-items: center;
	border-radius: 4px;
	display: inline-flex;
	font-size: 16px;
	height: 40px;
	justify-content: center;
	line-height: 1;
	min-width: 40px;
	padding: 0 8px;
}
.ckc-breeders__page {
	border: 1px solid var(--ckc-color-divider, #e0e0e0);
	color: var(--ckc-color-text-dark, #212121);
	text-decoration: none;
	transition: border-color .2s ease, color .2s ease;
}
a.ckc-breeders__page:hover {
	border-color: var(--ckc-color-brand-blue, #2575d0);
	color: var(--ckc-color-brand-blue, #2575d0);
	text-decoration: none;
}
.ckc-breeders__page.is-current {
	background: var(--ckc-color-brand-blue, #2575d0);
	border-color: var(--ckc-color-brand-blue, #2575d0);
	color: #fff;
	font-weight: 700;
}
.ckc-breeders__gap {
	color: var(--ckc-color-text-light, #5e5e5e);
	min-width: 24px;
	padding: 0;
}
.ckc-breeders__step {
	align-items: center;
	color: var(--ckc-color-text-links, #2370c7);
	display: inline-flex;
	font-size: 16px;
	font-weight: 700;
	gap: 4px;
	height: 40px;
	text-decoration: underline;
	text-underline-offset: 2px;
}
a.ckc-breeders__step:hover {
	color: var(--ckc-color-brand-blue-dark, #1d5fa8);
}
.ckc-breeders__step.is-disabled {
	color: var(--ckc-color-text-disabled, #868686);
	text-decoration: none;
}

@media (max-width: 599px) {
	.ckc-breeders__grid {
		gap: 16px;
	}
	.ckc-breeders .ip-breeders-of-distinction__filter-wrapper {
		align-self: stretch;
	}
	.ckc-breeders .ip-breeders-of-distinction__filter-select {
		width: 100%;
	}
	.ckc-breeders__card {
		min-height: 160px;
	}
	.ckc-breeders__photo {
		flex-basis: 112px;
	}
	.ckc-breeders__body {
		padding: 16px;
	}
	.ckc-breeders__name {
		font-size: 16px;
	}
	.ckc-breeders__message {
		padding: 24px;
	}
	.ckc-breeders__step span {
		border: 0;
		clip: rect(1px, 1px, 1px, 1px);
		height: 1px;
		overflow: hidden;
		position: absolute;
		width: 1px;
	}
	.ckc-breeders__step {
		border: 1px solid var(--ckc-color-divider, #e0e0e0);
		border-radius: 4px;
		justify-content: center;
		width: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ckc-breeders__results,
	.ckc-breeders__card--link,
	.ckc-breeders__card--link:hover {
		transform: none;
		transition: none;
	}
}
