.ccm-cg {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px;
	width: 100%;
}

.ccm-cg__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 16px;
	text-decoration: none;
	background-color: #FFFFFF;
	border: 1px solid #E4E7EA;
	border-radius: 16px;
	transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.ccm-cg__card:hover,
.ccm-cg__card:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(49, 61, 77, 0.12);
	border-color: #05707A;
}

.ccm-cg__card:focus-visible {
	outline: 3px solid #05707A;
	outline-offset: 2px;
}

.ccm-cg .ccm-cg__img {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	margin: 0;
	border-radius: 12px;
}

.ccm-cg__name {
	font-family: "Jost", sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	color: #313D4D;
	overflow-wrap: anywhere;
}

.ccm-cg__count {
	font-family: "Jost", sans-serif;
	font-size: 13px;
	color: #484F56;
}

.ccm-cg__card[hidden],
.ccm-cg__no-results[hidden] {
	display: none !important;
}

.ccm-cg__search {
	width: 100%;
	max-width: 420px;
	margin: 0 0 20px;
}

.elementor-widget .ccm-cg__search .ccm-cg__search-input {
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 12px 18px 12px 44px;
	font-family: "Jost", sans-serif;
	font-size: 16px;
	line-height: 1.4;
	color: #313D4D;
	background-color: #FFFFFF;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23484F56' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 16px center;
	border: 1px solid #D2D7DC;
	border-radius: 999px;
	box-shadow: none;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.elementor-widget .ccm-cg__search .ccm-cg__search-input:focus {
	border-color: #05707A;
	box-shadow: 0 0 0 3px rgba(5, 112, 122, 0.15);
}

.ccm-cg__no-results {
	margin: 0;
	padding: 24px 0;
	font-family: "Jost", sans-serif;
	color: #484F56;
}

.ccm-cg__empty {
	margin: 0;
	font-family: "Jost", sans-serif;
	color: #484F56;
}

@media (max-width: 1024px) {
	.ccm-cg {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.ccm-cg {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 10px;
	}

	.ccm-cg__card {
		padding: 10px;
		gap: 6px;
	}

	.ccm-cg__name {
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ccm-cg__card {
		transition: none;
	}

	.ccm-cg__card:hover,
	.ccm-cg__card:focus-visible {
		transform: none;
	}
}
