@charset "UTF-8";

nav#menu.relative {
	container-type: inline-size;
	container-name: menu;
	width: var(--width);
	min-height: var(--menu-height, 3rem);
	display: flex;
	flex-flow: row wrap;
	gap: 1rem;
	border-radius: 1.375rem;
	overflow: hidden;
}

nav#menu.relative>a[type="button"] {
	height: 3rem;
	padding: unset;
	border-radius: 1.375rem;
	color: var(--interface-text-color, var(--tg-theme-button-text-color));
	background-color: var(--button-main-background-color, var(--interface-background-color, var(--tg-theme-button-color)));
}

nav#menu.relative>a[type=button]>:first-child {
	margin-left: 1rem;
}

nav#menu.relative>a[type="button"]>* {
	margin-right: 1rem;
}

@container header (max-width: 450px) {
	nav#menu.relative>a[type="button"]:nth-child(1)>i.icon+span {
		display: none;
	}
}

@container header (max-width: 350px) {
	nav#menu.relative>a[type="button"]:nth-child(2)>i.icon+span {
		display: none;
	}
}

@container header (max-width: 250px) {
	nav#menu.relative>a[type="button"]:nth-child(3)>i.icon+span {
		display: none;
	}
}

@container header (max-width: 150px) {
	nav#menu.relative>a[type="button"]>i.icon+span {
		display: none;
	}
}

nav#menu.fixed {
	z-index: var(--menu-z-index, 12000);
	position: fixed !important;
	left: 0;
	bottom: 0;
	width: 100vw;
	height: var(--menu-height, 3rem);
	box-sizing: border-box;
	display: flex;
	flex-flow: row;
	justify-content: space-around;
	align-items: center;
	overflow: hidden;
	background-color: var(--interface-menu-background-color, var(--interface-background-color, var(--tg-theme-secondary-bg-color, #000)));
	transform: translate3d(0, 0, 0);
}

nav#menu.fixed * {
	color: var(--interface-menu-text-color, var(--text-color, var(--tg-theme-text-color, #fff)));
}

nav#menu.fixed>a[type="button"] {
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	flex-grow: 1;
	padding: unset;
	padding-bottom: calc(var(--menu-height) / 100 * 10);
	color: var(--tg-theme-text-color);
	background-color: unset;
}

nav#menu.fixed>a[type="button"]>i.icon {
	position: absolute;
	margin-bottom: 0.2rem;
}

nav#menu.fixed>a[type="button"].cart:before {
	content: var(--cart-amount);
	position: absolute;
	margin-right: -1.5rem;
	margin-top: -1.6rem;
	padding: 0.2rem 0.3rem;
	min-width: 0.7rem;
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: 'Geologica';
	font-size: small;
	font-weight: 400;
	color: #00ff00;
}

nav#menu.fixed>a[type="button"]>small {
	position: absolute;
	bottom: calc(var(--menu-height) / 100 * 15);
	font-size: 0.6rem;
	font-weight: 300;
	text-align: center;
	color: var(--hint-text-color);
}

nav#menu.fixed:not(.hide) {
	bottom: 0;
	transition: bottom 0.1s linear;
}

nav#menu.fixed.hide {
	bottom: calc(var(--menu-height) * -1);
	transition: bottom 0.2s ease-out;
}

:root:not(:has(nav#menu *)) {
	--menu-height: 0px
}

nav#menu:not(:has(*)) {
	display: none !important;
}

section#loading {
	z-index: 9999;
	position: fixed;
	width: 100vw;
	height: 100vh;
}
