.ef-catalogs {
	margin-block: 0 48px;
}

.ef-catalog-grid {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ef-catalog-card {
	background: #fff;
	border: 1px solid #e2e5e8;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(23, 31, 40, 0.08);
	overflow: hidden;
}

.ef-catalog-card__trigger {
	align-items: stretch;
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	font: inherit;
	height: 100%;
	padding: 0;
	text-align: left;
	width: 100%;
}

.ef-catalog-card__trigger > img {
	aspect-ratio: 3 / 4;
	background: #f4f5f6;
	height: auto;
	object-fit: contain;
	width: 100%;
}

.ef-catalog-card__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
}

.ef-catalog-card__content strong {
	font-size: 1.2rem;
}

.ef-catalog-card__content .ef-button {
	align-self: flex-start;
	background: #2f2f2f;
	border-radius: 5px;
	color: #fff;
	margin-top: auto;
	padding: 9px 16px;
}

.ef-catalog-dialog .ef-button,
.ef-download-page .ef-button,
.ef-migrated-content .ef-button {
	background: #2f2f2f;
	border: 0;
	border-radius: 5px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	padding: 9px 16px;
	text-decoration: none;
}

.ef-catalog-dialog .ef-button:is(:hover, :focus-visible),
.ef-download-page .ef-button:is(:hover, :focus-visible),
.ef-migrated-content .ef-button:is(:hover, :focus-visible) {
	background: #d71920;
	color: #fff;
}

.ef-catalog-dialog .ef-button--secondary,
.ef-migrated-content .ef-button--secondary {
	background: #666;
}

.ef-download-page {
	align-items: start;
	display: grid;
	gap: 18px 32px;
	grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
}

.ef-download-page > img:first-child {
	float: none !important;
	grid-row: 1 / span 4;
	height: auto;
	margin: 0;
	max-width: 100%;
}

.ef-download-page > .ef-button {
	align-items: center;
	justify-self: start;
}

.ef-download-page > .ef-button img {
	height: 32px;
	margin-right: 10px;
	width: 32px !important;
}

.ef-catalog-card__trigger:is(:hover, :focus-visible) .ef-button {
	background: #d71920;
}

.ef-catalog-card__trigger:focus-visible,
.ef-catalog-dialog__close:focus-visible {
	outline: 3px solid #d71920;
	outline-offset: 3px;
}

.ef-catalog-dialog {
	background: transparent;
	border: 0;
	max-height: min(90vh, 760px);
	max-width: min(92vw, 640px);
	padding: 0;
	width: 100%;
}

.ef-catalog-dialog::backdrop {
	background: rgba(12, 18, 24, 0.78);
}

.ef-catalog-dialog__panel {
	background: #f1f3f4;
	border: 1px solid rgba(47, 47, 47, 0.18);
	border-top: 5px solid #d71920;
	border-radius: 8px;
	box-shadow: 0 24px 70px rgba(12, 18, 24, 0.32);
	max-height: min(90vh, 760px);
	overflow: auto;
	padding: clamp(24px, 5vw, 42px);
	position: relative;
}

.ef-catalog-dialog__close {
	background: transparent;
	border: 0;
	color: #2f2f2f;
	cursor: pointer;
	font-size: 2rem;
	line-height: 1;
	padding: 8px;
	position: absolute;
	right: 10px;
	top: 8px;
}

.ef-catalog-dialog input:not([type="submit"]):not([type="reset"]),
.ef-catalog-dialog textarea,
.ef-catalog-dialog select {
	background: #fff;
	border: 1px solid #aeb4ba;
	border-radius: 4px;
	box-sizing: border-box;
	color: #2f2f2f;
	max-width: 100%;
	padding: 10px 12px;
	width: 100%;
}

.ef-catalog-dialog input:not([type="submit"]):not([type="reset"]):focus,
.ef-catalog-dialog textarea:focus,
.ef-catalog-dialog select:focus {
	border-color: #0077a3;
	box-shadow: 0 0 0 3px rgba(0, 119, 163, 0.18);
	outline: 0;
}

.ef-modal-open {
	overflow: hidden;
}

@media (max-width: 900px) {
	.ef-catalog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.ef-catalog-grid {
		grid-template-columns: 1fr;
	}

	.ef-download-page {
		grid-template-columns: 1fr;
	}

	.ef-download-page > img:first-child {
		grid-row: auto;
		max-width: 320px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ef-catalog-dialog {
	scroll-behavior: auto;
	}
}
