/* ELEMENTOR */
:where(:not(.elementor-template, .elementor-loop-container))>.elementor>.e-con {
	--min-height: var(--cont-min-height);
	--justify-content: center;
}

/* First container of elementor page should be full height - admin bar + woo notice. */
:where(.site-content [data-elementor-type="wp-page"])>.e-con:first-child {
	--min-height: calc(100vh - var(--admin-bar-height) - var(--woo-notice-height));
}

/* Container gap variables for elementor containers. */
.e-con {
	--gap: var(--x-gap);
	--row-gap: var(--x-gap);
	--column-gap: var(--x-gap);
}

/* Arrows */
i.fa-chevron-left,
i.fa-chevron-right,
i.eicon-chevron-left,
i.eicon-chevron-right {
	font-family: var(--heading-font);
}

.elementor-swiper-button .fa-chevron-left::before,
.elementor-swiper-button .eicon-chevron-left::before {
	content: '←';
}

.elementor-swiper-button .fa-chevron-right::before,
.elementor-swiper-button .eicon-chevron-right::before {
	content: '→';
}

/* BASE SWIPER STYLES */
.e-widget-swiper {
	--gpd-arrow-size: 64px;
	--bullet-size: 18px;
	--bullet-gap: 16px;
	--arrow-size: var(--gpd-arrow-size) !important;
}

.swiper {}

@media (min-width: 1025px) {
	.products-carousel .e-widget-swiper .swiper~.elementor-swiper-button {
		display: none;
	}
}

.products-carousel .elementor-swiper-button {
	height: var(--gpd-arrow-size);
	bottom: 0;
	top: auto !important;
	transform: none !important;
}

@media (max-width: 1023px) {
	.products-carousel .swiper {
		padding-bottom: calc(var(--arrow-size) * 2);
		padding-right: 23%;
		margin-right: calc(50% - 50vw);
	}
}

@media (max-width: 767px) {
	.products-carousel .swiper {
		padding-right: 40%;
	}
}



.elementor-element .swiper .swiper-pagination-bullets.swiper-pagination-horizontal {
	--swiper-pagination-bullet-inactive-color: white;
	--swiper-pagination-bullet-inactive-opacity: 1;
	bottom: var(--x-gap);
	transform: translatey(50%);
	display: flex;
	justify-content: center;
}

.elementor-element .swiper .elementor-swiper-button {
	bottom: var(--x-gap);
	top: auto;
	transform: translatey(50%);
	font-size: var(--gpd-arrow-size);
	line-height: 1;
	color: black;
	cursor: pointer;
	z-index: 12;
	transition: all 0.3s ease;
}

.elementor-element .swiper .elementor-swiper-button:hover {
	color: var(--ast-global-color-0);
}

.elementor-widget-loop-carousel .swiper-pagination-bullet {
	--dots-normal-color: white;
	--dots-active-color: black;
	--dots-hover-color: var(--ast-global-color-0);
	opacity: 1;
}

.elementor-widget-loop-carousel .swiper-pagination-bullet.swiper-pagination-bullet-active {
	--dots-normal-color: black;
}

.products-carousel .swiper:not(.swiper-initialized) .swiper-slide {
	max-width: 365px;
}

.elementor .products-carousel .swiper.offset-right {
	--offset: calc(50% - 50vw);
	margin: 0 var(--offset);
	padding-inline-end: 20%;
}

@media (max-width: 900px) {
	.elementor .products-carousel .swiper.offset-right {
		padding-inline-end: 30%;
	}
}

@media (max-width: 600px) {
	.elementor .products-carousel .swiper.offset-right {
		padding-inline-end: 40%;
	}
}

/* Recipe Carousel */
.recipes-carousel .linked-product {
	display: none;
}

.recipes-carousel,
.elementor-widget-image-carousel {
	--bullet-size: 18px;
	--bullet-gap: 16px;
	--gpd-arrow-size: 64px;
	--arrow-size: var(--gpd-arrow-size);
}

.elementor-element .swiper .elementor-swiper-button {
	font-size: var(--gpd-arrow-size);
}

.recipes-carousel .swiper-pagination-bullet,
.elementor-widget-image-carousel .swiper-pagination-bullet {
	--swiper-pagination-bullet-horizontal-gap: var(--bullet-gap) !important;
	--swiper-pagination-bullet-vertical-gap: var(--bullet-gap);
	--swiper-pagination-size: var(--bullet-size);
}

@media (min-width: 1025px) {
	.recipes-carousel>.e-con-inner {
		position: relative;
	}

	.recipes-carousel_heading {
		position: absolute;
		top: calc(var(--x-gap) * 2);
		left: 0;
		z-index: 10;
	}
}

@media (max-width: 1024px) {
	.e-widget-swiper {
		--bullet-size: 8px;
		--bullet-gap: 8px;
		--gpd-arrow-size: 40px;
	}

	.recipes-carousel {
		--bullet-size: 8px;
		--bullet-gap: 8px;
		--gpd-arrow-size: 40px;
		--arrow-size: var(--gpd-arrow-size);
	}

	.container-target :has(.recipe-carousel) {
		width: 100%;
		min-width: 0;
		flex: 1 1 100%;
	}

	.recipe-carousel {
		--nav-height: var(--gpd-arrow-size);
		--nav-pos: calc((100cqw / 40 * 30) + var(--nav-height) / 2);
		container-type: inline-size;
		width: 100%;
	}

	.recipe-box {
		gap: var(--nav-height);
	}

	.recipe-box>.e-con-inner {
		flex-direction: column !important;
		justify-content: start !important;
	}

	.recipe-image {
		order: -1;
		aspect-ratio: 4 / 3;
	}

	.recipe-image .elementor-widget-image {
		width: 100%;
	}

	.recipe-image img {
		aspect-ratio: 4 / 3;
		object-fit: cover;
	}

	.recipe-carousel .swiper-pagination {
		display: flex;

		top: var(--nav-pos) !important;
		bottom: auto !important;
		left: 50% !important;
		transform: translate(-50%, -50%) !important;
	}

	.recipe-carousel .elementor-swiper-button {
		top: var(--nav-pos) !important;
		transform: translate(0%, -50%) !important;
	}
}
