/* =========================================================
CW OXY REPEATER MOBILE SLIDER
Actif uniquement sous le breakpoint transmis par JS/PHP
========================================================= */

@media (max-width: 767px) {

	/* wrapper ajouté par le JS pour gérer la flèche */
	.cw-slider-repeater-list-wrap {
		position: relative;
		width: 100%;
		max-width: 100%;
	}

	/* liste transformée en slider */
	.cw-slider-repeater-list.cw-orms-ready {
		display: flex !important;
		flex-wrap: nowrap !important;
		gap: 12px;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 8px;
		margin-right: 0 !important;
		margin-left: 0 !important;
		scrollbar-width: none;
		width: 100% !important;
		max-width: 100% !important;
	}

	.cw-slider-repeater-list.cw-orms-ready::-webkit-scrollbar {
		display: none;
	}

	/* items */
	.cw-slider-repeater-list.cw-orms-ready > .cw-slider-repeater-item {
		flex: 0 0 70%;
		max-width: 70%;
		min-width: 70%;
		scroll-snap-align: start;
		margin: 0 !important;
	}

	/* si Oxygen met des widths inline ou héritées */
	.cw-slider-repeater-list.cw-orms-ready > .cw-slider-repeater-item,
	.cw-slider-repeater-list.cw-orms-ready > .cw-slider-repeater-item > div,
	.cw-slider-repeater-list.cw-orms-ready > .cw-slider-repeater-item article {
		box-sizing: border-box;
	}

	.cw-slider-repeater-list.cw-orms-ready > .cw-slider-repeater-item:first-child {
		margin-left: 0 !important;
	}

	/* flèche active */
	.cw-slider-scroll-arrow {
		position: absolute;
		top: 50%;
		right: 6px;
		transform: translateY(-50%);
		width: 44px;
		height: 44px;
		border: 0;
		border-radius: 999px;
		background: rgba(255,255,255,.96);
		box-shadow: 0 2px 10px rgba(0,0,0,.16);
		z-index: 99999;
		display: flex;
		align-items: center;
		justify-content: center;
		pointer-events: auto;
		cursor: pointer;
		transition: opacity .25s ease, transform .2s ease;
		color: #cd1618;
		padding: 0;
		appearance: none;
		-webkit-appearance: none;
		touch-action: manipulation;
		-webkit-tap-highlight-color: transparent;
	}

	.cw-slider-scroll-arrow svg {
		width: 16px;
		height: 16px;
		display: block;
		pointer-events: none;
	}

	.cw-slider-scroll-arrow.is-hidden {
		opacity: 0;
		pointer-events: none;
	}

	.cw-slider-scroll-arrow:active {
		transform: translateY(-50%) scale(.96);
	}
}

@media (min-width: 768px) {
	.cw-slider-repeater-list.cw-orms-ready {
		overflow: visible !important;
		scroll-snap-type: none;
	}
}