/* =============================================================================
   PXL Image Tabs — widget-image-tabs.css
   ============================================================================= */

/* ── Wrapper ─────────────────────────────────────────────────────────────── */
.pxl-image-tabs {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.pxl-image-tabs.pxl-tabs--vertical {
	flex-direction: row;
	align-items: flex-start;
}

/* ── Nav (header row) ────────────────────────────────────────────────────── */
.pxl-tabs-nav {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 16px;
	/* overridden by Elementor control */
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}

.pxl-tabs--vertical .pxl-tabs-nav {
	flex-direction: column;
	flex-wrap: nowrap;
	margin: 0 24px 0 0;
	flex-shrink: 0;
}

/* ── Tab Position: Below ─────────────────────────────────────────────────── */
.pxl-image-tabs.pxl-tabs--position-below {
	flex-direction: column-reverse;
}

.pxl-image-tabs.pxl-tabs--position-below.pxl-tabs--vertical {
	flex-direction: row-reverse;
}

.pxl-image-tabs.pxl-tabs--position-below .pxl-tabs-nav {
	margin: 24px 0 0;
}

.pxl-image-tabs.pxl-tabs--position-below.pxl-tabs--vertical .pxl-tabs-nav {
	margin: 0 0 0 24px;
}

/* ── Individual tab header button ───────────────────────────────────────── */
.pxl-tab-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	background: none;
	border: none;
	padding: 8px;
	/* overridden by Elementor control */
	transition: opacity .2s ease;
}

/* Image + Text side-by-side layout */
.pxl-image-tabs.pxl-header-img-left .pxl-tab-header {
	flex-direction: row;
}

/* ── Image / Shape wrapper ───────────────────────────────────────────────── */
.pxl-tab-header-img-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	/* overridden by Elementor size control */
	height: 72px;
	overflow: hidden;
	flex-shrink: 0;
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
	background-color: #f0f0f0;
	border: 2px solid #cccccc;
}

/* Shapes */
.pxl-shape--circle {
	border-radius: 50%;
}

.pxl-shape--square {
	border-radius: 0;
}

.pxl-shape--rounded {
	border-radius: 12px;
}

.pxl-shape--none {
	border: none !important;
	background: none !important;
	border-radius: 0;
}

/* Image inside wrapper */
.pxl-tab-header-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0.55;
	/* overridden by Elementor control */
	transition: opacity .2s ease;
}

/* Empty image placeholder */
.pxl-img-empty {
	font-size: 24px;
}

.pxl-img-placeholder {
	line-height: 1;
}

/* ── Tab text label ──────────────────────────────────────────────────────── */
.pxl-tab-header-text {
	display: block;
	font-size: 13px;
	text-align: center;
	color: #555;
	transition: color .2s ease;
	white-space: nowrap;
}

/* ── Active state ────────────────────────────────────────────────────────── */
.pxl-tab-header.is-active .pxl-tab-header-img-wrap {
	background-color: #ffffff;
	border-color: #000000;
}

.pxl-tab-header.is-active .pxl-tab-header-img-wrap img {
	opacity: 1;
}

.pxl-tab-header.is-active .pxl-tab-header-text {
	color: #000000;
}

/* Hover on inactive */
.pxl-tab-header:not(.is-active):hover .pxl-tab-header-img-wrap {
	opacity: 0.8;
}

/* ── Content area ────────────────────────────────────────────────────────── */
.pxl-tabs-content {
	flex: 1;
	min-width: 0;
}

.pxl-tab-content-pane {
	display: none;
	padding: 24px;
	background-color: #ffffff;
}

.pxl-tab-content-pane.is-active {
	display: block;
}

/* ── Transition animation ────────────────────────────────────────────────── */
@keyframes pxlTabFadeIn {
	from {
		opacity: 0;
		transform: translateY(6px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.pxl-tab-content-pane.is-active {
	animation: pxlTabFadeIn .25s ease forwards;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 767px) {

	/* Force horizontal layout on mobile regardless of setting */
	.pxl-image-tabs.pxl-tabs--vertical {
		flex-direction: column;
	}

	.pxl-tabs--vertical .pxl-tabs-nav {
		flex-direction: row;
		flex-wrap: wrap;
		margin: 0 0 16px;
	}
}