.adduse-cs {
	--adduse-cs-cpv: 2.5;
	--adduse-cs-cpv-tablet: 1.8;
	--adduse-cs-cpv-mobile: 1.15;
	--adduse-cs-cols: 3;
	--adduse-cs-cols-tablet: 2;
	--adduse-cs-cols-mobile: 1;
	--adduse-cs-gap: 24px;
	--adduse-cs-row-gap: 24px;
	width: 100%;
	box-sizing: border-box;
}

/* ----- Top scrollbar ----- */
.adduse-cs__bar-row {
	display: flex;
	justify-content: flex-start;
	width: 100%;
	margin-bottom: 0;
}

.adduse-cs__bar {
	position: relative;
	width: 100%;
	height: 3px;
	margin-bottom: 32px;
	cursor: pointer;
	outline: none;
	touch-action: none;
}

.adduse-cs__bar:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.adduse-cs__bar-track {
	position: relative;
	width: 100%;
	height: 100%;
	background-color: #dddddd;
}

.adduse-cs__bar-thumb {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 20%;
	background-color: #13294b;
	will-change: transform, width;
	transition: background-color .2s ease;
}

/* ----- Card track ----- */
.adduse-cs__track {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--adduse-cs-gap);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

/* Drag-to-scroll cursor (mouse only; touch keeps native scroll behaviour) */
@media (hover: hover) and (pointer: fine) {
	.adduse-cs--scroller .adduse-cs__track {
		cursor: grab;
	}
	.adduse-cs--grabbing .adduse-cs__track,
	.adduse-cs--grabbing.adduse-cs[data-snap="yes"] .adduse-cs__track {
		cursor: grabbing;
		scroll-behavior: auto;
		scroll-snap-type: none;
		user-select: none;
	}
	.adduse-cs--scroller .adduse-cs__card img {
		-webkit-user-drag: none;
		user-drag: none;
	}
}

/* ----- Full-bleed right: extend track past container to viewport right edge ----- */
.adduse-cs--bleed-right .adduse-cs__track {
	width: calc(100% + var(--adduse-cs-bleed-right, 0px));
}

/* ----- Grid mode: replace horizontal scroller with CSS grid ----- */
.adduse-cs--grid .adduse-cs__bar-row {
	display: none;
}

.adduse-cs--grid .adduse-cs__track {
	display: grid;
	grid-template-columns: repeat(var(--adduse-cs-cols, 3), minmax(0, 1fr));
	gap: var(--adduse-cs-row-gap, var(--adduse-cs-gap)) var(--adduse-cs-gap);
	overflow: visible;
	scroll-snap-type: none;
	width: 100%;
}

.adduse-cs--grid .adduse-cs__card {
	flex: initial;
	scroll-snap-align: none;
}

.adduse-cs__track::-webkit-scrollbar {
	display: none;
}

.adduse-cs[data-snap="yes"] .adduse-cs__track {
	scroll-snap-type: x mandatory;
}

.adduse-cs[data-snap="yes"] .adduse-cs__card {
	scroll-snap-align: start;
}

/* ----- Card ----- */
.adduse-cs__card {
	position: relative;
	flex: 0 0 calc((100% - (ceil(var(--adduse-cs-cpv)) - 1) * var(--adduse-cs-gap)) / var(--adduse-cs-cpv));
	box-sizing: border-box;
	padding: 32px;
	min-height: 320px;
	background-color: #FBE8D2;
	border-radius: 4px;
	color: inherit;
	text-decoration: none;
	transition: background-color .25s ease;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

/* Fallback for browsers without ceil() in calc (we accept tiny imprecision) */
@supports not (width: calc(ceil(1.5) * 1px)) {
	.adduse-cs__card {
		flex: 0 0 calc((100% - var(--adduse-cs-gap) * (var(--adduse-cs-cpv) - 1)) / var(--adduse-cs-cpv));
	}
}

.adduse-cs__card--link {
	cursor: pointer;
}

.adduse-cs__card--link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

/* ----- Icon ----- */
.adduse-cs__icon-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background-color: #ffffff;
	flex-shrink: 0;
}

.adduse-cs__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: #13294b;
	line-height: 1;
}

.adduse-cs__icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.adduse-cs__icon i {
	font-size: 44px;
	line-height: 1;
}

.adduse-cs__icon-img {
	width: 44px;
	height: 44px;
	object-fit: contain;
	display: block;
	user-select: none;
	-webkit-user-drag: none;
}

/* ----- Title ----- */
.adduse-cs__title {
	margin: 32px 0 0;
	font-size: 22px;
	line-height: 1.3;
	font-weight: 400;
	color: #13294b;
	transition: color .25s ease;
	padding: 0;
}

/* ----- Plus icon (visible on hover when card has link) ----- */
.adduse-cs__plus {
	--adduse-cs-plus-stroke: 1.5px;
	position: absolute;
	top: 24px;
	right: 24px;
	width: 24px;
	height: 24px;
	display: block;
	color: #13294b;
	opacity: 0;
	transition: opacity .25s ease;
	pointer-events: none;
}

.adduse-cs__plus::before,
.adduse-cs__plus::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background-color: currentColor;
	transform: translate(-50%, -50%);
}

.adduse-cs__plus::before {
	width: 100%;
	height: var(--adduse-cs-plus-stroke);
}

.adduse-cs__plus::after {
	width: var(--adduse-cs-plus-stroke);
	height: 100%;
}

.adduse-cs__card--link:hover .adduse-cs__plus,
.adduse-cs__card--link:focus-visible .adduse-cs__plus {
	opacity: 1;
}

/* ----- Responsive (Elementor breakpoints) ----- */
@media (max-width: 1024px) {
	.adduse-cs--scroller .adduse-cs__card {
		flex: 0 0 calc((100% - (ceil(var(--adduse-cs-cpv-tablet)) - 1) * var(--adduse-cs-gap)) / var(--adduse-cs-cpv-tablet));
	}
	@supports not (width: calc(ceil(1.5) * 1px)) {
		.adduse-cs--scroller .adduse-cs__card {
			flex: 0 0 calc((100% - var(--adduse-cs-gap) * (var(--adduse-cs-cpv-tablet) - 1)) / var(--adduse-cs-cpv-tablet));
		}
	}
	.adduse-cs--grid .adduse-cs__track {
		grid-template-columns: repeat(var(--adduse-cs-cols-tablet, 2), minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.adduse-cs--scroller .adduse-cs__card {
		flex: 0 0 calc((100% - (ceil(var(--adduse-cs-cpv-mobile)) - 1) * var(--adduse-cs-gap)) / var(--adduse-cs-cpv-mobile));
	}
	@supports not (width: calc(ceil(1.5) * 1px)) {
		.adduse-cs--scroller .adduse-cs__card {
			flex: 0 0 calc((100% - var(--adduse-cs-gap) * (var(--adduse-cs-cpv-mobile) - 1)) / var(--adduse-cs-cpv-mobile));
		}
	}
	.adduse-cs--grid .adduse-cs__track {
		grid-template-columns: repeat(var(--adduse-cs-cols-mobile, 1), minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.adduse-cs__track {
		scroll-behavior: auto;
	}
	.adduse-cs__card,
	.adduse-cs__title,
	.adduse-cs__plus {
		transition: none;
	}
}
