.wi-recipes-carousel {
	--wi-rc-gap: 20px;
	--wi-rc-per-view: 3;
	box-sizing: border-box;
}

.wi-recipes-carousel *,
.wi-recipes-carousel *::before,
.wi-recipes-carousel *::after {
	box-sizing: border-box;
}

.wi-recipes-carousel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 32px;
}

.wi-recipes-carousel__title {
	margin: 0;
	font-family: var( --wi-rc-font-heading, 'Marshe', Georgia, serif );
	font-weight: 400;
	font-size: 30px;
	line-height: 42px;
	color: #41170b;
}

.wi-recipes-carousel__nav {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.wi-recipes-carousel__nav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	border-radius: 0;
	background: none;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	-webkit-tap-highlight-color: transparent;
	color: #41170b;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.wi-recipes-carousel__nav-btn:hover,
.wi-recipes-carousel__nav-btn:focus,
.wi-recipes-carousel__nav-btn:active {
	background: none;
	box-shadow: none;
	opacity: 1;
}

.wi-recipes-carousel__nav-btn svg path {
    stroke: rgba(65, 23, 11, 1) !important;
}

.wi-recipes-carousel__nav-btn:focus {
	outline: none;
}

.wi-recipes-carousel__nav-btn:focus-visible {
	outline: 2px solid #41170b;
	outline-offset: 2px;
}

.wi-recipes-carousel__nav-btn:disabled {
	opacity: 0.4;
	cursor: default;
	pointer-events: none;
}

.wi-recipes-carousel__viewport {
	overflow: hidden;
	width: 100%;
}

.wi-recipes-carousel__track {
	display: flex;
	gap: var( --wi-rc-gap );
	align-items: flex-start;
	will-change: transform;
}

.wi-recipes-carousel--slider .wi-recipes-carousel__track {
	flex-wrap: nowrap;
	transition: transform 0.5s cubic-bezier( 0.4, 0, 0.2, 1 ) !important;
}

/*
 * Grid mode (3 or fewer recipes) never slides, so it's free to wrap: at
 * --wi-rc-per-view: 3 there are at most 3 items, so they always fit on one
 * line; wrapping only kicks in once the per-view count drops below the
 * item count at the tablet/mobile breakpoints below.
 */
.wi-recipes-carousel--grid .wi-recipes-carousel__track {
	flex-wrap: wrap;
}

.wi-recipes-carousel__item {
	display: flex;
	flex-direction: column;
	gap: 20px;
	flex: 0 0 calc( ( 100% - ( var( --wi-rc-per-view ) - 1 ) * var( --wi-rc-gap ) ) / var( --wi-rc-per-view ) );
	min-width: 0;
	text-decoration: none;
	color: inherit;
}

.wi-recipes-carousel__media {
	display: block;
	width: 100%;
	height: 222px;
	overflow: hidden;
	background: #fff;
}

.wi-recipes-carousel__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wi-recipes-carousel__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wi-recipes-carousel__name {
	font-family: var( --wi-rc-font-body, 'FiraGO', sans-serif );
	font-size: 30px;
	line-height: 39px;
	color: rgba( 0, 0, 0, 0.65 );
	transition: color 0.2s ease;
}

.wi-recipes-carousel__link {
	font-family: var( --wi-rc-font-body, 'FiraGO', sans-serif );
	font-size: 13px;
	line-height: 24.14px;
	color: #41170b;
}

.wi-recipes-carousel__item:hover .wi-recipes-carousel__name {
	color: #41170b !important;
}

@media ( max-width: 1024px ) {
	.wi-recipes-carousel {
		--wi-rc-per-view: 2;
	}

	.wi-recipes-carousel__name {
		font-size: 24px;
		line-height: 32px;
	}
}

@media ( max-width: 640px ) {
	.wi-recipes-carousel {
		--wi-rc-per-view: 1;
	}

	.wi-recipes-carousel__header {
		margin-bottom: 20px;
	}
}
