/* =========================================================
   DriftCart — styles du panier latéral
   Toutes les couleurs/dimensions passent par des variables CSS
   injectées dynamiquement depuis les réglages admin.
   ========================================================= */

:root {
	--fc-accent: #1d1d1f;
	--fc-accent-contrast: #ffffff;
	--fc-surface: #ffffff;
	--fc-text: #1d1d1f;
	--fc-muted: #6b6b6f;
	--fc-radius: 14px;
	--fc-width: 420px;
	--fc-speed: 380ms;
	--fc-overlay-opacity: 0.45;
	--fc-font: inherit;
	--fc-side: right;
	--fc-bubble-size: 54px;
	--fc-bubble-offset-x: 24px;
	--fc-bubble-offset-y: 24px;
	--fc-btn-padding: 12px 14px;
}

.driftcart-root {
	position: fixed;
	inset: 0;
	z-index: 100000;
	pointer-events: none;
	font-family: var(--fc-font);
}

.driftcart-root * {
	box-sizing: border-box;
}

.driftcart-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, var(--fc-overlay-opacity));
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--fc-speed) ease;
}

.driftcart-drawer {
	position: absolute;
	top: 0;
	bottom: 0;
	width: min(var(--fc-width), 92vw);
	background: var(--fc-surface);
	color: var(--fc-text);
	display: flex;
	flex-direction: column;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.18);
	transition: transform var(--fc-speed) cubic-bezier(0.22, 1, 0.36, 1);
}

.driftcart-root--left .driftcart-drawer,
.driftcart--left .driftcart-drawer {
	left: 0;
	transform: translateX(-100%);
}

.driftcart--right .driftcart-drawer,
.driftcart-root .driftcart-drawer {
	right: 0;
	transform: translateX(100%);
}

.driftcart--left .driftcart-drawer {
	right: auto;
	left: 0;
	transform: translateX(-100%);
}

.driftcart-root.is-open .driftcart-overlay {
	opacity: 1;
	visibility: visible;
}

.driftcart-root.is-open .driftcart-drawer {
	transform: translateX(0);
}

.driftcart-root.is-open {
	pointer-events: auto;
}

/* Mode "hauteur automatique" : le tiroir n'occupe que la place dont son
   contenu a besoin, centré verticalement, au lieu de courir du haut au bas
   de l'écran. */
.driftcart-root--auto-height .driftcart-drawer {
	top: 50%;
	bottom: auto;
	max-height: 88vh;
	transform: translate(100%, -50%);
	border-radius: var(--fc-radius) 0 0 var(--fc-radius);
}

.driftcart-root--auto-height.driftcart--left .driftcart-drawer {
	transform: translate(-100%, -50%);
	border-radius: 0 var(--fc-radius) var(--fc-radius) 0;
}

.driftcart-root--auto-height.is-open .driftcart-drawer {
	transform: translate(0, -50%);
}

/* ---------- Header ---------- */

.driftcart-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 22px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	flex-shrink: 0;
}

.driftcart-title {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}

.driftcart-title .driftcart-bubble-count {
	background: var(--fc-accent);
	color: var(--fc-accent-contrast);
	font-size: 12px;
	font-weight: 600;
	min-width: 20px;
	height: 20px;
	line-height: 20px;
	text-align: center;
	border-radius: 999px;
	padding: 0 6px;
	display: inline-block;
}

.driftcart-close {
	background: transparent;
	border: none;
	cursor: pointer;
	color: var(--fc-text);
	padding: 6px;
	border-radius: 8px;
	display: flex;
	transition: background 0.15s ease;
}

.driftcart-close:hover {
	background: rgba(0, 0, 0, 0.06);
}

/* ---------- Shipping bar ---------- */

.driftcart-shipping-bar-wrap {
	padding: 14px 22px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	flex-shrink: 0;
}

.driftcart-shipping-message {
	margin: 0 0 8px;
	font-size: 13px;
	color: var(--fc-muted);
}

.driftcart-shipping-bar.is-reached .driftcart-shipping-message {
	color: var(--fc-accent);
	font-weight: 600;
}

.driftcart-progress-track {
	height: 6px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

.driftcart-progress-fill {
	height: 100%;
	background: var(--fc-accent);
	border-radius: 999px;
	transition: width 0.5s ease;
}

/* ---------- Body / items ---------- */

.driftcart-body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 6px 22px;
}

.driftcart-item-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.driftcart-item {
	display: flex;
	gap: 12px;
	padding: 16px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	position: relative;
	animation: driftcart-item-in 0.3s ease;
}

