/* nunshen-ui — sticky "Ajouter au panier" on the product page (sticky-buy.js). Brand: CORE SANS, crème + black,
   radius 1 px, no letter-spacing. Phones/tablets: bar at the bottom; desktop (≥1025 px): card bottom-right. */

.nui-sbar {
	position: fixed;
	z-index: 99; /* under the header (100), the side cart (9998), popups and the search sheet */
	left: 0;
	right: 0;
	bottom: 0;
	font-family: var(--nui-font, "CORE SANS", sans-serif);
	color: var(--nui-black, #000);
	background: var(--nui-creme, #F4F0EC);
	box-shadow: 0 -4px 20px rgba(0, 0, 0, .08);
	transform: translateY(110%);
	opacity: 0;
	visibility: hidden;
	transition: transform .25s ease, opacity .25s ease, visibility 0s linear .25s;
}
.nui-sbar.is-shown {
	transform: none;
	opacity: 1;
	visibility: visible;
	transition: transform .25s ease, opacity .25s ease, visibility 0s;
}
.nui-sbar p { margin: 0; }
.nui-sbar__inner {
	max-width: 640px;
	margin: 0 auto;
	padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
}
.nui-sbar__img,
.nui-sbar__name,
.nui-sbar__price--big { display: none; }
.nui-sbar__line {
	margin: 0 0 8px !important;
	font-size: 13px;
	font-weight: var(--nui-w-light, 200);
	line-height: 1.35;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.nui-sbar__format { font-weight: var(--nui-w-regular, 400); }
.nui-sbar__price { font-weight: var(--nui-w-bold, 600); }
.nui-sbar__price del { font-weight: var(--nui-w-light, 200); opacity: .6; margin-right: 4px; }
.nui-sbar__price ins { text-decoration: none; }
.nui-sbar .nui-sbar__change {
	display: inline;
	margin: 0 0 0 10px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	font: inherit;
	font-weight: var(--nui-w-regular, 400);
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.nui-sbar .nui-sbar__change:hover,
.nui-sbar .nui-sbar__change:focus { background: none; color: inherit; text-decoration-thickness: 2px; }
.nui-sbar .nui-sbar__change[hidden] { display: none; }
.nui-sbar--choose .nui-sbar__format { font-weight: var(--nui-w-bold, 600); }

/* same button as the buy box */
.nui-sbar .nui-sbar__btn {
	display: block;
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--nui-black, #000);
	border-radius: var(--nui-radius, 1px);
	background: var(--nui-black, #000);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: var(--nui-w-bold, 600);
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
/* the theme/kit restyles hovered/focused buttons (white background, and touch screens keep :hover after a tap):
   keep ours black; only a real mouse hover inverts it */
.nui-sbar .nui-sbar__btn:hover,
.nui-sbar .nui-sbar__btn:focus,
.nui-sbar .nui-sbar__btn:active { background: var(--nui-black, #000); color: #fff; }
.nui-sbar .nui-sbar__btn:focus-visible { outline: 2px solid var(--nui-black, #000); outline-offset: 2px; }
@media (hover: hover) {
	.nui-sbar .nui-sbar__btn:hover { background: #fff; color: var(--nui-black, #000); }
}
.nui-sbar .nui-sbar__btn.is-busy { opacity: .6; pointer-events: none; }
.nui-sbar--choose .nui-sbar__btn { background: transparent; color: var(--nui-black, #000); }

/* desktop: a card bottom-right */
@media (min-width: 1025px) {
	.nui-sbar {
		left: auto;
		right: 24px;
		bottom: 24px;
		width: 400px;
		border-radius: var(--nui-radius, 1px);
		box-shadow: var(--nui-shadow, 0 4px 20px rgba(0, 0, 0, .12));
		transform: translateY(16px);
	}
	.nui-sbar__inner {
		display: grid;
		grid-template-columns: 72px 1fr;
		grid-template-areas: "img info" "btn btn";
		gap: 14px 16px;
		max-width: none;
		padding: 16px;
	}
	.nui-sbar--noimg .nui-sbar__inner { grid-template-columns: 1fr; grid-template-areas: "info" "btn"; }
	.nui-sbar__img {
		display: block;
		grid-area: img;
		width: 72px;
		height: 72px;
		object-fit: cover;
		background: #fff;
	}
	.nui-sbar__info { grid-area: info; min-width: 0; align-self: center; }
	.nui-sbar__name {
		display: -webkit-box;
		margin: 0 0 4px !important;
		overflow: hidden;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		font-size: 14px;
		font-weight: var(--nui-w-bold, 600);
		line-height: 1.3;
		text-transform: uppercase;
	}
	.nui-sbar__line { margin: 0 0 4px !important; text-align: left; }
	.nui-sbar__line .nui-sbar__sep,
	.nui-sbar__line .nui-sbar__price { display: none; }
	.nui-sbar--simple .nui-sbar__line { display: none; }
	.nui-sbar__price--big { display: block; font-size: 18px; line-height: 1.2; }
	.nui-sbar .nui-sbar__btn { grid-area: btn; height: 48px; font-size: 14px; }
}

/* the reCAPTCHA badge (bottom-right) moves above the bar / card while it is shown */
.grecaptcha-badge { transition: bottom .25s ease !important; }
html.nui-sbar-on .grecaptcha-badge { bottom: calc(var(--nui-sbar-h, 0px) + 14px) !important; }
@media (min-width: 1025px) {
	html.nui-sbar-on .grecaptcha-badge { bottom: calc(var(--nui-sbar-h, 0px) + 38px) !important; }
}

@media (prefers-reduced-motion: reduce) {
	.nui-sbar, .nui-sbar.is-shown { transition: none; }
}
@media print {
	.nui-sbar { display: none !important; }
}
