.cp-partner-directory {
	width: 100%;
	background: transparent;
	color: #102235;
	font-family: inherit;
}

.cp-partner-directory * {
	box-sizing: border-box;
}

.cp-partner-directory__inner {
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
	padding: clamp(34px, 6vw, 72px);
	border-radius: 24px;
	background: #f1f5eb;
}

.cp-partner-directory__header {
	display: grid;
	gap: 10px;
	max-width: 760px;
	margin: 0 auto 28px;
	text-align: center;
}

.cp-partner-directory__eyebrow {
	margin: 0;
	color: #0f8a8a;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.cp-partner-directory__header h2 {
	margin: 0;
	color: #102235;
	font-size: clamp(30px, 4vw, 54px);
	font-weight: 850;
	line-height: 1.02;
	letter-spacing: 0;
	text-transform: none;
}

.cp-partner-directory__header p:not(.cp-partner-directory__eyebrow) {
	margin: 0;
	color: #506579;
	font-size: clamp(16px, 2vw, 19px);
	line-height: 1.55;
}

.cp-partner-directory__toolbar {
	display: grid;
	gap: 14px;
	margin: 0 0 24px;
	justify-items: center;
}

.cp-partner-directory__search input {
	width: min(100%, 420px);
	min-height: 46px;
	padding: 11px 14px;
	border: 1px solid #c8d9df;
	border-radius: 8px;
	background: #ffffff;
	color: #102235;
	font: inherit;
	font-size: 15px;
	outline: none;
	transition: border-color .16s ease, box-shadow .16s ease;
}

.cp-partner-directory__search input:focus {
	border-color: #0f8a8a;
	box-shadow: 0 0 0 3px rgba(15, 138, 138, .14);
}

.cp-partner-directory__filters {
	display: flex;
	justify-content: flex-start;
	gap: 8px;
	max-width: 100%;
	overflow-x: auto;
	padding: 1px 0 5px;
	scrollbar-width: thin;
}

.cp-partner-directory__filters button {
	flex: 0 0 auto;
	min-height: 38px;
	padding: 8px 13px;
	border: 1px solid #c8d9df;
	border-radius: 999px;
	background: #ffffff;
	color: #365065;
	font: inherit;
	font-size: 14px;
	font-weight: 750;
	line-height: 1.15;
	cursor: pointer;
	transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.cp-partner-directory__filters button:hover,
.cp-partner-directory__filters button.is-active {
	border-color: #123b64;
	background: #123b64;
	color: #ffffff;
}

.cp-partner-directory__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	align-items: stretch;
}

.cp-partner-card {
	min-width: 0;
	min-height: 242px;
}

.cp-partner-card[hidden] {
	display: none;
}

.cp-partner-card__button {
	display: grid;
	grid-template-rows: 128px 1fr;
	gap: 0;
	width: 100%;
	height: 100%;
	min-height: 242px;
	padding: 0;
	border: 1px solid #dbe7eb;
	border-radius: 8px;
	background: #ffffff;
	color: #102235;
	text-align: left;
	overflow: hidden;
	cursor: pointer;
	box-shadow: 0 12px 28px rgba(16, 34, 53, .08);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.cp-partner-card__button:hover,
.cp-partner-card__button:focus-visible {
	transform: translateY(-3px);
	border-color: #8dc7ca;
	box-shadow: 0 18px 38px rgba(16, 34, 53, .13);
	outline: none;
}

.cp-partner-card__logo-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 22px;
	background: #ffffff;
	border-bottom: 1px solid #edf3f5;
}

.cp-partner-card__logo-wrap img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.cp-partner-card__content {
	display: grid;
	align-content: start;
	gap: 8px;
	padding: 14px;
	min-width: 0;
}

.cp-partner-card__badge {
	justify-self: start;
	max-width: 100%;
	padding: 5px 8px;
	border-radius: 999px;
	background: #eaf7f6;
	color: #0f7677;
	font-size: 12px;
	font-weight: 850;
	line-height: 1.15;
	white-space: normal;
}

.cp-partner-card__name {
	display: block;
	color: #102235;
	font-size: 18px;
	font-weight: 850;
	line-height: 1.15;
	letter-spacing: 0;
}

.cp-partner-card__meta {
	display: block;
	color: #66798b;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.35;
}

.cp-partner-directory__empty {
	margin: 22px 0 0;
	color: #66798b;
	font-size: 15px;
	font-weight: 700;
}

.cp-partner-directory__cta {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}