@keyframes driftcart-item-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.driftcart-item.is-updating {
	opacity: 0.5;
	pointer-events: none;
}

.driftcart-item.is-removing {
	opacity: 0;
	transform: translateX(12px);
	max-height: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.25s ease 0.1s, padding 0.25s ease 0.1s, margin 0.25s ease 0.1s;
}

.driftcart-item-image img {
	width: 68px;
	height: 68px;
	object-fit: cover;
	border-radius: calc(var(--fc-radius) * 0.6);
	display: block;
}

.driftcart-item-info {
	flex: 1;
	min-width: 0;
}

.driftcart-item-name a,
.driftcart-item-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--fc-text);
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.driftcart-item-name-meta {
	font-size: 12px;
	font-weight: 400;
	color: var(--fc-muted);
}

.driftcart-item-meta {
	font-size: 12px;
	color: var(--fc-muted);
	margin-top: 4px;
}

.driftcart-item-sales {
	font-size: 11px;
	color: var(--fc-muted);
	margin-top: 3px;
}

.driftcart-item-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 10px;
	flex-wrap: wrap;
	gap: 6px;
}

/* Disposition "séparée" (par défaut) : la quantité à gauche, le prix (et
   éventuellement le total) alignés à droite, chacun sur sa propre zone. */
.driftcart-item-row--separate .driftcart-item-total {
	flex-basis: 100%;
	text-align: right;
	font-size: 12px;
	color: var(--fc-muted);
	margin-top: 2px;
}

/* Disposition "une ligne" : quantité, prix unitaire et total s'alignent sur
   une seule ligne compacte, séparés visuellement par un signe. */
.driftcart-item-row--oneline {
	flex-wrap: nowrap;
}

.driftcart-item-row--oneline .driftcart-item-price::before {
	content: "×  ";
	color: var(--fc-muted);
}

.driftcart-item-row--oneline .driftcart-item-total {
	font-weight: 700;
}

.driftcart-item-row--oneline .driftcart-item-total::before {
	content: "=  ";
	color: var(--fc-muted);
	font-weight: 400;
}

.driftcart-qty-stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid rgba(0, 0, 0, 0.14);
	border-radius: 999px;
	overflow: hidden;
}

.driftcart-qty-btn {
	width: 26px;
	height: 26px;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
	color: var(--fc-text);
}

.driftcart-qty-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.driftcart-qty-value {
	min-width: 22px;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
}

.driftcart-qty-input {
	width: 34px;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	border: none;
	background: transparent;
	color: var(--fc-text);
	font-family: var(--fc-font);
	-moz-appearance: textfield;
}

.driftcart-qty-input::-webkit-outer-spin-button,
.driftcart-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.driftcart-item-price {
	font-size: 13px;
	font-weight: 600;
}

.driftcart-item-remove {
	position: absolute;
	top: 16px;
	right: 0;
	background: transparent;
	border: none;
	cursor: pointer;
	color: var(--fc-muted);
	padding: 4px;
}

.driftcart-item-remove:hover {
	color: var(--fc-text);
}

.driftcart-item-remove--text {
	position: static;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 8px;
	font-size: 11.5px;
	text-decoration: underline;
}

/* ---------- Empty state ---------- */

.driftcart-empty {
	text-align: center;
	padding: 60px 20px;
	color: var(--fc-muted);
}

.driftcart-empty-icon {
	color: var(--fc-muted);
	margin-bottom: 14px;
}

.driftcart-empty h3 {
	color: var(--fc-text);
	margin: 0 0 6px;
	font-size: 16px;
}

.driftcart-empty p {
	margin: 0 0 18px;
	font-size: 13px;
}

/* ---------- Upsells ---------- */

.driftcart-upsells {
	padding: 16px 22px 4px;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.driftcart-upsells-title {
	font-size: 13px;
	font-weight: 600;
	margin: 0 0 10px;
}

.driftcart-upsells-list {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 6px;
}

.driftcart-upsell-card {
	flex: 0 0 120px;
	text-align: center;
}

.driftcart-upsell-image img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: calc(var(--fc-radius) * 0.5);
	display: block;
}

.driftcart-upsell-name a {
	font-size: 11.5px;
	color: var(--fc-text);
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 6px;
	min-height: 28px;
}

.driftcart-upsell-price {
	font-size: 12px;
	font-weight: 600;
	margin: 4px 0 8px;
}

/* ---------- Coupon & note ---------- */

.driftcart-coupon,
.driftcart-note {
	padding: 14px 22px 0;
}

