/* ── TZ Mega Menu Widget ─────────────────────────────────────────────── */

.tz-mm-wrapper {
	position: relative;
	display: inline-block;
}

/* ── Trigger ─────────────────────────────────────────────────────────── */

.tz-mm-trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
	line-height: inherit;
	transition: color 0.15s ease;
}

.tz-mm-trigger:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
	border-radius: 4px;
}

.tz-mm-trigger-chevron {
	display: inline-flex;
	align-items: center;
	transition: transform 0.25s ease;
}

.tz-mm-trigger-chevron i {
	font-size: 13px;
	line-height: 1;
}

.tz-mm-trigger-chevron svg {
	width: 13px;
	height: 13px;
}

.tz-mm-wrapper.is-open .tz-mm-trigger-chevron {
	transform: rotate(180deg);
}

/* ── Dropdown ────────────────────────────────────────────────────────── */

.tz-mm-dropdown {
	/* Fixed so it can be viewport-centered regardless of where the widget sits.
	   top is set dynamically by JS on each open (trigger bottom + 8px offset). */
	position: fixed;
	left: 50%;
	z-index: 9999;
	width: calc(100% - 32px); /* 16px breathing room on each side */
	max-width: 1000px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
	padding: 28px;

	/* Hidden state: translateX keeps horizontal centering, translateY animates in */
	opacity: 0;
	transform: translateX(-50%) translateY(-8px);
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}

.tz-mm-wrapper.is-open .tz-mm-dropdown {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
	visibility: visible;
	pointer-events: auto;
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
}

/* ── Inner grid ──────────────────────────────────────────────────────── */

.tz-mm-dropdown-inner {
	display: grid;
	grid-template-columns: 1fr 1fr 1.1fr;
	gap: 24px;
	align-items: start;
}

/* ── Column ──────────────────────────────────────────────────────────── */

.tz-mm-col {
	min-width: 0;
}

/* ── Column header ───────────────────────────────────────────────────── */

.tz-mm-col-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.tz-mm-col-indicator {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 2px;
	flex-shrink: 0;
	background: #cc3333;
}

.tz-mm-col-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #888888;
}

/* ── Item list ───────────────────────────────────────────────────────── */

.tz-mm-item-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.tz-mm-item-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	transition: background-color 0.15s ease;
}

.tz-mm-item-link:hover {
	background-color: #f5f5f5;
}

.tz-mm-item-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.tz-mm-item-title {
	font-size: 14px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.3;
}

.tz-mm-item-desc {
	font-size: 12px;
	color: #888888;
	line-height: 1.4;
}


/* ── Featured column ─────────────────────────────────────────────────── */

.tz-mm-col--featured {
	align-self: stretch;
}

.tz-mm-featured {
	background: #1a1a1a;
	border-radius: 12px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	height: 100%;
	box-sizing: border-box;
}

.tz-mm-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(245, 200, 66, 0.15);
	border-radius: 20px;
	padding: 4px 10px 4px 8px;
	align-self: flex-start;
}

.tz-mm-badge i {
	font-size: 12px;
	color: #f5c842;
	line-height: 1;
}

.tz-mm-badge svg {
	width: 12px;
	height: 12px;
	fill: #f5c842;
}

.tz-mm-badge-text {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #f5c842;
}

.tz-mm-featured-title {
	font-size: 22px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.25;
	margin: 0;
	padding: 0;
}

.tz-mm-featured-desc {
	font-size: 13px;
	color: #aaaaaa;
	line-height: 1.6;
	margin: 0;
	flex-grow: 1;
}

.tz-mm-featured-cta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	font-weight: 700;
	color: #f5c842;
	text-decoration: none;
	transition: opacity 0.15s ease;
	margin-top: auto;
}

.tz-mm-featured-cta:hover {
	opacity: 0.75;
	color: #f5c842;
}

.tz-mm-featured-cta-icon {
	display: inline-flex;
	align-items: center;
	font-size: 0.9em;
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
	.tz-mm-dropdown-inner {
		grid-template-columns: 1fr 1fr;
	}

	.tz-mm-col--featured {
		grid-column: 1 / -1;
	}

	.tz-mm-featured {
		flex-direction: row;
		align-items: flex-start;
		gap: 20px;
	}

	.tz-mm-featured-title {
		font-size: 18px;
	}
}

@media (max-width: 767px) {
	.tz-mm-dropdown {
		position: fixed;
		top: auto;
		left: 0;
		right: 0;
		bottom: 0;
		border-radius: 20px 20px 0 0;
		min-width: 0;
		max-height: 80vh;
		overflow-y: auto;
		padding: 20px 16px;
	}

	.tz-mm-dropdown-inner {
		grid-template-columns: 1fr;
	}

	.tz-mm-col--featured {
		grid-column: auto;
	}

	.tz-mm-featured {
		flex-direction: column;
	}
}
