/**
 * Voir elementor-globals-map.md pour la correspondance hash <-> couleur/typo.
 * Typographies utilisées (voir table "Corps de texte & labels" du mapping) :
 * - 61d3dcb  : Inter 600, 0.875rem (titre du bloc)
 * - 657a611  : Inter 600, 0.75rem  (nom produit)
 * - f8a4213  : Inter 400, 0.75rem  (prix)
 */

.ctbt-cart-upsells {
	padding: 16px;
	background-color: var(--e-global-color-75caaa8, #EDE3C4);
	border-radius: 12px;
}

.ctbt-cart-upsells__title {
	font-size: var(--e-global-typography-61d3dcb-font-size, 0.875rem);
	font-weight: var(--e-global-typography-61d3dcb-font-weight, 600);
	color: var(--e-global-color-3f56ae9, #2C1810);
	margin: 0 0 12px;
}

.ctbt-cart-upsells__list {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	cursor: grab;
	/* padding + marge négative égales : donne de la place au box-shadow au survol
	   sans décaler visuellement la liste (overflow-x: auto force overflow-y à "auto",
	   qui sinon rogne le débordement du box-shadow et donne l'impression que la carte
	   change de hauteur au survol). */
	padding: 4px 4px 10px;
	margin: -4px -4px -10px;
}

.ctbt-cart-upsells__list::-webkit-scrollbar {
	display: none;
}

.ctbt-cart-upsells__list.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	user-select: none;
}

.ctbt-cart-upsells__list.is-dragging .ctbt-cart-upsells-card {
	pointer-events: none;
}

.ctbt-cart-upsells .ctbt-cart-upsells-card {
	min-width: 110px;
	max-width: 110px;
	background-color: var(--e-global-color-01d5930, #FDFAF2);
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
	scroll-snap-align: start;
	display: block;
	text-decoration: none;
	transition: box-shadow 150ms ease;
}

.ctbt-cart-upsells .ctbt-cart-upsells-card:hover {
	box-shadow: 0 2px 8px rgba(44, 24, 16, 0.14);
}

.ctbt-cart-upsells-card img {
	aspect-ratio: 1;
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
	-webkit-user-drag: none;
	user-drag: none;
}

.ctbt-cart-upsells-card__body {
	padding: 8px;
}

.ctbt-cart-upsells-card__name {
	font-size: var(--e-global-typography-657a611-font-size, 0.75rem);
	font-weight: var(--e-global-typography-657a611-font-weight, 600);
	line-height: 1.25;
	color: var(--e-global-color-3f56ae9, #2C1810);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0 0 4px;
}

.ctbt-cart-upsells-card__price {
	font-size: var(--e-global-typography-f8a4213-font-size, 0.75rem);
	font-weight: var(--e-global-typography-f8a4213-font-weight, 400);
	line-height: 1.25;
	font-family: var(--e-global-typography-accent-font-family, "Mako");
	color: var(--e-global-color-b4f7cc1, #6B3D18);
	margin: 0;
}
