.ethos-ba-showcase {
	--ethos-ba-navy: #1b2a47;
	--ethos-ba-gold: #c9a961;
	--ethos-ba-position: 50%;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow: visible;
}

.ethos-ba-showcase *,
.ethos-ba-showcase *::before,
.ethos-ba-showcase *::after {
	box-sizing: border-box;
}

.ethos-ba-tabs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0 0 30px;
	padding: 0;
	overflow: visible;
}

.ethos-ba-tab {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	min-width: 0;
	border: 0;
	margin: 0;
	padding: 18px 20px;
	min-height: 58px;
	background: var(--ethos-ba-gold);
	color: var(--ethos-ba-navy);
	border-radius: 12px;
	font: inherit;
	font-weight: 500;
	line-height: 1.25;
	text-align: center;
	white-space: normal;
	overflow-wrap: anywhere;
	cursor: pointer;
	transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.ethos-ba-tab:hover,
.ethos-ba-tab:focus-visible {
	transform: translateY(-2px);
}

.ethos-ba-tab:focus-visible,
.ethos-ba-arrow:focus-visible,
.ethos-ba-dot:focus-visible,
.ethos-ba-range:focus-visible {
	outline: 3px solid rgba(201, 169, 97, .55);
	outline-offset: 3px;
}

.ethos-ba-tab.is-active {
	background: var(--ethos-ba-navy);
	color: #fff;
}

.ethos-ba-panels,
.ethos-ba-panel,
.ethos-ba-slider,
.ethos-ba-slides,
.ethos-ba-slide {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	background: transparent;
}

.ethos-ba-panel[hidden],
.ethos-ba-slide[hidden] {
	display: none !important;
}

.ethos-ba-panel.is-active,
.ethos-ba-slide.is-active {
	display: block;
}

.ethos-ba-slider {
	position: relative;
	overflow: hidden;
}

.ethos-ba-slide {
	animation: ethosBAFade .22s ease;
}

@keyframes ethosBAFade {
	from { opacity: .45; }
	to { opacity: 1; }
}

.ethos-ba-compare {
	position: relative;
	width: 100%;
	height: 420px;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
	border-radius: 24px;
	background: #eef2f7;
	isolation: isolate;
	user-select: none;
	-webkit-user-select: none;
	touch-action: pan-y;
	cursor: ew-resize;
}

.ethos-ba-image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
}

.ethos-ba-after-image { z-index: 1; }

.ethos-ba-before-image {
	z-index: 2;
	clip-path: inset(0 calc(100% - var(--ethos-ba-position)) 0 0);
}

.ethos-ba-label {
	position: absolute;
	top: 18px;
	z-index: 7;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(17, 28, 48, .78);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .04em;
	text-transform: uppercase;
	pointer-events: none;
}

.ethos-ba-label-before { left: 18px; }
.ethos-ba-label-after { right: 18px; }

.ethos-ba-divider {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--ethos-ba-position);
	z-index: 8;
	width: 2px;
	background: #fff;
	transform: translateX(-50%);
	pointer-events: none;
	box-shadow: 0 0 0 1px rgba(17, 28, 48, .08);
}

.ethos-ba-handle {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #fff;
	color: var(--ethos-ba-navy);
	box-shadow: 0 8px 30px rgba(17, 28, 48, .24);
	transform: translate(-50%, -50%);
}

.ethos-ba-handle-arrows {
	font-size: 23px;
	font-weight: 600;
	line-height: 1;
	transform: translateY(-1px);
}

.ethos-ba-range {
	position: absolute;
	inset: 0;
	z-index: 10;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	appearance: none;
	-webkit-appearance: none;
	pointer-events: none;
}

.ethos-ba-arrow {
	position: absolute;
	top: 50%;
	z-index: 20;
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ethos-ba-gold);
	color: #111c30;
	box-shadow: 0 10px 30px rgba(17, 28, 48, .22);
	cursor: pointer;
	transform: translateY(-50%);
	transition: transform .2s ease, box-shadow .2s ease;
}

.ethos-ba-arrow:hover {
	transform: translateY(-50%) scale(1.06);
	box-shadow: 0 12px 34px rgba(17, 28, 48, .28);
}

.ethos-ba-arrow svg {
	width: 44%;
	height: 44%;
}

.ethos-ba-arrow-prev { left: 16px; }
.ethos-ba-arrow-next { right: 16px; }

/* Dots live on top of the image so they never create a grey/empty strip below it. */
.ethos-ba-dots {
	position: absolute;
	left: 50%;
	bottom: 14px;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	transform: translateX(-50%);
}

.ethos-ba-dot {
	appearance: none;
	-webkit-appearance: none;
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ethos-ba-gold);
	box-shadow: 0 0 0 1px rgba(255,255,255,.55);
	cursor: pointer;
	transition: width .2s ease, border-radius .2s ease, background-color .2s ease;
}

.ethos-ba-dot.is-active {
	width: 28px;
	border-radius: 999px;
	background: var(--ethos-ba-navy);
}

.ethos-ba-empty {
	padding: 24px;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	color: #64748b;
	text-align: center;
}

@media (max-width: 1024px) {
	.ethos-ba-tabs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
		margin-bottom: 22px;
	}

	.ethos-ba-compare {
		height: 360px;
		border-radius: 20px;
	}
}

@media (max-width: 767px) {
	.ethos-ba-showcase {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		overflow: hidden;
	}

	/* All categories are visible at once: two equal columns, no horizontal tab scrolling. */
	.ethos-ba-tabs {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		width: 100%;
		max-width: 100%;
		margin: 0 0 16px;
		padding: 0;
		overflow: visible;
	}

	.ethos-ba-tab {
		width: 100%;
		min-width: 0;
		min-height: 60px;
		padding: 12px 9px;
		font-size: 13px;
		line-height: 1.2;
	}

	.ethos-ba-panels,
	.ethos-ba-panel,
	.ethos-ba-slider,
	.ethos-ba-slides,
	.ethos-ba-slide,
	.ethos-ba-compare {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		margin: 0;
		padding: 0;
	}

	.ethos-ba-slider {
		overflow: hidden;
	}

	.ethos-ba-compare {
		height: 320px;
		border-radius: 16px;
	}

	.ethos-ba-label {
		top: 12px;
		padding: 6px 10px;
		font-size: 11px;
	}

	.ethos-ba-label-before { left: 12px; }
	.ethos-ba-label-after { right: 12px; }

	.ethos-ba-handle {
		width: 58px;
		height: 58px;
	}

	.ethos-ba-handle-arrows {
		font-size: 26px;
	}

	.ethos-ba-arrow {
		width: 44px;
		height: 44px;
	}

	.ethos-ba-arrow-prev { left: 10px; }
	.ethos-ba-arrow-next { right: 10px; }

	.ethos-ba-dots {
		bottom: 10px;
		gap: 7px;
	}
}

@media (max-width: 380px) {
	.ethos-ba-tab {
		padding-left: 7px;
		padding-right: 7px;
		font-size: 12px;
	}

	.ethos-ba-compare {
		height: 300px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ethos-ba-slide,
	.ethos-ba-tab,
	.ethos-ba-arrow,
	.ethos-ba-dot {
		animation: none !important;
		transition: none !important;
	}
}
