#bottomnav-bar {
	--bottomnav-h: 62px;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9998;
	background-color: #1a1a1a;
	border-top: 3px solid #fff551;
	box-shadow: none;
	border-bottom: 1px solid rgba(255,255,255,0.08);
	width: 100%;
	transition: transform 0.3s ease, opacity 0.3s ease;
}
#bottomnav-bar.bottomnav-scroll-hidden {
	transform: translateY(100%);
	opacity: 0;
	pointer-events: none;
}
#bottomnav-bar.bottomnav-scroll-visible {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}
body.has-bottomnav {
	padding-bottom: var(--bottomnav-h, 62px);
}
body.has-bottomnav-hide-desktop { padding-bottom: 0; }
body.has-bottomnav-hide-mobile  { padding-bottom: 0; }

.bottomnav-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: stretch;
	justify-content: space-around;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

.bottomnav-item {
	flex: 1;
	margin: 0;
	display: flex;
}
.bottomnav-item > a,
.bottomnav-menu-toggle {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	color: #ffffff;
	text-decoration: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0 4px;
	min-height: var(--bottomnav-h, 48px);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.3px;
	text-transform: var(--bottomnav-text-transform, none);
	transition: color 0.2s ease, background-color 0.2s ease;
	gap: 6px;
	font-family: inherit;
}
.bottomnav-item.is-active > a {
	color: #fff551;
	background-color: rgba(255,255,255,0.06);
}

/* Every <button>-type item (Menu, Tools, Search, and plugin-provided buttons such as the membership profile avatar) shares the same box, stacking and states as the <a> items above, so they… */
.bottomnav-item > button {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #ffffff;
	background: none;
	border: none;
	border-radius: 0;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	padding: 0 4px;
	margin: 0;
	min-height: var(--bottomnav-h, 48px);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.3px;
	text-transform: var(--bottomnav-text-transform, none);
	transition: color 0.2s ease, background-color 0.2s ease;
	gap: 6px;
	font-family: inherit;
}
.bottomnav-item > button[aria-expanded="true"] {
	color: #fff551;
	background-color: rgba(255,255,255,0.06);
}
.bottomnav-item > a i,
.bottomnav-menu-toggle i {
	font-size: clamp(14px, calc(var(--bottomnav-h, 48px) * 0.38), 22px);
	line-height: 1;
}
.bottomnav-item > a svg,
.bottomnav-item > a img,
.bottomnav-item > button svg,
.bottomnav-item > button img {
	width: 18px;
	height: 18px;
	display: block;
	flex-shrink: 0;
}
.bottomnav-label {
	display: block;
	font-size: clamp(10px, calc(var(--bottomnav-h, 48px) * 0.26), 15px);
	line-height: 1.1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.bottomnav-group {
	display: flex;
	align-items: flex-end;
	justify-content: space-evenly;
	width: 100%;
	gap: 6px;
}
.bottomnav-group-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	min-width: 0;
}
.bottomnav-group-sep {
	flex: 0 0 auto;
	overflow: visible;
	opacity: 0.8;
}
#bottomnav-bar.bottomnav-no-labels .bottomnav-item > a,
#bottomnav-bar.bottomnav-no-labels .bottomnav-menu-toggle {
	padding: 0 4px;
}
#bottomnav-bar.bottomnav-no-labels .bottomnav-label {
	display: none;
}
.bottomnav-item:not(:last-child) {
	border-right: 1px solid rgba(255,255,255,0.08);
}
.bottomnav-item-menu {
	flex: 1;
}
.bottomnav-menu-toggle {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #ffffff;
	background: none;
	border: none;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	padding: 0 4px;
	min-height: var(--bottomnav-h, 48px);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.3px;
	text-transform: var(--bottomnav-text-transform, none);
	transition: color 0.2s ease, background-color 0.2s ease;
	gap: 6px;
	font-family: inherit;
}
.bottomnav-item-menu [aria-expanded="true"] {
	color: #fff551;
	background-color: rgba(255,255,255,0.06);
}
.bottomnav-item-search {
	flex: 1;
}
.bottomnav-search-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #ffffff;
	background: none;
	border: none;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	padding: 0 4px;
	min-height: var(--bottomnav-h, 48px);
	transition: color 0.2s ease, background-color 0.2s ease;
}
.bottomnav-item-search [aria-expanded="true"] {
	color: #fff551;
	background-color: rgba(255,255,255,0.06);
}
@media (hover: hover) {
	.bottomnav-item > a:hover,
	.bottomnav-item > button:hover,
	.bottomnav-menu-toggle:hover,
	.bottomnav-search-toggle:hover {
		color: #fff551;
		background-color: rgba(255,255,255,0.06);
	}
}
.bottomnav-item > a:active,
.bottomnav-item > button:active,
.bottomnav-menu-toggle:active,
.bottomnav-search-toggle:active {
	color: #fff551;
	background-color: rgba(255,255,255,0.06);
}
.bottomnav-ham-svg {
	display: block;
	overflow: visible;
	width: 21px;
	height: 14px;
	flex-shrink: 0;
}
.bottomnav-ham-line {
	transition: transform 0.25s ease, opacity 0.25s ease;
	transform-origin: center;
	transform-box: fill-box;
}
.bottomnav-menu-toggle[aria-expanded="true"] .bottomnav-ham-line-1,
.bottomnav-tools-toggle[aria-expanded="true"] .bottomnav-ham-line-1,
.bottomnav-custompane-toggle[aria-expanded="true"] .bottomnav-ham-line-1,
.bottomnav-custompane2-toggle[aria-expanded="true"] .bottomnav-ham-line-1,
.bottomnav-custompane3-toggle[aria-expanded="true"] .bottomnav-ham-line-1,
.bottomnav-custompane4-toggle[aria-expanded="true"] .bottomnav-ham-line-1 {
	transform: translateY(3px) rotate(45deg);
}
.bottomnav-menu-toggle[aria-expanded="true"] .bottomnav-ham-line-2,
.bottomnav-tools-toggle[aria-expanded="true"] .bottomnav-ham-line-2,
.bottomnav-custompane-toggle[aria-expanded="true"] .bottomnav-ham-line-2,
.bottomnav-custompane2-toggle[aria-expanded="true"] .bottomnav-ham-line-2,
.bottomnav-custompane3-toggle[aria-expanded="true"] .bottomnav-ham-line-2,
.bottomnav-custompane4-toggle[aria-expanded="true"] .bottomnav-ham-line-2 {
	transform: translateY(-3px) rotate(-45deg);
}
.bottomnav-search-toggle svg {
	display: block;
	flex-shrink: 0;
}

@media (min-width: 1024px) {
	#bottomnav-bar.bottomnav-hide-desktop { display: none !important; }
	body.has-bottomnav-hide-desktop       { padding-bottom: 0 !important; }
}
@media (max-width: 767px) {
	#bottomnav-bar.bottomnav-hide-mobile  { display: none !important; }
	body.has-bottomnav-hide-mobile        { padding-bottom: 0 !important; }
}

@media (max-width: 479px) {
	.bottomnav-item > a,
	.bottomnav-menu-toggle {
		padding: 0 2px;
		font-size: 10px;
	}
}
