
/* skeleton */
.trendingWidget .recs:not(.loaded) .swiper-controls {
	display: none !important;
}
.trendingWidget .recs .recsWidget-skeleton {
	display: grid;
	grid-template-columns: repeat(5, 180px);
	gap: 16px;
	margin: 0 0 32px 28px;
	width: 100%;
}
.trendingWidget .recs .recsWidget-skeleton > * {
	border-radius: 10px;
	background-color: #cdcdcd;
	background-color: color-mix(in srgb, var(--bgColor) 65%, white);
	overflow: hidden;
	animation: monetatePulse 1000ms infinite linear alternate;
}
.trendingWidget:has(.recsWidget-skeleton) {
	grid-template-columns: var(--imgWidth) 1fr;
}
.trendingWidget.reverse:has(.recsWidget-skeleton) {
	grid-template-columns: 1fr var(--imgWidth);
}
@media(max-width: 767px) {
	.trendingWidget .recs .recsWidget-skeleton {
		height: calc(318 / 375 * 100vw);
		grid-template-columns: repeat(5, 40vw);
		margin: 0 8px;
	}
}
@keyframes monetatePulse {
	0% {
		filter: brightness(1);
	}
	100% {
		filter: brightness(.85);
	}
}

/* widget */
.editorOverlay {
	background-color: transparent !important;
	transform: scale(.9);
}
.editorOverlay:before {
	position: absolute;
    inset: -5%;
    content: "placeholder for widget script, will not show on page";
    background-color: #dddddda1;
    z-index: 2;
    backdrop-filter: blur(2px);
    border-radius: 10px;
    place-content: center;
    text-align: center;
    font-weight: 800;
}

.trendingWidget {
	--imgWidth: var(--image-width, 622px);
	container-type: inline-size;
	display: grid;
	/* grid-template-columns: minmax(min-content, 2fr) minmax(auto, 3fr); */
	grid-template-columns: minmax(0, min-content) minmax(430px, 1fr);
	grid-template-areas: "trending recs";
	background-color: var(--bgColor);
	border-radius: 10px;
	overflow: clip;
}
.trendingWidget.reverse {
	grid-template-areas: "recs trending";
	/* grid-template-columns: minmax(auto, 3fr) minmax(min-content, 2fr); */
	grid-template-columns: minmax(430px, 1fr) minmax(0, min-content);
}
.trendingWidget.col {
	grid-template-areas: "trending" "recs";
	grid-template-columns: 1fr;
	grid-template-rows: min-content 1fr;
}
/* @media(min-width: 768px) and (max-width: 1024px) {
	.trendingWidget {
		grid-template-columns: minmax(0, min-content) minmax(430px, 1fr);
	}
	.trendingWidget.reverse {
		grid-template-columns: minmax(430px, 1fr) minmax(0, min-content);
	}
} */
.trendingWidget .trending {
	grid-area: trending;
	aspect-ratio: var(--aspect-ratio, 622 / 370);
	border-radius: 10px;
	display: block;
	position: relative;
}
.trendingWidget.col .trending {
	aspect-ratio: unset;
	border: 5px solid var(--bgColor, #333);
	overflow: clip;
}
.trendingWidget .trending img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.trendingWidget .mobileTitle {
	display: none;
}
.trendingWidget .recs {
	grid-area: recs;
	container-type: inline-size;
	container-name: recs-column;
}
.trendingWidget .recs a {
	position: relative;
	background-color: #fff;
	border-radius: 10px;
	overflow: clip;
	padding: 8px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 8px;
	border: 1px solid #efefef;
}
.trendingWidget .sku-image {
	width: 100%;
	aspect-ratio: 1;
}
.trendingWidget .sku-badges {
	position: absolute;
	inset: 8px 8px auto 8px;
	display: flex;
	flex-direction: row-reverse;
	gap: 4px;
}
.trendingWidget .sku-badges > div {
	width: 25%;
	max-width: 45px;
}
.trendingWidget .sku-badges img {
	width: 100%;
}
.trendingWidget .sku-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: clip;
}
.trendingWidget .p-w-r {
	margin-top: 0;
}
.trendingWidget .sku-price {
	display: flex;
	align-items: end;
	gap: .5rem;
}
.trendingWidget .sku-price:has(.sku-map) {
	flex-wrap: wrap;
}
.trendingWidget .sku-map {
	display: block;
	line-height: 1.15;
	text-wrap: balance;
	color: #d40029;
	font-weight: 300;
}
.trendingWidget .sku-map span {
	font-weight: 700;
}
.trendingWidget .sku-price-current {
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 1;
}
.trendingWidget .sku-price-former {
	font-size: .75rem;
	line-height: 1;
	margin-bottom: 1px;
}
.trendingWidget .pr-star-v4 {
	background-size: cover;
    display: inline-flex;
    height: 13px;
    width: 13px;
    padding: 3px;
    border-radius: 3px;
    margin-right: 2px;
    margin-left: 0;
}

