/* =========================================================
 * Product TOC Element – Glassmorphism Design
 * ========================================================= */

.wpthemify-toc {
	display: flex;
	gap: 0;
	width: 100%;
	background: linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(240,245,255,0.75) 100%);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255,255,255,0.6);
	border-radius: 20px;
	box-shadow:
		0 8px 32px rgba(59,130,246,0.08),
		0 2px 8px rgba(0,0,0,0.04),
		inset 0 1px 0 rgba(255,255,255,0.8);
	overflow: hidden;
}

/* ==========================================================
 * LEFT: Step / Timeline Navigation – Glass Card
 * ========================================================== */
.wpthemify-toc-nav {
	width: 250px;
	min-width: 250px;
	background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(241,245,255,0.5) 100%);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-right: 1px solid rgba(59,130,246,0.15);
	border: 1px solid rgba(255,255,255,0.6);
	border-right: 1px solid rgba(59,130,246,0.15);
	border-radius: 16px 0 0 16px;
	padding: 28px 20px;
	box-shadow:
		0 4px 16px rgba(59,130,246,0.06),
		inset 0 1px 0 rgba(255,255,255,0.8);
	display: flex;
	flex-direction: column;
}

.wpthemify-toc-nav.is-sticky {
	align-self: flex-start;
	position: sticky;
	top: 80px;
}

/* --- Step item --- */
.wpthemify-toc-step {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 0 0 24px 0;
	text-decoration: none !important;
	cursor: pointer;
	position: relative;
}

.wpthemify-toc-step.is-last {
	padding-bottom: 0;
}

/* Vertical connector line */
.wpthemify-toc-step::after {
	content: "";
	position: absolute;
	left: 15px;
	top: 34px;
	width: 2px;
	height: calc(100% - 36px);
	background: linear-gradient(180deg, rgba(59,130,246,0.3), rgba(59,130,246,0.08));
	border-radius: 1px;
}

.wpthemify-toc-step.is-last::after {
	display: none;
}

/* --- Circle with number --- */
.wpthemify-toc-step-circle {
	width: 32px;
	height: 32px;
	min-width: 32px;
	border-radius: 50%;
	border: 2px solid rgba(59,130,246,0.4);
	color: #3b82f6;
	background: rgba(255,255,255,0.8);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 1;
	box-shadow: 0 2px 8px rgba(59,130,246,0.1);
}

/* Active → glass-filled blue */
.wpthemify-toc-step.is-active .wpthemify-toc-step-circle {
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	border-color: transparent;
	color: #fff;
	box-shadow:
		0 4px 14px rgba(59,130,246,0.35),
		0 1px 3px rgba(59,130,246,0.2);
}

/* Hover */
.wpthemify-toc-step:hover .wpthemify-toc-step-circle {
	border-color: #3b82f6;
	box-shadow: 0 4px 12px rgba(59,130,246,0.2);
	transform: scale(1.05);
}

/* --- Step label --- */
.wpthemify-toc-step-label {
	font-size: 14px;
	font-weight: 500;
	color: #475569;
	line-height: 1.45;
	transition: all 0.25s ease;
}

.wpthemify-toc-step.is-active .wpthemify-toc-step-label {
	font-weight: 700;
	color: #1e40af;
}

.wpthemify-toc-step:hover .wpthemify-toc-step-label {
	color: #3b82f6;
}

/* ==========================================================
 * RIGHT: Content area with timeline dots
 * ========================================================== */
.wpthemify-toc-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 32px 36px;
	min-width: 0;
}

/* --- Section --- */
.wpthemify-toc-section {
	position: relative;
	padding-left: 32px;
	padding-bottom: 32px;
	margin-bottom: 0;
}

.wpthemify-toc-section.is-last {
	padding-bottom: 0;
}

/* Vertical line */
.wpthemify-toc-section::before {
	content: "";
	position: absolute;
	left: 5px;
	top: 18px;
	width: 2px;
	height: calc(100% - 12px);
	background: linear-gradient(180deg, rgba(59,130,246,0.25), rgba(59,130,246,0.05));
	border-radius: 1px;
}

.wpthemify-toc-section.is-last::before {
	display: none;
}

/* --- Timeline dot --- */
.wpthemify-toc-section-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	position: absolute;
	left: 0;
	top: 6px;
	z-index: 1;
	box-shadow: 0 2px 8px rgba(59,130,246,0.3);
}