.driftcart-applied-coupons {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.driftcart-applied-coupons li {
	background: rgba(0, 0, 0, 0.06);
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 12px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.driftcart-remove-coupon {
	background: transparent;
	border: none;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
	color: var(--fc-muted);
}

.driftcart-coupon-form {
	display: flex;
	gap: 8px;
}

.driftcart-coupon-input,
.driftcart-note-field {
	width: 100%;
	border: 1px solid rgba(0, 0, 0, 0.14);
	border-radius: calc(var(--fc-radius) * 0.5);
	padding: 9px 12px;
	font-size: 13px;
	background: var(--fc-surface);
	color: var(--fc-text);
	font-family: var(--fc-font);
}

.driftcart-note label {
	display: block;
	font-size: 12px;
	color: var(--fc-muted);
	margin-bottom: 6px;
}

.driftcart-note-field {
	resize: vertical;
}

/* ---------- Totals & actions ---------- */

.driftcart-totals {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 22px 4px;
	font-size: 15px;
}

.driftcart-fee-row {
	padding-top: 4px;
	font-size: 13px;
	color: var(--fc-muted);
}

.driftcart-fee-row.is-discount {
	color: #1a8f4c;
}

.driftcart-grand-total {
	padding-top: 10px;
	margin-top: 4px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	font-size: 17px;
}

.driftcart-grand-total strong {
	font-size: 18px;
}

.driftcart-footer-text {
	margin: 10px 22px 0;
	font-size: 11px;
	color: var(--fc-muted);
	text-align: center;
	line-height: 1.5;
}

.driftcart-actions {
	display: flex;
	gap: 10px;
	padding: 12px 22px 22px;
	flex-shrink: 0;
}

.driftcart-btn {
	flex: 1;
	text-align: center;
	padding: var(--fc-btn-padding);
	border-radius: calc(var(--fc-radius) * 0.6);
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.driftcart-btn:active {
	transform: scale(0.97);
}

.driftcart-btn--primary {
	background: var(--fc-accent);
	color: var(--fc-accent-contrast);
}

.driftcart-btn--primary:hover {
	opacity: 0.9;
}

.driftcart-btn--outline {
	background: transparent;
	border-color: rgba(0, 0, 0, 0.16);
	color: var(--fc-text);
}

.driftcart-btn--outline:hover {
	background: rgba(0, 0, 0, 0.04);
}

/* Styles par rôle de bouton : chaque variable ne prend effet que si elle a
   été explicitement définie dans les réglages (voir DC_Assets) — sinon le
   bouton garde l'apparence --primary/--outline standard ci-dessus. */
.driftcart-btn--checkout {
	background: var(--fc-btn-checkout-bg, var(--fc-accent));
	color: var(--fc-btn-checkout-text, var(--fc-accent-contrast));
	border-color: var(--fc-btn-checkout-border, transparent);
}

.driftcart-btn--checkout:hover {
	background: var(--fc-btn-checkout-hover-bg, var(--fc-btn-checkout-bg, var(--fc-accent)));
	color: var(--fc-btn-checkout-hover-text, var(--fc-btn-checkout-text, var(--fc-accent-contrast)));
}

.driftcart-btn--viewcart {
	background: var(--fc-btn-viewcart-bg, transparent);
	color: var(--fc-btn-viewcart-text, var(--fc-text));
	border-color: var(--fc-btn-viewcart-border, rgba(0, 0, 0, 0.16));
}

.driftcart-btn--viewcart:hover {
	background: var(--fc-btn-viewcart-hover-bg, rgba(0, 0, 0, 0.04));
	color: var(--fc-btn-viewcart-hover-text, var(--fc-btn-viewcart-text, var(--fc-text)));
}

.driftcart-btn--continue {
	background: var(--fc-btn-continue-bg, var(--fc-accent));
	color: var(--fc-btn-continue-text, var(--fc-accent-contrast));
	border-color: var(--fc-btn-continue-border, transparent);
}

.driftcart-btn--continue:hover {
	background: var(--fc-btn-continue-hover-bg, var(--fc-btn-continue-bg, var(--fc-accent)));
	color: var(--fc-btn-continue-hover-text, var(--fc-btn-continue-text, var(--fc-accent-contrast)));
}

.driftcart-btn--small {
	flex: none;
	width: 100%;
	padding: 6px 8px;
	font-size: 11px;
}

.driftcart-btn.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.driftcart-minimum-order-notice {
	margin: 6px 22px 0;
	padding: 8px 12px;
	background: rgba(214, 54, 56, 0.08);
	color: #b3261e;
	font-size: 12px;
	border-radius: calc(var(--fc-radius) * 0.5);
}

/* ---------- Bandeau d'information ---------- */

.driftcart-info-box {
	margin: 12px 22px 0;
	padding: 10px 14px;
	background: rgba(0, 0, 0, 0.04);
	border-radius: calc(var(--fc-radius) * 0.5);
	font-size: 12.5px;
	color: var(--fc-text);
	line-height: 1.5;
}

/* ---------- Économies totales ---------- */

.driftcart-savings-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 2px 22px 0;
	font-size: 12.5px;
	color: #1a8f4c;
}

/* ---------- Quantité en lecture seule ---------- */

.driftcart-qty-readonly {
	font-size: 12.5px;
	color: var(--fc-muted);
}

.driftcart-clear-cart {
	display: block;
	width: calc(100% - 44px);
	margin: 4px 22px 18px;
	background: none;
	border: none;
	color: var(--fc-muted);
	font-size: 12px;
	text-decoration: underline;
	cursor: pointer;
	text-align: center;
}

.driftcart-clear-cart:hover {
	color: #b3261e;
}

/* ---------- Badges de confiance ---------- */

.driftcart-trust-badges {
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin: 0;
	padding: 14px 22px 0;
}

.driftcart-trust-badges li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	flex: 1;
	text-align: center;
	font-size: 10.5px;
	color: var(--fc-muted);
}

.driftcart-trust-badges svg {
	color: var(--fc-accent);
}

/* ---------- Conditions générales ---------- */

.driftcart-terms-row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 14px 22px 0;
	font-size: 12px;
	color: var(--fc-muted);
	cursor: pointer;
}