.cp-partner-directory__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 18px;
	border-radius: 8px;
	background: #102235;
	color: #ffffff !important;
	font-size: 15px;
	font-weight: 850;
	line-height: 1.2;
	text-decoration: none;
	transition: background .16s ease, transform .16s ease;
}

.cp-partner-directory__link:hover {
	background: #0b1825;
	color: #ffffff !important;
	text-decoration: none;
	transform: translateY(-1px);
}

.cp-partner-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.cp-partner-modal.is-open {
	display: flex;
}

.cp-partner-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(7, 18, 31, .62);
}

.cp-partner-modal__dialog {
	position: relative;
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	gap: 22px;
	width: min(100%, 680px);
	max-height: min(760px, calc(100vh - 40px));
	overflow: auto;
	padding: 24px;
	border-radius: 8px;
	background: #ffffff;
	color: #102235;
	box-shadow: 0 26px 70px rgba(5, 16, 27, .28);
}

.cp-partner-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 999px;
	background: #eef4f6;
	color: #203246;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.cp-partner-modal__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 160px;
	padding: 18px;
	border: 1px solid #edf3f5;
	border-radius: 8px;
	background: #fbfdfd;
}

.cp-partner-modal__logo img {
	display: block;
	width: 100%;
	max-height: 150px;
	object-fit: contain;
}

.cp-partner-modal__content {
	display: grid;
	align-content: start;
	justify-items: center;
	gap: 10px;
	padding-right: 22px;
	text-align: center;
}

.cp-partner-modal__badge {
	justify-self: center;
	margin: 0;
	padding: 6px 9px;
	border-radius: 999px;
	background: #eaf7f6;
	color: #0f7677;
	font-size: 13px;
	font-weight: 850;
	line-height: 1.15;
}

.cp-partner-modal__content h3 {
	margin: 0;
	color: #102235;
	font-size: clamp(25px, 4vw, 36px);
	font-weight: 850;
	line-height: 1.08;
	letter-spacing: 0;
	text-transform: none;
}

.cp-partner-modal__meta {
	margin: 0;
	color: #66798b;
	font-size: 14px;
	font-weight: 750;
	line-height: 1.35;
}

.cp-partner-modal__offer {
	margin: 4px 0 0;
	color: #263c51;
	font-size: 16px;
	line-height: 1.55;
	white-space: pre-line;
}

.cp-partner-modal__order {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	justify-self: center;
	min-height: 44px;
	margin-top: 8px;
	padding: 11px 16px;
	border-radius: 8px;
	background: #123b64;
	color: #ffffff !important;
	font-size: 15px;
	font-weight: 850;
	line-height: 1.2;
	text-decoration: none;
	transition: background .16s ease, transform .16s ease;
}

.cp-partner-modal__order:hover {
	background: #0f3153;
	color: #ffffff !important;
	text-decoration: none;
	transform: translateY(-1px);
}

body.cp-partner-modal-open {
	overflow: hidden;
}

@media (max-width: 980px) {
	.cp-partner-directory__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.cp-partner-directory__inner {
		width: min(100% - 4px, 1180px);
		padding: 26px 6px 30px;
		border-radius: 18px;
	}

	.cp-partner-directory__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.cp-partner-card,
	.cp-partner-card__button {
		min-height: 218px;
	}

	.cp-partner-card__button {
		grid-template-rows: 112px 1fr;
	}

	.cp-partner-card__logo-wrap {
		padding: 16px;
	}

	.cp-partner-card__content {
		padding: 12px;
	}

	.cp-partner-card__name {
		font-size: 16px;
	}

	.cp-partner-modal {
		align-items: center;
		justify-content: center;
		padding: 14px;
	}

	.cp-partner-modal__dialog {
		grid-template-columns: 1fr;
		gap: 14px;
		width: min(100%, 520px);
		max-height: calc(100vh - 28px);
		padding: 22px;
		border-radius: 8px;
	}

	.cp-partner-modal__logo {
		min-height: 132px;
	}
}

@media (max-width: 430px) {
	.cp-partner-directory__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cp-partner-card,
	.cp-partner-card__button {
		min-height: 204px;
	}

	.cp-partner-card__button {
		grid-template-columns: 1fr;
		grid-template-rows: 92px 1fr;
	}

	.cp-partner-card__logo-wrap {
		padding: 12px;
		border-right: 0;
		border-bottom: 1px solid #edf3f5;
	}

	.cp-partner-card__content {
		padding: 10px;
		gap: 6px;
	}

	.cp-partner-card__badge {
		font-size: 11px;
	}

	.cp-partner-card__name {
		font-size: 15px;
	}

	.cp-partner-card__meta {
		font-size: 12px;
	}
}
