/* Before/After Gallery Slider — front-end styles */

.bags-wrapper {
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.bags-wrapper *,
.bags-wrapper *::before,
.bags-wrapper *::after {
	box-sizing: border-box;
}

.bags-viewport {
	overflow: hidden;
	width: 100%;
}

.bags-track {
	display: flex;
	gap: 20px;
	will-change: transform;
	transition: transform 0.45s ease;
}

.bags-slide {
	flex-shrink: 0;
	/* width is set inline via JS based on slides-to-show */
}

/* ---------- Compare (before/after) ---------- */

.bags-compare {
	position: relative !important;
	width: 100%;
	height: 380px;
	overflow: hidden;
	border-radius: 10px;
	background: #eee;
	user-select: none;
	touch-action: none;
	box-sizing: border-box !important;
	line-height: 0;
}

.bags-img {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100%;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover !important;
	object-position: center !important;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	pointer-events: none;
	user-select: none;
}

.bags-before-wrap {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 50%; /* overwritten inline by JS */
	overflow: hidden;
}

/* Width is intentionally NOT !important here: JS sets an inline px width
   on the before image (equal to the full compare box width) so it renders
   as a proper "reveal window" crop instead of being squeezed into the
   narrower before-wrap box. Inline styles already beat this rule. */
.bags-before-wrap .bags-img {
	width: var(--bags-slide-width, 100%);
}

/* Divider line */
.bags-divider {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 3px;
	background: #ffffff;
	transform: translateX(-50%);
	pointer-events: none;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
}

/* Handle button */
.bags-handle {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	cursor: ew-resize;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	transform: translate(-50%, -50%);
	background: linear-gradient(180deg, #FEC54A 22.12%, #EE9B00 49.04%, #FEC54A 77.88%);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
	touch-action: none;
	padding: 0;
	z-index: 20;
	pointer-events: auto !important;
}

.bags-handle svg {
	fill: none;
	stroke: #fff;
	pointer-events: none;
}

.bags-wrapper[data-orientation="vertical"] .bags-handle {
	cursor: ns-resize;
}

.bags-wrapper[data-orientation="vertical"] .bags-divider {
	left: 0;
	right: 0;
	top: 50%;
	bottom: auto;
	width: 100%;
	height: 3px;
	transform: translateY(-50%);
}

.bags-wrapper[data-orientation="vertical"] .bags-before-wrap {
	width: 100%;
	height: 50%;
}

/* Labels */
.bags-label {
	position: absolute !important;
	top: 14px;
	z-index: 4;
	display: inline-block !important;
	box-sizing: border-box !important;
	padding: 4px 14px !important;
	margin: 0 !important;
	background: #ffffff;
	color: #0a1c4e;
	font-size: 12px;
	line-height: 1.6 !important;
	font-weight: 700;
	letter-spacing: 0.03em;
	border-radius: 4px;
	white-space: nowrap;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.bags-label-after {
	right: 14px;
}

.bags-label-before {
	left: 14px;
}

/* ---------- Navigation arrows ---------- */

.bags-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: #fff;
	color: #0a1c4e;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	z-index: 6;
}

.bags-arrow-prev {
	left: -18px;
}

.bags-arrow-next {
	right: -18px;
}

.bags-arrow[disabled] {
	opacity: 0.35;
	cursor: default;
}

/* ---------- Dots ---------- */

.bags-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.bags-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #d9d9d9;
	border: none;
	padding: 0;
	cursor: pointer;
}

.bags-dot.is-active {
	background: #ee9b00;
	transform: scale(1.2);
}

@media (max-width: 767px) {
	.bags-arrow {
		display: none;
	}
}
