/**
 * Dermatology Theme Core - Before & After Comparison Slider
 */

.dtc-ba-component {
	margin: 1.5rem 0;
	position: relative;
	width: 100%;
}

.dtc-ba-header {
	margin-bottom: 1rem;
}

.dtc-ba-pill {
	display: inline-block;
	background: rgba(67, 91, 78, 0.1);
	color: #435b4e;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 4px 12px;
	border-radius: 9999px;
	margin-bottom: 0.5rem;
}

.dtc-ba-title {
	font-size: 1.25rem;
	font-weight: 600;
	color: #1a202c;
	margin: 0;
}

.dtc-ba-wrap {
	position: relative;
	overflow: hidden;
	user-select: none;
	-webkit-user-select: none;
	touch-action: pan-y;
	border-radius: 16px;
	box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
	background: #f7f5f0;
}

.dtc-ba-image-container {
	position: relative;
	width: 100%;
	line-height: 0;
	overflow: hidden;
}

.dtc-ba-after-img,
.dtc-ba-before-img {
	width: 100%;
	height: auto;
	max-height: 580px;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

.dtc-ba-overlay {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	overflow: hidden;
	z-index: 2;
	pointer-events: none;
	border-right: 1px solid rgba(255, 255, 255, 0.6);
}

.dtc-ba-overlay .dtc-ba-before-img {
	max-width: none;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dtc-ba-badge {
	position: absolute;
	bottom: 16px;
	z-index: 5;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 6px;
	background: rgba(18, 22, 20, 0.75);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #ffffff;
	pointer-events: none;
}

.dtc-ba-badge-before {
	left: 16px;
}

.dtc-ba-badge-after {
	right: 16px;
}

.dtc-ba-handle {
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 4;
	width: 44px;
	margin-left: -22px;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dtc-ba-line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 2px;
	background: #ffffff;
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
	margin-left: -1px;
}

.dtc-ba-button {
	position: relative;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #ffffff;
	color: #2b3930;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dtc-ba-wrap:hover .dtc-ba-button {
	transform: scale(1.08);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.dtc-ba-range-input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	margin: 0;
	cursor: ew-resize;
	z-index: 6;
}

.dtc-ba-range-input:focus-visible + .dtc-ba-handle .dtc-ba-button {
	outline: 3px solid #8f755f;
	outline-offset: 2px;
}

.dtc-ba-disclaimer {
	font-size: 0.8rem;
	color: #718096;
	margin-top: 0.75rem;
	line-height: 1.45;
	font-style: italic;
}
