/**
 * Mobile app-style sticky bottom navigation (phones).
 */

:root {
	--autonemo-mobile-app-nav-height: 62px;
}

@media (max-width: 767px) {
	body.autonemo-has-mobile-app-nav {
		padding-bottom: calc(var(--autonemo-mobile-app-nav-height) + env(safe-area-inset-bottom, 0px));
	}

	body.autonemo-has-mobile-app-nav .circle-container {
		bottom: calc(var(--autonemo-mobile-app-nav-height) + 12px + env(safe-area-inset-bottom, 0px));
	}

	body.autonemo-has-mobile-app-nav .autonemo-footer {
		padding-bottom: calc(var(--autonemo-mobile-app-nav-height) + env(safe-area-inset-bottom, 0px));
	}

	.autonemo-mobile-app-nav {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 998;
		padding-bottom: env(safe-area-inset-bottom, 0px);
		background: #ffffff;
		border-top: 1px solid rgba(11, 12, 12, 0.1);
		box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
	}

	.autonemo-mobile-app-nav__shell {
		width: 100%;
	}

	.autonemo-mobile-app-nav__inner {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		align-items: stretch;
		min-height: var(--autonemo-mobile-app-nav-height);
		max-width: 100%;
		margin: 0;
	}

	.autonemo-mobile-app-nav__link {
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0;
		text-decoration: none;
		color: var(--autonemo-black, #0b0c0c) !important;
		-webkit-text-fill-color: var(--autonemo-black, #0b0c0c) !important;
		-webkit-tap-highlight-color: transparent;
	}

	.autonemo-mobile-app-nav__pill {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 4px;
		width: 100%;
		height: 100%;
		padding: 8px 4px 6px;
		border-radius: 0;
		transition: background-color 0.15s ease;
	}

	.autonemo-mobile-app-nav__link:hover .autonemo-mobile-app-nav__pill,
	.autonemo-mobile-app-nav__link:focus-visible .autonemo-mobile-app-nav__pill {
		background: rgba(11, 12, 12, 0.04);
	}

	.autonemo-mobile-app-nav__link:focus-visible {
		outline: none;
	}

	.autonemo-mobile-app-nav__link.is-active {
		color: var(--autonemo-black, #0b0c0c) !important;
		-webkit-text-fill-color: var(--autonemo-black, #0b0c0c) !important;
	}

	.autonemo-mobile-app-nav__link.is-active .autonemo-mobile-app-nav__pill {
		background: rgba(226, 35, 26, 0.06);
	}

	.autonemo-mobile-app-nav__icon {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 28px;
		height: 28px;
		font-size: 1.05rem;
		line-height: 1;
		color: var(--autonemo-black, #0b0c0c) !important;
		-webkit-text-fill-color: var(--autonemo-black, #0b0c0c) !important;
	}

	.autonemo-mobile-app-nav__link.is-active .autonemo-mobile-app-nav__icon {
		color: var(--autonemo-black, #0b0c0c) !important;
		-webkit-text-fill-color: var(--autonemo-black, #0b0c0c) !important;
	}

	.autonemo-mobile-app-nav__label {
		display: block;
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		font-size: 0.62rem;
		font-weight: 700;
		line-height: 1.15;
		letter-spacing: 0.02em;
		color: var(--autonemo-black, #0b0c0c) !important;
		-webkit-text-fill-color: var(--autonemo-black, #0b0c0c) !important;
		transition: color 0.15s ease;
	}

	.autonemo-mobile-app-nav__link.is-active .autonemo-mobile-app-nav__label {
		color: var(--autonemo-red, #e2231a) !important;
		-webkit-text-fill-color: var(--autonemo-red, #e2231a) !important;
	}

	.autonemo-mobile-app-nav__link:active .autonemo-mobile-app-nav__pill {
		background: rgba(11, 12, 12, 0.06);
	}
}

@media (min-width: 768px) {
	.autonemo-mobile-app-nav {
		display: none !important;
	}
}
