/* Fixed navigation for phone and tablet viewports. */
.kiddee-mobile-bottom-nav {
	display: none;
}

@media (max-width: 64rem), (max-width: 86rem) and (any-pointer: coarse) {
	body.wp-theme-kiddee-v2 {
		padding-bottom: calc(64px + env(safe-area-inset-bottom));
	}

	.kiddee-mobile-bottom-nav {
		position: fixed;
		z-index: 99970;
		right: 0;
		bottom: 0;
		left: 0;
		display: block;
		border-top: 1px solid var(--kv2-airbnb-hairline-soft);
		background: rgba(255, 255, 255, 0.98);
		box-shadow: 0 -8px 24px rgba(34, 34, 34, 0.08);
		padding-bottom: env(safe-area-inset-bottom);
		transform: translateZ(0);
		-webkit-backface-visibility: hidden;
		backface-visibility: hidden;
		will-change: transform;
	}

	.kiddee-mobile-bottom-nav__inner {
		display: grid;
		width: min(100%, 720px);
		min-height: 64px;
		margin: 0 auto;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		align-items: stretch;
		padding: 4px 6px;
	}

	.kiddee-mobile-bottom-nav__item {
		display: flex;
		min-width: 0;
		min-height: 54px;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		gap: 2px;
		border-radius: 10px;
		padding: 4px 1px 3px;
		color: var(--kv2-airbnb-muted);
		font-family: var(--font-body);
		font-size: 11px;
		font-weight: 500;
		line-height: 1.2;
		text-align: center;
		text-decoration: none;
		-webkit-tap-highlight-color: transparent;
	}

	.kiddee-mobile-bottom-nav__item.is-active {
		color: var(--kv2-airbnb-primary-active);
	}

	.kiddee-mobile-bottom-nav__icon {
		display: grid;
		width: 22px;
		height: 22px;
		place-items: center;
		flex: 0 0 22px;
	}

	.kiddee-mobile-bottom-nav__icon svg {
		display: block;
		width: 20px;
		height: 20px;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.8;
		stroke-linecap: round;
		stroke-linejoin: round;
	}

	.kiddee-mobile-bottom-nav__label {
		display: block;
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.kiddee-mobile-bottom-nav__item:focus-visible {
		outline: 2px solid var(--kv2-airbnb-primary);
		outline-offset: -3px;
	}

	.kiddee-product-promo {
		padding-bottom: calc(76px + env(safe-area-inset-bottom));
	}
}

@media (max-width: 22.5rem) {
	.kiddee-mobile-bottom-nav__item {
		font-size: 10px;
	}
}
