/* NZ Mobile menu — Figma NZ/Mobile menu + NZ/Nav (Tablet, Mobile).
   Colours are the site tokens; the panel sits in a .nz-dark context, so the
   tokens resolve to the Figma "Dark" mode (teal surface, white text). */

/* Header buttons: Seller login icon (mobile) + menu button, 44 px circles. */
.nz-mm {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	--nz-mm-btn: 44px;
}

.nz-mm .nz-mm__btn-icon,
.nz-mm__root .nz-mm__btn-icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: var(--nz-mm-btn, 44px);
	height: var(--nz-mm-btn, 44px);
	margin: 0;
	padding: 0;
	border: 1px solid var(--nz-mm-line, var(--nz-color-border-default));
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: var(--nz-mm-icon, var(--nz-color-text-primary));
	line-height: 0;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.nz-mm .nz-mm__btn-icon:hover,
.nz-mm__root .nz-mm__btn-icon:hover {
	border-color: var(--nz-color-border-strong);
	background-color: rgba(255, 255, 255, 0.08);
	color: var(--nz-mm-icon, var(--nz-color-text-primary));
}

.nz-mm .nz-mm__btn-icon svg,
.nz-mm__root .nz-mm__btn-icon svg {
	display: block;
	width: 22px;
	height: 22px;
}

/* Panel root: fixed over the page (moved to <body> by the script). */
.nz-mm__root {
	position: fixed;
	inset: 0;
	z-index: 100000;
	--nz-mm-width: 420px;
	--nz-mm-row: 64px;
}

.nz-mm__root[hidden] {
	display: none;
}

.nz-mm__root .nz-mm__backdrop {
	position: absolute;
	inset: 0;
	background: var(--nz-mm-overlay, rgba(5, 26, 26, 0.55));
	opacity: 0;
	transition: opacity 0.24s ease;
}

.nz-mm__root .nz-mm__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
	box-sizing: border-box;
	width: min(var(--nz-mm-width, 420px), 100%);
	padding: 8px 28px 28px;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--nz-mm-bg, var(--nz-color-surface-page));
	color: var(--nz-color-text-primary);
	font-family: var(--nz-font-family);
	transform: translateX(100%);
	transition: transform 0.24s ease;
}

.nz-mm__root.is-open .nz-mm__backdrop {
	opacity: 1;
}

.nz-mm__root.is-open .nz-mm__panel {
	transform: none;
}

/* Top bar: logo + close. */
.nz-mm__root .nz-mm__top {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	min-height: 60px;
}

.nz-mm__root .nz-mm__logo {
	display: inline-block;
	line-height: 0;
}

.nz-mm__root .nz-mm__logo img {
	display: block;
	width: 92px;
	height: auto;
}

/* Links (Appearance → Menus). */
.nz-mm__root .nz-mm__nav {
	flex: 0 0 auto;
}

.nz-mm__root .nz-mm__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nz-mm__root .nz-mm__links li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--nz-mm-divider, var(--nz-color-border-default));
}

.nz-mm__root .nz-mm__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: calc(var(--nz-mm-row, 64px) - 1px); /* the row height includes the divider */
	color: var(--nz-color-text-primary);
	text-decoration: none;
}

.nz-mm__root .nz-mm__link-text {
	font-family: var(--nz-font-display);
	font-size: var(--nz-font-size-h3);
	font-weight: 500;
	line-height: var(--nz-line-height-h3);
	letter-spacing: -0.005em;
	color: var(--nz-color-text-primary);
	transition: color 0.15s ease;
}

.nz-mm__root .nz-mm__link:hover .nz-mm__link-text,
.nz-mm__root .nz-mm__link:focus-visible .nz-mm__link-text {
	color: var(--nz-mm-link-hover, var(--nz-color-text-link));
}

.nz-mm__root .nz-mm__arrow {
	display: inline-flex;
	flex: 0 0 auto;
	color: var(--nz-mm-arrow, var(--nz-color-text-muted));
}

.nz-mm__root .nz-mm__arrow svg {
	display: block;
	width: 22px;
	height: 22px;
}

.nz-mm__root .nz-mm__empty {
	margin: 0;
	color: var(--nz-color-text-muted);
}

/* Buttons at the bottom. */
.nz-mm__root .nz-mm__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: auto;
}

.nz-mm__root .nz-mm__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	width: 100%;
	padding: 14px 24px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--nz-font-family);
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nz-mm__root .nz-mm__cta svg {
	display: block;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
}

.nz-mm__root .nz-mm__cta--primary {
	border: 0;
	background: var(--nz-color-action-primary);
	color: var(--nz-color-action-on-primary);
}

.nz-mm__root .nz-mm__cta--primary:hover {
	background: var(--nz-color-action-primary-hover);
	color: var(--nz-color-action-on-primary);
}

.nz-mm__root .nz-mm__cta--secondary {
	border-color: var(--nz-color-border-strong);
	background: transparent;
	color: var(--nz-color-text-primary);
}

.nz-mm__root .nz-mm__cta--secondary:hover {
	background: rgba(255, 255, 255, 0.08);
	color: var(--nz-color-text-primary);
}

.nz-mm__root .nz-mm__customers {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px 0 0;
}

.nz-mm__root .nz-mm__eyebrow {
	margin: 0;
	font-family: var(--nz-font-family);
	font-size: 13px;
	font-weight: 600;
	line-height: 20px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nz-color-text-muted);
}

/* WhatsApp + language. */
.nz-mm__root .nz-mm__utility {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	font-family: var(--nz-font-family);
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: var(--nz-color-text-primary);
}

.nz-mm__root .nz-mm__wa,
.nz-mm__root .nz-mm__lang {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.nz-mm__root .nz-mm__wa {
	color: inherit;
	text-decoration: none;
}

.nz-mm__root .nz-mm__wa:hover {
	color: var(--nz-color-text-link);
}

.nz-mm__root .nz-mm__lang {
	color: var(--nz-color-text-secondary);
}

.nz-mm__root .nz-mm__lang svg {
	color: var(--nz-color-text-muted);
}

.nz-mm__root .nz-mm__lang a {
	color: inherit;
	text-decoration: none;
}

.nz-mm__root .nz-mm__wa svg,
.nz-mm__root .nz-mm__lang svg {
	display: block;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
}

/* No scrolling behind the open menu. */
html.nz-mm-open,
html.nz-mm-open body {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.nz-mm__root .nz-mm__backdrop,
	.nz-mm__root .nz-mm__panel {
		transition: none;
	}
}

/* Phones narrower than 360 px: the header row cannot also hold the Seller
   login icon (320 px: 26 px too wide); Seller login stays in the menu panel. */
@media (max-width: 359px) {
	.nz-header-bar .nz-mm .nz-mm__login {
		display: none !important;
	}
}
