.cgt-has-mega {
	position: relative;
}
.cgt-mega-arrow {
	font-size: 10px;
	margin-left: 3px;
	display: inline-block;
	transition: transform 0.15s ease;
}
.cgt-has-mega.cgt-mega-open .cgt-mega-arrow {
	transform: rotate(180deg);
}

.cgt-mega-panel {
	display: none;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	background: #fff;
	border: 1px solid #DDD6C8;
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(0,0,0,0.15);
	padding: 28px;
	z-index: 9999;
	min-width: 640px;
}
.cgt-has-mega:hover .cgt-mega-panel,
.cgt-has-mega.cgt-mega-open .cgt-mega-panel {
	display: block;
}

.cgt-mega-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 24px;
}
.cgt-mega-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	width: 110px;
}
.cgt-mega-item-img {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	border: 2px solid #E7E1DC;
	margin-bottom: 10px;
	transition: border-color 0.15s ease, transform 0.15s ease;
}
.cgt-mega-item:hover .cgt-mega-item-img {
	border-color: #880000;
	transform: translateY(-2px);
}
.cgt-mega-item-label {
	font-size: 13px;
	font-weight: 600;
	color: #1F1F1F;
	line-height: 1.3;
}

/* ---------- Mobile: full-width accordion instead of floating panel ---------- */
@media (max-width: 900px) {
	.cgt-mega-panel {
		position: static;
		transform: none;
		width: 100%;
		min-width: 0;
		box-shadow: none;
		border-radius: 0;
		border-left: none;
		border-right: none;
		padding: 16px;
	}
	.cgt-has-mega:hover .cgt-mega-panel {
		display: none; /* no hover on touch devices — only the tap-toggled class controls it */
	}
	.cgt-has-mega.cgt-mega-open .cgt-mega-panel {
		display: block;
	}
	.cgt-mega-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 16px;
	}
	.cgt-mega-item {
		width: auto;
	}
	.cgt-mega-item-img {
		width: 72px;
		height: 72px;
	}
}
