.single-product .woocommerce-product-gallery .flex-direction-nav {
	display: none;
}

@media (min-width: 992px) and (hover: hover) and (pointer: fine) {
	.woocommerce.single-product div.product div.images > .flex-control-thumbs[data-overflowing],
	.woocommerce.single-product div.product div.images > .flex-control-thumbs[data-overflowing] img {
		cursor: grab;
		user-select: none;
		-webkit-user-drag: none;
	}

	.woocommerce.single-product div.product div.images > .flex-control-thumbs[data-dragging],
	.woocommerce.single-product div.product div.images > .flex-control-thumbs[data-dragging] img {
		cursor: grabbing;
	}

	.single-product .woocommerce-product-gallery .flex-viewport > .flex-direction-nav {
		position: absolute;
		z-index: 2;
		inset: 0;
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin: 0;
		padding: 0 .75rem;
		list-style: none;
		pointer-events: none;
	}

	.single-product .woocommerce-product-gallery .flex-direction-nav a {
		position: relative;
		display: block;
		width: 2.75rem;
		height: 2.75rem;
		border: 1px solid #d8dde5;
		border-radius: 50%;
		background: #fff;
		color: #0053e2;
		box-shadow: 0 2px 8px rgb(0 0 0 / 14%);
		font-size: 0;
		opacity: 0;
		transition: opacity 160ms ease;
	}

	.single-product .woocommerce-product-gallery .flex-direction-nav a::before {
		position: absolute;
		inset: 0;
		width: .6rem;
		height: .9rem;
		margin: auto;
		background: currentColor;
		clip-path: polygon(0 12%, 18% 0, 100% 50%, 18% 100%, 0 88%, 64% 50%);
		content: '';
	}

	.single-product .woocommerce-product-gallery .flex-direction-nav a.flex-prev::before {
		transform: scaleX(-1);
	}

	.single-product .woocommerce-product-gallery .flex-viewport:hover .flex-direction-nav a,
	.single-product .woocommerce-product-gallery .flex-direction-nav:has(a:focus-visible) a,
	.single-product .woocommerce-product-gallery .flex-direction-nav a:focus-visible {
		opacity: 1;
	}

	.single-product .woocommerce-product-gallery .flex-viewport:hover .flex-direction-nav a[aria-disabled="false"],
	.single-product .woocommerce-product-gallery .flex-direction-nav a[aria-disabled="false"]:focus-visible {
		pointer-events: auto;
	}

	.single-product .woocommerce-product-gallery .flex-viewport:hover .flex-direction-nav a.flex-disabled,
	.single-product .woocommerce-product-gallery .flex-direction-nav:has(a:focus-visible) a.flex-disabled {
		opacity: .38;
	}

	.single-product .woocommerce-product-gallery .flex-direction-nav a:focus-visible {
		outline: 2px solid currentColor;
		outline-offset: 2px;
	}
}

@media (max-width: 991px), (hover: none), (pointer: coarse) {
	.single-product .woocommerce-product-gallery .flex-viewport {
		touch-action: pan-y pinch-zoom;
	}
}

@media (prefers-reduced-motion: reduce) {
	.single-product .woocommerce-product-gallery .flex-direction-nav a {
		transition: none;
	}
}
