/* Mon Sac Bandoulière - Jauge panier & Upsells */

/* ---------- Jauge ---------- */
.msbcb-gauge {
	--msbcb-color: var(--msbcb-main, #3bb54a);
	width: 100%;
	padding: 12px 0 6px;
	color: #111;
	font-size: 13px;
	line-height: 1.4;
	text-align: center;
	box-sizing: border-box;
}
.msbcb-gauge--mini {
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	margin-bottom: 4px;
}
.msbcb-gauge--page {
	max-width: 560px;
	margin: 0 auto 1.5em;
	font-size: 14px;
}
.msbcb-gauge__msg {
	margin: 0 0 12px;
}
.msbcb-gauge__ok {
	display: block;
	margin-bottom: 2px;
	color: #2e7d32;
	font-size: 12px;
}
.msbcb-gauge__track {
	position: relative;
	height: 8px;
	margin: 0 14px 30px;
	border-radius: 8px;
	background: #eee;
}
.msbcb-gauge__fill {
	height: 100%;
	max-width: 100%;
	border-radius: inherit;
	background: var(--msbcb-color);
	transition: width 0.4s ease;
}
.msbcb-gauge__step {
	position: absolute;
	top: 50%;
	width: 26px;
	height: 26px;
	margin: -13px 0 0 -13px;
	border: 2px solid #ddd;
	border-radius: 50%;
	background: #fff;
	box-sizing: border-box;
}
.msbcb-gauge__step.is-done {
	border-color: var(--msbcb-color);
	background: var(--msbcb-color);
}
.msbcb-gauge__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 12px;
	line-height: 1;
}
.msbcb-gauge__amt {
	position: absolute;
	top: 26px;
	left: 50%;
	transform: translateX(-50%);
	color: #777;
	font-size: 11px;
	white-space: nowrap;
}
.msbcb-free {
	color: #2e7d32;
}

