/* Core sticky footer menu */
.core-fm {
	--fm-bg: #ffffff;
	--fm-border: #d8ded9;
	--fm-text: #1c2a21;
	--fm-icon: #1b5e20;
	--fm-active-bg: #e8f5e9;
	--fm-active-line: #1b5e20;
	--fm-max: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9990;
	display: flex;
	justify-content: center;
	pointer-events: none;
	box-sizing: border-box;
}
.core-fm *, .core-fm *::before, .core-fm *::after { box-sizing: border-box; }
.core-fm-bar {
	display: flex;
	width: 100%;
	max-width: var(--fm-max);
	padding-bottom: env(safe-area-inset-bottom, 0px);
	background: var(--fm-bg);
	border-top: 1px solid var(--fm-border);
	pointer-events: auto;
}
.core-fm--boxed .core-fm-bar { border-left: 1px solid var(--fm-border); border-right: 1px solid var(--fm-border); }
.core-fm-item {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 9px 4px 8px;
	margin: 0 2px;
	color: var(--fm-text);
	text-decoration: none;
	border-top: 3px solid transparent;
	border-radius: 0 0 12px 12px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .04em;
	line-height: 1.1;
	text-transform: uppercase;
	text-align: center;
	transition: background-color .15s ease;
}
.core-fm-item:hover, .core-fm-item:focus { color: var(--fm-text); background: var(--fm-active-bg); }
.core-fm-item.is-active { background: var(--fm-active-bg); border-top-color: var(--fm-active-line); }
.core-fm-icon { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; color: var(--fm-icon); }
.core-fm-icon img, .core-fm-icon svg { display: block; width: 24px; height: 24px; object-fit: contain; }
.core-fm-label { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Desktop and tablet */
@media (min-width: 768px) {
	.core-fm--no-desktop { display: none; }
	body.core-fm-space-d { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
}

/* Mobile */
@media (max-width: 767px) {
	.core-fm--no-mobile { display: none; }
	.core-fm--boxed .core-fm-bar { border-left: 0; border-right: 0; }
	.core-fm-item { margin: 0 1px; padding: 8px 2px 7px; font-size: 9.5px; letter-spacing: .02em; }
	.core-fm-icon, .core-fm-icon img, .core-fm-icon svg { width: 22px; height: 22px; }
	body.core-fm-space-m { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
}
