/* N14 Product info accordion */
.n14-acc {
	border-top: 1px solid var(--wp--preset--color--line);
}
.n14-acc__item {
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.n14-acc__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 60px;
	padding: 0.75rem 0;
	list-style: none;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.375em;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
.n14-acc__title::-webkit-details-marker {
	display: none;
}
.n14-acc__title::after {
	content: "";
	flex: 0 0 14px;
	height: 14px;
	background:
		linear-gradient(currentColor, currentColor) center / 14px 1px no-repeat,
		linear-gradient(currentColor, currentColor) center / 1px 14px no-repeat;
	transition: transform 0.25s ease;
}
.n14-acc__item[open] > .n14-acc__title::after {
	background: linear-gradient(currentColor, currentColor) center / 14px 1px no-repeat;
}
.n14-acc__panel {
	padding: 0 0 1.5rem;
	font-size: 0.9375em;
	line-height: 1.7;
}
.n14-acc__panel > :first-child {
	margin-top: 0;
}
.n14-acc__panel > :last-child {
	margin-bottom: 0;
}
.n14-acc__item[open] .n14-acc__panel {
	animation: n14-acc-in 0.35s ease;
}
.n14-acc__inci {
	font-size: 0.8125rem;
	line-height: 1.7;
	color: var(--wp--preset--color--muted);
}
.n14-acc__list {
	display: grid;
	gap: 0.75rem;
	margin: 0;
}
.n14-acc__list > div {
	display: grid;
	grid-template-columns: minmax(110px, 34%) 1fr;
	gap: 1rem;
}
.n14-acc__list dt {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.n14-acc__list dd {
	margin: 0;
}
@keyframes n14-acc-in {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.n14-acc__item[open] .n14-acc__panel { animation: none; }
}

/* ---------- Listen button ---------- */
.n14-listen-bar {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
}
.n14-listen {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	min-height: 40px;
	padding: 0 1rem 0 0.75rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
}
.n14-listen[hidden],
.n14-listen__stop[hidden] {
	display: none;
}
.n14-listen:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--surface);
}
.n14-listen__icon {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent currentColor;
}
.n14-listen.is-playing .n14-listen__icon {
	width: 10px;
	height: 12px;
	border: 0;
	background: linear-gradient(90deg, currentColor 0 3px, transparent 3px 7px, currentColor 7px 10px);
}
.n14-listen__stop {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

/* ---------- Side tabs (binder style) ---------- */
.n14-sidetabs {
	--n14-drawer-w: min(480px, 92vw);
	--n14-tab-w: 50px;
	/* Closed: zero width at the right edge, so nothing sits outside the screen (no sideways scroll on phones).
	   Open: it widens to the panel width, and the tabs travel with its left edge. */
	position: fixed;
	top: 0;
	bottom: 0;
	right: 0;
	z-index: 990;
	width: 0;
	transition: width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
	pointer-events: none;
}
.n14-sidetabs.is-open {
	width: var(--n14-drawer-w);
}
.n14-sidetabs__tabs {
	position: absolute;
	top: max(22vh, calc(var(--n14-header-h, 0px) + 24px));
	right: 100%;
	display: flex;
	flex-direction: column;
	gap: 6px;
	pointer-events: auto;
}
.n14-sidetabs__tab {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--n14-tab-w);
	min-height: 150px;
	padding: 1.25rem 0;
	border: 1px solid var(--wp--preset--color--line);
	border-right: 0;
	border-radius: 10px 0 0 10px;
	box-shadow: -6px 6px 18px -10px rgba(28, 24, 24, 0.35);
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 0.2s ease, width 0.2s ease;
}
.n14-sidetabs__tab span {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	white-space: nowrap;
}
.n14-sidetabs__tab--0 { background: var(--wp--preset--color--blush-strong); }
.n14-sidetabs__tab--1 { background: var(--wp--preset--color--blush); }
.n14-sidetabs__tab--2 { background: var(--wp--preset--color--surface); }
.n14-sidetabs__tab--3 { background: var(--wp--preset--color--base); }
@media (hover: hover) and (pointer: fine) {
	.n14-sidetabs:not(.is-retracted) .n14-sidetabs__tab:hover {
		transform: translate3d(-4px, 0, 0);
		transition-delay: 0s;
	}
}
.n14-sidetabs__tab.is-active {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--surface);
	transform: none;
}
.n14-acc.is-tabs-only {
	border-top: 0;
}
.n14-sidetabs__drawer {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}
.n14-sidetabs.is-open .n14-sidetabs__drawer {
	pointer-events: auto;
}
.n14-sidetabs__sheet {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: var(--n14-drawer-w);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 1.5rem 2rem 3rem;
	box-sizing: border-box;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	box-shadow: -24px 0 48px -24px rgba(28, 24, 24, 0.35);
	visibility: hidden;
	transition: visibility 0s linear 0.5s;
}
.n14-sidetabs.is-open .n14-sidetabs__sheet {
	visibility: visible;
	transition-delay: 0s;
}
.n14-sidetabs__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}
.n14-sidetabs__product {
	margin: 0 0 0.25rem;
	font-size: 0.6875rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.n14-sidetabs__title {
	margin: 0 0 1.25rem;
	font-size: 2rem;
	font-weight: 300;
	text-transform: uppercase;
}
.n14-sidetabs__content {
	font-size: 0.9375rem;
	line-height: 1.7;
}
.n14-sidetabs__panel[hidden] {
	display: none;
}
.n14-sidetabs.is-open .n14-sidetabs__panel:not([hidden]) {
	animation: n14-acc-in 0.4s ease;
}
@media (max-width: 1023.98px) {
	.n14-sidetabs {
		--n14-drawer-w: calc(100vw - 48px);
		--n14-tab-w: 40px;
	}
	.n14-sidetabs__tabs {
		top: 26vh;
		top: 26svh;
		bottom: auto;
		max-height: calc(100svh - 26svh - 64px - env(safe-area-inset-bottom, 0px) - 24px);
		gap: 6px;
	}
	.n14-sidetabs__tab {
		flex: 0 1 132px;
		min-height: 96px;
		max-height: 132px;
		padding: 0.75rem 0;
		font-size: 0.75rem;
		letter-spacing: 0.1em;
		border-radius: 9px 0 0 9px;
	}
	.n14-sidetabs__tab span {
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.n14-sidetabs__sheet {
		padding: 1.25rem 1.25rem calc(2rem + env(safe-area-inset-bottom, 0px));
	}
	.n14-sidetabs__title {
		font-size: 1.75rem;
	}
}
@media (prefers-reduced-motion: reduce) {
	.n14-sidetabs { transition: none; }
}

.admin-bar .n14-sidetabs {
	top: var(--wp-admin--admin-bar--height, 0px);
}

/* Hide the side tabs while a shop sheet or the cart popup is open */
html.n14-sheet-open .n14-sidetabs {
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}
html.n14-no-scroll .n14-sidetabs {
	visibility: hidden;
	opacity: 0;
}

/* Dettagli: usage, ingredients and features one under the other */
.n14-info__part + .n14-info__part {
	margin-top: 1.75rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--line);
}
.n14-info__heading {
	margin: 0 0 0.75rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* Retracted while scrolling (smartphone + tablet) */
/* Retract while scrolling: each tab glides half out, one after the other, and comes back the same way. */
.n14-sidetabs__tab {
	will-change: transform;
	transition:
		transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
		opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
		background-color 0.3s ease,
		color 0.3s ease;
}
.n14-sidetabs.is-retracted:not(.is-open) .n14-sidetabs__tab {
	transform: translate3d(55%, 0, 0);
	opacity: 0.75;
}
.n14-sidetabs__tab:nth-child(2) { transition-delay: 0.06s; }
.n14-sidetabs__tab:nth-child(3) { transition-delay: 0.12s; }
.n14-sidetabs__tab:nth-child(4) { transition-delay: 0.18s; }
.n14-sidetabs.is-open .n14-sidetabs__tab {
	transition-delay: 0s;
}

/* Voice menu next to "Ascolta" */
.n14-listen__voice[hidden] {
	display: none;
}
.n14-listen__voice select {
	height: 40px;
	max-width: 11rem;
	padding: 0 2rem 0 0.875rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background-color: var(--wp--preset--color--surface);
	color: inherit;
	font: inherit;
	font-size: 0.75rem;
	text-overflow: ellipsis;
	cursor: pointer;
}
.n14-listen-bar {
	flex-wrap: wrap;
}

/* Assistant inside the side panel */
.n14-sidetabs__content .n14-asst {
	padding: 0;
	border: 0;
	background: none;
}
.n14-sidetabs__content .n14-asst__title {
	display: none;
}

/* Away from the product area: slide out completely, gently */
.n14-sidetabs.is-away:not(.is-open) .n14-sidetabs__tab {
	transform: translate3d(115%, 0, 0);
	opacity: 0;
	pointer-events: none;
}

/* Invitation: the first tab leans out showing a white strip with a short text,
   until the visitor opens a tab once. */
.n14-sidetabs {
	--n14-peek-w: 92px;
}
.n14-sidetabs__peek {
	position: absolute;
	right: 0;
	top: var(--n14-peek-top, 30vh);
	z-index: 1;
	width: 0;
	height: var(--n14-peek-h, 120px);
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 0;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	box-shadow: -10px 10px 24px -14px rgba(28, 24, 24, 0.4);
	font: inherit;
	cursor: pointer;
	pointer-events: none;
	transition: width 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.n14-sidetabs__peek span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--n14-peek-w);
	height: 100%;
	padding: 0 0.75rem;
	box-sizing: border-box;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.35;
	text-align: left;
}
.n14-sidetabs__peek span::after {
	content: "‹";
	margin-left: 0.25rem;
	font-size: 1.25rem;
	line-height: 1;
}
.n14-sidetabs.is-peek .n14-sidetabs__peek {
	width: var(--n14-peek-w);
	pointer-events: auto;
}
.n14-sidetabs.is-peek .n14-sidetabs__tab:first-child {
	transform: translate3d(calc(-1 * var(--n14-peek-w)), 0, 0);
	transition-delay: 0s;
}
@media (min-width: 1024px) {
	.n14-sidetabs {
		--n14-peek-w: 120px;
	}
	.n14-sidetabs__peek span {
		font-size: 0.8125rem;
	}
}
@media (prefers-reduced-motion: reduce) {
	.n14-sidetabs__peek { transition: none; }
}

/* The invitation hides with the tabs past the product area, and comes back with them. */
.n14-sidetabs.is-away .n14-sidetabs__peek,
.n14-sidetabs.is-open .n14-sidetabs__peek {
	width: 0;
	pointer-events: none;
}
.n14-sidetabs.is-peek.is-retracted .n14-sidetabs__tab:first-child {
	transform: translate3d(calc(-1 * var(--n14-peek-w)), 0, 0);
	opacity: 1;
}