/* swiper */
.trendingWidget .swiper .swiper-wrapper {
	padding-block-end: 0 !important;
}
.trendingWidget .swiper {
	height: 100%;
	padding-block: 16px 32px;
}
.trendingWidget .item {
	position: relative;
	width: 180px;
	/* height: calc(100% - 32px); */
}
.trendingWidget .swiper .swiper-controls {
	grid-template-rows: auto 32px;
}
.trendingWidget .swiper .swiper-pagination {
	place-self: center;
}
.trendingWidget.inverted .swiper-pagination-bullet,
.trendingWidget[style*="#d40029"] .swiper-pagination-bullet {
	background-color: var(--pagination, #fff) !important;
}
.trendingWidget.inverted .swiper-pagination-bullet:hover,
.trendingWidget.inverted .swiper-pagination-bullet-active {
	background-color: #d40029 !important;
}
.trendingWidget[style*="#d40029"] .swiper-pagination-bullet:hover,
.trendingWidget[style*="#d40029"] .swiper-pagination-bullet-active {
	background-color: #333 !important;
}
.trendingWidget.acs .swiper-controls .swiper-navigation button {
	/* --width: clamp(16px, 1.97cqw, 24px); */
	width: 24px;
	--radius: 10px;
}

@media (min-width: 767px) and (max-width: 1299px) {
	.trendingWidget .swiper {
		padding-block: 16px;
	}
}

@media(max-width: 767px) {
	.trendingWidget .swiper {
		padding-block-start: 8px;
	}
	.trendingWidget .swiper .swiper-wrapper {
		padding-block-end: 32px !important;
	}
	.trendingWidget .swiper .swiper-controls {
		grid-template-rows: auto 32px;
	}
}

@media(max-width: 767px) {
	.trendingWidget {
		display: block;
		border-radius: 0;
	}
	.trendingWidget .item {
		border-radius: 6px;
		border: none;
		height: auto;
	}
	.trendingWidget .trending {
		border-radius: 0;
		width: 100%;
		aspect-ratio: unset;
	}
	.trendingWidget.col .trending {
		border: 4px solid var(--bgColor);
		display: block;
	}
	.trendingWidget .mobileTitle {
		display: block;
		font-weight: 700;
		margin: 8px 8px 0;
		font-size: var(--mz-14);
		color: var(--color, #333);
	}
	.trendingWidget.inverted .mobileTitle {
		color: var(--color, #fff);
	}
	.trendingWidget .recs {
		width: 100%;
	}
}

@container recs-column (max-width: 450px) {
	.trendingWidget .swiper {
		padding-block: 16px;
	}
	.trendingWidget .swiper-controls {
		grid-template-rows: 1fr;
	}
	.trendingWidget .swiper-pagination {
		display: none !important;
	}
	.trendingWidget .item {
		/* height: calc(100% - 16px); */
	}
}