.gam-vehicle-carousel {
	--gam-carousel-gap: 16px;
	--gam-carousel-peek: clamp(24px, 4vw, 48px);
	--gam-carousel-visible-count: 4;
	--gam-carousel-control-top: 20px;
	--gam-carousel-control-height: 0px;
	--gam-carousel-outside-left: 0px;
	--gam-carousel-outside-right: 0px;
	--gam-carousel-nav-icon-size: 32px;
	--gam-carousel-nav-overlap: 16px;
	position: relative;
	width: 100%;
}

.gam-vehicle-carousel .gam-vehicle-carousel__viewport {
	overflow: hidden;
	width: 100%;
}

.gam-vehicle-carousel .gam-vehicle-carousel__track {
	display: flex;
	gap: var(--gam-carousel-gap);
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	padding: 20px var(--gam-carousel-peek) 12px;
	scroll-behavior: smooth;
	scroll-padding-inline: var(--gam-carousel-peek);
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.gam-vehicle-carousel .gam-vehicle-carousel__track::-webkit-scrollbar {
	display: none;
}

.gam-vehicle-carousel .gam-vehicle-card {
	position: relative;
	top: 0;
	left: 0;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	box-sizing: border-box;
	display: flex;
	flex: 0 0 calc(25% - 12px);
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	scroll-snap-align: start;
	transition: all 150ms ease-in-out;
}

.gam-vehicle-carousel .gam-vehicle-card:hover {
	top: -10px;
	left: 0;
}

.gam-vehicle-carousel .gam-vehicle-card__media {
	aspect-ratio: 4 / 3;
	background: rgba(0, 0, 0, 0.04);
	overflow: hidden;
}

.gam-vehicle-carousel .gam-vehicle-card__media > a {
	display: block;
	height: 100%;
}

.gam-vehicle-carousel .gam-vehicle-card__image {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.gam-vehicle-carousel .gam-vehicle-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
}

.gam-vehicle-carousel .gam-vehicle-card__title {
	font-size: 1.1rem;
	line-height: 1.3;
	margin: 0;
}

.gam-vehicle-carousel .gam-vehicle-card__title a,
.gam-vehicle-carousel .gam-vehicle-card__action a {
	color: inherit;
}

.gam-vehicle-carousel .gam-vehicle-card__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gam-vehicle-carousel .gam-vehicle-card__facts li {
	font-size: 0.9rem;
	opacity: 0.75;
}

.gam-vehicle-carousel .gam-vehicle-card__fuel {
	text-transform: capitalize;
}

.gam-vehicle-carousel .gam-vehicle-card__price,
.gam-vehicle-carousel .gam-vehicle-card__financed-price,
.gam-vehicle-carousel .gam-vehicle-card__action {
	margin: 0;
}

.gam-vehicle-carousel .gam-vehicle-card__price {
	font-size: 1.05rem;
	font-weight: 700;
}

.gam-vehicle-carousel .gam-vehicle-card__financed-price {
	font-weight: 600;
}

.gam-vehicle-carousel .gam-vehicle-card__financed-label {
	display: block;
	font-size: 0.82rem;
	font-weight: 400;
	opacity: 0.72;
}

.gam-vehicle-carousel .gam-vehicle-card__action {
	margin-top: auto;
	padding-top: 4px;
}

.gam-vehicle-carousel .gam-vehicle-carousel__nav {
	appearance: none;
	background: transparent;
	border: 0;
	box-sizing: border-box;
	color: inherit;
	cursor: pointer;
	display: flex;
	height: var(--gam-carousel-control-height);
	margin: 0;
	padding: 0;
	position: absolute;
	top: var(--gam-carousel-control-top);
	touch-action: manipulation;
	transition: background 160ms ease, opacity 160ms ease;
	user-select: none;
	z-index: 4;
}

.gam-vehicle-carousel .gam-vehicle-carousel__nav--previous {
	align-items: center;
	justify-content: center;
	left: calc(-1 * var(--gam-carousel-outside-left));
	width: calc(
		var(--gam-carousel-outside-left) +
		var(--gam-carousel-peek) +
		var(--gam-carousel-nav-overlap)
	);
}

.gam-vehicle-carousel .gam-vehicle-carousel__nav--next {
	align-items: center;
	justify-content: center;
	right: calc(-1 * var(--gam-carousel-outside-right));
	width: calc(
		var(--gam-carousel-outside-right) +
		var(--gam-carousel-peek) +
		var(--gam-carousel-nav-overlap)
	);
}

.gam-vehicle-carousel .gam-vehicle-carousel__nav-icon {
	align-items: center;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
	display: inline-flex;
	flex: 0 0 var(--gam-carousel-nav-icon-size);
	height: var(--gam-carousel-nav-icon-size);
	justify-content: center;
	min-height: var(--gam-carousel-nav-icon-size);
	min-width: var(--gam-carousel-nav-icon-size);
	pointer-events: none;
	transition: transform 160ms ease;
	width: var(--gam-carousel-nav-icon-size);
}

.gam-vehicle-carousel .gam-vehicle-carousel__nav:focus-visible {
	background: rgba(0, 0, 0, 0.08);
	outline: 0;
}

.gam-vehicle-carousel .gam-vehicle-carousel__nav:focus-visible .gam-vehicle-carousel__nav-icon {
	outline: 2px solid currentColor;
	outline-offset: 2px;
	transform: scale(1.05);
}

.gam-vehicle-carousel__nav-icon svg {
	display: block;
	height: 18px;
	width: 18px;
}

.gam-vehicle-carousel .gam-vehicle-carousel__nav:disabled {
	cursor: default;
	opacity: 0;
	pointer-events: none;
}

.gam-vehicle-carousel .gam-vehicle-carousel.is-static .gam-vehicle-carousel__nav {
	display: none;
}

@media (hover: hover) and (pointer: fine) {
	.gam-vehicle-carousel .gam-vehicle-carousel__nav:not(:disabled):hover {
		background: rgba(0, 0, 0, 0.08);
	}

	.gam-vehicle-carousel .gam-vehicle-carousel__nav:not(:disabled):hover .gam-vehicle-carousel__nav-icon {
		transform: scale(1.05);
	}
}

.gam-vehicle-carousel .gam-vehicle-carousel__dots {
	align-items: center;
	display: flex;
	gap: 8px;
	justify-content: center;
	min-height: 20px;
	padding-top: 8px;
}

.gam-vehicle-carousel .gam-vehicle-carousel__dot {
	appearance: none;
	background: currentColor;
	color: inherit;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	height: 8px;
	margin: 0;
	opacity: 0;
	padding: 0;
	pointer-events: none;
	transform: scale(0.5);
	transition: opacity 160ms ease, transform 160ms ease, width 160ms ease, height 160ms ease;
	width: 0;
}

.gam-vehicle-carousel .gam-vehicle-carousel__dot.is-visible {
	height: 8px;
	opacity: 0.72;
	pointer-events: auto;
	transform: scale(1);
	width: 8px;
}

.gam-vehicle-carousel .gam-vehicle-carousel__dot.is-adjacent {
	height: 6px;
	opacity: 0.28;
	pointer-events: auto;
	transform: scale(1);
	width: 6px;
}

.gam-vehicle-carousel .gam-vehicle-carousel__dot:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.gam-vehicle-carousel .gam-vehicle-carousel.is-static .gam-vehicle-carousel__dots {
	display: none;
}

@media (max-width: 1023px) {
	.gam-vehicle-carousel {
		--gam-carousel-peek: clamp(20px, 5vw, 40px);
		--gam-carousel-visible-count: 2;
	}

	.gam-vehicle-carousel .gam-vehicle-card {
		flex-basis: calc(50% - 8px);
	}
}

@media (max-width: 767px) {
	.gam-vehicle-carousel {
		--gam-carousel-peek: clamp(24px, 7vw, 32px);
		--gam-carousel-visible-count: 1;
	}

	.gam-vehicle-carousel .gam-vehicle-card {
		flex-basis: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gam-vehicle-carousel .gam-vehicle-carousel__track {
		scroll-behavior: auto;
	}

	.gam-vehicle-carousel .gam-vehicle-carousel__dot {
		transition: none;
	}
}
