/* Header Menu Base Styles - Pill Design */
.unlock_addon_menu_container {
	position: relative;
	width: auto;
	max-width: 100%;
	background-color: #ffffff;
	border-radius: 50px;
	padding: 8px 16px;
	display: inline-flex;
	align-items: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	overflow: visible;
	z-index: 999;
}

.unlock_addon_menu {
	position: relative;
	width: auto;
	overflow: visible;
	z-index: 999;
}

.unlock_addon_menu_list,
ul.unlock_addon_menu_list,
nav .unlock_addon_menu_list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: inline-flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	justify-content: flex-start !important;
	/* gap controlled from widget (item spacing control) */
	width: auto !important;
	background-color: transparent !important;
}

.unlock_addon_menu_list > li,
ul.unlock_addon_menu_list > li,
nav .unlock_addon_menu_list > li {
	position: relative !important;
	margin: 0 !important;
	list-style: none !important;
	display: inline-flex !important;
	flex: 0 0 auto !important;
	text-align: center !important;
	width: auto !important;
	min-width: 0 !important;
	background-color: transparent !important;
	float: none !important;
	vertical-align: top !important;
}

.unlock_addon_menu_list > li > a {
	display: block;
	text-decoration: none;
	position: relative;
	white-space: nowrap;
	color: #333333;
	font-weight: 500;
	padding: 12px 20px;
	transition: all 0.3s ease;
	border-radius: 50px;
	background-color: transparent;
}

.unlock_addon_menu_list > li > a:hover,
.unlock_addon_menu_list > li:hover > a {
	background-color: #f5f5f5;
	color: #000;
}
ul{
	display: inline-flex !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	justify-content: flex-start !important;
	/* default gap removed to let widget spacing controls take over */
	width: auto !important;
	background-color: transparent !important;
}

.unlock_addon_menu_list > li.current-menu-item > a,
.unlock_addon_menu_list > li.current_page_item > a {
	background-color: #f0f0f0;
	color: #000;
	font-weight: 600;
}

/* Submenu Styles - Horizontal Layout */
.unlock_addon_submenu {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	position: absolute !important;
	top: calc(100% + 10px) !important;
	left: 50% !important;
	transform: translateX(-50%) translateY(-10px) !important;
	min-width: 200px !important;
	z-index: 999 !important;
	opacity: 0 !important;
	visibility: hidden !important;
	transition: all 0.3s ease-in-out !important;
	background-color: #ffffff !important;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
	border-radius: 8px !important;
	padding: 10px 0 !important;
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 4px !important;
	white-space: nowrap !important;
}

.unlock_addon_menu_list > li:hover > .unlock_addon_submenu,
.unlock_addon_menu_list > li:hover > ul {
	opacity: 1 !important;
	visibility: visible !important;
	transform: translateX(-50%) translateY(0) !important;
}

.unlock_addon_submenu li {
	position: relative !important;
	margin: 0 !important;
	list-style: none !important;
	display: inline-block !important;
	width: auto !important;
	flex: 0 0 auto !important;
}

.unlock_addon_submenu li a {
	display: block !important;
	text-decoration: none !important;
	padding: 12px 20px !important;
	width: auto !important;
	color: #333 !important;
	font-size: 14px !important;
	transition: all 0.3s ease !important;
	white-space: nowrap !important;
}

.unlock_addon_submenu li a:hover {
	background-color: #f5f5f5;
	color: #000;
}

.unlock_addon_submenu .unlock_addon_submenu {
	top: 0;
	left: 100%;
	margin-left: 10px;
	transform: translateX(0) translateY(-10px);
}

.unlock_addon_submenu li:hover > .unlock_addon_submenu {
	opacity: 1;
	visibility: visible;
	transform: translateX(0) translateY(0);
}

/* Mobile Menu Styles */
.unlock_addon_mobile_menu {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0;
}

.unlock_addon_mobile_menu li {
	margin: 0;
	list-style: none;
	display: block;
	width: 100%;
}

.unlock_addon_mobile_menu li a {
	display: block;
	text-decoration: none;
	padding: 10px 15px;
	width: 100%;
}

.unlock_addon_mobile_menu .unlock_addon_submenu {
	position: static;
	opacity: 1;
	visibility: visible;
	transform: none;
	box-shadow: none;
	background-color: rgba(0, 0, 0, 0.05);
	margin-left: 20px;
}

/* No Menu Message */
.unlock_addon_menu_no_menu {
	margin: 0;
	padding: 15px;
	color: #666;
	font-style: italic;
	text-align: center;
}

/* Layout Specific Styles */
.unlock_addon_menu_layout_1 .unlock_addon_menu_list {
	flex-direction: row;
	justify-content: flex-start;
}

.unlock_addon_menu_layout_2 .unlock_addon_menu_list {
	flex-direction: row;
	justify-content: center;
}

.unlock_addon_menu_layout_3 .unlock_addon_menu_list {
	flex-direction: row;
	justify-content: flex-end;
}

/* Default layout - evenly spaced items */
.unlock_addon_menu_list {
	justify-content: space-between;
}

.unlock_addon_menu_list > li {
	text-align: center;
}

