/* =========================================================
 * Danh Muc Mobile Element
 * ========================================================= */

.wpthemify-dmm {
	width: 100%;
	background: #fff;
}

.wpthemify-dmm-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* --- Level 1 --- */


.wpthemify-dmm-lv1:last-child {
	border-bottom: none;
}

.wpthemify-dmm-lv1-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 35px;
}

.wpthemify-dmm-lv1-link {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0px 16px;
	color: #333 !important;
	text-decoration: none !important;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
}

/* Toggle button (chevron) */
.wpthemify-dmm-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 35px;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	color: #999;
	flex-shrink: 0;
	transition: color 0.15s;
}

.wpthemify-dmm-toggle:hover {
	color: var(--mainColor, #1a51a2);
}

.wpthemify-dmm-chevron {
	transition: transform 0.25s ease;
}

.wpthemify-dmm-lv1.is-open > .wpthemify-dmm-lv1-row .wpthemify-dmm-chevron {
	transform: rotate(180deg);
}

/* Active level 1 text color */
.wpthemify-dmm-lv1.is-open > .wpthemify-dmm-lv1-row .wpthemify-dmm-lv1-link {
	color: var(--mainColor, #1a51a2) !important;
	font-weight: 600;
}

/* Checkmark for open state */
.wpthemify-dmm-lv1.is-open > .wpthemify-dmm-lv1-row .wpthemify-dmm-toggle {
	color: var(--mainColor, #1a51a2);
}

/* --- Level 2 list (collapsible) --- */
.wpthemify-dmm-lv2-list {
	list-style: none;
	margin: 0;
	padding: 0 0 8px 0;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.wpthemify-dmm-lv1.is-open > .wpthemify-dmm-lv2-list {
	max-height: 1000px;
}

/* --- Level 2 item --- */
.wpthemify-dmm-lv2 {
	/* no border between lv2 items */
}

.wpthemify-dmm-lv2-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 16px 8px 24px;
	color: #555 !important;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	transition: background 0.15s, color 0.15s;
}

.wpthemify-dmm-lv2-link:hover {
	background: #f8f9fa;
	color: var(--mainColor, #1a51a2) !important;
}

/* Level 2 icon */
.wpthemify-dmm-lv2-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.wpthemify-dmm-lv2-icon img {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

/* Font icon in level 2 */
.wpthemify-dmm-icon-font {
	font-size: 20px;
	color: var(--mainColor, #1a51a2);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
}

.wpthemify-dmm-lv2-text {
	flex: 1;
}
