/* Single */
.maksimer-alternative-products {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}
.maksimer-alternative-products[data-mode="faded"]
	.maksimer-alternative-products-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	transition: all 2s ease-in-out;
	position: relative;
}

.maksimer-alternative-products.low {
	flex-flow: row wrap;
}
.maksimer-alternative-products.low p {
	flex: 0 0 100%;
}
.maksimer-alternative-products.low .glide__slides {
	width: 100% !important;
}
.maksimer-alternative-products[data-mode="faded"]
	.maksimer-alternative-products-grid[data-product-expand="true"]:after {
	content: " ";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 40%;
	background: linear-gradient(hsla(0, 0%, 100%, 0.001), #fff);
	transition: all 0.2s ease-in-out;
}
.maksimer-alternative-products[data-mode="faded"] #expand-toggle {
	display: none;
}
.maksimer-alternative-products[data-mode="faded"]
	#expand-toggle:checked
	~ .maksimer-alternative-products-grid[data-product-expand="true"] {
	max-height: none !important;
	overflow: auto !important;
}
.maksimer-alternative-products[data-mode="faded"]
	#expand-toggle:checked
	~ .maksimer-alternative-products-grid:after {
	top: -99999;
	bottom: -99999;
	height: 0px !important;
}
.maksimer-alternative-products[data-mode="faded"] .expand-alternative-products {
	display: block;
	cursor: pointer;
	border: none;
	color: #fff;
	background-color: var(--ast-global-color-0);
	font-size: var(--button--font-size-small);
	padding: var(--button--padding-small);
	text-align: center;
	margin-top: var(--spacing--xsmall);
	margin-bottom: var(--spacing--xsmall);
}

/* Loop */

.maksimer-alternative-products-loop {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	width: 100%;
	justify-items: center;
	position: relative;
}

.maksimer-alternative-products-loop a img {
	height: 30px;
	width: auto;
	margin: 0;
}

.maksimer-alternative-products-loop a img:not(:first-of-type) {
	margin-left: 2.5px;
}

.maksimer-alternative-products-loop .maksimer-alternative-products-plus {
	background-color: black;
	color: #fff;
	border-radius: 50%;
	width: 15px;
	height: 15px;
	display: flex;
	justify-content: center;
	align-items: center;
}
/* Carousel destroyed mode css */
.maksimer-alternative-products[data-mode="destroyed"] .glide__slides.destroyed {
	display: grid;
	grid-template-columns: repeat(3, 80px);
	transition: none;
	position: relative;
	gap: 30px;
}
.maksimer-alternative-products[data-mode="destroyed"]
	.maksimer-alternative-products-grid {
	max-width: 100%;
}
.maksimer-alternative-products[data-mode="destroyed"]
	.glide__slide.glide__slide--button {
	display: none;
}
/* Carousel mode css */
.maksimer-alternative-products[data-mode="carousel"]
	.maksimer-alternative-products-grid {
	max-width: 100%;
}
.maksimer-alternative-products[data-mode="carousel"]
	.maksimer-alternative-products-grid {
	position: relative;
}

.maksimer-alternative-products[data-mode="carousel"]
.maksimer-alternative-products-grid img {
	max-width: 80px;
	max-height: 80px;
	object-fit: contain;
}

body.single-product #page .maksimer-alternative-products-grid .glide__track .glide__arrows button.glide__arrow {
	width: unset;
	background-color: transparent;
	border: none;
	padding: 0;
	box-shadow: none;
}
body.single-product #page .maksimer-alternative-products-grid .glide__track .glide__arrows button.glide__arrow.glide__arrow--left {
	transform: rotate(90deg);
	left: -50px;
}
body.single-product #page .maksimer-alternative-products-grid .glide__track .glide__arrows button.glide__arrow.glide__arrow--right {
	transform: rotate(-90deg);
	right: -50px;
}
@media screen and (max-width: 599px) {
	body.single-product #page .maksimer-alternative-products-grid .glide__track .glide__arrows button.glide__arrow.glide__arrow--left {
		left: -40px;
	}
	body.single-product #page .maksimer-alternative-products-grid .glide__track .glide__arrows button.glide__arrow.glide__arrow--right {
		right: -40px;
	}
}
.maksimer-alternative-products[data-mode="carousel"]
	.maksimer-alternative-products-grid[data-product-expand="true"]:after {
	content: " ";
	position: absolute;
	bottom: 0;
	left: 70%;
	right: 0;
	height: 100%;
	background: linear-gradient(to left, #fff, hsla(0, 0%, 100%, 0.001));
	/* background: linear-gradient(to left center, hsla(0, 0%, 100%, 0.001), #fff); */
	transition: all 0.2s ease-in-out;
	pointer-events: none;
}
/* Carousel mode css */
.button.destroy-carousel {
	display: flex;
	height: 100%;
	align-items: center;
}

.glide__slides {
	align-items: stretch;
}
.glide__slide.glide__slide--button {
	display: flex;
	align-items: center;
	height: unset;
}

.astra-shop-summary-wrap .maksimer-alternative-products-loop img {
	max-width: 40px;
}

.maksimer-alternative-products p {
	width: 100%;
}
