/* TDG carousel. The tdg-carousel global class in Elementor sets the row and gap; this adds what Elementor's
   style controls can't: horizontal scrolling with snap points, slide widths, and the arrow and dot controls. */

.elementor .tdg-carousel {
	flex-wrap: nowrap;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.elementor .tdg-carousel::-webkit-scrollbar {
	display: none;
}

.elementor .tdg-carousel:focus-visible {
	outline: 2px solid var(--color-accent, #00843D);
	outline-offset: 4px;
}

/* Three slides in view on desktop, two on tablet, one with a peek of the next on phones. */
.elementor .tdg-carousel > .e-con {
	flex: 0 0 calc((100% - 48px) / 3);
	scroll-snap-align: start;
}

@media (max-width: 1024px) {
	.elementor .tdg-carousel > .e-con {
		flex-basis: calc(50% - 12px);
	}
}

@media (max-width: 767px) {
	.elementor .tdg-carousel > .e-con {
		flex-basis: 86%;
	}
}

.tdg-carousel__controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: -16px;
}

.tdg-carousel__controls[hidden] {
	display: none;
}

/* The theme gives every button a shadow and rounded corners; the carousel controls set their own. */
.tdg-carousel__controls button {
	box-shadow: none;
}

.tdg-carousel__arrow {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	font-family: var(--font-body, "Montserrat"), Arial, sans-serif;
	font-size: 18px;
	line-height: 1;
	color: var(--color-text, #1E1D1A);
	background: transparent;
	border: 1px solid var(--color-text, #1E1D1A);
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 160ms, color 160ms, border-color 160ms;
}

.tdg-carousel__arrow:hover:not(:disabled) {
	color: var(--color-bg, #FFFFFF);
	background: var(--color-text, #1E1D1A);
}

.tdg-carousel__arrow:disabled {
	cursor: default;
	opacity: 0.3;
}

.tdg-carousel__arrow:focus-visible,
.tdg-carousel__dot:focus-visible {
	outline: 2px solid var(--color-accent, #00843D);
	outline-offset: 2px;
}

.tdg-carousel__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
}

.tdg-carousel__dot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.tdg-carousel__dot[hidden] {
	display: none;
}

.tdg-carousel__dot-mark {
	width: 8px;
	height: 8px;
	background: var(--color-line-ink, #B9B1A3);
	border-radius: 50%;
	transition: background-color 160ms, transform 160ms;
}

.tdg-carousel__dot[aria-current="true"] .tdg-carousel__dot-mark {
	background: var(--color-accent, #00843D);
	transform: scale(1.25);
}

/* Slides: one full-width slide at a time. The tdg-slides and tdg-slide global classes set the row and slide
   widths; this adds the horizontal scrolling and snap points. The doubled class outranks a frame class's
   overflow: hidden on the same element. */
.elementor .tdg-slides.tdg-slides {
	flex-wrap: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.elementor .tdg-slides::-webkit-scrollbar {
	display: none;
}

.elementor .tdg-slides > .e-con {
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

/* The arrows and dots sit just under the slides. */
.tdg-slides__controls {
	margin-top: -24px;
}

@media (prefers-reduced-motion: reduce) {
	.elementor .tdg-carousel,
	.elementor .tdg-slides.tdg-slides {
		scroll-behavior: auto;
	}
}