/* --- Section inner – glass card --- */
.wpthemify-toc-section-inner {
	background: linear-gradient(135deg, rgba(255,255,255,0.65) 0%, rgba(248,250,255,0.5) 100%);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255,255,255,0.7);
	border-radius: 14px;
	padding: 20px 24px;
	box-shadow:
		0 4px 16px rgba(59,130,246,0.06),
		0 1px 4px rgba(0,0,0,0.03),
		inset 0 1px 0 rgba(255,255,255,0.9);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.wpthemify-toc-section-inner:hover {
	box-shadow:
		0 8px 28px rgba(59,130,246,0.1),
		0 2px 6px rgba(0,0,0,0.04),
		inset 0 1px 0 rgba(255,255,255,0.9);
	transform: translateY(-1px);
}

/* --- Section title --- */
.wpthemify-toc-section-title {
	font-size: 17px;
	font-weight: 700;
	color: #1e40af;
	margin: 0 0 12px 0;
	padding: 0;
	line-height: 1.35;
}

/* --- Section body --- */
.wpthemify-toc-section-body {
	font-size: 14px;
	line-height: 1.75;
	color: #475569;
}

.wpthemify-toc-section-body p {
	margin: 0 0 10px 0;
}

.wpthemify-toc-section-body p:last-child {
	margin-bottom: 0;
}

.wpthemify-toc-section-body ul,
.wpthemify-toc-section-body ol {
	margin: 0 0 10px 0;
	padding-left: 20px;
}

.wpthemify-toc-section-body li {
	margin-bottom: 4px;
}

.wpthemify-toc-section-body strong {
	color: #1e3a5f;
	font-weight: 600;
}

/* --- Table – glass style --- */
.wpthemify-toc-section-body table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 0 0 12px 0;
	font-size: 14px;
	border: 1px solid rgba(59,130,246,0.15);
	border-radius: 10px;
	overflow: hidden;
}

.wpthemify-toc-section-body table th,
.wpthemify-toc-section-body table td {
	border-bottom: 1px solid rgba(59,130,246,0.08);
	border-right: 1px solid rgba(59,130,246,0.08);
	padding: 10px 16px;
	text-align: left;
}

.wpthemify-toc-section-body table th:last-child,
.wpthemify-toc-section-body table td:last-child {
	border-right: none;
}

.wpthemify-toc-section-body table tr:last-child td {
	border-bottom: none;
}

.wpthemify-toc-section-body table th {
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	color: #fff;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.wpthemify-toc-section-body table td {
	background: rgba(255,255,255,0.6);
	color: #475569;
}

.wpthemify-toc-section-body table tr:hover td {
	background: rgba(59,130,246,0.04);
}

/* ==========================================================
 * Responsive
 * ========================================================== */
@media (max-width: 768px) {
	.wpthemify-toc {
		flex-direction: column;
		border-radius: 16px;
	}

	.wpthemify-toc-nav {
		width: 100% !important;
		min-width: 100% !important;
		border-right: none;
		border-bottom: 1px solid rgba(59,130,246,0.1);
		flex-direction: row;
		overflow-x: auto;
		padding: 14px 16px;
		gap: 4px;
		position: static !important;
	}

	.wpthemify-toc-nav.is-sticky {
		position: sticky !important;
		top: 0;
		z-index: 10;
		background: rgba(255,255,255,0.9);
		backdrop-filter: blur(16px);
		-webkit-backdrop-filter: blur(16px);
	}

	.wpthemify-toc-step::after {
		display: none;
	}

	.wpthemify-toc-step {
		flex-direction: column;
		align-items: center;
		padding-bottom: 0;
		padding-right: 16px;
		white-space: nowrap;
	}

	.wpthemify-toc-step-circle {
		width: 26px;
		height: 26px;
		min-width: 26px;
		font-size: 11px;
	}

	.wpthemify-toc-step-label {
		font-size: 11px;
		text-align: center;
	}

	.wpthemify-toc-content {
		padding: 20px 16px;
	}

	.wpthemify-toc-section {
		padding-left: 24px;
	}

	.wpthemify-toc-section-inner {
		padding: 16px 18px;
		border-radius: 12px;
	}
}
