/* PXL Comparison Showcase - base layout (visual styling is control-driven via Elementor) */

.pxl-cs {
	width: 100%;
}

.pxl-cs__grid {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
}

.pxl-cs__card {
	background-color: #ffffff;
	overflow: hidden;
}

.pxl-cs__card-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: 100%;
}

.pxl-cs__card-content {
	flex: 1 1 40%;
	min-width: 0;
}

.pxl-cs__heading {
	margin: 0 0 12px 0;
	line-height: 1.3;
}

.pxl-cs__underline {
	width: 64px;
	height: 4px;
	border-radius: 4px;
	margin-bottom: 20px;
}

.pxl-cs__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pxl-cs__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #e7e7e7;
}

.pxl-cs__item:last-child {
	border-bottom: none;
}

.pxl-cs__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	line-height: 1;
}

.pxl-cs__icon i,
.pxl-cs__icon svg {
	display: block;
}

.pxl-cs__item-text {
	flex: 1 1 auto;
	word-break: break-word;
}

.pxl-cs__image-wrap {
	flex: 1 1 50%;
	overflow: hidden;
	position: relative;
}

.pxl-cs__image-wrap img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pxl-cs__vs {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-weight: 700;
	text-transform: uppercase;
	z-index: 10;
	background-color: #f5a623;
	color: #ffffff;
	width: 64px;
	height: 64px;
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.pxl-cs__card-inner {
		flex-direction: column;
		align-items: stretch;
	}

	.pxl-cs__image-wrap {
		width: 100% !important;
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.pxl-cs__grid {
		display: flex;
		flex-direction: column;
		grid-template-columns: unset;
	}

	/* Reorder as: Card One -> VS badge -> Card Two, regardless of DOM order */
	.pxl-cs__card--one {
		order: 1;
	}

	.pxl-cs__card--two {
		order: 3;
	}

	.pxl-cs__vs {
		order: 2;
		position: static;
		top: auto;
		left: auto;
		transform: none;
		align-self: center;
		margin: -16px auto;
		flex-shrink: 0;
	}
}
