:root {
	--zmsm-bar-height: 72px;
	--zmsm-product-height: 76px;
	--zmsm-brand: var(--e-global-color-primary, #334638);
	--zmsm-accent: var(--e-global-color-accent, #bd613d);
	--zmsm-ink: var(--e-global-color-text, #1f2722);
	--zmsm-muted: #66706a;
	--zmsm-line: #e4e6e3;
	--zmsm-surface: #fff;
	--zmsm-font: var(--e-global-typography-text-font-family, Montserrat, Arial, sans-serif);
}

.zmsm-menu,
.zmsm-menu * {
	box-sizing: border-box;
}

.zmsm-menu,
.zmsm-page-spacer {
	display: none;
}

@media (max-width: 767px) {
	#footer_menu_bar2 {
		display: none !important;
	}

	.zmsm-page-spacer {
		display: block;
		height: calc(var(--zmsm-bar-height) + env(safe-area-inset-bottom, 0px));
	}

	.zmsm-menu--product + .zmsm-page-spacer {
		height: calc(var(--zmsm-bar-height) + var(--zmsm-product-height) + env(safe-area-inset-bottom, 0px));
	}

	.zmsm-menu {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 999980;
		display: block;
		min-height: calc(var(--zmsm-bar-height) + env(safe-area-inset-bottom, 0px));
		padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
		border-top: 1px solid var(--zmsm-line);
		background: var(--zmsm-surface);
		box-shadow: 0 -10px 30px rgb(18 32 23 / 12%);
		font-family: var(--zmsm-font);
		opacity: 0;
		pointer-events: none;
		transform: translateY(110%);
		visibility: hidden;
		transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 220ms;
	}

	.zmsm-menu__actions {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.zmsm-product {
		display: grid;
		min-height: var(--zmsm-product-height);
		grid-template-columns: 56px minmax(0, 1fr);
		gap: 12px;
		align-items: center;
		padding: 10px 16px;
		border-bottom: 1px solid var(--zmsm-line);
		background: color-mix(in srgb, var(--zmsm-brand) 5%, #fff);
		color: var(--zmsm-ink);
	}

	.zmsm-product__image {
		display: block;
		width: 56px;
		height: 56px;
		overflow: hidden;
		border-radius: 8px;
		background: #f3f2ef;
	}

	.zmsm-product__image img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.zmsm-product__details,
	.zmsm-product__name,
	.zmsm-product__price {
		display: block;
		min-width: 0;
	}

	.zmsm-product__name {
		overflow: hidden;
		font-size: 0.78rem;
		font-weight: 650;
		line-height: 1.35;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.zmsm-product__price {
		margin-top: 4px;
		color: var(--zmsm-brand);
		font-size: 0.85rem;
		font-weight: 700;
		line-height: 1.2;
	}

	.zmsm-product__price del {
		margin-right: 5px;
		color: var(--zmsm-muted);
		font-size: 0.75rem;
		font-weight: 500;
	}

	.zmsm-product__price ins {
		text-decoration: none;
	}

	.zmsm-menu.is-visible {
		opacity: 1;
		pointer-events: auto;
		transform: translateY(0);
		visibility: visible;
		transition-delay: 0s;
	}

	.zmsm-menu__item {
		position: relative;
		display: flex;
		min-width: 0;
		min-height: var(--zmsm-bar-height);
		align-items: center;
		justify-content: center;
		flex-direction: column;
		gap: 5px;
		padding: 8px 4px;
		border: 0;
		border-right: 1px solid var(--zmsm-line);
		border-radius: 0;
		background: var(--zmsm-surface);
		color: var(--zmsm-ink);
		font: inherit;
		line-height: 1;
		text-align: center;
		text-decoration: none;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	.zmsm-menu__item:last-of-type {
		border-right: 0;
	}

	.zmsm-menu__item:hover,
	.zmsm-menu__item:active {
		background: color-mix(in srgb, var(--zmsm-brand) 7%, #fff);
		color: var(--zmsm-ink);
	}

	.zmsm-menu a.zmsm-menu__item:not(.zmsm-menu__item--primary),
	.zmsm-menu a.zmsm-menu__item:not(.zmsm-menu__item--primary):visited {
		color: var(--zmsm-ink) !important;
	}

	.zmsm-menu .zmsm-menu__item--primary,
	.zmsm-menu .zmsm-menu__item--primary:hover,
	.zmsm-menu .zmsm-menu__item--primary:active,
	.zmsm-menu a.zmsm-menu__item--primary:visited {
		background: var(--zmsm-brand);
		color: #fff !important;
	}

	.zmsm-menu__item:focus-visible {
		z-index: 1;
		outline: 3px solid var(--zmsm-accent);
		outline-offset: -4px;
	}

	.zmsm-menu__item--primary:focus-visible {
		outline-color: #fff;
	}

	.zmsm-menu__icon {
		position: relative;
		display: inline-grid;
		width: 25px;
		height: 25px;
		place-items: center;
	}

	.zmsm-menu__icon svg {
		display: block;
		width: 24px;
		height: 24px;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.8;
		stroke-linecap: round;
		stroke-linejoin: round;
	}

	.zmsm-menu__label {
		display: block;
		max-width: 100%;
		overflow: hidden;
		font-size: 0.66rem;
		font-weight: 650;
		letter-spacing: 0.01em;
		line-height: 1.1;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.zmsm-cart-count {
		position: absolute;
		top: -6px;
		right: -10px;
		display: grid;
		min-width: 18px;
		height: 18px;
		place-items: center;
		padding: 0 4px;
		border: 2px solid #fff;
		border-radius: 99px;
		background: var(--zmsm-accent);
		color: #fff;
		font-size: 0.625rem;
		font-weight: 700;
		line-height: 1;
	}

	.zmsm-cart-count[data-count="0"] {
		display: none;
	}
}

@media (max-width: 359px) {
	.zmsm-product {
		grid-template-columns: 50px minmax(0, 1fr);
		gap: 10px;
		padding-right: 12px;
		padding-left: 12px;
	}

	.zmsm-product__image {
		width: 50px;
		height: 50px;
	}

	.zmsm-menu__label {
		font-size: 0.6rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zmsm-menu {
		transition: none;
	}
}
