.rf-carousel-root {
	display: block !important;
	position: relative;
	width: 100%;
}

.rf-carousel-viewport {
	width: 100%;
	overflow: hidden;
}

.rf-carousel-track {
	display: flex;
	will-change: transform;
	touch-action: pan-y; /* allow vertical page scroll, we own horizontal drag */
	cursor: grab;
	user-select: none;
}

.rf-carousel-track.rf-dragging {
	cursor: grabbing;
}

/*
 * Elementor's .e-con.e-child rules apply flex-shrink:1 with high
 * specificity, which overrides a plain .rf-carousel-card { flex-shrink:0 }
 * and collapses every card in the nowrap row down to slivers. We scope
 * under the track and use !important to win that fight. flex: 0 0 auto
 * ensures the inline width/flex-basis we set in JS is actually honored.
 */
.rf-carousel-track > .rf-carousel-card {
	flex: 0 0 auto !important;
	flex-shrink: 0 !important;
	flex-grow: 0 !important;
	box-sizing: border-box;
	max-width: none !important;
}

.rf-carousel-card img {
	pointer-events: none; /* prevent native image-drag ghost interfering with our drag */
	-webkit-user-drag: none;
}

.rf-carousel-card[aria-hidden="true"] {
	pointer-events: none;
}

.rf-carousel-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
}

/*
 * Industry-standard pagination dots (Slick / Bootstrap convention):
 * consistent-size solid circles, inactive = black at low opacity (reads
 * gray), active = solid black at full opacity. No size jump — the opacity
 * shift alone signals the active slide, which is the cleaner convention.
 * Dots are <button>s, so themes paint them; we scope + !important to win.
 */
.rf-carousel-dots > .rf-carousel-dot {
	width: 9px !important;
	height: 9px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	border-radius: 50% !important;
	background-color: #000 !important;
	background-image: none !important;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: opacity 0.2s ease;
	opacity: 0.25 !important;
	flex: 0 0 auto;
}

.rf-carousel-dots > .rf-carousel-dot:hover {
	opacity: 0.5 !important;
}

.rf-carousel-dots > .rf-carousel-dot.rf-dot-active {
	opacity: 1 !important;
}
