/* CH Carousels — track behaviour + generated navigation.
   Arrow and dot rules are scoped under .ch-car on purpose: see main.php. */

[id^="ch-car-"] {
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	overscroll-behavior-x: contain;
}

[id^="ch-car-"]::-webkit-scrollbar {
	width: 0;
	height: 0;
	display: none;
}

[id^="ch-car-"] > * {
	scroll-snap-align: start;
}

/* Wrapper injected by carousels.js */
.ch-car {
	position: relative;
	width: 100%;
}

.ch-car .ch-car__btn {
	position: absolute;
	top: 50%;
	z-index: 5;
	width: 48px;
	height: 48px;
	min-width: 0;
	margin: 0;
	padding: 0;
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid rgba(0, 0, 0, 0.14);
	border-radius: 50%;
	background-color: #ffffff;
	color: #000000;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color 0.25s, border-color 0.25s, opacity 0.25s;
}

.ch-car .ch-car__btn:hover {
	background-color: #b89d72;
	border-color: #b89d72;
}

.ch-car .ch-car__btn:hover .ch-car__chev {
	border-color: #ffffff;
}

.ch-car .ch-car__btn:focus-visible {
	outline: 2px solid #b89d72;
	outline-offset: 3px;
}

.ch-car .ch-car__btn[disabled] {
	opacity: 0;
	pointer-events: none;
}

.ch-car .ch-car__btn--prev {
	left: -22px;
}

.ch-car .ch-car__btn--next {
	right: -22px;
}

.ch-car .ch-car__chev {
	width: 9px;
	height: 9px;
	border: 0 solid #000000;
	border-right-width: 1.5px;
	border-bottom-width: 1.5px;
	transition: border-color 0.25s;
}

.ch-car .ch-car__btn--prev .ch-car__chev {
	transform: rotate(135deg);
	margin-left: 3px;
}

.ch-car .ch-car__btn--next .ch-car__chev {
	transform: rotate(-45deg);
	margin-right: 3px;
}

.ch-car .ch-car__dots {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-top: 28px;
}

.ch-car .ch-car__dot {
	width: 8px;
	height: 8px;
	min-width: 0;
	margin: 0;
	padding: 0;
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.2);
	cursor: pointer;
	transition: background-color 0.25s, transform 0.25s;
}

.ch-car .ch-car__dot.is-active {
	background-color: #b89d72;
	transform: scale(1.35);
}

.ch-car .ch-car__dot:focus-visible {
	outline: 2px solid #b89d72;
	outline-offset: 3px;
}

/* Compact navigation for carousels that fill a card's media box */
.ch-car--inset {
	height: 100%;
}

.ch-car--inset .ch-car__btn {
	width: 36px;
	height: 36px;
}

.ch-car--inset .ch-car__btn--prev {
	left: 12px;
}

.ch-car--inset .ch-car__btn--next {
	right: 12px;
}

.ch-car--inset .ch-car__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14px;
	margin-top: 0;
	z-index: 5;
}

.ch-car--inset .ch-car__dot {
	background-color: rgba(255, 255, 255, 0.55);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.ch-car--inset .ch-car__dot.is-active {
	background-color: #ffffff;
}

@media (max-width: 1240px) {
	.ch-car:not(.ch-car--inset) .ch-car__btn--prev {
		left: 8px;
	}

	.ch-car:not(.ch-car--inset) .ch-car__btn--next {
		right: 8px;
	}
}

@media (max-width: 767px) {
	.ch-car:not(.ch-car--inset) .ch-car__btn {
		display: none;
	}

	.ch-car .ch-car__dots {
		margin-top: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	[id^="ch-car-"] {
		scroll-behavior: auto;
	}
}
