/* MCW Sidebar Ads Slider */

.mcw-sas-slider {
	position: relative;
	width: 100%;
	max-width: var(--mcw-sas-max-width, 300px);
	aspect-ratio: var(--mcw-sas-aspect, 1 / 1);
	margin: 0 auto;
	overflow: hidden;
	border-radius: 4px;
	background: #f1f1f1;
}

.mcw-sas-track {
	position: relative;
	width: 100%;
	height: 100%;
}

.mcw-sas-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.mcw-sas-link,
.mcw-sas-slide > .mcw-sas-img {
	display: block;
	width: 100%;
	height: 100%;
}

.mcw-sas-img {
	object-fit: cover;
	width: 100%;
	height: 100%;
}

/* Fade effect: all slides stacked, opacity crossfades */
.mcw-sas-effect-fade .mcw-sas-slide {
	opacity: 0;
	transition: opacity var(--mcw-sas-transition, 600ms) ease;
	pointer-events: none;
}

.mcw-sas-effect-fade .mcw-sas-slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

/* Slide effect: slides sit side by side, track shifts via transform */
.mcw-sas-effect-slide .mcw-sas-track {
	display: flex;
	width: 100%;
	height: 100%;
	transition: transform var(--mcw-sas-transition, 600ms) ease;
	will-change: transform;
}

.mcw-sas-effect-slide .mcw-sas-slide {
	position: relative;
	flex: 0 0 100%;
	inset: auto;
}

.mcw-sas-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	border: 0;
	width: 32px;
	height: 32px;
	line-height: 32px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 14px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mcw-sas-arrow:hover,
.mcw-sas-arrow:focus-visible {
	background: rgba(0, 0, 0, 0.7);
}

.mcw-sas-prev {
	left: 8px;
}

.mcw-sas-next {
	right: 8px;
}

.mcw-sas-dots {
	position: absolute;
	bottom: 8px;
	left: 0;
	right: 0;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 6px;
}

.mcw-sas-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: rgba(255, 255, 255, 0.6);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
	cursor: pointer;
}

.mcw-sas-dot.is-active {
	background: #fff;
}

/* Mobile: keep full width of the sidebar column, drop arrows to reduce clutter, keep dots and swipe */
@media (max-width: 600px) {
	.mcw-sas-slider {
		max-width: 100%;
	}

	.mcw-sas-arrow {
		width: 28px;
		height: 28px;
		line-height: 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mcw-sas-effect-fade .mcw-sas-slide,
	.mcw-sas-effect-slide .mcw-sas-track {
		transition-duration: 1ms;
	}
}
