/* VA Specialist Tabs — frontend styles
   Scoped under .va-st-list so it never leaks into the rest of the theme. */

.va-st-list {
	--va-st-primary: #8a1f2d; /* change this one line to re-theme the whole widget */
	--va-st-title: #1f2937;
	--va-st-desc: #6b7280;
	--va-st-number: #111827;
	--va-st-border: #ececec;

	width: 100%;
	box-sizing: border-box;
}

.va-st-list * {
	box-sizing: border-box;
}

.va-st-item {
	border-bottom: 1px solid var(--va-st-border);
}

.va-st-item:last-child {
	border-bottom: none;
}

.va-st-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 0;
	transition: padding 0.35s ease;
}

/* ---------- Icon ---------- */
.va-st-icon {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--va-st-primary);
	align-self: flex-start;
	margin-top: 2px;
}

.va-st-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.va-st-icon svg {
	width: 100%;
	height: 100%;
}

/* ---------- Title + description ---------- */
.va-st-body {
	flex: 1 1 auto;
	min-width: 0;
}

.va-st-title {
	display: block;
	font-weight: 700;
	font-size: 17px;
	line-height: 1.4;
	color: var(--va-st-title);
}

.va-st-desc {
	margin: 0;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	color: var(--va-st-desc);
	font-size: 14px;
	line-height: 1.5;
	transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.35s ease;
}

.va-st-item:hover .va-st-desc,
.va-st-item.is-active .va-st-desc {
	max-height: 44px;
	opacity: 1;
	margin-top: 6px;
}

/* ---------- Hover image ---------- */
.va-st-media {
	flex: 0 0 auto;
	width: 0;
	height: 0;
	opacity: 0;
	overflow: hidden;
	border-radius: 12px;
	transform: rotate(0deg);
	align-self: center;
	transition: width 0.35s ease, height 0.35s ease, opacity 0.3s ease, transform 0.35s ease;
}

.va-st-media img {
	display: block;
	width: 150px;
	max-width: 150px;
	height: 100px;
	transform: rotate(-4deg);
	object-fit: cover;
	border-radius: 12px;
}

.va-st-item:hover .va-st-media,
.va-st-item.is-active .va-st-media {
	width: 150px;
	height: 100px;
	opacity: 1;
	transform: rotate(-4deg);
}

/* ---------- Number ---------- */
.va-st-number {
	flex: 0 0 auto;
	font-weight: 700;
	font-size: 18px;
	color: var(--va-st-number);
	align-self: flex-start;
	margin-top: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
	.va-st-row {
		gap: 12px;
		padding: 16px 0;
	}
	.va-st-title {
		font-size: 15px;
	}
	.va-st-desc {
		font-size: 13px;
	}
	.va-st-number {
		font-size: 16px;
	}
	.va-st-media img {
		width: 90px;
		max-width: 90px;
		height: 52px;
	}
	.va-st-item:hover .va-st-media,
	.va-st-item.is-active .va-st-media {
		width: 90px;
		height: 52px;
	}
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
	.va-st-row,
	.va-st-desc,
	.va-st-media {
		transition: none !important;
	}
}