.rp-ba-widget {
	width: 100%;
}

.rp-ba-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
}

.rp-ba-header-text .rp-eyebrow {
	font-family: Ubuntu, sans-serif;
	font-size: 24px;
	font-weight: 500;
	letter-spacing: 0.05em;
	color: rgba(56, 180, 74, 1);
	margin-bottom: 8px;
}

.rp-ba-heading {
	font-family: Ubuntu, sans-serif;
	font-size: 32px;
	font-weight: 500;
	color: #1f2937;
	margin: 0;
}

.rp-ba-slide {
	display: none;
}

.rp-ba-slide.active {
	display: block;
}

.rp-ba-compare {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 1px solid #ebebeb;
	cursor: ew-resize;
	user-select: none;
	touch-action: none;
}

.rp-ba-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

.rp-ba-img-before {
	clip-path: inset(0 calc(100% - var(--rp-ba-pos, 50%)) 0 0);
}

.rp-ba-badge {
	position: absolute;
	top: 16px;
	padding: 7.26px 32.53px;
	font-family: "Ubuntu Sans", sans-serif;
	font-size: 17.19px;
	font-weight: 500;
	color: #fff;
	letter-spacing: 0.03em;
	z-index: 3;
}

.rp-ba-badge-before {
	left: 16px;
	background: rgba(69, 111, 130, 1);
}

.rp-ba-badge-after {
	right: 16px;
	background: rgba(56, 180, 74, 1);
}

.rp-ba-handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--rp-ba-pos, 50%);
	width: 2px;
	background: rgba(56, 180, 74, 1);
	transform: translateX(-50%);
	z-index: 4;
	pointer-events: none;
}

.rp-ba-handle-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(56, 180, 74, 1);
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: auto;
	cursor: ew-resize;
}

.rp-ba-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border: 1px solid #ebebeb;
	border-top: none;
	padding: 16px 20px;
	background-color: rgba(235, 235, 235, 0.3);
}

.rp-ba-title {
	font-family: Ubuntu, sans-serif;
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 6px;
	color: #1f2937;
}

.rp-ba-location {
	display: flex;
	align-items: center;
	gap: 5px;
	font-family: Ubuntu, sans-serif;
	font-weight: 400;
	font-size: 20px;
	color: rgba(161, 161, 161, 1);
}

.rp-ba-footer-right {
	text-align: right;
}

.rp-ba-stat-value {
	font-family: Ubuntu, sans-serif;
	font-size: 40px;
	font-weight: 700;
	color: rgba(56, 180, 74, 1);
}

.rp-ba-stat-label {
	font-family: Ubuntu, sans-serif;
	font-size: 20px;
	font-weight: 400;
	color: rgba(118, 118, 118, 1);
}

@media (max-width: 600px) {
	.rp-ba-header {
		flex-direction: column;
	}
	.rp-ba-heading {
		font-size: 18px;
	}
	.rp-ba-footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	.rp-ba-footer-right {
		text-align: left;
	}
}
