/* GreenCork Before/After Drag Widget */

.gc-ba-section {
	width: 100%;
}

/* Comparison box */
.gc-ba {
	position: relative;
	width: 100%;
	aspect-ratio: 16/9;
	overflow: hidden;
	user-select: none;
	touch-action: none;
	cursor: ew-resize;
	outline-offset: 4px;
}

.gc-ba[data-direction="vertical"] {
	cursor: ns-resize;
}

.gc-ba-layer {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.gc-ba-before {
	background-color: #c9c1b0;
	background-image: repeating-radial-gradient( circle at 6px 6px, rgba(90, 80, 66, 0.5) 0 2px, transparent 2px 8px );
}

.gc-ba-after {
	background-color: #e8ece7;
	clip-path: inset(0 0 0 var(--gc-cut, 50%));
}

.gc-ba[data-direction="vertical"] .gc-ba-after {
	clip-path: inset(var(--gc-cut, 50%) 0 0 0);
}

.gc-ba-lbl {
	position: absolute;
	top: 14px;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #fff;
	z-index: 3;
	pointer-events: none;
}

.gc-ba-lbl-before {
	left: 14px;
	background: rgba(0, 0, 0, 0.55);
}

.gc-ba-lbl-after {
	right: 14px;
	background: #3aa935;
}

.gc-ba-handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--gc-cut, 50%);
	width: 3px;
	background: #fff;
	box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
	transform: translateX(-50%);
	z-index: 2;
	pointer-events: none;
}

.gc-ba[data-direction="vertical"] .gc-ba-handle {
	top: var(--gc-cut, 50%);
	left: 0;
	right: 0;
	bottom: auto;
	width: 100%;
	height: 3px;
	transform: translateY(-50%);
}

.gc-ba-knob {
	position: absolute;
	top: 50%;
	left: var(--gc-cut, 50%);
	transform: translate(-50%, -50%);
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #3aa935;
	color: #fff;
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 1rem;
	letter-spacing: -1px;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
	z-index: 3;
	pointer-events: none;
}

.gc-ba[data-direction="vertical"] .gc-ba-knob {
	top: var(--gc-cut, 50%);
	left: 50%;
}

.gc-ba-knob svg,
.gc-ba-knob i {
	width: 1em;
	height: 1em;
	font-size: inherit;
}

.gc-ba-hint {
	text-align: center;
	font-size: 0.82rem;
	color: #5a655e;
	font-weight: 600;
	margin-top: 14px;
}

.gc-ba:focus-visible {
	outline: 2px solid #3aa935;
}


