.chen-ingredients,
.chen-ingredients * {
	box-sizing: border-box;
}

.chen-ingredients {
	--chen-ingredients-display: grid;
	--chen-ingredients-columns: 4;
	--chen-ingredients-item-width: 220px;
	--chen-ingredients-column-gap: 28px;
	--chen-ingredients-row-gap: 32px;
	--chen-ingredients-content-gap: 8px;
	--chen-ingredients-transition: 250ms;
	--chen-ingredients-card-hover-y: 0px;
	--chen-ingredients-card-hover-scale: 1;
	--chen-ingredients-image-hover-scale: 1;
	width: 100%;
}

.chen-ingredients__list {
	display: var(--chen-ingredients-display, grid);
	grid-template-columns: repeat(var(--chen-ingredients-columns, 4), minmax(0, 1fr));
	grid-auto-flow: row;
	column-gap: var(--chen-ingredients-column-gap, 28px);
	row-gap: var(--chen-ingredients-row-gap, 32px);
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
	outline-style: solid;
	outline-color: transparent;
	outline-width: 0;
}

.chen-ingredients--snap .chen-ingredients__list {
	scroll-snap-type: inline proximity;
}

.chen-ingredients--hide-scrollbar .chen-ingredients__list {
	scrollbar-width: none;
}

.chen-ingredients--hide-scrollbar .chen-ingredients__list::-webkit-scrollbar {
	display: none;
}

.chen-ingredients__item {
	min-width: 0;
	margin: 0;
	padding: 0;
	flex: 0 0 var(--chen-ingredients-item-width, 220px);
	scroll-snap-align: start;
}

.chen-ingredients--equal-height .chen-ingredients__item,
.chen-ingredients--equal-height .chen-ingredients__card {
	height: 100%;
}

.chen-ingredients__card {
	display: flex;
	flex-direction: column;
	position: relative;
	min-width: 0;
	margin: 0;
	gap: 0;
	transition:
		transform var(--chen-ingredients-transition, 250ms) ease,
		background-color var(--chen-ingredients-transition, 250ms) ease,
		border-color var(--chen-ingredients-transition, 250ms) ease,
		box-shadow var(--chen-ingredients-transition, 250ms) ease;
}

.chen-ingredients__card:hover {
	transform: translateY(var(--chen-ingredients-card-hover-y, 0px)) scale(var(--chen-ingredients-card-hover-scale, 1));
}

.chen-ingredients__image-wrap {
	position: relative;
	flex: 0 0 auto;
	overflow: hidden;
	isolation: isolate;
}

.chen-ingredients__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	border: 0;
	transition: transform var(--chen-ingredients-transition, 250ms) ease;
}

.chen-ingredients__card:hover .chen-ingredients__image {
	transform: scale(var(--chen-ingredients-image-hover-scale, 1));
}

.chen-ingredients__title,
.chen-ingredients__description {
	width: 100%;
	padding: 0;
	transition: color var(--chen-ingredients-transition, 250ms) ease;
}

.chen-ingredients__title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.chen-ingredients__description {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
}

/* Precise, independent vertical spacing between the dynamic content parts. */
.chen-ingredients__image-wrap + .chen-ingredients__title {
	margin-block-start: var(--chen-ingredients-image-title-gap, var(--chen-ingredients-content-gap, 8px));
}

.chen-ingredients__title + .chen-ingredients__description {
	margin-block-start: var(--chen-ingredients-title-description-gap, var(--chen-ingredients-content-gap, 8px));
}

.chen-ingredients__image-wrap + .chen-ingredients__description {
	margin-block-start: var(--chen-ingredients-image-description-gap, var(--chen-ingredients-content-gap, 8px));
}

.chen-ingredients__description p {
	margin: 0;
}

.chen-ingredients__description p + p {
	margin-top: 0.75em;
}

.chen-ingredients__editor-note,
.chen-ingredients__empty-notice {
	margin-bottom: 12px;
	padding: 10px 12px;
	border: 1px dashed #9aa0a6;
	border-radius: 4px;
	background: #f7f8f9;
	color: #3c4043;
	font-size: 12px;
	line-height: 1.5;
	text-align: start;
}

.chen-ingredients__empty-notice {
	margin: 0;
}

@media (prefers-reduced-motion: reduce) {
	.chen-ingredients__list {
		scroll-behavior: auto;
	}

	.chen-ingredients__card,
	.chen-ingredients__image,
	.chen-ingredients__title,
	.chen-ingredients__description {
		transition: none !important;
	}

	.chen-ingredients__card:hover,
	.chen-ingredients__card:hover .chen-ingredients__image {
		transform: none !important;
	}
}
