/* KOL BuddyPress Bottom Menu */

body {
	padding-bottom: var(--bbm-height, 80px);
}

.kol-bbm-container {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: var(--bbm-height, 80px);
	border-top: 1px solid #2a2a2a;
	display: flex !important;
	align-items: center;
	justify-content: center;
	z-index: 9998;
	width: 100%;
	overflow: hidden;
	visibility: visible !important;
}

html.dark-mode .kol-bbm-container {
	background-color: #1e1e1e;
	border-top-color: #2a2a2a;
}

html.light-mode .kol-bbm-container {
	background-color: #f5f5f5;
	border-top-color: #d0d0d0;
}

.kol-bbm-menu {
	align-self: flex-end;
	height: 100%;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	width: 100%;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: center;
	flex-wrap: nowrap;
	gap: 0;
	overflow-y: hidden;
	overflow-x: hidden;
	scrollbar-width: none;
}

.kol-bbm-menu::-webkit-scrollbar {
	display: none;
}

.kol-bbm-menu li {
	margin: 0;
	padding: 0;
	flex-shrink: 0;
	min-width: var(--bbm-spacing, 120px);
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}

html.dark-mode .kol-bbm-menu li {
	border-left: 0.5px solid #2a2a2a;
}

html.light-mode .kol-bbm-menu li {
	border-left: 0.5px solid #d0d0d0;
}

.kol-bbm-menu li:last-child {
	border-right: 0.5px solid;
}

html.dark-mode .kol-bbm-menu li:last-child {
	border-right-color: #2a2a2a;
}

html.light-mode .kol-bbm-menu li:last-child {
	border-right-color: #d0d0d0;
}

.kol-bbm-menu a {
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	transition: color 0.3s ease, background-color 0.3s ease;
	font-size: 16px;
}

.kol-bbm-menu a i,
.kol-bbm-menu a span {
	pointer-events: none;
}

html.dark-mode .kol-bbm-menu a {
	color: #e0e0e0;
}

html.light-mode .kol-bbm-menu a {
	color: #333333;
}

.kol-bbm-menu a i,
.kol-bbm-menu a span {
	pointer-events: none;
}

html.dark-mode .kol-bbm-menu a:hover {
	color: #ffffff;
	background-color: #2a2a2a;
	box-shadow: 0px 0px 12px rgba(42, 42, 42, 0.8), inset 0px 0px 8px rgba(255,255,255,0.1);
}

html.light-mode .kol-bbm-menu a:hover {
	color: #000000;
	background-color: #e5e5e5;
}

html.dark-mode .kol-bbm-menu .current-menu-item > a {
	color: #4CAF50;
}

html.light-mode .kol-bbm-menu .current-menu-item > a {
	color: #2e7d32;
}

@media (max-width: 768px) {
	body {
		padding-bottom: var(--bbm-height, 80px);
	}

	.kol-bbm-container {
		justify-content: flex-start;
		overflow-x: auto;
		overflow-y: hidden;
		scrollbar-width: none;
	}

	.kol-bbm-container::-webkit-scrollbar {
		display: none;
	}

	.kol-bbm-menu {
		overflow-x: auto;
		overflow-y: hidden;
		scrollbar-width: none;
		justify-content: flex-start;
	}

	.kol-bbm-menu::-webkit-scrollbar {
		display: none;
	}
}