/*
 * ODepot B2B Orders — Page Commande rapide
 *
 * Layout type "tableau" (rows compactes) plutôt que cartes : permet
 * de scanner et saisir les quantités rapidement. Les ajouts au panier
 * se font en bloc via la barre flottante (« Au panier »).
 *
 * Mobile-first. Préfixe .odp-qo pour éviter les collisions.
 *
 * Couleurs marque :
 *   primary : var(--odp-primary, #0b1f3a)
 *   accent  : var(--odp-accent, #d60b51)
 */

/* ── Reset / wrapper ──────────────────────────── */

.odp-qo {
	max-width: 1280px;
	margin: 0 auto;
	padding: 12px 12px 110px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1d2327;
	font-size: 14px;
	line-height: 1.4;
}
.odp-qo *,
.odp-qo *::before,
.odp-qo *::after {
	box-sizing: border-box;
}
.odp-qo button {
	font-family: inherit;
}

/* ── Conteneur 2 colonnes (desktop) ──────────── */

.odp-qo-cols {
	display: block;
}

.odp-qo-content {
	min-width: 0;
}

/* Desktop : on passe en flex-row, content prend tout l'espace dispo, panel = 320 px sticky */
@media (min-width: 900px) {
	.odp-qo {
		padding-bottom: 30px;
	}
	.odp-qo-cols {
		display: flex !important;
		flex-direction: row !important;
		align-items: flex-start !important;
		gap: 20px !important;
		width: 100% !important;
	}
	.odp-qo-content {
		flex: 1 1 0% !important;
		min-width: 0 !important;
		width: auto !important;
		max-width: calc(100% - 340px) !important;
	}
	.odp-qo-panel {
		flex: 0 0 320px !important;
		width: 320px !important;
		max-width: 320px !important;
	}
}

/* ── En-tête ──────────────────────────────────── */

.odp-qo-head {
	background: #fff;
	border-radius: 14px;
	padding: 16px 18px 0;
	margin-bottom: 12px;
	box-shadow: 0 2px 8px rgba(11, 31, 58, 0.06);
}
.odp-qo-head-inner {
	margin-bottom: 14px;
}
.odp-qo-tagline {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--odp-accent, #d60b51);
	margin-bottom: 2px;
}
.odp-qo-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--odp-primary, #0b1f3a);
	margin: 0;
	line-height: 1.2;
}
.odp-qo-subtitle {
	margin: 4px 0 0;
	font-size: 13px;
	color: #5f5e5a;
}

/* ── Onglets ──────────────────────────────────── */

