/*
 * Nizu App shell. Tokens (--nz-*) come from the Bricks global variables; every use has a fallback so the
 * shell still works if a page does not output them. Mobile first, no build step.
 */

/* ---------------------------------------------------------------- Fonts */
@font-face {
	font-family: "Bodoni Moda";
	font-style: normal;
	font-weight: 400 900; /* variable font file, we use 500 and 600 */
	font-display: swap;
	src: url("../fonts/bodoni-moda-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------- Base */
:root {
	--nz-appbar-h: 52px;
	--nz-tabbar-h: 56px;
	--nz-ease: cubic-bezier(.2, .8, .2, 1);
}

html {
	-webkit-tap-highlight-color: transparent;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

/* Bricks double-quotes font-family values set through its controls, which breaks var() stacks:
   re-assert the stacks here (after bricks-frontend, higher specificity). */
html body {
	font-family: var(--nz-font-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
	overscroll-behavior-y: none;
	touch-action: manipulation;
}

html body .nz-display {
	font-family: var(--nz-font-display, "Bodoni Moda", serif);
}

body.nz-scroll-locked {
	position: fixed;
	left: 0;
	right: 0;
	width: 100%;
	overflow: hidden;
}

/* Room for the fixed bars, only when they are on the page. :has() with a JS-set class as the fallback. */
body.nz-has-appbar,
body:has(.nz-appbar:not(.nz-appbar--builder)) {
	padding-top: calc(var(--nz-appbar-h) + env(safe-area-inset-top, 0px));
}

body.nz-has-tabbar,
body:has(.nz-tabbar:not(.nz-tabbar--builder)) {
	padding-bottom: calc(var(--nz-tabbar-h) + env(safe-area-inset-bottom, 0px));
}

body.woocommerce-checkout.nz-has-tabbar,
body.woocommerce-checkout:has(.nz-tabbar) {
	padding-bottom: 0;
}

@media (min-width: 1024px) {
	body.nz-has-tabbar,
	body:has(.nz-tabbar:not(.nz-tabbar--builder)) {
		padding-bottom: 0;
	}
}

/* ---------------------------------------------------------------- Utilities */
.nz-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.nz-press {
	transition: transform 120ms var(--nz-ease), background-color 120ms var(--nz-ease);
}

.nz-press:active {
	transform: scale(.97);
}

.nz-skel {
	background: linear-gradient(90deg, var(--nz-surface-2, #ece8e6) 0%, var(--nz-surface, #f5f3f2) 50%, var(--nz-surface-2, #ece8e6) 100%);
	background-size: 200% 100%;
	animation: nz-shimmer 1.3s linear infinite;
	border-radius: var(--nz-r-s, 10px);
	color: transparent;
}

@keyframes nz-shimmer {
	from { background-position: 200% 0; }
	to { background-position: -200% 0; }
}

/* Colour swatches ({nizu_style_swatches}) */
.nz-swatches {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	vertical-align: middle;
}

.nz-swatch {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .14);
	background: var(--nz-surface, #f5f3f2);
	display: block;
}

.nz-swatches__more {
	margin-left: 2px;
	font-size: 12px;
	line-height: 1;
	color: var(--nz-ink-2, #6b6466);
}

/* ---------------------------------------------------------------- View transitions (cross-document) */
@media (prefers-reduced-motion: no-preference) {
	@view-transition {
		navigation: auto;
	}
}

::view-transition-old(root),
::view-transition-new(root) {
	animation-duration: 180ms;
	animation-timing-function: var(--nz-ease);
}

/* Chrome stays put while pages cross-fade. */
.nz-appbar {
	view-transition-name: nz-appbar;
}

.nz-tabbar {
	view-transition-name: nz-tabbar;
}

::view-transition-group(nz-appbar),
::view-transition-group(nz-tabbar) {
	animation-duration: 0s;
}

@media (prefers-reduced-motion: reduce) {
	::view-transition-group(*),
	::view-transition-old(*),
	::view-transition-new(*) {
		animation: none !important;
	}
	.nz-press,
	.nz-press:active {
		transition: none;
		transform: none;
	}
	.nz-skel {
		animation: none;
	}
}

/* ---------------------------------------------------------------- Badges */
.nz-count {
	position: absolute;
	top: 3px;
	right: 1px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	box-sizing: border-box;
	border-radius: 999px;
	background: var(--nz-ink, #1b1918);
	color: var(--nz-bg, #fff);
	font: 600 11px/18px var(--nz-font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	text-align: center;
	box-shadow: 0 0 0 2px var(--nz-bg, #fff);
	pointer-events: none;
}

.nz-count::before {
	content: attr(data-count);
}

.nz-count[hidden] {
	display: none;
}

.nz-count.is-pop {
	animation: nz-pop 340ms var(--nz-ease);
}

@keyframes nz-pop {
	0% { transform: scale(.55); }
	55% { transform: scale(1.22); }
	100% { transform: scale(1); }
}

/* ---------------------------------------------------------------- Top app bar */
.nz-appbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 900;
	box-sizing: border-box;
	padding-top: env(safe-area-inset-top, 0px);
	background: rgba(255, 255, 255, .85);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	box-shadow: 0 .5px 0 transparent;
	transition: box-shadow 200ms var(--nz-ease);
	color: var(--nz-ink, #1b1918);
}

/* Logged-in staff: the WP admin bar is fixed from 601px up, so sit below it. */
@media (min-width: 601px) {
	body.admin-bar .nz-appbar:not(.nz-appbar--builder) {
		top: var(--wp-admin--admin-bar--height, 32px);
	}
}

.nz-appbar.is-scrolled {
	box-shadow: 0 .5px 0 var(--nz-line, #e7e2e0);
}

.nz-appbar--builder {
	position: sticky;
}

.nz-appbar__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--nz-appbar-h);
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 6px 0 16px;
	box-sizing: border-box;
}

.nz-appbar--back .nz-appbar__inner {
	padding-left: 4px;
}

.nz-appbar__left,
.nz-appbar__right {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	min-width: 0;
}

.nz-appbar__right {
	gap: 0;
}

.nz-appbar__logo {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--nz-brand, #6f6467);
	text-decoration: none;
}

.nz-appbar__wordmark {
	font-family: var(--nz-font-display, "Bodoni Moda", serif);
	font-weight: 500;
	font-size: 22px;
	line-height: 1;
	letter-spacing: .12em;
	text-transform: none;
}

.nz-appbar__logo-img {
	display: block;
	height: 24px;
	width: auto;
	max-width: 160px;
}

.nz-appbar__logo--centre {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

.nz-appbar__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--nz-ink, #1b1918);
	text-decoration: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.nz-appbar__btn:active {
	background: var(--nz-surface-2, #ece8e6);
}

.nz-appbar__btn:focus-visible,
.nz-tab:focus-visible,
.nz-appbar__link:focus-visible {
	outline: 2px solid var(--nz-brand, #6f6467);
	outline-offset: 2px;
}

.nz-appbar__nav {
	display: none;
}

.nz-ico {
	display: block;
	flex: none;
}

/* ---------------------------------------------------------------- Bottom tab bar */
.nz-tabbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 900;
	box-sizing: border-box;
	height: calc(var(--nz-tabbar-h) + env(safe-area-inset-bottom, 0px));
	padding-bottom: env(safe-area-inset-bottom, 0px);
	/* 94% (was 85%): a dark product photo scrolling under the bar must not drag the tab labels below 4.5:1 */
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	box-shadow: 0 -.5px 0 var(--nz-line, #e7e2e0);
	transition: transform 220ms var(--nz-ease);
}

.nz-tabbar--builder {
	position: sticky;
}

.nz-tabbar__list {
	display: flex;
	align-items: stretch;
	height: var(--nz-tabbar-h);
	max-width: 560px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.nz-tabbar__item {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nz-tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	height: 100%;
	min-width: 44px;
	color: var(--nz-ink-3, #716a6c);
	text-decoration: none;
	font-size: 10px;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: .01em;
	-webkit-touch-callout: none;
	user-select: none;
	-webkit-user-select: none;
}

.nz-tab.is-active {
	color: var(--nz-brand, #6f6467);
}

.nz-tab__icon {
	position: relative;
	display: block;
	width: 24px;
	height: 24px;
}

.nz-tab__icon .nz-count {
	top: -5px;
	right: -10px;
}

.nz-tab .nz-ico--fill {
	display: none;
}

.nz-tab.is-active .nz-ico--fill {
	display: block;
}

.nz-tab.is-active .nz-ico--line {
	display: none;
}

.nz-tab__label {
	display: block;
}

/* On-screen keyboard open: slide the bar away. Checkout never shows it. */
html.nz-kb .nz-tabbar {
	transform: translateY(110%);
}

body.woocommerce-checkout .nz-tabbar {
	display: none;
}

/* ---------------------------------------------------------------- Desktop: tab bar -> text nav in the app bar */
@media (min-width: 1024px) {
	.nz-tabbar {
		display: none;
	}

	.nz-appbar__inner {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		padding: 0 16px;
	}

	.nz-appbar__right {
		justify-self: end;
	}

	.nz-appbar__logo--centre {
		position: static;
		transform: none;
		grid-column: 2;
	}

	.nz-appbar--back .nz-appbar__nav {
		display: none;
	}

	.nz-appbar__nav {
		display: flex;
		align-items: center;
		gap: 28px;
		grid-column: 2;
	}

	.nz-appbar__link {
		position: relative;
		padding: 8px 0;
		font-size: 14px;
		font-weight: 500;
		color: var(--nz-ink-2, #6b6466);
		text-decoration: none;
		transition: color 160ms var(--nz-ease);
	}

	.nz-appbar__link:hover,
	.nz-appbar__link.is-active {
		color: var(--nz-ink, #1b1918);
	}

	.nz-appbar__link.is-active::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 2px;
		height: 1.5px;
		background: var(--nz-brand, #6f6467);
	}
}

/* ---------------------------------------------------------------- Sheets (history-aware overlays) */
/* Closed = the [hidden] attribute (JS removes it, forces a reflow, then adds .is-open so the transition runs). */
.nz-sheet {
	position: fixed;
	inset: 0;
	z-index: 1000;
}

.nz-sheet[hidden] {
	display: none;
}

.nz-sheet.is-closing {
	pointer-events: none;
}

.nz-sheet__scrim {
	position: absolute;
	inset: 0;
	background: var(--nz-scrim, rgba(20, 18, 17, .4));
	opacity: 0;
	transition: opacity 320ms var(--nz-ease);
}

.nz-sheet.is-open .nz-sheet__scrim {
	opacity: 1;
}

.nz-sheet__panel {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	max-height: 90vh;
	max-height: 90dvh;
	padding-bottom: env(safe-area-inset-bottom, 0px);
	background: var(--nz-bg, #fff);
	border-radius: 22px 22px 0 0;
	box-shadow: 0 -8px 30px rgba(0, 0, 0, .08);
	overscroll-behavior: contain;
	transform: translateY(100%);
	transition: transform 320ms var(--nz-ease);
	will-change: transform;
}

.nz-sheet.is-open .nz-sheet__panel {
	transform: none;
}

.nz-sheet.is-dragging .nz-sheet__panel,
.nz-sheet.is-dragging .nz-sheet__scrim {
	transition: none;
}

.nz-sheet__handle {
	flex: none;
	display: block;
	width: 100%;
	padding: 8px 0 6px;
	background: var(--nz-surface, #f5f3f2);
	border-radius: 22px 22px 0 0;
	touch-action: none;
	cursor: grab;
}

.nz-sheet__handle::before {
	content: "";
	display: block;
	width: 36px;
	height: 5px;
	margin: 0 auto;
	border-radius: 3px;
	background: var(--nz-ink-3, #716a6c);
	opacity: .5;
}

.nz-sheet__head {
	touch-action: none;
}

/* Full-screen variant (search): no handle, fades up instead of sliding. */
.nz-sheet[data-nz-sheet="full"] .nz-sheet__panel {
	top: 0;
	max-height: none;
	border-radius: 0;
	box-shadow: none;
	opacity: 0;
	transform: translateY(14px);
	transition: transform 320ms var(--nz-ease), opacity 220ms var(--nz-ease);
}

.nz-sheet[data-nz-sheet="full"].is-open .nz-sheet__panel {
	opacity: 1;
	transform: none;
}

.nz-sheet[data-nz-sheet="full"] .nz-sheet__scrim {
	display: none;
}

@media (min-width: 1024px) {
	.nz-sheet:not([data-nz-sheet="full"]) .nz-sheet__panel {
		left: 50%;
		right: auto;
		width: min(560px, 100%);
		transform: translate(-50%, 100%);
	}

	.nz-sheet:not([data-nz-sheet="full"]).is-open .nz-sheet__panel {
		transform: translate(-50%, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nz-sheet__panel,
	.nz-sheet__scrim,
	.nz-sheet[data-nz-sheet="full"] .nz-sheet__panel {
		transition-duration: 1ms;
	}
	.nz-count.is-pop {
		animation: none;
	}
}

/* ---------------------------------------------------------------- Search overlay */
.nz-search__panel {
	background: var(--nz-bg, #fff);
	padding-top: env(safe-area-inset-top, 0px);
}

.nz-search__bar {
	flex: none;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 8px 8px 8px 16px;
}

.nz-search__field {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
	height: 40px;
	padding: 0 36px 0 12px;
	box-sizing: border-box;
	gap: 8px;
	border-radius: 12px;
	background: var(--nz-surface, #f5f3f2);
	color: var(--nz-ink-3, #716a6c);
}

.nz-search__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	color: var(--nz-ink, #1b1918);
	font: 400 16px/1.2 var(--nz-font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif); /* 16px: no iOS zoom */
	-webkit-appearance: none;
	appearance: none;
}

.nz-search__input::placeholder {
	color: #a39c9e;
}

.nz-search__input::-webkit-search-cancel-button,
.nz-search__input::-webkit-search-decoration {
	-webkit-appearance: none;
	display: none;
}

.nz-search__clear {
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--nz-ink-3, #716a6c);
	cursor: pointer;
}

.nz-search__clear[hidden] {
	display: none;
}

.nz-search__cancel {
	flex: none;
	min-height: 44px;
	padding: 0 8px;
	border: 0;
	background: transparent;
	color: var(--nz-brand, #6f6467);
	font: 500 16px/1 var(--nz-font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	cursor: pointer;
}

.nz-search__body {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 4px 16px calc(24px + env(safe-area-inset-bottom, 0px));
}

.nz-search__section {
	margin: 12px 0 20px;
}

.nz-search__section[hidden],
.nz-search__results[hidden],
.nz-search__empty[hidden],
.nz-search__loading[hidden] {
	display: none;
}

.nz-search__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
}

.nz-search__title {
	margin: 0 0 8px;
	font: 600 13px/1.2 var(--nz-font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--nz-ink-2, #6b6466);
}

.nz-search__link {
	padding: 4px 0;
	border: 0;
	background: transparent;
	color: var(--nz-brand, #6f6467);
	font: 500 14px/1 var(--nz-font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	cursor: pointer;
}

.nz-search__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nz-search__chips .nz-chip {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: var(--nz-surface, #f5f3f2);
	color: var(--nz-ink, #1b1918);
	font: 500 14px/1 var(--nz-font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	cursor: pointer;
}

.nz-search__chips .nz-chip:active {
	background: var(--nz-surface-2, #ece8e6);
}

.nz-search__group {
	margin: 8px 0 18px;
}

.nz-search__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nz-result {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 64px;
	padding: 6px 8px;
	margin: 0 -8px;
	border-radius: var(--nz-r-m, 14px);
	color: var(--nz-ink, #1b1918);
	text-decoration: none;
}

.nz-result:active,
.nz-result:focus-visible {
	background: var(--nz-surface, #f5f3f2);
	outline: 0;
}

.nz-result__img {
	flex: none;
	width: 48px;
	height: 60px; /* 4:5 */
	border-radius: 8px;
	object-fit: cover;
	background: var(--nz-surface, #f5f3f2);
}

.nz-result__text {
	flex: 1 1 auto;
	min-width: 0;
}

.nz-result__title {
	display: block;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nz-result__meta {
	display: block;
	margin-top: 2px;
	font-size: 14px;
	line-height: 1.3;
	color: var(--nz-ink-2, #6b6466);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nz-search__empty,
.nz-search__loading {
	margin: 32px 0;
	text-align: center;
	font-size: 14px;
	color: var(--nz-ink-2, #6b6466);
}

.nz-search-placeholder {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border: 1px dashed var(--nz-line, #e7e2e0);
	border-radius: var(--nz-r-m, 14px);
	color: var(--nz-ink-2, #6b6466);
	font-size: 14px;
	line-height: 1.4;
}

/* ---------------------------------------------------------------- Style page: the buy bar sits ON TOP of the tab bar
   (owner 2026-10-08: the tab bar must stay reachable on product pages). */
:root {
	--nz-buybar-h: 72px;
	--nz-toast-bottom: calc(var(--nz-tabbar-h) + env(safe-area-inset-bottom, 0px) + 12px);
}

body:has(.nz-buybar:not(.nz-buybar--builder)),
body.single-product.nz-has-tabbar:has(.nz-buybar:not(.nz-buybar--builder)) {
	--nz-toast-bottom: calc(var(--nz-buybar-h) + var(--nz-tabbar-h) + env(safe-area-inset-bottom, 0px) + 12px);
	padding-bottom: calc(var(--nz-buybar-h) + var(--nz-tabbar-h) + env(safe-area-inset-bottom, 0px));
}

/* Keyboard open: the tab bar hides itself, so the buy bar drops to the bottom edge. */
html.nz-kb .nz-buybar {
	bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 1024px) {
	body:has(.nz-buybar:not(.nz-buybar--builder)),
	body.single-product.nz-has-tabbar:has(.nz-buybar:not(.nz-buybar--builder)) {
		padding-bottom: 0;
		--nz-toast-bottom: 24px;
	}
}

/* ---------------------------------------------------------------- Toast */
.nz-toasts {
	position: fixed;
	left: 0;
	right: 0;
	bottom: var(--nz-toast-bottom);
	z-index: 1100;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 0 16px;
	box-sizing: border-box;
	pointer-events: none;
}

.nz-toasts.is-top {
	bottom: auto;
	top: calc(env(safe-area-inset-top, 0px) + 12px);
}

.nz-toast {
	max-width: min(420px, 100%);
	padding: 11px 16px;
	border-radius: 999px;
	background: var(--nz-ink, #1b1918);
	color: var(--nz-bg, #fff);
	font: 500 14px/1.3 var(--nz-font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	text-align: center;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
	opacity: 0;
	transform: translateY(8px) scale(.98);
	transition: opacity 220ms var(--nz-ease), transform 220ms var(--nz-ease);
}

.nz-toasts.is-top .nz-toast {
	transform: translateY(-8px) scale(.98);
}

.nz-toast.is-in {
	opacity: 1;
	transform: none;
}

.nz-toast--error {
	background: var(--nz-deal, #bf3228);
}

.nz-toast--success {
	background: var(--nz-ok, #2e7d4f);
}

html.nz-kb .nz-toasts {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.nz-toast {
		transition: opacity 1ms;
		transform: none;
	}
}

/* Toast action ("View saved", "Undo"): the toast row is click-through, an action makes that toast tappable. */
.nz-toast.has-action {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-right: 8px;
	pointer-events: auto;
}

.nz-toast__action {
	flex: none;
	min-height: 32px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .16);
	color: inherit;
	font: 600 14px/32px var(--nz-font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	text-decoration: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.nz-toast__action:active {
	background: rgba(255, 255, 255, .3);
}

/* ---------------------------------------------------------------- Accessibility baseline */

/* One keyboard focus ring for every interactive element: brand colour, 2px. `html :where()` = low specificity (beats the
   theme's bare input:focus-visible by source order, loses to any component rule), so a component can move the offset or
   radius but should never remove it. */
html :where(a[href], button, input, select, textarea, summary, [role="button"], [role="tab"], [tabindex]:not([tabindex="-1"])):focus-visible {
	outline: 2px solid var(--nz-brand, #6f6467);
	outline-offset: 2px;
}

/* Text fields: the ring sits inside the field edge so it is never clipped by a card or sheet. */
html :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus-visible {
	outline-offset: -2px;
}

/* "See all" links: keep the text where it is, give the touch box a 44px floor. */
.nz-home-seeall {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	min-width: 44px;
	min-height: 44px;
}

/* Hero dots: a 6px dot is untappable. Each dot is a 24 x 44px touch box with the visible dot drawn by ::before; the row keeps
   its old 6px height (the boxes overflow it) so nothing below moves. */
body .nz-home-dots {
	column-gap: 0;
	height: 6px;
	overflow: visible;
}

body .nz-home-dots .nz-home-dot,
body .nz-home-dots .nz-home-dot.is-active {
	flex: 0 0 24px;
	width: 24px;
	height: 44px;
	background-color: transparent;
	transition: none;
}

body .nz-home-dots .nz-home-dot::after {
	content: none;
}

body .nz-home-dots .nz-home-dot::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 6px;
	height: 6px;
	margin: -3px 0 0 -3px;
	border-radius: 999px;
	background-color: var(--nz-surface-2, #ece8e6);
	transition: width 220ms var(--nz-ease, cubic-bezier(.2, .8, .2, 1)), margin 220ms var(--nz-ease, cubic-bezier(.2, .8, .2, 1)), background-color 220ms var(--nz-ease, cubic-bezier(.2, .8, .2, 1));
}

body .nz-home-dots .nz-home-dot.is-active::before {
	width: 18px;
	margin-left: -9px;
	background-color: var(--nz-ink, #1b1918);
}

@media (prefers-reduced-motion: reduce) {
	body .nz-home-dots .nz-home-dot::before {
		transition: none;
	}
}

/* Bricks prints this helper text outside any landmark; it is only an aria-describedby target, so it does not need to render. */
#brx-new-tab-link-description {
	display: none;
}

html input[type="checkbox"]:focus-visible,
html input[type="radio"]:focus-visible {
	outline: 2px solid var(--nz-brand, #6f6467);
	outline-offset: 2px;
}

/* ---------------------------------------------------------------- Chat widget (WooCommerce > Nizu App > Chat widget)
   A third-party chat bubble (uChat, Tawk, Crisp, Tidio, Intercom, HubSpot, Zendesk ...) is fixed to the bottom-right corner
   and would sit on top of the tab bar / the product buy bar. Lift it by the height of whichever bar is on the page, plus the
   iPhone home-indicator inset, and hide it on checkout (the code is not printed there either). !important is needed because
   the vendors set their position inline. */
:root {
	--nz-chat-bottom: calc(var(--nz-tabbar-h) + env(safe-area-inset-bottom, 0px) + 12px);
}

body:has(.nz-buybar:not(.nz-buybar--builder)) {
	--nz-chat-bottom: calc(var(--nz-buybar-h) + env(safe-area-inset-bottom, 0px) + 12px);
}

@media (min-width: 1024px) {
	:root,
	body:has(.nz-buybar:not(.nz-buybar--builder)) {
		--nz-chat-bottom: 20px;
	}
}

#nizu-chat,
[id*="uchat" i],
[class*="uchat" i],
#tawkchat-container,
.tawk-min-container,
iframe[id^="tawk" i],
#crisp-chatbox > div > a,
.crisp-client .cc-1brb6 .cc-1yy0g,
#tidio-chat,
#tidio-chat-iframe,
#intercom-container .intercom-launcher,
.intercom-lightweight-app-launcher,
#hubspot-messages-iframe-container,
#launcher,
iframe#launcher,
.zEWidget-launcher,
#chat-widget-container,
#chatbase-bubble-button,
#chatbase-bubble-window {
	bottom: var(--nz-chat-bottom) !important;
}

body.woocommerce-checkout #nizu-chat,
body.woocommerce-checkout [id*="uchat" i],
body.woocommerce-checkout [class*="uchat" i],
body.woocommerce-checkout #tawkchat-container,
body.woocommerce-checkout .tawk-min-container,
body.woocommerce-checkout iframe[id^="tawk" i],
body.woocommerce-checkout #crisp-chatbox,
body.woocommerce-checkout #tidio-chat,
body.woocommerce-checkout #tidio-chat-iframe,
body.woocommerce-checkout #intercom-container,
body.woocommerce-checkout .intercom-lightweight-app,
body.woocommerce-checkout #hubspot-messages-iframe-container,
body.woocommerce-checkout #launcher,
body.woocommerce-checkout .zEWidget-launcher,
body.woocommerce-checkout #chat-widget-container,
body.woocommerce-checkout #chatbase-bubble-button,
body.woocommerce-checkout #chatbase-bubble-window {
	display: none !important;
}
