:root {
	--tipitoe-enhancements-safe-bottom: env(safe-area-inset-bottom, 0px);
	--tipitoe-enhancements-mobile-nav-height: calc(4.25rem + var(--tipitoe-enhancements-safe-bottom));
}

.tipitoe-enhancements-mobile-navigation {
	display: none;
}

@media (max-width: 992px) {
	body.tipitoe-enhancements-mobile-nav-enabled {
		padding-bottom: calc(var(--tipitoe-enhancements-mobile-nav-height) + 1rem);
	}

	body.tipitoe-enhancements-mobile-nav-enabled .woocommerce-checkout .place-order,
	body.tipitoe-enhancements-mobile-nav-enabled .woocommerce-checkout .wc-block-components-checkout-place-order-button {
		scroll-margin-bottom: calc(var(--tipitoe-enhancements-mobile-nav-height) + 1rem);
	}

	.tipitoe-enhancements-mobile-navigation {
		display: block;
	}

	.tipitoe-enhancements-mobile-navigation__bar {
		position: fixed;
		z-index: 99999;
		right: 0;
		bottom: 0;
		left: 0;
		display: grid;
		min-height: var(--tipitoe-enhancements-mobile-nav-height);
		padding: 0.4rem 0.35rem calc(0.4rem + var(--tipitoe-enhancements-safe-bottom));
		grid-template-columns: repeat(4, minmax(0, 1fr));
		background: rgba(255, 255, 255, 0.96);
		border-top: 1px solid rgba(34, 34, 34, 0.13);
		box-shadow: 0 -10px 30px rgba(24, 24, 24, 0.11);
		backdrop-filter: blur(18px);
	}

	.tipitoe-enhancements-mobile-navigation__link {
		position: relative;
		display: flex;
		min-width: 0;
		min-height: 3.45rem;
		padding: 0.25rem;
		align-items: center;
		justify-content: center;
		gap: 0.18rem;
		flex-direction: column;
		background: transparent;
		border: 0;
		border-radius: 0.9rem;
		color: #606060;
		font: inherit;
		font-size: 0.68rem;
		font-weight: 700;
		line-height: 1.1;
		text-align: center;
		text-decoration: none;
		cursor: pointer;
		transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
	}

	.tipitoe-enhancements-mobile-navigation__wishlist-count {
		position: absolute;
		top: 0.35rem;
		left: calc(50% + 0.35rem);
		z-index: 1;
		display: grid;
		width: 1.2rem;
		height: 1.2rem;
		border-radius: 999px;
		background: #e56d6d;
		color: #fff;
		font-size: 0.65rem;
		font-weight: 700;
		line-height: 1;
		place-items: center;
		pointer-events: none;
	}

	.tipitoe-enhancements-mobile-navigation__wishlist-count[hidden] {
		display: none !important;
	}

	.tipitoe-enhancements-mobile-navigation__link:hover,
	.tipitoe-enhancements-mobile-navigation__link:active,
	.tipitoe-enhancements-mobile-navigation__link[aria-current="page"],
	.tipitoe-enhancements-mobile-navigation__link[aria-expanded="true"] {
		background: #f6eeee;
		color: #e56d72;
	}

	.tipitoe-enhancements-mobile-navigation__link:active {
		transform: scale(0.96);
	}

	.tipitoe-enhancements-mobile-navigation__link:focus-visible,
	.tipitoe-enhancements-mobile-navigation__close:focus-visible {
		outline: 3px solid #e56d72;
		outline-offset: 3px;
	}

	.tipitoe-enhancements-mobile-navigation__link svg,
	.tipitoe-enhancements-mobile-navigation__close svg {
		width: 1.35rem;
		height: 1.35rem;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.8;
		stroke-linecap: round;
		stroke-linejoin: round;
	}

	.tipitoe-enhancements-mobile-navigation__fallback-dialog {
		width: 100%;
		max-width: none;
		height: 100%;
		max-height: none;
		margin: 0;
		padding: 0;
		background: #fff;
		border: 0;
		color: #222;
	}

	.tipitoe-enhancements-mobile-navigation__fallback-dialog::backdrop {
		background: rgba(24, 24, 24, 0.32);
	}

	.tipitoe-enhancements-mobile-navigation__fallback-content {
		display: flex;
		min-height: 100%;
		padding: max(1.25rem, env(safe-area-inset-top, 0px)) 1.25rem calc(var(--tipitoe-enhancements-mobile-nav-height) + 1rem);
		flex-direction: column;
	}

	.tipitoe-enhancements-mobile-navigation__fallback-header {
		display: flex;
		margin: -1.25rem -1.25rem 1.5rem;
		padding: max(1.25rem, env(safe-area-inset-top, 0px)) 1.25rem 1.25rem;
		align-items: flex-start;
		justify-content: space-between;
		gap: 1rem;
		border-bottom: 1px solid rgba(34, 34, 34, 0.13);
	}

	.tipitoe-enhancements-mobile-navigation__fallback-header p {
		margin: 0 0 0.2rem;
		color: #e56d72;
		font-size: 0.72rem;
		font-weight: 800;
		letter-spacing: 0.08em;
		text-transform: uppercase;
	}

	.tipitoe-enhancements-mobile-navigation__fallback-header h2 {
		margin: 0;
		font-size: clamp(1.35rem, 6vw, 1.8rem);
		line-height: 1.15;
	}

	.tipitoe-enhancements-mobile-navigation__fallback-header form {
		margin: 0;
	}

	.tipitoe-enhancements-mobile-navigation__close {
		display: inline-flex;
		width: 2.75rem;
		height: 2.75rem;
		padding: 0;
		align-items: center;
		justify-content: center;
		background: #f4f4f4;
		border: 0;
		border-radius: 999px;
		color: #222;
		cursor: pointer;
	}

	.tipitoe-enhancements-mobile-navigation__fallback-form .woocommerce-product-search,
	.tipitoe-enhancements-mobile-navigation__fallback-form .search-form {
		position: relative;
		display: flex;
		margin: 0;
		gap: 0.65rem;
	}

	.tipitoe-enhancements-mobile-navigation__fallback-form > .site-search {
		display: block;
		width: 100%;
		margin: 0;
	}

	.tipitoe-enhancements-mobile-navigation__fallback-form input[type="search"] {
		min-width: 0;
		flex: 1;
		border: 1px solid rgba(34, 34, 34, 0.24);
		border-radius: 0.65rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tipitoe-enhancements-mobile-navigation__link {
		transition-duration: 0.01ms;
	}
}