.driftcart-terms-row input {
	margin-top: 2px;
}

.driftcart-terms-row a {
	color: var(--fc-text);
	text-decoration: underline;
}

/* ---------- Sticky bubble ---------- */

.driftcart-sticky-bubble {
	position: fixed;
	z-index: 99998;
	width: var(--fc-bubble-size);
	height: var(--fc-bubble-size);
	border-radius: 50%;
	background: var(--fc-accent);
	color: var(--fc-accent-contrast);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.driftcart-sticky-bubble.is-hidden {
	opacity: 0;
	transform: scale(0.8);
	pointer-events: none;
}

/* Forme "carrée" : coins légèrement arrondis plutôt qu'un cercle parfait. */
.driftcart-bubble--square {
	border-radius: calc(var(--fc-radius) * 0.7);
}

.driftcart-sticky-bubble .driftcart-bubble-count {
	position: absolute;
	top: -4px;
	right: -4px;
	background: #e0393e;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	line-height: 18px;
	border-radius: 999px;
	padding: 0 4px;
}

.driftcart-bubble--bottom-right { bottom: var(--fc-bubble-offset-y); right: var(--fc-bubble-offset-x); }
.driftcart-bubble--bottom-left  { bottom: var(--fc-bubble-offset-y); left: var(--fc-bubble-offset-x); }
.driftcart-bubble--top-right    { top: var(--fc-bubble-offset-y); right: var(--fc-bubble-offset-x); }
.driftcart-bubble--top-left     { top: var(--fc-bubble-offset-y); left: var(--fc-bubble-offset-x); }

@media (max-width: 782px) {
	.driftcart-bubble--desktop-only {
		display: none;
	}
}

/* ---------- Déclencheur panier dans un menu WordPress ---------- */

.driftcart-menu-trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}

.driftcart-menu-icon {
	display: inline-flex;
	color: inherit;
}

.driftcart-menu-icon svg {
	width: 18px;
	height: 18px;
}

.driftcart-menu-subtotal {
	font-size: 13px;
	font-weight: 600;
}

.driftcart-menu-count {
	background: var(--fc-accent);
	color: var(--fc-accent-contrast);
	font-size: 11px;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	line-height: 18px;
	text-align: center;
	border-radius: 999px;
	padding: 0 5px;
	display: inline-block;
}

.driftcart-hide-when-empty.is-hidden {
	display: none;
}

/* ---------- Connexion avant paiement ---------- */

.driftcart-login-gate {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: none;
	align-items: center;
	justify-content: center;
	font-family: var(--fc-font);
}

.driftcart-login-gate.is-open {
	display: flex;
}

.driftcart-login-gate-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, var(--fc-overlay-opacity));
}

