/* TechZir Tabbed Templates
 * Defaults here are sensible fallbacks. Most visual values are also driven
 * by Elementor Style controls, so anything set in the panel wins.
 */

.tz-tabs {
	width: 100%;
}

/* Header row: text on the left, arrows on the right */
.tz-tabs__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 26px;
}

.tz-tabs__header-text {
	flex: 1 1 auto;
	min-width: 0;
}

.tz-tabs__heading {
	margin: 0 0 6px;
	font-weight: 800;
	line-height: 1.1;
}

.tz-tabs__subtitle {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
}

/* Pills navigation strip */
.tz-tabs__nav {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tz-tabs__viewport {
	flex: 1 1 auto;
	overflow: hidden;
	min-width: 0;
	cursor: grab;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
	touch-action: pan-y;
}

.tz-tabs--no-nav .tz-tabs__viewport {
	cursor: auto;
}

.tz-tabs--dragging .tz-tabs__viewport,
.tz-tabs--dragging .tz-tabs__pill {
	cursor: grabbing;
}

.tz-tabs__track {
	display: flex;
	flex-wrap: nowrap;
	gap: 14px;
	transform: translateX(0);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

/* Belt-and-braces: JS also sets transition:none inline while dragging. */
.tz-tabs--dragging .tz-tabs__track {
	transition: none;
}

.tz-tabs__pill {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	border: 0;
	cursor: pointer;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	background-color: #f0f0f0;
	color: #c2c2c2;
	padding: 12px 26px;
	border-radius: 40px;
	line-height: 1.1;
	transition: background-color 0.2s ease, color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.tz-tabs__pill:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

.tz-tabs__pill.is-active {
	background-color: #ffc107;
	color: #111111;
}

/* Arrow buttons */
.tz-tabs__arrows {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.tz-tabs__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid transparent;
	border-radius: 6px;
	background-color: #ffc107;
	color: #111111;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.tz-tabs__arrow svg {
	width: 16px;
	height: 16px;
	display: block;
}

.tz-tabs__arrow[disabled] {
	cursor: default;
	background-color: #ffffff;
	color: #9a9a9a;
	border-color: #e2e2e2;
}

.tz-tabs__arrow--side {
	flex: 0 0 auto;
}

.tz-tabs__arrow:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

/* When arrows live with the header, hide the inline side slot logic gracefully */
.tz-tabs--arrows-top-right .tz-tabs__nav .tz-tabs__arrow--side {
	display: none;
}

/* Content panels */
.tz-tabs__panels {
	position: relative;
}

.tz-tabs__content {
	margin-top: 28px;
	padding: 24px;
	background-color: #fafafa;
	border-radius: 8px;
}

.tz-tabs__content[hidden] {
	display: none;
}

.tz-tabs__content.is-active {
	animation: tz-tabs-fade 0.3s ease;
}

@keyframes tz-tabs-fade {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

.tz-tabs__placeholder {
	padding: 30px;
	text-align: center;
	color: #9a9a9a;
	border: 1px dashed #d6d6d6;
	border-radius: 8px;
	font-size: 14px;
}

/* Hide arrows until JS decides they are needed (prevents flash) */
.tz-tabs:not(.tz-tabs--ready) .tz-tabs__arrows,
.tz-tabs:not(.tz-tabs--ready) .tz-tabs__arrow--side {
	visibility: hidden;
}

.tz-tabs--no-nav .tz-tabs__arrows,
.tz-tabs--no-nav .tz-tabs__arrow--side {
	display: none !important;
}

/* With no arrows the strip is free to wrap rather than be clipped */
.tz-tabs--no-nav .tz-tabs__viewport {
	overflow: visible;
}

.tz-tabs--no-nav .tz-tabs__track {
	flex-wrap: wrap;
	row-gap: 14px;
	transform: none !important;
}

/* Small screens: let pills scroll naturally if needed */
@media (max-width: 767px) {
	.tz-tabs__header {
		flex-direction: column;
	}
}
