/* CC Bundles. Tout est scope sous .ccb et n'utilise aucune classe du theme :
   un changement de version de Salient ne peut pas casser ce rendu. */

/* Ligne decochee : visible mais retiree du calcul, pour que le client voie
   ce qu'il perd en la decochant. */
.ccb .ccb-row--addon.ccb-off {
	opacity: .5;
}
.ccb .ccb-row--addon.ccb-off .ccb-price del {
	display: none;
}

.ccb {
	--ccb-accent: #b4654a;
	--ccb-line: #e7e2dc;
	--ccb-ink: #2b2724;
	--ccb-soft: #faf8f6;
	box-sizing: border-box;
	margin: 48px auto;
	max-width: 900px;
	padding: 28px;
	border: 1px solid var(--ccb-line);
	border-radius: 14px;
	background: #fff;
	font-family: inherit;
	color: var(--ccb-ink);
	clear: both;
}

.ccb *,
.ccb *::before,
.ccb *::after {
	box-sizing: border-box;
}

.ccb-head {
	margin-bottom: 22px;
	text-align: center;
}

.ccb-title {
	margin: 0 0 6px;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--ccb-ink);
}

.ccb-sub {
	margin: 0;
	font-size: 14px;
	color: #6f6761;
}

.ccb-sub .amount {
	font-weight: 600;
	color: var(--ccb-accent);
}

/* --- lignes --- */

.ccb-rows {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
	justify-content: center;
}

.ccb-row {
	position: relative;
	display: flex;
	flex: 1 1 220px;
	min-width: 200px;
	max-width: 280px;
	flex-direction: column;
	gap: 10px;
	padding: 14px;
	border: 1px solid var(--ccb-line);
	border-radius: 10px;
	background: var(--ccb-soft);
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ccb-row--addon:hover {
	border-color: var(--ccb-accent);
}

.ccb-row.ccb-needs-pick {
	border-color: #c0392b;
	box-shadow: 0 0 0 3px rgba( 192, 57, 43, 0.12 );
}

.ccb-row.ccb-oos {
	opacity: 0.5;
}

.ccb-row.ccb-loading {
	opacity: 0.6;
	pointer-events: none;
}

.ccb-plus {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 24px;
	font-size: 22px;
	font-weight: 300;
	color: #b3aaa3;
	user-select: none;
}

/* --- case a cocher --- */

.ccb-check {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	margin: 0;
	cursor: pointer;
	line-height: 0;
}

.ccb-check input {
	position: absolute;
	opacity: 0;
	width: 22px;
	height: 22px;
	margin: 0;
	cursor: pointer;
}

.ccb-box {
	display: block;
	width: 22px;
	height: 22px;
	border: 2px solid #c6bdb6;
	border-radius: 5px;
	background: #fff;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.ccb-check input:checked + .ccb-box {
	border-color: var(--ccb-accent);
	background: var(--ccb-accent);
}

.ccb-check input:checked + .ccb-box::after {
	content: "";
	display: block;
	width: 6px;
	height: 11px;
	margin: 2px auto 0;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate( 45deg );
}

.ccb-check input:focus-visible + .ccb-box {
	outline: 2px solid var(--ccb-accent);
	outline-offset: 2px;
}

.ccb-box--locked {
	border-color: var(--ccb-accent);
	background: var(--ccb-accent);
	opacity: 0.55;
}

.ccb-box--locked::after {
	content: "";
	display: block;
	width: 6px;
	height: 11px;
	margin: 2px auto 0;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate( 45deg );
}

/* --- visuel --- */

.ccb-thumb {
	display: block;
	overflow: hidden;
	border-radius: 8px;
	background: #fff;
	aspect-ratio: 1 / 1;
}

.ccb-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
	border-radius: 8px;
}

/* --- texte --- */

.ccb-info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.ccb-badge {
	align-self: flex-start;
	padding: 2px 8px;
	border-radius: 999px;
	background: #efe9e4;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #7a6f68;
}

.ccb-name {
	font-size: 14px;
	line-height: 1.35;
	font-weight: 600;
	color: var(--ccb-ink);
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

a.ccb-name:hover {
	color: var(--ccb-accent);
}

.ccb-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	font-size: 15px;
}

.ccb-price del {
	font-size: 13px;
	color: #9a918b;
	text-decoration: line-through;
}

.ccb-price ins {
	font-weight: 700;
	color: var(--ccb-accent);
	text-decoration: none;
	background: none;
}

/* --- selecteurs de variation --- */

.ccb-vars {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 2px;
}

.ccb-attr {
	width: 100%;
	max-width: 100%;
	height: auto;
	min-height: 36px;
	padding: 7px 10px;
	border: 1px solid #d5cdc6;
	border-radius: 6px;
	background: #fff;
	font-size: 13px;
	line-height: 1.3;
	color: var(--ccb-ink);
	appearance: auto;
}

.ccb-attr:focus {
	border-color: var(--ccb-accent);
	outline: none;
}

/* --- pied --- */

.ccb-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--ccb-line);
}

.ccb-totals {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ccb-total-label {
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #8a817b;
}

.ccb-total {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.ccb-total del {
	font-size: 15px;
	color: #9a918b;
}

.ccb-total ins {
	font-size: 24px;
	font-weight: 700;
	color: var(--ccb-ink);
	text-decoration: none;
	background: none;
}

.ccb .ccb-add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 32px;
	border: 0;
	border-radius: 8px;
	background: var(--ccb-accent);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.01em;
	color: #fff;
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.15s ease;
	text-transform: none;
}

.ccb .ccb-add:hover {
	filter: brightness( 1.08 );
	color: #fff;
}

.ccb .ccb-add:active {
	transform: translateY( 1px );
}

.ccb .ccb-add.ccb-busy {
	opacity: 0.7;
	cursor: wait;
}

.ccb-msg {
	flex: 1 1 100%;
	margin: 0;
	text-align: center;
	font-size: 13px;
	color: #4f8a4f;
	min-height: 18px;
}

.ccb-msg.is-error {
	color: #c0392b;
}

/* --- badge panier --- */

.ccb-cart-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 6px;
	border-radius: 4px;
	background: #b4654a;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	vertical-align: middle;
}

/* --- mobile --- */

@media ( max-width: 680px ) {
	.ccb {
		margin: 32px auto;
		padding: 18px 14px;
		border-radius: 10px;
	}

	.ccb-rows {
		flex-direction: column;
		gap: 8px;
	}

	.ccb-row {
		flex-direction: row;
		align-items: flex-start;
		max-width: none;
		min-width: 0;
		padding: 12px 12px 12px 42px;
	}

	.ccb-thumb {
		flex: 0 0 78px;
		width: 78px;
	}

	.ccb-info {
		flex: 1 1 auto;
	}

	.ccb-plus {
		flex: 0 0 auto;
		height: 18px;
	}

	.ccb-foot {
		flex-direction: column;
		gap: 14px;
	}

	.ccb .ccb-add {
		width: 100%;
	}

	.ccb-totals {
		align-items: center;
	}
}