.tst-tabs-widget {
	width: 100%;
}

/* Tabs nav */
.tst-tabs-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px;
	margin-bottom: 40px;
}

.tst-tabs-widget .tst-tab-btn,
.tst-tabs-widget .tst-tab-btn:hover,
.tst-tabs-widget .tst-tab-btn:focus,
.tst-tabs-widget .tst-tab-btn:active,
.tst-tabs-widget .tst-tab-btn.is-active {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	outline: none !important;
	-webkit-appearance: none;
	appearance: none;
	border-radius: 0;
	text-shadow: none;
}

.tst-tab-btn {
	border: none;
	border-bottom: 2px solid transparent;
	padding: 0 0 10px;
	margin: 0;
	font-size: 18px;
	line-height: 1.4;
	color: #1a1a1a;
	cursor: pointer;
	white-space: nowrap;
	transition: color .2s ease, border-color .2s ease;
}

.tst-tab-btn:hover {
	color: #3054f4;
}

.tst-tab-btn:focus-visible {
	color: #3054f4;
	border-bottom-color: #3054f4;
}

.tst-tab-btn.is-active {
	color: #3054f4;
	border-bottom-color: #3054f4;
	font-weight: 500;
}

/* Panels */
.tst-tabs-panel {
	display: none;
}

.tst-tabs-panel.is-active {
	display: block;
	animation: tst-fade-in .25s ease;
}

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

/* Cards grid — flex-based so any row (full or partial) centers itself */
.tst-cards-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
	--tst-cols: 3;
	--tst-gap: 24px;
}

.tst-card {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 calc((100% - (var(--tst-cols) - 1) * var(--tst-gap)) / var(--tst-cols));
	max-width: calc((100% - (var(--tst-cols) - 1) * var(--tst-gap)) / var(--tst-cols));
	background-color: transparent;
	border-radius: 0;
	height: 280px;
	padding: 24px;
	text-decoration: none;
	box-sizing: border-box;
}

.tst-card:hover {
	transform: translateY(-4px);
}

.tst-card img {
	max-width: 70%;
	max-height: 100px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.tst-card-fallback-text {
	font-size: 16px;
	font-weight: 500;
	color: #444;
	text-align: center;
}

.tst-empty-note {
	padding: 16px;
	border: 1px dashed #c7c7c7;
	border-radius: 8px;
	color: #888;
	font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
	.tst-tabs-nav {
		gap: 20px;
	}
	.tst-tab-btn {
		font-size: 15px;
	}
}