.odp-qo-tabs {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	padding-bottom: 2px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.odp-qo-tabs::-webkit-scrollbar {
	display: none;
}
.odp-qo-tab {
	flex: 0 0 auto;
	background: transparent !important;
	border: 0 !important;
	margin: 0 !important;
	padding: 0 16px !important;
	height: 44px !important;
	min-height: 44px !important;
	max-height: 44px !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	color: #5f5e5a !important;
	border-bottom: 2px solid transparent !important;
	cursor: pointer;
	white-space: nowrap;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px;
	line-height: 1 !important;
	box-shadow: none !important;
	font-family: inherit;
	box-sizing: border-box;
	letter-spacing: 0.3px;
	text-transform: uppercase;
}
.odp-qo-tab.is-active {
	color: var(--odp-primary, #0b1f3a) !important;
	border-bottom-color: var(--odp-accent, #d60b51) !important;
	font-weight: 600 !important;
}
.odp-qo-tab-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 18px;
	padding: 0 6px;
	background: #f6f7f7;
	color: #5f5e5a;
	font-size: 10px;
	font-weight: 700;
	border-radius: 10px;
	line-height: 1;
}
.odp-qo-tab.is-active .odp-qo-tab-badge {
	background: var(--odp-accent, #d60b51);
	color: #fff;
}

/* ── Toolbar / chips de catégorie ─────────────── */

.odp-qo-toolbar {
	margin-bottom: 10px;
}

/* Search + sort row */
.odp-qo-tools-row {
	display: flex !important;
	gap: 10px;
	margin-bottom: 8px;
	align-items: stretch;
	width: 100%;
	flex-wrap: nowrap;
}
.odp-qo-search-wrap {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	position: relative;
	display: flex !important;
	align-items: center !important;
	background: #fff !important;
	border: 1px solid #e3e3e3 !important;
	border-radius: 8px !important;
	transition: border-color 0.12s, box-shadow 0.12s;
	height: 40px;
	box-sizing: border-box;
}
.odp-qo-search-wrap:focus-within {
	border-color: var(--odp-accent, #d60b51) !important;
	box-shadow: 0 0 0 2px rgba(214, 11, 81, 0.12) !important;
}
.odp-qo-search-icon {
	flex-shrink: 0;
	padding: 0 4px 0 12px;
	font-size: 14px;
	opacity: 0.7;
	pointer-events: none;
	display: inline-flex;
	align-items: center;
	height: 100%;
}
.odp-qo-search-input {
	flex: 1 1 auto !important;
	width: 100% !important;
	border: 0 !important;
	background: transparent !important;
	padding: 0 8px !important;
	margin: 0 !important;
	height: 38px !important;
	min-height: 38px !important;
	max-height: 38px !important;
	font-size: 13px !important;
	color: #1d2327 !important;
	outline: none !important;
	min-width: 0 !important;
	font-family: inherit;
	box-shadow: none !important;
	line-height: 1 !important;
	display: block !important;
	box-sizing: border-box;
	border-radius: 0 !important;
}
.odp-qo-search-input::placeholder {
	color: #888;
	opacity: 1;
}
.odp-qo-search-input::-webkit-search-decoration,
.odp-qo-search-input::-webkit-search-cancel-button,
.odp-qo-search-input::-webkit-search-results-button,
.odp-qo-search-input::-webkit-search-results-decoration {
	-webkit-appearance: none;
}
.odp-qo-search-clear {
	flex-shrink: 0;
	background: transparent !important;
	border: 0 !important;
	margin: 0 4px 0 0 !important;
	padding: 0 !important;
	color: #888 !important;
	font-size: 18px !important;
	width: 30px !important;
	height: 30px !important;
	min-height: 30px !important;
	max-height: 30px !important;
	cursor: pointer;
	border-radius: 50% !important;
	transition: background 0.12s, color 0.12s;
	line-height: 1 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: none !important;
	font-family: inherit;
	box-sizing: border-box;
}
.odp-qo-search-clear:hover {
	background: #f6f7f7 !important;
	color: var(--odp-accent, #d60b51) !important;
}

.odp-qo-sort {
	flex: 0 0 auto !important;
	width: 160px !important;
	background: #fff !important;
	border: 1px solid #e3e3e3 !important;
	border-radius: 8px !important;
	margin: 0 !important;
	padding: 0 28px 0 12px !important;
	height: 40px !important;
	min-height: 40px !important;
	max-height: 40px !important;
	font-size: 13px !important;
	color: var(--odp-primary, #0b1f3a) !important;
	cursor: pointer;
	font-family: inherit;
	font-weight: 500 !important;
	max-width: 180px;
	line-height: 1 !important;
	box-shadow: none !important;
	transition: border-color 0.12s;
	box-sizing: border-box;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%230b1f3a' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 12px center !important;
}
.odp-qo-sort:hover {
	border-color: var(--odp-primary, #0b1f3a) !important;
}
.odp-qo-sort:focus {
	outline: none;
	border-color: var(--odp-accent, #d60b51) !important;
	box-shadow: 0 0 0 2px rgba(214, 11, 81, 0.12) !important;
}

/* Mobile : sort sous search */
@media (max-width: 600px) {
	.odp-qo-tools-row {
		flex-direction: column;
	}
	.odp-qo-sort {
		max-width: 100%;
	}
}

/* Results info bar (filtres actifs / count) */
.odp-qo-results-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 10px;
	background: #fff1f5;
	border-radius: 6px;
	font-size: 12px;
	color: #5f5e5a;
	margin-top: 8px;
}
.odp-qo-results-info[hidden] {
	display: none;
}
.odp-qo-results-info span {
	font-weight: 600;
	color: var(--odp-accent, #d60b51);
}
.odp-qo-results-reset {
	background: transparent;
	border: 0;
	color: var(--odp-accent, #d60b51);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 4px;
	font-family: inherit;
}
.odp-qo-results-reset:hover {
	background: #fff;
}

/* No results state */
.odp-qo-noresults {
	background: #fff;
	border-radius: 12px;
	padding: 50px 20px;
	text-align: center;
	box-shadow: 0 2px 6px rgba(11, 31, 58, 0.05);
}
.odp-qo-noresults[hidden] {
	display: none;
}
.odp-qo-noresults-icon {
	font-size: 36px;
	margin-bottom: 12px;
	opacity: 0.6;
}
.odp-qo-noresults-text {
	margin: 0;
	font-size: 14px;
	color: #5f5e5a;
}

.odp-qo-chips {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding: 4px 2px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.odp-qo-chips::-webkit-scrollbar {
	display: none;
}
.odp-qo-chip {
	flex: 0 0 auto;
	background: #fff !important;
	border: 1px solid #e3e3e3 !important;
	border-radius: 18px !important;
	margin: 0 !important;
	padding: 0 14px !important;
	height: 32px !important;
	min-height: 32px !important;
	max-height: 32px !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	color: var(--odp-primary, #0b1f3a) !important;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.12s, border-color 0.12s, color 0.12s;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px;
	line-height: 1 !important;
	box-shadow: none !important;
	font-family: inherit;
	box-sizing: border-box;
}
.odp-qo-chip:hover {
	border-color: var(--odp-primary, #0b1f3a) !important;
}
.odp-qo-chip.is-active {
	background: var(--odp-primary, #0b1f3a) !important;
	border-color: var(--odp-primary, #0b1f3a) !important;
	color: #fff !important;
}
.odp-qo-chip-count {
	font-size: 11px;
	font-weight: 600;
	background: #f6f7f7;
	color: #5f5e5a;
	padding: 1px 6px;
	border-radius: 8px;
}
.odp-qo-chip.is-active .odp-qo-chip-count {
	background: rgba(255, 255, 255, 0.18);
	color: rgba(255, 255, 255, 0.9);
}

/* ── Pane (contenu d'onglet) ──────────────────── */

.odp-qo-pane {
	display: none;
}
.odp-qo-pane.is-active {
	display: block;
}
.odp-qo-pane[hidden] {
	display: none !important;
}
.odp-qo-pane-intro {
	font-size: 12px;
	color: #5f5e5a;
	padding: 6px 4px 10px;
	font-style: italic;
}

/* ── Liste produits (rows compacts) ───────────── */

.odp-qo-list {
	list-style: none;
	margin: 0;
	padding: 0;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(11, 31, 58, 0.05);
}

.odp-qo-row {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	gap: 12px;
	padding: 10px 12px;
	border-bottom: 1px solid #f0f0f0;
	transition: background 0.12s;
	align-items: center;
}
.odp-qo-row:last-child {
	border-bottom: 0;
}
.odp-qo-row:hover {
	background: #fafbfc;
}
.odp-qo-row.is-hidden {
	display: none;
}
.odp-qo-row.has-qty {
	background: #fff8fa;
}

.odp-qo-row-thumb {
	width: 56px;
	height: 56px;
	background-color: #fafafa;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 8px;
}

.odp-qo-row-main {
	min-width: 0;
}
.odp-qo-row-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--odp-primary, #0b1f3a);
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	word-break: break-word;
	margin-bottom: 3px;
}
.odp-qo-row-meta {
	font-size: 11px;
	color: #6b6b6b;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	margin-bottom: 4px;
}
.odp-qo-sku {
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	background: #f6f7f7;
	padding: 1px 5px;
	border-radius: 4px;
	font-size: 10px;
	color: #5f5e5a;
}
.odp-qo-pack {
	color: var(--odp-primary, #0b1f3a);
	font-weight: 500;
}
.odp-qo-pack-unit {
	color: #888;
	font-style: italic;
	font-weight: 400;
}

.odp-qo-row-prices {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: baseline;
}
.odp-qo-price-unit {
	font-size: 12px;
	color: #5f5e5a;
	font-weight: 500;
}
.odp-qo-price-carton {
	font-size: 14px;
	color: var(--odp-primary, #0b1f3a);
	font-weight: 700;
}
.odp-qo-price-suffix {
	font-size: 10px;
	font-weight: 400;
	color: #888;
	margin-left: 1px;
}
.odp-qo-row-prices .woocommerce-Price-amount {
	color: inherit;
}

.odp-qo-row-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	min-width: 130px;
}

/* Quantity stepper */
.odp-qo-qty {
	display: inline-flex;
	align-items: center;
	background: #f6f7f7;
	border-radius: 8px;
	overflow: hidden;
	height: 36px;
}
.odp-qo-qm,
.odp-qo-qp {
	background: transparent !important;
	border: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 32px !important;
	height: 36px !important;
	min-height: 36px !important;
	max-height: 36px !important;
	font-size: 18px !important;
	color: var(--odp-primary, #0b1f3a) !important;
	cursor: pointer;
	user-select: none;
	font-weight: 700 !important;
	line-height: 1 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: none !important;
	font-family: inherit;
	box-sizing: border-box;
}
.odp-qo-qm:hover,
.odp-qo-qp:hover {
	background: rgba(11, 31, 58, 0.08) !important;
}
.odp-qo-qm:active,
.odp-qo-qp:active {
	background: rgba(214, 11, 81, 0.15) !important;
}
.odp-qo-qv {
	width: 42px;
	height: 36px;
	border: 0;
	background: transparent;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	color: var(--odp-primary, #0b1f3a);
	-moz-appearance: textfield;
	padding: 0;
}
.odp-qo-qv::-webkit-outer-spin-button,
.odp-qo-qv::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.odp-qo-row.has-qty .odp-qo-qty {
	background: #fff;
	box-shadow: inset 0 0 0 1.5px var(--odp-accent, #d60b51);
}
.odp-qo-row.has-qty .odp-qo-qv {
	color: var(--odp-accent, #d60b51);
}

/* Sous-total ligne */
.odp-qo-line-total {
	font-size: 12px;
	color: #5f5e5a;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	line-height: 1.2;
}
.odp-qo-line-label {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	color: #888;
}
.odp-qo-line-value {
	font-size: 14px;
	font-weight: 700;
	color: #1d2327;
}
.odp-qo-row.has-qty .odp-qo-line-value {
	color: var(--odp-accent, #d60b51);
}

/* ── Mobile : compact row ─────────────────────── */

@media (max-width: 600px) {
	.odp-qo-row {
		grid-template-columns: 48px 1fr;
		grid-template-areas:
			"thumb main"
			"side  side";
		gap: 10px;
		padding: 12px;
	}
	.odp-qo-row-thumb {
		grid-area: thumb;
		width: 48px;
		height: 48px;
	}
	.odp-qo-row-main {
		grid-area: main;
	}
	.odp-qo-row-side {
		grid-area: side;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		min-width: 0;
		padding-top: 6px;
		border-top: 1px dashed #f0f0f0;
		margin-top: 4px;
	}
	.odp-qo-line-total {
		flex-direction: row;
		gap: 8px;
		align-items: baseline;
	}
}

/* ── Empty state ──────────────────────────────── */

.odp-qo-empty {
	background: #fff;
	border-radius: 12px;
	padding: 40px 20px;
	text-align: center;
	color: #5f5e5a;
}
.odp-qo-empty-icon {
	font-size: 36px;
	margin-bottom: 10px;
	opacity: 0.85;
}
.odp-qo-empty-title {
	margin: 0 0 6px;
	color: var(--odp-primary, #0b1f3a);
	font-size: 16px;
	font-weight: 600;
}
.odp-qo-empty-text {
	margin: 0 0 16px;
	color: #5f5e5a;
	font-size: 14px;
	line-height: 1.5;
}
.odp-qo-cta-primary {
	display: inline-block;
	background: var(--odp-accent, #d60b51);
	color: #fff !important;
	text-decoration: none !important;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.12s;
}
.odp-qo-cta-primary:hover {
	background: #b30943;
}

/* ── Mes packs (list rows) ──────────────────── */

.odp-qo-packs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.odp-qo-pack-card {
	background: #fff;
	border-radius: 8px;
	border: 1px solid #e5e5e7;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	transition: border-color 0.12s, box-shadow 0.12s;
	position: relative;
}
.odp-qo-pack-card:hover {
	border-color: var(--odp-accent, #d60b51);
	box-shadow: 0 2px 8px rgba(11, 31, 58, 0.08);
}
.odp-qo-pack-card.is-mine {
	border-left: 3px solid var(--odp-primary, #0b1f3a);
	border-color: var(--odp-primary, #0b1f3a);
}
.odp-qo-pack-card.is-mine:hover {
	border-color: var(--odp-accent, #d60b51);
	border-left-color: var(--odp-primary, #0b1f3a);
}

/* Lien cliquable sur le bloc info (thumb + nom + meta) */
.odp-qo-pack-link {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	min-width: 0;
	text-decoration: none !important;
	color: inherit !important;
	padding: 0;
}
.odp-qo-pack-link:hover,
.odp-qo-pack-link:focus {
	text-decoration: none !important;
	color: inherit !important;
}

/* Thumbnail compact */
.odp-qo-pack-cover {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	background-size: cover;
	background-position: center;
	background-color: #f6f7f7;
	border-radius: 6px;
}
.odp-qo-pack-cover-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #fff1f5, #f6f7f7);
}
.odp-qo-pack-cover-placeholder svg {
	width: 24px;
	height: 24px;
	display: block;
}
.odp-qo-pack-card.is-mine .odp-qo-pack-cover-placeholder {
	background: linear-gradient(135deg, #fff1f5, #fafafa);
}

.odp-qo-pack-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 0;
}

/* Nom du pack — 1 ligne, ellipsis */
.odp-qo-pack-name {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--odp-primary, #0b1f3a);
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	-webkit-line-clamp: unset;
	-webkit-box-orient: unset;
	display: block;
	min-height: 0;
}

/* Meta line : tagline + count + total séparés par · */
.odp-qo-pack-meta-line {
	font-size: 11px;
	color: #5f5e5a;
	line-height: 1.3;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}
.odp-qo-pack-meta-line .tagline {
	font-weight: 700;
	letter-spacing: 0.3px;
	color: var(--odp-accent, #d60b51);
	text-transform: uppercase;
	font-size: 10px;
}
.odp-qo-pack-meta-line .tagline.is-mine {
	color: var(--odp-primary, #0b1f3a);
}
.odp-qo-pack-meta-line .sep {
	color: #c3c4c7;
}
.odp-qo-pack-meta-line .count,
.odp-qo-pack-meta-line .total {
	font-weight: 500;
}

/* Description optionnelle (cachée par défaut, peut s'afficher si on veut) */
.odp-qo-pack-desc {
	display: none;
}

/* Actions à droite */
.odp-qo-pack-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.odp-qo-pack-add-cta {
	background: var(--odp-accent, #d60b51) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 6px !important;
	padding: 0 14px !important;
	margin: 0 !important;
	height: 34px !important;
	min-height: 34px !important;
	max-height: 34px !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: background 0.12s, transform 0.08s;
	font-family: inherit;
	white-space: nowrap;
	line-height: 1 !important;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	box-shadow: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px;
	text-align: center;
	vertical-align: middle;
	box-sizing: border-box;
}
.odp-qo-pack-add-cta > svg {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	display: block;
}
.odp-qo-pack-add-cta > span {
	display: inline-block;
	line-height: 1;
}
.odp-qo-pack-add-cta:hover:not(:disabled) {
	background: #b30943 !important;
	color: #fff !important;
}
.odp-qo-pack-add-cta:active:not(:disabled) {
	transform: scale(0.97);
}
.odp-qo-pack-add-cta:disabled {
	opacity: 0.6;
	cursor: wait;
}
.odp-qo-pack-add-cta.is-loading {
	background: #b30943 !important;
}
.odp-qo-pack-add-cta.is-success {
	background: #0f6e56 !important;
}

.odp-qo-pack-detail-link {
	color: #5f5e5a !important;
	text-decoration: none !important;
	font-size: 11px;
	font-weight: 500;
	padding: 6px 8px;
	border-radius: 4px;
	transition: color 0.12s, background 0.12s;
	white-space: nowrap;
}
.odp-qo-pack-detail-link:hover {
	color: var(--odp-primary, #0b1f3a) !important;
	background: #f6f7f7;
}

/* ⋯ menu (positioné statiquement dans la row, pas absolute) */
.odp-qo-pack-card .odp-qo-pack-menu {
	position: static;
	background: transparent;
	border: 0;
	box-shadow: none;
	width: 28px;
	height: 28px;
	font-size: 16px;
	color: #888;
	cursor: pointer;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.1s, color 0.1s;
	padding: 0;
	font-family: inherit;
	line-height: 1;
}
.odp-qo-pack-card .odp-qo-pack-menu:hover {
	background: #f6f7f7;
	color: var(--odp-primary, #0b1f3a);
	border: 0;
}

.odp-qo-pack-menu-dropdown {
	position: absolute;
	top: calc(100% - 4px);
	right: 8px;
	z-index: 20;
	background: #fff;
	border: 1px solid #e5e5e7;
	border-radius: 6px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
	min-width: 180px;
	overflow: hidden;
}
.odp-qo-pack-menu-dropdown[hidden] { display: none; }
.odp-qo-pack-menu-dropdown button {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	background: transparent;
	border: 0;
	padding: 8px 12px;
	font-size: 12px;
	color: #1d2327;
	text-align: left;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.1s;
	letter-spacing: 0;
	text-transform: none;
	font-weight: 500;
	line-height: 1.4;
}
.odp-qo-pack-menu-dropdown button:hover {
	background: #f6f7f7;
}
.odp-qo-pack-menu-dropdown button[data-action="edit"] {
	color: var(--odp-primary, #0b1f3a);
	font-weight: 600;
}
.odp-qo-pack-menu-dropdown button[data-action="edit"]:hover {
	background: #fff1f5;
	color: var(--odp-accent, #d60b51);
}
.odp-qo-pack-menu-dropdown button[data-action="delete"]:hover {
	background: #fdecea;
	color: #a32d2d;
}

/* ── Mobile : garde la row mais empile actions sous le body ── */

@media (max-width: 600px) {
	.odp-qo-pack-card {
		flex-wrap: wrap;
		padding: 10px 12px;
	}
	.odp-qo-pack-link {
		flex: 1 1 calc(100% - 36px);
		min-width: 0;
	}
	.odp-qo-pack-card .odp-qo-pack-menu {
		flex-shrink: 0;
		order: 2;
	}
	.odp-qo-pack-actions {
		order: 3;
		flex: 1 1 100%;
		justify-content: stretch;
		padding-top: 8px;
		margin-top: 6px;
		border-top: 1px solid #f0f0f0;
	}
	.odp-qo-pack-add-cta {
		flex: 1;
	}
	.odp-qo-pack-menu-dropdown {
		right: 12px;
	}
}
/* (Anciens styles .odp-qo-pack-tagline / -name / -desc / -foot / -meta / -cta
 *  remplacés par la version "list rows" ci-dessus. Conservés en attendant
 *  un éventuel autre usage.) */

/* ── Panel droit (panier en cours) ─────────── */

.odp-qo-panel {
	background: #fff;
	border-radius: 12px;
	padding: 16px;
	box-shadow: 0 2px 10px rgba(11, 31, 58, 0.07);
	display: flex;
	flex-direction: column;
}

/* Mobile : caché (la bbar prend le relais) */
@media (max-width: 899px) {
	.odp-qo-panel {
		display: none;
	}
}

/* Desktop : sticky en haut, scrollable */
@media (min-width: 900px) {
	.odp-qo-panel {
		position: sticky;
		top: 100px; /* sous le header WoodMart */
		max-height: calc(100vh - 130px);
	}
}

.odp-qo-panel-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f0f0f0;
}
.odp-qo-panel-title {
	margin: 0;
	font-size: 14px;
	color: var(--odp-primary, #0b1f3a);
	font-weight: 600;
}
.odp-qo-panel-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
	background: #f6f7f7;
	color: #5f5e5a;
	font-size: 11px;
	font-weight: 700;
	border-radius: 11px;
	line-height: 1;
}
.odp-qo-panel-count.has-items {
	background: var(--odp-accent, #d60b51);
	color: #fff;
}

/* Empty state */
.odp-qo-panel-empty {
	text-align: center;
	color: #888;
	padding: 30px 10px;
	font-size: 13px;
	line-height: 1.5;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.odp-qo-panel-empty-icon {
	font-size: 36px;
	margin-bottom: 8px;
	opacity: 0.6;
}
.odp-qo-panel-empty-text {
	margin: 0;
}

/* Items list */
.odp-qo-panel-items {
	list-style: none;
	margin: 0 -4px 0 0;
	padding: 0 4px 0 0;
	overflow-y: auto;
	flex: 1;
	max-height: 50vh;
}
.odp-qo-panel-items:empty {
	display: none;
}
.odp-qo-panel-item {
	display: flex;
	gap: 8px;
	padding: 10px 0;
	border-bottom: 1px solid #f6f7f7;
	font-size: 12px;
	animation: odp-qo-slide-in 0.18s ease-out;
}
.odp-qo-panel-item:last-child {
	border-bottom: 0;
}

@keyframes odp-qo-slide-in {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: translateY(0); }
}

.odp-qo-panel-item-thumb {
	width: 40px;
	height: 40px;
	background-size: cover;
	background-position: center;
	background-color: #f6f7f7;
	border-radius: 6px;
	flex-shrink: 0;
}
.odp-qo-panel-item-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.odp-qo-panel-item-name {
	font-weight: 600;
	color: var(--odp-primary, #0b1f3a);
	font-size: 12px;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	word-break: break-word;
}
.odp-qo-panel-item-meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	color: #5f5e5a;
	font-size: 11px;
}
.odp-qo-panel-item-qty {
	font-weight: 500;
}
.odp-qo-panel-item-amount {
	color: var(--odp-accent, #d60b51);
	font-weight: 700;
	font-size: 13px;
	white-space: nowrap;
}
.odp-qo-panel-item-x {
	background: transparent;
	border: 0;
	width: 22px;
	height: 22px;
	font-size: 16px;
	color: #888;
	cursor: pointer;
	padding: 0;
	border-radius: 4px;
	flex-shrink: 0;
	align-self: flex-start;
	line-height: 1;
}
.odp-qo-panel-item-x:hover {
	background: #fff1f5;
	color: var(--odp-accent, #d60b51);
}

/* Footer */
.odp-qo-panel-foot {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #f0f0f0;
}
.odp-qo-panel-summary {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 12px;
}
.odp-qo-panel-summary-label {
	font-size: 12px;
	color: #5f5e5a;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}
.odp-qo-panel-summary-amount {
	font-size: 20px;
	font-weight: 700;
	color: var(--odp-primary, #0b1f3a);
}
.odp-qo-panel-cta {
	width: 100%;
	background: var(--odp-accent, #d60b51) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 8px !important;
	padding: 0 16px !important;
	margin: 0 !important;
	height: 48px !important;
	min-height: 48px !important;
	max-height: 48px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	cursor: pointer;
	transition: background 0.12s, opacity 0.12s;
	font-family: inherit;
	line-height: 1 !important;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	box-shadow: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box;
	white-space: nowrap;
}
.odp-qo-panel-cta:hover:not(:disabled) {
	background: #b30943 !important;
}
.odp-qo-panel-cta:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}
.odp-qo-panel-cta.is-loading {
	opacity: 0.6;
	cursor: wait;
}
.odp-qo-panel-wclink {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	font-size: 12px;
	color: #5f5e5a;
	text-decoration: none;
	padding: 6px 10px;
	border-radius: 6px;
	transition: background 0.12s, color 0.12s;
}
.odp-qo-panel-wclink:hover {
	background: #f6f7f7;
	color: var(--odp-primary, #0b1f3a);
}
.odp-qo-panel-wclink-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 6px;
	background: var(--odp-primary, #0b1f3a);
	color: #fff;
	border-radius: 9px;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
}
.odp-qo-panel-wclink-count[data-count="0"] {
	background: #c3c4c7;
}

/* ── Mobile bottom bar ─────────────────────────── */

.odp-qo-bbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--odp-primary, #0b1f3a);
	color: #fff;
	padding: 10px 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	z-index: 9999;
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
}

/* Desktop : caché (le panel prend le relais) */
@media (min-width: 900px) {
	.odp-qo-bbar {
		display: none;
	}
}

.odp-qo-bbar-pending {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	min-width: 0;
}
.odp-qo-bbar-counts {
	display: flex;
	align-items: baseline;
	gap: 5px;
}
.odp-qo-bbar-count {
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}
.odp-qo-bbar-label {
	font-size: 11px;
	opacity: 0.85;
}
.odp-qo-bbar-amount {
	font-size: 15px;
	font-weight: 700;
	margin-left: 4px;
	white-space: nowrap;
}
.odp-qo-bbar-pending.is-empty .odp-qo-bbar-count,
.odp-qo-bbar-pending.is-empty .odp-qo-bbar-amount {
	opacity: 0.5;
}
.odp-qo-bbar-cta {
	background: var(--odp-accent, #d60b51);
	color: #fff;
	border: 0;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 16px;
	cursor: pointer;
	transition: background 0.12s, opacity 0.12s;
	white-space: nowrap;
	flex-shrink: 0;
}
.odp-qo-bbar-cta:hover:not(:disabled) {
	background: #b30943;
}
.odp-qo-bbar-cta:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}
.odp-qo-bbar-cta.is-loading {
	opacity: 0.6;
	cursor: wait;
}

/* ── Toast (notification après ajout) ─────────── */

.odp-qo-toast {
	position: fixed;
	left: 50%;
	bottom: 80px;
	transform: translateX(-50%) translateY(20px);
	background: #0f6e56;
	color: #fff;
	padding: 12px 22px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s, transform 0.2s;
	z-index: 10000;
	max-width: 90%;
	text-align: center;
}
.odp-qo-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}
.odp-qo-toast.is-error {
	background: #a32d2d;
}

/* ── Tablet & desktop ─────────────────────────── */

@media (min-width: 700px) {
	.odp-qo {
		padding: 18px 20px 100px;
	}
	.odp-qo-title {
		font-size: 26px;
	}
	.odp-qo-bbar {
		padding: 12px 24px;
	}
}

/* ── Reset thème : page de commande rapide ───── */

body.odp-quick-order-page .page-title,
body.odp-quick-order-page .wd-page-title,
body.odp-quick-order-page .breadcrumbs,
body.odp-quick-order-page .breadcrumb-wrap,
body.odp-quick-order-page .woocommerce-breadcrumb,
body.odp-quick-order-page .entry-header,
body.odp-quick-order-page .related-posts {
	display: none !important;
}

body.odp-quick-order-page #secondary,
body.odp-quick-order-page .sidebar-container,
body.odp-quick-order-page aside.widget-area,
body.odp-quick-order-page aside.wd-sidebar,
body.odp-quick-order-page .wd-sidebar,
body.odp-quick-order-page .col-sidebar {
	display: none !important;
}

body.odp-quick-order-page .wd-sidebar-opener,
body.odp-quick-order-page .wd-mobile-sidebar,
body.odp-quick-order-page .mobile-sidebar-button,
body.odp-quick-order-page .wd-side-hidden-toggle,
body.odp-quick-order-page .wd-sidebar-toggler,
body.odp-quick-order-page .wd-sb-opener {
	display: none !important;
}

body.odp-quick-order-page .wd-content-area,
body.odp-quick-order-page .wd-grid-col {
	--wd-col-lg: 12 !important;
	--wd-col-md: 12 !important;
	--wd-col-sm: 12 !important;
	width: 100% !important;
	max-width: 100% !important;
	grid-column: 1 / -1 !important;
}

body.odp-quick-order-page .wd-grid-g,
body.odp-quick-order-page .wd-content-layout,
body.odp-quick-order-page main#main-content {
	--wd-col-lg: 12 !important;
	--wd-col-md: 12 !important;
	--wd-col-sm: 12 !important;
}

body.odp-quick-order-page .main-page-wrapper,
body.odp-quick-order-page .site-content,
body.odp-quick-order-page .wd-page-content {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* ─────────────────────────────────────────────────────
 * Save template (Faz F)
 * ───────────────────────────────────────────────────── */

/* Bouton "Enregistrer comme modèle" dans le footer du panneau */
.odp-qo-panel-savetpl {
	width: 100%;
	background: transparent !important;
	color: var(--odp-primary, #0b1f3a) !important;
	border: 1px dashed #c3c4c7 !important;
	border-radius: 6px !important;
	padding: 0 12px !important;
	margin: 0 0 10px 0 !important;
	height: 36px !important;
	min-height: 36px !important;
	max-height: 36px !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	cursor: pointer;
	transition: background 0.12s, color 0.12s, border-color 0.12s;
	font-family: inherit;
	line-height: 1 !important;
	box-shadow: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px;
	box-sizing: border-box;
	white-space: nowrap;
	letter-spacing: 0.3px;
}
.odp-qo-panel-savetpl:hover:not(:disabled) {
	background: #fff1f5 !important;
	color: var(--odp-accent, #d60b51) !important;
	border-color: var(--odp-accent, #d60b51) !important;
	border-style: solid !important;
}
.odp-qo-panel-savetpl:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* Tagline pembe par défaut, navy si "Mon modèle" */
.odp-qo-pack-tagline.is-mine {
	color: var(--odp-primary, #0b1f3a);
}

/* Carte "Mon modèle" : bordure navy fine au lieu de pembe */
.odp-qo-pack-card.is-mine {
	position: relative;
	box-shadow: 0 0 0 1.5px var(--odp-primary, #0b1f3a), 0 2px 6px rgba(11, 31, 58, 0.06);
}
.odp-qo-pack-card.is-mine:hover {
	box-shadow: 0 0 0 1.5px var(--odp-primary, #0b1f3a), 0 6px 16px rgba(11, 31, 58, 0.14);
}

/* Bouton ⋯ menu sur la carte */
.odp-qo-pack-menu {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 5;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid #e5e5e7;
	border-radius: 16px;
	width: 28px;
	height: 28px;
	font-size: 16px;
	color: var(--odp-primary, #0b1f3a);
	cursor: pointer;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.12s, border-color 0.12s;
}
.odp-qo-pack-menu:hover {
	background: #fff;
	border-color: var(--odp-primary, #0b1f3a);
}
.odp-qo-pack-menu-dropdown {
	position: absolute;
	top: 38px;
	right: 8px;
	z-index: 6;
	background: #fff;
	border: 1px solid #e5e5e7;
	border-radius: 6px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
	min-width: 160px;
	overflow: hidden;
}
.odp-qo-pack-menu-dropdown[hidden] { display: none; }
.odp-qo-pack-menu-dropdown button {
	display: block;
	width: 100%;
	background: transparent;
	border: 0;
	padding: 9px 12px;
	font-size: 12px;
	color: #1d2327;
	text-align: left;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.1s;
}
.odp-qo-pack-menu-dropdown button:hover {
	background: #fff1f5;
}
.odp-qo-pack-menu-dropdown button[data-action="delete"]:hover {
	background: #fdecea;
	color: #a32d2d;
}

/* ─── Modal ─────────────────────────────────── */

.odp-qo-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.odp-qo-modal[hidden] { display: none; }

.odp-qo-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(11, 31, 58, 0.55);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}
.odp-qo-modal-dialog {
	position: relative;
	background: #fff;
	border-radius: 12px;
	max-width: 460px;
	width: 100%;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	animation: odpModalIn 0.16s ease-out;
}
@keyframes odpModalIn {
	from { opacity: 0; transform: translateY(-12px) scale(0.97); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}
.odp-qo-modal-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	border-bottom: 1px solid #f0f0f0;
}
.odp-qo-modal-head h2 {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	color: var(--odp-primary, #0b1f3a);
}
.odp-qo-modal-close {
	background: transparent;
	border: 0;
	font-size: 24px;
	color: #888;
	cursor: pointer;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	line-height: 1;
}
.odp-qo-modal-close:hover {
	background: #f6f7f7;
	color: var(--odp-accent, #d60b51);
}
.odp-qo-modal-body {
	padding: 18px 20px;
}
.odp-qo-modal-intro {
	margin: 0 0 14px;
	font-size: 13px;
	color: #5f5e5a;
	line-height: 1.5;
}
.odp-qo-modal-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--odp-primary, #0b1f3a);
	margin: 8px 0 4px;
}
.odp-qo-modal-label .req {
	color: var(--odp-accent, #d60b51);
}
.odp-qo-modal-body input[type="text"],
.odp-qo-modal-body textarea {
	width: 100%;
	padding: 9px 12px;
	font-size: 13px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	box-sizing: border-box;
	font-family: inherit;
	transition: border-color 0.12s, box-shadow 0.12s;
}
.odp-qo-modal-body input[type="text"]:focus,
.odp-qo-modal-body textarea:focus {
	border-color: var(--odp-accent, #d60b51);
	box-shadow: 0 0 0 2px rgba(214, 11, 81, 0.12);
	outline: none;
}
.odp-qo-modal-body textarea {
	resize: vertical;
	min-height: 60px;
}
.odp-qo-modal-summary {
	margin-top: 14px;
	padding: 10px 12px;
	background: #f6f7f7;
	border-radius: 6px;
	font-size: 12px;
	color: #5f5e5a;
}
.odp-qo-modal-summary span {
	font-weight: 700;
	color: var(--odp-primary, #0b1f3a);
}
.odp-qo-modal-error {
	margin-top: 10px;
	padding: 8px 12px;
	background: #fdecea;
	border-left: 3px solid #a32d2d;
	border-radius: 4px;
	font-size: 12px;
	color: #a32d2d;
}
.odp-qo-modal-error[hidden] { display: none; }

.odp-qo-modal-foot {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	padding: 14px 20px;
	border-top: 1px solid #f0f0f0;
	background: #fafbfc;
}
.odp-qo-modal-btn-cancel,
.odp-qo-modal-btn-confirm {
	padding: 9px 18px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border: 0;
	font-family: inherit;
	transition: background 0.12s, opacity 0.12s;
}
.odp-qo-modal-btn-cancel {
	background: transparent;
	color: #5f5e5a;
	border: 1px solid #c3c4c7;
}
.odp-qo-modal-btn-cancel:hover {
	background: #f6f7f7;
	color: var(--odp-primary, #0b1f3a);
}
.odp-qo-modal-btn-confirm {
	background: var(--odp-accent, #d60b51);
	color: #fff;
}
.odp-qo-modal-btn-confirm:hover:not(:disabled) {
	background: #b30943;
}
.odp-qo-modal-btn-confirm:disabled {
	opacity: 0.5;
	cursor: wait;
}

/* (Anciens styles Faz F2/F3 retirés — la version définitive "list rows"
 *  est définie plus haut dans le fichier, section "Mes packs (list rows)".) */

/* ─────────────────────────────────────────────────────
 * Edit-mode banner + boutons du panneau (Faz F3)
 * ───────────────────────────────────────────────────── */

.odp-qo-edit-banner {
	display: flex;
	align-items: center;
	gap: 14px;
	background: linear-gradient(90deg, #fef3c7 0%, #fef9e7 100%);
	border-left: 4px solid #d97706;
	border-radius: 8px;
	padding: 12px 16px;
	margin: 14px 0 10px;
}
.odp-qo-edit-banner[hidden] { display: none; }

.odp-qo-edit-banner-icon {
	flex-shrink: 0;
	color: #92400e;
	display: flex;
	align-items: center;
}
.odp-qo-edit-banner-icon svg {
	width: 22px;
	height: 22px;
	display: block;
}

.odp-qo-edit-banner-text {
	flex: 1;
	font-size: 12px;
	color: #78350f;
	line-height: 1.4;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.odp-qo-edit-banner-text strong {
	font-weight: 600;
	color: #78350f;
	font-size: 13px;
}
.odp-qo-edit-banner-text span {
	font-weight: 400;
}

.odp-qo-edit-banner-cancel {
	flex-shrink: 0;
	background: transparent;
	border: 1px solid #92400e;
	color: #92400e;
	border-radius: 6px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.12s, color 0.12s;
}
.odp-qo-edit-banner-cancel:hover {
	background: #92400e;
	color: #fff;
}

/* Body class quand edit-mode actif : highlight subtil de toute la page */
body.odp-qo-edit-active .odp-qo-content {
	box-shadow: inset 0 0 0 2px rgba(217, 119, 6, 0.12);
	border-radius: 12px;
}
body.odp-qo-edit-active .odp-qo-tab[data-tab="all"] {
	color: #78350f;
}

/* Boutons mode normal/édition dans le panneau */
.odp-qo-panel-mode-normal,
.odp-qo-panel-mode-edit {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.odp-qo-panel-mode-normal[hidden],
.odp-qo-panel-mode-edit[hidden] {
	display: none;
}

.odp-qo-panel-update-tpl {
	width: 100%;
	background: #d97706 !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 8px !important;
	padding: 0 16px !important;
	margin: 0 !important;
	height: 48px !important;
	min-height: 48px !important;
	max-height: 48px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	cursor: pointer;
	transition: background 0.12s, opacity 0.12s;
	font-family: inherit;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	line-height: 1 !important;
	box-shadow: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box;
	white-space: nowrap;
}
.odp-qo-panel-update-tpl:hover:not(:disabled) {
	background: #b45309 !important;
}
.odp-qo-panel-update-tpl:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.odp-qo-panel-update-tpl.is-loading {
	opacity: 0.7;
	cursor: wait;
}

.odp-qo-panel-cancel-edit {
	width: 100%;
	background: transparent !important;
	color: #5f5e5a !important;
	border: 1px solid #c3c4c7 !important;
	border-radius: 8px !important;
	padding: 0 16px !important;
	margin: 0 !important;
	height: 36px !important;
	min-height: 36px !important;
	max-height: 36px !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	cursor: pointer;
	font-family: inherit;
	line-height: 1 !important;
	box-shadow: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box;
	white-space: nowrap;
	transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.odp-qo-panel-cancel-edit:hover {
	background: #f6f7f7 !important;
	color: var(--odp-primary, #0b1f3a) !important;
	border-color: var(--odp-primary, #0b1f3a) !important;
}

/* Mobile : banner plus compact */
@media (max-width: 600px) {
	.odp-qo-edit-banner {
		flex-wrap: wrap;
		padding: 10px 12px;
		gap: 8px;
	}
	.odp-qo-edit-banner-text {
		flex: 1 1 calc(100% - 36px);
	}
	.odp-qo-edit-banner-cancel {
		flex: 1 1 100%;
		text-align: center;
	}
}

/* ─── Personnaliser button (Faz F4) ─────────────── */

.odp-qo-pack-customize-cta {
	background: #fff !important;
	color: var(--odp-accent, #d60b51) !important;
	border: 1.5px solid var(--odp-accent, #d60b51) !important;
	border-radius: 6px !important;
	padding: 0 12px !important;
	margin: 0 !important;
	height: 34px !important;
	min-height: 34px !important;
	max-height: 34px !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: background 0.12s, color 0.12s;
	font-family: inherit;
	white-space: nowrap;
	line-height: 1 !important;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	box-shadow: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box;
}
.odp-qo-pack-customize-cta:hover {
	background: #fff1f5 !important;
	color: #b30943 !important;
	border-color: #b30943 !important;
}
.odp-qo-pack-customize-cta:active {
	transform: scale(0.97);
}

/* ─── Customize banner variant — bleu (Faz F4) ── */

.odp-qo-edit-banner.is-customize {
	background: linear-gradient(90deg, #eff6ff 0%, #f5f9ff 100%);
	border-left-color: #2563eb;
}
.odp-qo-edit-banner.is-customize .odp-qo-edit-banner-icon {
	color: #1e40af;
}
.odp-qo-edit-banner.is-customize .odp-qo-edit-banner-text,
.odp-qo-edit-banner.is-customize .odp-qo-edit-banner-text strong {
	color: #1e40af;
}
.odp-qo-edit-banner.is-customize .odp-qo-edit-banner-cancel {
	border-color: #1e40af;
	color: #1e40af;
}
.odp-qo-edit-banner.is-customize .odp-qo-edit-banner-cancel:hover {
	background: #1e40af;
	color: #fff;
}

/* Body class quand customize-mode actif : highlight bleu (au lieu de orange) */
body.odp-qo-customize-active .odp-qo-content {
	box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.12);
	border-radius: 12px;
}
body.odp-qo-customize-active .odp-qo-tab[data-tab="all"] {
	color: #1e40af;
}

/* ─── Mobile : tools-row empilé ──────────────────── */
@media (max-width: 600px) {
	.odp-qo-tools-row {
		flex-direction: column;
		gap: 8px;
	}
	.odp-qo-sort {
		width: 100% !important;
	}
}

/* ─────────────────────────────────────────────────────────
   FAB pill (mobile + tablette, < 900px)
   v1.1.5 : la bbar pleine largeur entrait en collision avec
   le widget de contact en bas à droite et l'icône Cookiebot
   en bas à gauche, et tronquait le bouton "AU PANIER".
   On la transforme en pill flottante centrée, qui :
   - apparaît seulement quand au moins 1 carton est ajouté
   - se positionne au-dessus du widget de contact (bottom: 80px)
   - a une animation slide-up / fade-out fluide
   ───────────────────────────────────────────────────────── */
@media (max-width: 899px) {
	.odp-qo-bbar {
		left: 50% !important;
		right: auto !important;
		transform: translateX(-50%) !important;
		bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
		width: calc(100% - 32px) !important;
		max-width: 380px !important;
		background: var(--odp-accent, #d60b51) !important;
		border-radius: 32px !important;
		padding: 6px 6px 6px 18px !important;
		box-shadow: 0 12px 28px rgba(214, 11, 81, 0.32),
		            0 4px 8px rgba(0, 0, 0, 0.12) !important;
		gap: 12px !important;
		z-index: 99000 !important;
		transition: opacity 0.25s ease, transform 0.3s ease, visibility 0.25s !important;
	}
	.odp-qo-bbar.is-cart-empty {
		opacity: 0 !important;
		visibility: hidden !important;
		transform: translateX(-50%) translateY(20px) !important;
		pointer-events: none !important;
	}

	.odp-qo-bbar-pending {
		flex: 1 1 auto !important;
		min-width: 0 !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 1px !important;
		color: #fff !important;
	}
	.odp-qo-bbar-counts {
		display: flex !important;
		align-items: baseline !important;
		gap: 4px !important;
		line-height: 1 !important;
	}
	.odp-qo-bbar-count {
		color: #fff !important;
		font-size: 12px !important;
		font-weight: 600 !important;
		line-height: 1 !important;
	}
	.odp-qo-bbar-label {
		color: rgba(255, 255, 255, 0.85) !important;
		font-size: 11px !important;
		font-weight: 500 !important;
		opacity: 1 !important;
		line-height: 1 !important;
	}
	.odp-qo-bbar-amount {
		color: #fff !important;
		font-size: 15px !important;
		font-weight: 800 !important;
		margin-left: 0 !important;
		margin-top: 2px !important;
		line-height: 1 !important;
	}
	.odp-qo-bbar-pending.is-empty .odp-qo-bbar-count,
	.odp-qo-bbar-pending.is-empty .odp-qo-bbar-amount {
		opacity: 1 !important; /* on cache la pill entière, pas opacity individuelle */
	}

	.odp-qo-bbar-cta {
		background: #fff !important;
		color: var(--odp-accent, #d60b51) !important;
		border: 0 !important;
		border-radius: 26px !important;
		padding: 12px 18px !important;
		font-size: 13px !important;
		font-weight: 700 !important;
		text-transform: uppercase !important;
		letter-spacing: 0.04em !important;
		height: auto !important;
		min-height: 44px !important;
		max-height: 44px !important;
		line-height: 1 !important;
		flex-shrink: 0 !important;
		box-shadow: none !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		white-space: nowrap !important;
		transition: background 0.15s, transform 0.1s !important;
	}
	.odp-qo-bbar-cta:hover:not(:disabled),
	.odp-qo-bbar-cta:active:not(:disabled) {
		background: #fff5f8 !important;
		color: #b30943 !important;
		transform: scale(0.98) !important;
	}
	.odp-qo-bbar-cta:disabled {
		background: rgba(255, 255, 255, 0.55) !important;
		color: rgba(214, 11, 81, 0.5) !important;
		opacity: 1 !important;
	}

	/* Annule l'override 1.1.4 padding qui réintroduisait la bar pleine largeur */
	.odp-qo-bbar {
		padding: 6px 6px 6px 18px !important;
	}
}

/* Override de la règle 1.1.4 qui imposait padding 12px 24px (bar pleine largeur) */
@media (max-width: 768px) {
	.odp-qo-bbar {
		padding: 6px 6px 6px 18px !important;
	}
}