.unlock_addon_menu_list > li,
ul.unlock_addon_menu_list > li,
nav .unlock_addon_menu_list > li {
    flex: 0 0 auto !important; /* Auto size based on content */
    display: inline-block !important;
    width: auto !important; /* Ensure width fits content */
    text-align: center !important;
}

/* Pill Design - Active/Hover States */
.unlock_addon_menu_list > li > a:hover,
.unlock_addon_menu_list > li:hover > a {
	background-color: #f5f5f5;
	color: #000;
}

.unlock_addon_menu_list > li.current-menu-item > a,
.unlock_addon_menu_list > li.current_page_item > a {
	background-color: #f0f0f0;
	color: #000;
	font-weight: 600;
}

/* Force horizontal layout by default - Override any other styles */
.unlock_addon_menu_list,
ul.unlock_addon_menu_list,
nav .unlock_addon_menu_list {
	flex-direction: row !important;
	flex-wrap: nowrap !important;
}

.unlock_addon_menu_list > li,
ul.unlock_addon_menu_list > li,
nav .unlock_addon_menu_list > li {
	display: inline-block !important;
	width: auto !important;
	flex: 1 1 auto !important;
	float: none !important;
	vertical-align: top !important;
}

/* Burger Menu Button */
.unlock_addon_menu_toggle_input {
	display: none;
}

.unlock_addon_menu_toggle {
	display: none !important;
	background: transparent !important;
	border: 2px solid #333 !important;
	border-radius: 4px !important;
	padding: 8px 12px !important;
	cursor: pointer !important;
	flex-direction: column !important;
	justify-content: space-around !important;
	width: 40px !important;
	height: 40px !important;
	position: relative !important;
	z-index: 1000 !important;
}

.unlock_addon_menu_toggle span {
	display: block !important;
	width: 100% !important;
	height: 3px !important;
	background-color: #333 !important;
	border-radius: 2px !important;
	transition: all 0.3s ease !important;
}

.unlock_addon_menu_toggle_input:checked + .unlock_addon_menu_toggle span:nth-child(1) {
	transform: rotate(45deg) translate(8px, 8px) !important;
}

.unlock_addon_menu_toggle_input:checked + .unlock_addon_menu_toggle span:nth-child(2) {
	opacity: 0 !important;
}

.unlock_addon_menu_toggle_input:checked + .unlock_addon_menu_toggle span:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -7px) !important;
}

/* Responsive Styles - Burger Menu */
@media (max-width: 768px) {
	.unlock_addon_menu_toggle {
		display: flex !important;
	}
	
	.unlock_addon_menu_toggle_input:not(:checked) ~ .unlock_addon_menu_list {
		display: none !important;
	}

	.unlock_addon_menu_toggle_input:checked ~ .unlock_addon_menu_list {
		display: flex !important;
		flex-direction: column !important;
		width: 100% !important;
		position: absolute !important;
		top: calc(100% + 8px) !important;
		left: 0 !important;
		right: 0 !important;
		background: rgba(255, 255, 255, 0.95) !important;
		box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35) !important;
		border-radius: 8px !important;
		padding: 12px 0 !important;
		margin-top: 10px !important;
		z-index: 9999 !important;
		backdrop-filter: blur(8px);
		border: 1px solid rgba(255, 255, 255, 0.6);
		max-height: calc(100vh - 120px);
		overflow-y: auto;
	}

	.unlock_addon_menu_list {
		flex-direction: column !important;
		width: 100% !important;
	}
	
	.unlock_addon_menu_list > li {
		width: 100% !important;
		display: block !important;
		flex: none !important;
		text-align: left !important;
		margin: 0 !important;
	}
	
	.unlock_addon_menu_list > li > a {
		width: 100% !important;
		padding: 12px 20px !important;
		border-radius: 0 !important;
		display: block !important;
		box-sizing: border-box !important;
	}
	
	.unlock_addon_submenu {
		position: static !important;
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
		box-shadow: none !important;
		background-color: rgba(0, 0, 0, 0.05) !important;
		margin-left: 20px !important;
		margin-top: 5px !important;
		margin-bottom: 5px !important;
		display: flex !important;
		flex-direction: column !important;
		width: calc(100% - 40px) !important;
		padding: 8px 0 !important;
	}
	
	.unlock_addon_submenu li {
		width: 100% !important;
		display: block !important;
		margin: 0 !important;
	}
	
	.unlock_addon_submenu li a {
		width: 100% !important;
		padding: 10px 20px !important;
		display: block !important;
		box-sizing: border-box !important;
	}
	
	/* Ensure menu container is positioned relative for absolute menu */
	.unlock_addon_menu_container {
		position: relative !important;
	}
	
	.unlock_addon_menu {
		position: relative !important;
	}
}

/* Ensure horizontal layout on desktop */
@media (min-width: 481px) {
	.unlock_addon_menu_list,
	ul.unlock_addon_menu_list,
	nav .unlock_addon_menu_list {
		flex-direction: row !important;
		flex-wrap: nowrap !important;
	}
	
	.unlock_addon_menu_list > li,
	ul.unlock_addon_menu_list > li,
	nav .unlock_addon_menu_list > li {
		display: inline-block !important;
		width: auto !important;
		flex: 1 1 auto !important;
		float: none !important;
		vertical-align: top !important;
	}
}

