.ics-36938-wrapper {
	position: relative;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	user-select: none;
	-webkit-user-select: none;
	cursor: col-resize;
	z-index: 1; /* Ensure stacking context */
	isolation: isolate; /* Prevent z-index bleed */
	display: block; /* Ensure block layout */
	min-height: 50px; /* Prevent total collapse */
}

/* Background Images */
.ics-36938-image-after,
.ics-36938-image-before {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	overflow: hidden;
	margin: 0; /* Reset margins */
	padding: 0; /* Reset padding */
}

.ics-36938-image-before {
	z-index: 1;
	border-right: 1px solid rgba(255, 255, 255, 0); /* Formatting fix */
	height: 100%;
	/* Width handled by JS/Inline style */
}

/* Handle Base */
.ics-36938-handle {
	position: absolute;
	z-index: 3;
	top: 0;
	bottom: 0;
	width: 0;
	cursor: col-resize;
	transform: translateX(-50%);
	/* Left handled by JS/Inline style */
}

/* Handle Line */
.ics-36938-handle-line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 2px;
	transform: translateX(-50%);
	background: #fff;
	box-shadow: 0 0 3px rgba(0,0,0,0.3);
}

/* Handle Circle/Button */
.ics-36938-handle-circle {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #000;
	border: 2px solid #fff;
	transform: translate(-50%, -50%);
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 0 2px 6px rgba(0,0,0,0.4);
	box-sizing: border-box; /* Ensure padding doesn't expand size */
}

.ics-36938-handle-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

/* Labels */
.ics-36938-label {
	position: absolute;
	z-index: 4;
	padding: 4px 10px;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	border-radius: 3px;
	font-size: 12px;
	pointer-events: none;
	user-select: none;
	line-height: 1.2;
}

.ics-36938-label-before {
	left: 20px;
}

.ics-36938-label-after {
	right: 20px;
}

/* Link Overlay */
.ics-36938-link-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 5; /* Needs to be reachable, above labels? No, JS handles clicks. */
	/* If JS handles clicks, Z-Index 2 (above bg) is fine. */
	/* If using simple <a> tag, it needs high z-index but pointer-events control. */
	z-index: 2; 
	cursor: pointer;
}

/* Mobile optimizations */
@media (max-width: 767px) {
	.ics-36938-label {
		font-size: 10px;
		padding: 2px 6px;
	}
}
