.ui-product-carousel-wrapper {
	position: relative;
}

.ui-product-carousel-wrapper > .ui-product-carousel {
	padding-bottom: 62px;
	overflow: hidden;
}

.ui-product-carousel-wrapper > .ui-product-carousel::before,
.ui-product-carousel-wrapper > .ui-product-carousel::after {
	content: "";
	position: absolute;
	top: 0;
	left: -35px;
	bottom: 62px;
	width: 35px;
}

.ui-product-carousel-wrapper > .ui-product-carousel::after {
	left: auto;
	right: -35px;
}

.ui-product-carousel-wrapper > .ui-product-carousel > [data-toggle="product-carousel"] {
	position: relative;
	white-space: nowrap;
	overflow-x: scroll;
	overflow-y: hidden;
	overscroll-behavior-y: auto;
	overscroll-behavior-x: none;
	scroll-behavior: smooth;
	scrollbar-width: none;
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	gap: 0;
	max-width: calc(100vw - 300px);
}

.ui-product-carousel-wrapper > .ui-product-carousel > [data-toggle="product-carousel"]::-webkit-scrollbar {
	display: none;
}

/* scrolling using scrollbar handle does not work with scroll-behavior: smooth */ 
.ui-product-carousel-wrapper > .ui-product-carousel.dragged > [data-toggle="product-carousel"] {
	scroll-behavior: auto;
}

.ui-product-carousel-wrapper > .ui-product-carousel > [data-toggle="product-carousel"] > li {
	padding-left: 1px;
	padding-right: 1px;
}

.ui-product-carousel-wrapper > .ui-product-carousel > [data-toggle="product-carousel"] > li > .container-box {
	-webkit-user-select: none;
	user-select: none;
}

/* small thumbnails (8.5) */ 
.ui-product-carousel-wrapper.ui-product-carousel-small > .ui-product-carousel > [data-toggle="product-carousel"] > li {
	min-width: 11.7647%;
	max-width: 11.7647%;
}

/* medium thumbnails (6.5) */ 
.ui-product-carousel-wrapper.ui-product-carousel-medium > .ui-product-carousel > [data-toggle="product-carousel"] > li {
	min-width: 15.3846%;
	max-width: 15.3846%;
}

/* large thumbnails (4.5) */ 
.ui-product-carousel-wrapper.ui-product-carousel-large > .ui-product-carousel > [data-toggle="product-carousel"] > li {
	min-width: 22.5%;
	max-width: 22.5%;
}

/* navigate buttons */ 
.ui-product-carousel-wrapper > .ui-product-carousel-nav {
	position: absolute;
	top: 0;
	left: -20px;
	right: -20px;
	bottom: 62px;
	margin: auto 0;
	height: 40px;
	z-index: 1;
	pointer-events: none;
}

.ui-product-carousel-wrapper > .ui-product-carousel-nav > .ui-prev,
.ui-product-carousel-wrapper > .ui-product-carousel-nav > .ui-next {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 40px;
	height: 40px;
	transition: opacity 150ms linear;
	opacity: 0;
}

.ui-product-carousel-wrapper:hover > .ui-product-carousel-nav > .ui-prev,
.ui-product-carousel-wrapper:hover > .ui-product-carousel-nav > .ui-next,
.ui-product-carousel-wrapper > .ui-product-carousel.dragged + .ui-product-carousel-nav > .ui-prev,
.ui-product-carousel-wrapper > .ui-product-carousel.dragged + .ui-product-carousel-nav > .ui-next {
	opacity: 1;
	pointer-events: all;
}

.ui-product-carousel-wrapper > .ui-product-carousel-nav > .hide {
	opacity: 0 !important;
}


@media (pointer: coarse) {
	.ui-product-carousel-wrapper > .ui-product-carousel-nav > .ui-prev,
	.ui-product-carousel-wrapper  > .ui-product-carousel-nav > .ui-next {
		opacity: 1 !important;
	}
}

.ui-product-carousel-wrapper > .ui-product-carousel-nav > .ui-next {
	left: auto;
	right: 0;
}

.ui-product-carousel-wrapper > .ui-product-carousel-nav button {
	background-color: #000;	
	width: 100%;
	height: 100%;
	border-radius: 50%;
	margin: 0;
	padding: 0;
	z-index: 0;
	text-decoration: none;
}

.ui-product-carousel-wrapper > .ui-product-carousel-nav button > .material-icons {
	color: #fff;
	font-size: 24px;
}

/* horizontal scrollbar */ 
.ui-product-carousel-wrapper > .ui-product-carousel > .ui-scrollbar-wrapper {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 15px 0 15px 0;
	pointer-events: none;
}

.ui-product-carousel-wrapper > .ui-product-carousel > .ui-scrollbar-wrapper .ui-scrollbar-rail {
	cursor: pointer;
	padding: 15px 2px 15px 2px;
}

.ui-product-carousel-wrapper > .ui-product-carousel > .ui-scrollbar-wrapper > .ui-scrollbar-rail > .ui-scrollbar-slider  {
	position: relative;
	height: 2px;
	background-color: rgba(0,0,0,0.1);
	transform-origin: center center;
}

.ui-product-carousel-wrapper > .ui-product-carousel > .ui-scrollbar-wrapper > .ui-scrollbar-rail > .ui-scrollbar-slider > .ui-scrollbar-slider-handle {
	position: absolute;
	background-color: rgba(0,0,0,1);
	display: inline-block;
	height: 2px;
	cursor: grab;
	pointer-events: all;
	transform-origin: center center;
}

.ui-product-carousel-wrapper > .ui-product-carousel.dragged > .ui-scrollbar-wrapper > .ui-scrollbar-rail > .ui-scrollbar-slider,
.ui-product-carousel-wrapper > .ui-product-carousel > .ui-scrollbar-wrapper:hover > .ui-scrollbar-rail > .ui-scrollbar-slider  {
	transform: scaleY(2);
}

.ui-product-carousel-wrapper > .ui-product-carousel.dragged > .ui-scrollbar-wrapper > .ui-scrollbar-rail  > .ui-scrollbar-slider > .ui-scrollbar-slider-handle.ui-draggable-dragging,
.ui-product-carousel-wrapper > .ui-product-carousel.dragged > .ui-scrollbar-wrapper > .ui-scrollbar-rail:hover  > .ui-scrollbar-slider > .ui-scrollbar-slider-handle {
	transform: scaleY(1.5);
}

/* make handle hit area bigger so it's easier to grab */ 
.ui-product-carousel-wrapper > .ui-product-carousel > .ui-scrollbar-wrapper > .ui-scrollbar-rail > .ui-scrollbar-slider > .ui-scrollbar-slider-handle::after {
	content: "";
	position: absolute;
	top: -20px;
	left: -20px;
	bottom: -20px;
	right: -20px;
}