/* Codeon Restaurant V2 — app-style bottom menu. */

.codeon-rv2-bottom-menu {
	display: none;
}

@media (max-width: 782px) {
	body.has-bottom-app-menu {
		padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
	}

	body.has-bottom-app-menu .code-order-cart-trigger {
		display: none !important;
	}

	.codeon-rv2-bottom-menu {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 90;
		display: block;
		padding: 10px max(16px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-right));
		pointer-events: none;
	}

	.codeon-rv2-bottom-menu-inner {
		position: relative;
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: 1fr;
		align-items: center;
		gap: 2px;
		width: min(100%, 540px);
		height: 70px;
		margin: 0 auto;
		padding: 8px 12px;
		border: 1px solid rgba(255,255,255,0.14);
		border-radius: 999px;
		background:
			radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 42%),
			linear-gradient(135deg, color-mix(in srgb, var(--brand-ink) 96%, #041012), color-mix(in srgb, var(--brand-ink) 86%, #000));
		box-shadow:
			0 24px 58px rgba(5,20,24,0.28),
			inset 0 1px 0 rgba(255,255,255,0.12);
		pointer-events: auto;
	}

	.codeon-rv2-bottom-menu-item {
		position: relative;
		display: grid;
		place-items: center;
		min-width: 0;
		height: 54px;
		color: color-mix(in srgb, #fff 58%, var(--brand) 42%);
		text-decoration: none;
		-webkit-tap-highlight-color: transparent;
		transition: color 180ms ease, transform 180ms ease;
	}

	.codeon-rv2-bottom-menu-item:hover,
	.codeon-rv2-bottom-menu-item:active,
	.codeon-rv2-bottom-menu-item.is-active {
		color: #fff;
	}

	.codeon-rv2-bottom-menu-item:active {
		transform: translateY(1px) scale(0.98);
	}

	.codeon-rv2-bottom-menu-icon {
		position: relative;
		display: grid;
		place-items: center;
		width: 40px;
		height: 40px;
		border-radius: 999px;
	}

	.codeon-rv2-bottom-menu-icon svg {
		width: 25px;
		height: 25px;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.85;
		stroke-linecap: round;
		stroke-linejoin: round;
	}

	.codeon-rv2-bottom-menu-item.is-active:not(.is-center)::after {
		content: '';
		position: absolute;
		left: 50%;
		bottom: 2px;
		width: 6px;
		height: 6px;
		border-radius: 999px;
		background: var(--surface);
		transform: translateX(-50%);
		box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
	}

	.codeon-rv2-bottom-menu-item.is-center {
		color: #fff;
		transform: translateY(-17px);
	}

	.codeon-rv2-bottom-menu-item.is-center:active {
		transform: translateY(-15px) scale(0.98);
	}

	.codeon-rv2-bottom-menu-item.is-center .codeon-rv2-bottom-menu-icon {
		width: 66px;
		height: 66px;
		border: 1px solid color-mix(in srgb, var(--brand) 35%, rgba(255,255,255,0.18));
		background: color-mix(in srgb, var(--brand) 72%, var(--brand-ink));
		box-shadow: 0 0 0 7px color-mix(in srgb, var(--brand) 12%, transparent);
	}

	.codeon-rv2-bottom-menu-item.is-center .codeon-rv2-bottom-menu-icon svg {
		width: 27px;
		height: 27px;
		stroke-width: 2.05;
	}

	.codeon-rv2-bottom-menu-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(1px, 1px, 1px, 1px);
		white-space: nowrap;
	}

	.codeon-rv2-bottom-menu-badge {
		position: absolute;
		top: -7px;
		right: calc(50% - 30px);
		min-width: 22px;
		height: 22px;
		padding: 0 5px;
		border-radius: 999px;
		display: none;
		align-items: center;
		justify-content: center;
		background: #ff5f67;
		color: #fff;
		border: 3px solid color-mix(in srgb, var(--brand) 62%, var(--brand-ink));
		font-size: 12px;
		font-weight: 800;
		line-height: 1;
		font-variant-numeric: tabular-nums;
		box-shadow: none;
	}

	.codeon-rv2-bottom-menu-item:not(.is-center) .codeon-rv2-bottom-menu-badge {
		top: 1px;
		right: max(11px, 18%);
		min-width: 19px;
		height: 19px;
		border-width: 2px;
		font-size: 11px;
	}

	.codeon-rv2-bottom-menu-badge.visible {
		display: inline-flex;
	}
}

@media (max-width: 380px) {
	.codeon-rv2-bottom-menu {
		padding-left: 10px;
		padding-right: 10px;
	}

	.codeon-rv2-bottom-menu-inner {
		height: 66px;
		padding-inline: 8px;
	}

	.codeon-rv2-bottom-menu-item {
		height: 52px;
	}

	.codeon-rv2-bottom-menu-icon svg {
		width: 23px;
		height: 23px;
	}

	.codeon-rv2-bottom-menu-item.is-center .codeon-rv2-bottom-menu-icon {
		width: 62px;
		height: 62px;
	}
}
