/**
 * New Tabs — Tesla-style sliding highlight tab switch.
 */
.wdt-new-tabs {
	--wdt-nt-track-bg: #f4f4f4;
	--wdt-nt-tab-color: #5c5e62;
	--wdt-nt-tab-active-color: #171a20;
	--wdt-nt-highlight-bg: #fff;
	--wdt-nt-highlight-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	--wdt-nt-transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	--wdt-nt-fade: 0.5s ease;
	display: flex;
	justify-content: center;
	width: 100%;
	color: var(--wdt-nt-tab-active-color);
}

.wdt-new-tabs__track {
	position: relative;
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: stretch;
	max-width: 100%;
	padding: 4px;
	border-radius: 8px;
	background: var(--wdt-nt-track-bg);
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.wdt-new-tabs__track::-webkit-scrollbar {
	display: none;
}

.wdt-new-tabs__highlight {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;
	border-radius: 6px;
	background: var(--wdt-nt-highlight-bg);
	box-shadow: var(--wdt-nt-highlight-shadow);
	pointer-events: none;
	transition:
		transform var(--wdt-nt-transition),
		width var(--wdt-nt-transition),
		height var(--wdt-nt-transition);
	will-change: transform, width;
}

.wdt-new-tabs.wd-wpb .wdt-new-tabs__track button.wdt-new-tabs__tab,
.wdt-new-tabs.wd-wpb button.wdt-new-tabs__tab {
	all: unset;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 12px 24px;
	border: 0 !important;
	border-radius: 6px !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: var(--wdt-nt-tab-color) !important;
	font-family: inherit;
	font-size: 17px;
	font-weight: 500;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: normal;
	text-align: center;
	text-decoration: none !important;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: color 0.25s ease;
}

.wdt-new-tabs.wd-wpb .wdt-new-tabs__track button.wdt-new-tabs__tab:is(:hover, :focus, :focus-visible, :active),
.wdt-new-tabs.wd-wpb button.wdt-new-tabs__tab:is(:hover, :focus, :focus-visible, :active) {
	color: var(--wdt-nt-tab-active-color) !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	outline: none;
	opacity: 1;
	transform: none;
}

.wdt-new-tabs.wd-wpb .wdt-new-tabs__track button.wdt-new-tabs__tab.is-active,
.wdt-new-tabs.wd-wpb button.wdt-new-tabs__tab.is-active {
	color: var(--wdt-nt-tab-active-color) !important;
}

.wdt-new-tabs-panel {
	overflow-anchor: none;
	opacity: 1;
	transition: opacity var(--wdt-nt-fade);
}

.wdt-new-tabs-panel.is-wdt-tab-slot,
.wdt-new-tabs-panel.is-wdt-tab-sizing {
	display: revert !important;
	overflow: hidden !important;
}

.wdt-new-tabs-panel.is-wdt-tab-slot {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
	transition:
		opacity var(--wdt-nt-fade),
		min-height var(--wdt-nt-fade);
}

.wdt-new-tabs-panel.is-wdt-tab-sizing {
	transition:
		opacity var(--wdt-nt-fade),
		min-height var(--wdt-nt-fade);
}

.wdt-new-tabs-panel.is-wdt-tab-entering {
	opacity: 0 !important;
	visibility: visible !important;
}

.wdt-new-tabs-panel.is-wdt-tab-visible {
	display: revert !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.wdt-new-tabs-panel.is-wdt-tab-hiding {
	display: revert !important;
	opacity: 0 !important;
	visibility: visible !important;
	pointer-events: none !important;
}

.wdt-new-tabs-panel.is-wdt-tab-hidden {
	display: none !important;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

@media (max-width: 1024px) {
	.wdt-new-tabs.wd-wpb .wdt-new-tabs__track button.wdt-new-tabs__tab,
	.wdt-new-tabs.wd-wpb button.wdt-new-tabs__tab {
		padding: 10px 16px;
		font-size: 14px;
	}
}

@media (max-width: 767.98px) {
	.wdt-new-tabs.wd-wpb .wdt-new-tabs__track button.wdt-new-tabs__tab,
	.wdt-new-tabs.wd-wpb button.wdt-new-tabs__tab {
		padding: 9px 12px;
		font-size: 13px;
	}
}

.wdt-new-tabs-panel.is-wdt-tab-swipeable {
	touch-action: pan-y pinch-zoom;
}