/* ---------- Quantités − / + (panier latéral) ---------- */
.msbcb-qty-line {
	display: flex !important;
	align-items: center;
	gap: 6px;
	margin-top: 6px !important;
}
.msbcb-qty {
	display: inline-flex;
	align-items: center;
	overflow: hidden;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
}
.msbcb-qty .msbcb-qty__btn {
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #111;
	font-size: 16px;
	line-height: 28px;
	cursor: pointer;
}
.msbcb-qty .msbcb-qty__btn:hover {
	background: #f5f5f5;
}
.msbcb-qty .msbcb-qty__btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}
.msbcb-qty__val {
	min-width: 24px;
	color: #111;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
}
/* ---------- Code promo (panier latéral) ---------- */
.msbcb-coupon {
	padding: 10px 0 0;
	font-size: 13px;
}
.msbcb-coupon__applied {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
	padding: 6px 10px;
	border: 1px dashed var(--msbcb-main, #3bb54a);
	border-radius: 6px;
	background: #f6f7f5;
}
.msbcb-coupon__code {
	flex: 1;
	font-weight: 600;
}
.msbcb-coupon__amount {
	color: #2e7d32;
	font-weight: 600;
}
.msbcb-coupon .msbcb-coupon__remove {
	width: 22px;
	height: 22px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #666;
	font-size: 18px;
	line-height: 22px;
	cursor: pointer;
}
.msbcb-coupon__total {
	display: flex;
	justify-content: space-between;
	margin: 8px 0 0;
	color: #111;
	font-size: 16px;
	font-weight: 700;
}
.msbcb-coupon__ship {
	margin: 0 0 10px;
	color: #777;
	font-size: 12px;
	text-align: right;
}
.msbcb-coupon .msbcb-coupon__toggle {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #111;
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
}
.msbcb-coupon__form {
	display: none;
	gap: 6px;
	margin-top: 8px;
}
.msbcb-coupon.is-open .msbcb-coupon__form {
	display: flex;
}
.msbcb-coupon .msbcb-coupon__input {
	flex: 1;
	min-width: 0;
	height: 38px;
	padding: 0 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 13px;
	text-transform: uppercase;
}
.msbcb-coupon .msbcb-coupon__apply {
	height: 38px;
	padding: 0 14px;
	border: 0;
	border-radius: 6px;
	background: #111;
	color: #fff;
	font-size: 13px;
	cursor: pointer;
}
.msbcb-coupon__msg {
	margin: 6px 0 0;
	font-size: 12px;
}
.msbcb-coupon__msg.is-error {
	color: #d63638;
}
.msbcb-coupon__msg.is-success {
	color: #2e7d32;
}
.msbcb-coupon.msbcb-updating,
li.msbcb-updating {
	opacity: 0.5;
	pointer-events: none;
}

/* ---------- Upsells : cartes ---------- */
.msbcb-upsell-panel,
.msbcb-upsell-strip {
	display: none;
}
.msbcb-upsell__title {
	margin: 0 0 12px;
	color: #111;
	font-size: 15px;
	font-weight: 600;
}
.msbcb-upsell__list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.msbcb-card {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 10px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	font-size: 13px;
	line-height: 1.35;
}
.msbcb-card:last-child {
	border-bottom: 0;
}
.msbcb-card__img {
	flex: 0 0 64px;
}
.msbcb-card__img img {
	display: block;
	width: 64px;
	height: 64px;
	margin: 0;
	border-radius: 6px;
	object-fit: cover;
}
.msbcb-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.msbcb-card__name {
	display: -webkit-box;
	overflow: hidden;
	color: #222;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.msbcb-card__name:hover {
	color: #111;
}
.msbcb-card__price {
	color: #111;
	font-weight: 600;
}
.msbcb-card__price del {
	opacity: 0.6;
	font-weight: 400;
}
.msbcb-card__buy {
	display: flex;
	gap: 6px;
}
.msbcb-card .msbcb-var {
	flex: 1;
	min-width: 0;
	height: 32px;
	padding: 0 6px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background-color: #fff;
	font-size: 12px;
}
.msbcb-card .msbcb-var.msbcb-err {
	border-color: #d63638;
}
.msbcb-card .msbcb-add {
	flex: 0 0 auto;
	height: 32px;
	padding: 0 12px;
	border: 0;
	border-radius: 6px;
	background: var(--msbcb-main, #3bb54a);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 32px;
	cursor: pointer;
}
.msbcb-card .msbcb-add:hover {
	filter: brightness(0.95);
}
.msbcb-card .msbcb-add.loading {
	opacity: 0.6;
	cursor: wait;
}

/* ---------- Bureau : volet à gauche du panier latéral ---------- */
@media (min-width: 900px) {
	/* !important : le CSS additionnel du site fige le tiroir à 380 px / padding 20 px en !important. */
	body.msbcb-up-on .shoptimizer-mini-cart-wrap {
		right: -760px;
		width: 700px !important;
		padding-left: 340px !important;
		box-sizing: border-box;
	}
	body.msbcb-up-on.drawer-open .shoptimizer-mini-cart-wrap {
		right: 0;
	}
	.shoptimizer-mini-cart-wrap .msbcb-upsell-panel.has-items {
		display: block;
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
		width: 320px;
		padding: 16px 20px;
		overflow-y: auto;
		border-right: 1px solid #e6e8e4;
		background: #f6f7f5;
		box-sizing: border-box;
		overscroll-behavior: contain;
	}
}

/* ---------- Mobile / tablette : bandeau horizontal dans le panier ---------- */
@media (max-width: 899px) {
	.shoptimizer-mini-cart-wrap .msbcb-upsell-strip.has-items {
		display: block;
		margin: 0 -20px;
		padding: 12px 20px 4px;
		border-top: 1px solid #e2e2e2;
		background: #f6f7f5;
	}
	.msbcb-upsell-strip .msbcb-upsell__title {
		margin-bottom: 8px;
		font-size: 14px;
	}
	.msbcb-upsell-strip .msbcb-upsell__list {
		display: flex;
		gap: 10px;
		overflow-x: auto;
		padding-bottom: 8px;
		scroll-snap-type: x mandatory;
	}
	.msbcb-upsell-strip .msbcb-card {
		flex: 0 0 250px;
		padding: 8px;
		border: 1px solid #e6e8e4;
		border-radius: 8px;
		background: #fff;
		scroll-snap-align: start;
	}
	.msbcb-upsell-strip .msbcb-card:last-child {
		border-bottom: 1px solid #e6e8e4;
	}
	.msbcb-upsell-strip .msbcb-card__img,
	.msbcb-upsell-strip .msbcb-card__img img {
		flex-basis: 52px;
		width: 52px;
		height: 52px;
	}
	.msbcb-upsell-strip .msbcb-card__name {
		-webkit-line-clamp: 1;
	}
}

.msbcb-gauge__gift {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
}
.msbcb-gauge .msbcb-gift-restore {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #111;
	font-size: 12px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}