.driftcart-login-gate-panel {
	position: relative;
	width: min(360px, 90vw);
	max-height: 88vh;
	overflow-y: auto;
	background: var(--fc-surface);
	color: var(--fc-text);
	border-radius: var(--fc-radius);
	padding: 28px 24px 24px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.driftcart-login-gate-title {
	margin: 0 0 16px;
	font-size: 16px;
	font-weight: 700;
	padding-right: 20px;
}

.driftcart-login-gate-panel .driftcart-close {
	position: absolute;
	top: 14px;
	right: 14px;
}

.driftcart-login-gate-panel form.login p {
	margin: 0 0 12px;
}

.driftcart-login-gate-panel form.login label {
	display: block;
	font-size: 12px;
	color: var(--fc-muted);
	margin-bottom: 4px;
}

.driftcart-login-gate-panel form.login input[type="text"],
.driftcart-login-gate-panel form.login input[type="email"],
.driftcart-login-gate-panel form.login input[type="password"] {
	width: 100%;
	border: 1px solid rgba(0, 0, 0, 0.14);
	border-radius: calc(var(--fc-radius) * 0.5);
	padding: 9px 12px;
	font-size: 13px;
	background: #fff;
	color: var(--fc-text);
	font-family: var(--fc-font);
}

.driftcart-login-gate-panel form.login .login-submit input,
.driftcart-login-gate-panel form.login button {
	width: 100%;
	background: var(--fc-accent);
	color: var(--fc-accent-contrast);
	border: none;
	border-radius: calc(var(--fc-radius) * 0.6);
	padding: 11px 14px;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	margin-top: 4px;
}

.driftcart-login-gate-register,
.driftcart-login-gate-guest {
	display: block;
	text-align: center;
	margin-top: 12px;
	font-size: 12.5px;
	color: var(--fc-muted);
	text-decoration: underline;
}

/* ---------- Loading state ---------- */

.driftcart-drawer.is-loading::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.4);
}

/* ---------- Toast de notification ---------- */

.driftcart-toast {
	margin: 0 22px;
	padding: 0;
	max-height: 0;
	overflow: hidden;
	font-size: 13px;
	font-weight: 600;
	color: var(--fc-accent-contrast, #fff);
	background: var(--fc-text);
	border-radius: calc(var(--fc-radius) * 0.5);
	opacity: 0;
	transition: max-height 0.25s ease, opacity 0.25s ease, margin 0.25s ease, padding 0.25s ease;
}

.driftcart-toast.is-visible {
	max-height: 60px;
	opacity: 1;
	padding: 10px 14px;
	margin: 12px 22px;
}

.driftcart-toast.is-error {
	background: #d63638;
}

/* ---------- Sauvegarder pour plus tard ---------- */

.driftcart-item-save-link {
	background: none;
	border: none;
	padding: 0;
	margin-top: 8px;
	font-size: 11.5px;
	color: var(--fc-muted);
	text-decoration: underline;
	cursor: pointer;
}

.driftcart-item-save-link:hover {
	color: var(--fc-text);
}

.driftcart-saved-section {
	padding: 4px 22px 8px;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	margin-top: 6px;
}

.driftcart-saved-title {
	font-size: 13px;
	font-weight: 600;
	margin: 12px 0 10px;
}

.driftcart-saved-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.driftcart-saved-item {
	display: flex;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.driftcart-saved-image img {
	width: 50px;
	height: 50px;
	object-fit: cover;
	border-radius: calc(var(--fc-radius) * 0.5);
}

.driftcart-saved-info {
	flex: 1;
	min-width: 0;
}

.driftcart-saved-name {
	font-size: 13px;
	font-weight: 600;
}

.driftcart-saved-price {
	font-size: 12px;
	color: var(--fc-muted);
	margin-top: 2px;
}

.driftcart-saved-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 6px;
}

.driftcart-saved-move {
	background: none;
	border: 1px solid rgba(0, 0, 0, 0.14);
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	color: var(--fc-text);
}

.driftcart-saved-remove {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--fc-muted);
	font-size: 16px;
	line-height: 1;
}

/* ---------- Item savings ---------- */

.driftcart-item-savings {
	font-size: 11.5px;
	color: #1a8f4c;
	margin-top: 3px;
	font-weight: 600;
}

@media (max-width: 480px) {
	.driftcart-upsell-card {
		flex-basis: 100px;
	}
}

/* Prix barré (réglage « Prix normal barré + prix promo ») : ancien prix
   discret et barré, prix payé mis en avant. Styles explicites pour que le
   thème (qui souligne ou surligne souvent <ins>) ne brouille pas la
   lecture. */
.driftcart-item-price del,
.driftcart-item-total del {
	color: var(--fc-muted);
	font-weight: 400;
	text-decoration: line-through;
	opacity: 0.8;
	margin-right: 4px;
}

.driftcart-item-price ins,
.driftcart-item-total ins {
	text-decoration: none;
	background: none;
	font-weight: 700;
}
