/* ABC Winkelmand – floating cart widget */

#abc-winkelmand {
	/* --abc-wm-green / --abc-wm-orange come from plugin settings (inline CSS) */
	--abc-wm-text: #2c2c2c;
	--abc-wm-muted: #8a8a8a;
	--abc-wm-border: #e8e8e8;
	--abc-wm-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
	--abc-wm-radius: 16px;
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
	font-size: 14px;
	line-height: 1.4;
	color: var(--abc-wm-text);
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99999;
	box-sizing: border-box;
	/* Room for tier toast above the widget */
	overflow: visible;
}

#abc-winkelmand *,
#abc-winkelmand *::before,
#abc-winkelmand *::after {
	box-sizing: border-box;
}

#abc-winkelmand.is-hidden {
	display: none !important;
}

#abc-winkelmand button {
	font: inherit;
	cursor: pointer;
	border: none;
	background: none;
	padding: 0;
	margin: 0;
	color: inherit;
}

#abc-winkelmand a.abc-wm-btn {
	text-decoration: none;
}

/* —— Minimized —— */
/* Outer button: themes often force padding:0 on buttons — spacing lives on the inner span */
#abc-winkelmand button.abc-wm-minimized,
#abc-winkelmand .abc-wm-minimized {
	display: none;
	padding: 0 !important;
	margin: 0 !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	border: 0 !important;
	border-radius: 999px !important;
	box-shadow: var(--abc-wm-shadow) !important;
	min-width: 240px;
	min-height: 0 !important;
	line-height: 1.3 !important;
	box-sizing: border-box !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	color: var(--abc-wm-text) !important;
	text-align: left !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	overflow: hidden;
}

#abc-winkelmand .abc-wm-minimized-inner {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px 12px 12px;
	width: 100%;
	box-sizing: border-box;
	transition: padding 0.2s ease, gap 0.2s ease;
}

/* Compact pill when cart is empty (no badge, less whitespace) */
#abc-winkelmand.is-empty button.abc-wm-minimized,
#abc-winkelmand.is-empty .abc-wm-minimized {
	min-width: 0;
}

#abc-winkelmand.is-empty .abc-wm-minimized-inner {
	gap: 10px;
	padding: 8px 14px 8px 8px;
}

#abc-winkelmand.is-empty .abc-wm-minimized .abc-wm-icon-box--green {
	width: 36px;
	height: 36px;
	border-radius: 10px;
}

#abc-winkelmand.is-empty .abc-wm-minimized .abc-wm-cart-svg {
	width: 18px;
	height: 18px;
}

#abc-winkelmand.is-empty .abc-wm-mini-total {
	font-size: 14px;
}

#abc-winkelmand[data-state="minimized"] button.abc-wm-minimized:not([hidden]),
#abc-winkelmand[data-state="minimized"] .abc-wm-minimized:not([hidden]) {
	display: block !important;
}

#abc-winkelmand .abc-wm-minimized:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18) !important;
}

.abc-wm-icon-wrap {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
}

.abc-wm-icon-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	flex-shrink: 0;
}

.abc-wm-icon-box--green {
	background: var(--abc-wm-green);
	color: #fff;
}

.abc-wm-icon-box--soft {
	background: #e8f8ef;
	color: #1e7a45;
	width: 36px;
	height: 36px;
	border-radius: 10px;
}

#abc-winkelmand .abc-wm-cart-count {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--abc-wm-orange) !important;
	color: #fff !important;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	box-sizing: border-box;
	box-shadow: 0 0 0 2px #fff;
	pointer-events: none;
	z-index: 2;
}

#abc-winkelmand .abc-wm-cart-count[hidden] {
	display: none !important;
}

.abc-wm-mini-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 2px;
	flex: 1;
	text-align: left;
}

.abc-wm-mini-total {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	font-size: 16px;
	font-weight: 700;
	color: var(--abc-wm-text);
}

.abc-wm-mini-total .abc-wm-price-original {
	font-size: 12px;
}

.abc-wm-mini-total .abc-wm-price-final {
	font-size: 16px;
}

/* Modern pill: strikethrough price above bold final (saves horizontal space) */
#abc-winkelmand.abc-wm-style-floating .abc-wm-mini-total {
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 1px;
	line-height: 1.15;
}

#abc-winkelmand.abc-wm-style-floating .abc-wm-mini-total .abc-wm-price-original {
	font-size: 11px;
	order: -1;
}

.abc-wm-badge {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--abc-wm-orange);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.abc-wm-badge[hidden] {
	display: none !important;
}

.abc-wm-badge.is-celebrating,
.abc-wm-spend-amount.is-celebrating,
.abc-wm-slider-marker.is-celebrating,
.abc-wm-cart-count.is-celebrating,
.abc-wm-tier-mini-pct.is-celebrating {
	animation: abc-wm-badge-pop 0.7s ease;
}

@keyframes abc-wm-badge-pop {
	0% { transform: scale(1); }
	40% { transform: scale(1.18); }
	70% { transform: scale(0.95); }
	100% { transform: scale(1); }
}

.abc-wm-tier-toast {
	position: absolute;
	left: 50%;
	top: -12px;
	transform: translate(-50%, -8px) scale(0.9);
	background: var(--abc-wm-orange);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	padding: 8px 14px;
	border-radius: 999px;
	box-shadow: 0 6px 18px rgba(255, 111, 0, 0.35);
	opacity: 0;
	pointer-events: none;
	z-index: 5;
	white-space: nowrap;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.abc-wm-tier-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, -28px) scale(1);
}

/* —— Progress balloon (fade-in feedback while cart stays closed) —— */
#abc-winkelmand .abc-wm-progress-balloon {
	position: fixed;
	z-index: 100002;
	width: min(400px, calc(100vw - 40px));
	padding: 14px 16px 16px;
	margin: 0;
	background: #fff !important;
	border-radius: 16px !important;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16) !important;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px) scale(0.96);
	pointer-events: none;
	transition:
		opacity 0.35s ease,
		transform 0.35s ease,
		visibility 0s linear 0.35s;
}

#abc-winkelmand .abc-wm-progress-balloon.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
	pointer-events: auto;
	cursor: pointer;
	transition:
		opacity 0.35s ease,
		transform 0.35s ease,
		visibility 0s linear 0s;
}

#abc-winkelmand.abc-wm-style-floating .abc-wm-progress-balloon {
	right: 20px;
	bottom: 96px;
	left: auto;
}

#abc-winkelmand.abc-wm-style-offcanvas .abc-wm-progress-balloon {
	left: 20px;
	bottom: 88px;
	right: auto;
}

.abc-wm-progress-balloon-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
}

.abc-wm-progress-balloon-title {
	font-weight: 700;
	font-size: 15px;
	color: var(--abc-wm-text);
}

.abc-wm-progress-balloon-msg {
	margin: 0 0 4px;
	font-size: 13px;
	line-height: 1.35;
}

.abc-wm-progress-balloon.is-unlocked .abc-wm-progress-balloon-title {
	color: var(--abc-wm-orange);
}

.abc-wm-progress-balloon-slider .abc-wm-slider-fill,
.abc-wm-progress-balloon-slider .abc-wm-slider-marker {
	transition-duration: 0.85s;
	transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (max-width: 600px) {
	#abc-winkelmand.abc-wm-style-floating .abc-wm-progress-balloon,
	#abc-winkelmand.abc-wm-style-offcanvas .abc-wm-progress-balloon {
		left: 12px;
		right: 12px;
		bottom: 88px;
		width: auto;
	}
}

/* —— Panels shared —— */
.abc-wm-panel {
	display: none;
	flex-direction: column;
	background: #fff;
	border-radius: var(--abc-wm-radius);
	box-shadow: var(--abc-wm-shadow);
	width: min(420px, calc(100vw - 32px));
	max-height: min(90vh, 720px);
	overflow: hidden;
	box-sizing: border-box;
}

#abc-winkelmand[data-state="opened"] .abc-wm-opened:not([hidden]) {
	display: flex;
	padding: 24px !important;
	gap: 14px;
	box-sizing: border-box;
}

#abc-winkelmand[data-state="maximized"] .abc-wm-maximized:not([hidden]) {
	display: flex;
	width: min(600px, calc(100vw - 24px));
	max-height: min(92vh, 860px);
	box-sizing: border-box;
}

.abc-wm-opened[hidden],
.abc-wm-maximized[hidden],
.abc-wm-minimized[hidden] {
	display: none !important;
}

.abc-wm-panel-header {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
}

.abc-wm-panel-title {
	font-weight: 700;
	font-size: 16px;
	flex: 1;
}

.abc-wm-header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.abc-wm-link {
	color: var(--abc-wm-muted);
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.abc-wm-link:hover {
	color: var(--abc-wm-text);
}

.abc-wm-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	color: var(--abc-wm-muted);
}

.abc-wm-close:hover {
	background: #f3f3f3;
	color: var(--abc-wm-text);
}

.abc-wm-spend {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-top: 4px;
}

.abc-wm-spend-amount {
	font-size: 28px;
	font-weight: 800;
	color: var(--abc-wm-orange);
	letter-spacing: -0.02em;
}

.abc-wm-spend-label {
	font-size: 16px;
	color: #6b5b4f;
	font-weight: 500;
}

/* —— Slider —— */
.abc-wm-slider {
	margin: 8px 0 4px;
	padding: 0 4px;
}

.abc-wm-slider-labels-top,
.abc-wm-slider-labels-bottom {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: var(--abc-wm-muted);
	position: relative;
	height: 18px;
}

.abc-wm-slider-labels-bottom {
	height: 20px;
}

.abc-wm-slider-labels-top span,
.abc-wm-slider-labels-bottom span {
	position: absolute;
	white-space: nowrap;
}

.abc-wm-slider-labels-top span.is-middle,
.abc-wm-slider-labels-bottom span.is-middle {
	transform: translateX(-50%);
	text-align: center;
}

.abc-wm-slider-labels-top span.is-first,
.abc-wm-slider-labels-bottom span.is-first {
	left: 0;
	transform: none;
	text-align: left;
}

.abc-wm-slider-labels-top span.is-last,
.abc-wm-slider-labels-bottom span.is-last {
	left: auto;
	right: 0;
	transform: none;
	text-align: right;
}

.abc-wm-slider-labels-bottom span {
	font-size: 10px;
	line-height: 1.2;
}

/* Actieve staffelkorting: bold + kortingkleur */
.abc-wm-slider-labels-bottom span.is-active {
	color: var(--abc-wm-orange);
	font-weight: 700;
	font-size: 11px;
}

.abc-wm-slider-labels-top span.is-active {
	color: var(--abc-wm-orange);
	font-weight: 700;
}

.abc-wm-slider-node.is-active {
	background: var(--abc-wm-orange);
	box-shadow: 0 0 0 3px rgba(255, 111, 0, 0.2);
}

.abc-wm-slider-track {
	position: relative;
	height: 6px;
	background: #e5e5e5;
	border-radius: 999px;
	margin: 10px 0 14px;
}

.abc-wm-slider-fill {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 0%;
	background: var(--abc-wm-orange);
	border-radius: 999px;
	transition: width 0.35s ease;
}

.abc-wm-slider-marker {
	position: absolute;
	top: 50%;
	left: 0%;
	width: 16px;
	height: 16px;
	margin-left: -8px;
	margin-top: -8px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--abc-wm-orange);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
	transition: left 0.35s ease;
	z-index: 2;
}

.abc-wm-slider-nodes {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.abc-wm-slider-node {
	position: absolute;
	top: 50%;
	width: 10px;
	height: 10px;
	margin-left: -5px;
	margin-top: -5px;
	border-radius: 50%;
	background: #d0d0d0;
	border: 2px solid #fff;
	z-index: 1;
	transition: background 0.25s ease, transform 0.25s ease;
}

.abc-wm-slider-node.is-reached {
	background: var(--abc-wm-orange);
}

.abc-wm-slider-node.is-celebrating {
	animation: abc-wm-node-pulse 0.7s ease;
}

@keyframes abc-wm-node-pulse {
	0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 111, 0, 0.5); }
	50% { transform: scale(1.45); box-shadow: 0 0 0 8px rgba(255, 111, 0, 0); }
	100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 111, 0, 0); }
}

.abc-wm-unlock {
	margin: 4px 0 8px;
	font-size: 13px;
	color: var(--abc-wm-muted);
	text-align: center;
}

.abc-wm-unlock strong,
.abc-wm-unlock .abc-wm-hl {
	color: var(--abc-wm-orange);
	font-weight: 700;
}

.abc-wm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 14px 20px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 15px;
	transition: filter 0.15s ease, transform 0.15s ease;
}

.abc-wm-btn--checkout {
	background: var(--abc-wm-green);
	color: #fff !important;
}

.abc-wm-btn--checkout:hover {
	filter: brightness(0.95);
	transform: translateY(-1px);
}

/* —— Maximized —— */
.abc-wm-max-sticky-top {
	flex-shrink: 0;
	padding: 20px 24px 16px !important;
	border-bottom: 1px solid var(--abc-wm-border);
	background: #fff;
	box-sizing: border-box;
}

.abc-wm-max-count {
	font-weight: 500;
	color: var(--abc-wm-muted);
}

.abc-wm-max-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px 24px !important;
	min-height: 120px;
	box-sizing: border-box;
}

.abc-wm-max-tiers {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 24px 12px !important;
	border-top: 1px solid var(--abc-wm-border);
	background: #fff;
	box-sizing: border-box;
}

.abc-wm-max-tiers .abc-wm-unlock {
	margin: 0;
}

.abc-wm-items-heading {
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 700;
}

.abc-wm-items-grid {
	display: grid;
	grid-template-columns: repeat(var(--abc-wm-columns, 3), minmax(0, 1fr));
	gap: 16px;
}

#abc-winkelmand[data-columns="1"] {
	--abc-wm-columns: 1;
}

#abc-winkelmand[data-columns="2"] {
	--abc-wm-columns: 2;
}

#abc-winkelmand[data-columns="3"] {
	--abc-wm-columns: 3;
}

.abc-wm-item {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.abc-wm-item-media {
	position: relative;
	aspect-ratio: 1;
	border-radius: 12px;
	overflow: hidden;
	background: #f5f5f5;
}

.abc-wm-item-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

#abc-winkelmand .abc-wm-item-remove,
#abc-winkelmand button.abc-wm-item-remove {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	min-height: 28px !important;
	max-width: 28px !important;
	max-height: 28px !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 50% !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	color: #333 !important;
	border: 1px solid rgba(0, 0, 0, 0.08) !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18) !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	line-height: 0 !important;
	box-sizing: border-box !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	overflow: hidden;
	z-index: 1;
}

#abc-winkelmand .abc-wm-item-remove svg,
#abc-winkelmand button.abc-wm-item-remove svg {
	display: block;
	flex-shrink: 0;
}

#abc-winkelmand .abc-wm-item-remove:hover,
#abc-winkelmand button.abc-wm-item-remove:hover {
	background: #f3f3f3 !important;
	background-color: #f3f3f3 !important;
	color: #111 !important;
}

.abc-wm-item-name {
	font-weight: 700;
	font-size: 14px;
	color: var(--abc-wm-text);
	text-decoration: none;
}

.abc-wm-item-name:hover {
	color: var(--abc-wm-green);
}

.abc-wm-item-meta {
	font-size: 12px;
	color: var(--abc-wm-muted);
	line-height: 1.35;
}

.abc-wm-item-prices {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.abc-wm-item-price {
	font-weight: 700;
	font-size: 15px;
}

.abc-wm-item-regular {
	font-size: 13px;
	color: var(--abc-wm-muted);
	text-decoration: line-through;
}

.abc-wm-qty {
	display: inline-flex;
	align-items: center;
	gap: 0;
	border: 1px solid var(--abc-wm-border);
	border-radius: 999px;
	overflow: hidden;
	align-self: flex-start;
	margin-top: 4px;
}

.abc-wm-qty button {
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: var(--abc-wm-text);
}

.abc-wm-qty button:hover {
	background: #f5f5f5;
}

.abc-wm-qty span {
	min-width: 28px;
	text-align: center;
	font-weight: 600;
	font-size: 13px;
}

.abc-wm-max-footer {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 24px 24px !important;
	border-top: 1px solid var(--abc-wm-border);
	background: #fff;
	box-sizing: border-box;
}

.abc-wm-max-total-label {
	display: block;
	font-size: 13px;
	color: var(--abc-wm-muted);
	margin-bottom: 2px;
}

.abc-wm-max-total-amount {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	font-size: 22px;
	font-weight: 800;
}

.abc-wm-price-original {
	font-size: 0.75em;
	font-weight: 600;
	color: var(--abc-wm-muted);
	text-decoration: line-through;
}

.abc-wm-price-final {
	font-weight: 800;
	color: var(--abc-wm-text);
}

.abc-wm-max-footer .abc-wm-btn--checkout {
	width: auto;
	min-width: 160px;
	padding: 14px 28px;
}

/* —— Fly-to-cart —— */
.abc-wm-fly-icon {
	position: fixed;
	z-index: 100000;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--abc-wm-green, #27ae60);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22), 0 0 0 4px rgba(39, 174, 96, 0.25);
	opacity: 1;
	will-change: left, top, transform, opacity;
}

.abc-wm-fly-icon.is-launching {
	transform: scale(0.7);
	opacity: 0.85;
}

.abc-wm-fly-icon.is-flying {
	/* position driven by JS */
}

.abc-wm-fly-icon.is-landing {
	transition: transform 0.25s ease, opacity 0.25s ease;
	transform: scale(0.4) !important;
	opacity: 0 !important;
}

.abc-wm-fly-icon svg {
	width: 24px;
	height: 24px;
}

.abc-wm-fly-target-pulse {
	animation: abc-wm-target-pulse 0.45s ease;
}

@keyframes abc-wm-target-pulse {
	0% { transform: scale(1); }
	40% { transform: scale(1.18); }
	100% { transform: scale(1); }
}

/* —— Style visibility —— */
.abc-wm-style-floating .abc-wm-offcanvas-only {
	display: none !important;
}

/* Off-canvas: root fills viewport so fixed rail/drawer anchor to screen edges (not inset 20px) */
#abc-winkelmand.abc-wm-style-offcanvas {
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 0;
	height: 0;
	overflow: visible;
	pointer-events: none;
}

#abc-winkelmand.abc-wm-style-offcanvas > * {
	pointer-events: auto;
}

.abc-wm-style-offcanvas .abc-wm-floating-only {
	display: none !important;
}

/* —— Off-canvas rail (right, vertically centered) —— */
#abc-winkelmand .abc-wm-rail,
#abc-winkelmand button.abc-wm-rail {
	--abc-wm-drawer-width: min(520px, 100vw);
	position: fixed;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 100000;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 64px;
	min-height: 168px;
	padding: 18px 12px !important;
	margin: 0 !important;
	background: #fff !important;
	background-color: #fff !important;
	border: 0 !important;
	/* Flush to screen edge: round only the free (left) side */
	border-radius: 18px 0 0 18px !important;
	box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12) !important;
	cursor: pointer;
	color: var(--abc-wm-text);
	appearance: none !important;
	-webkit-appearance: none !important;
	box-sizing: border-box;
	transition:
		right 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
		box-shadow 0.35s ease;
}

.abc-wm-style-offcanvas[data-state="minimized"] .abc-wm-rail:not([hidden]),
.abc-wm-style-offcanvas[data-state="maximized"] .abc-wm-rail:not([hidden]) {
	display: flex !important;
}

/* Open: rail sits on drawer edge, same white as the panel */
#abc-winkelmand.abc-wm-style-offcanvas.is-drawer-open .abc-wm-rail {
	right: var(--abc-wm-drawer-width);
	border-radius: 18px 0 0 18px !important;
	box-shadow: -4px 0 18px rgba(0, 0, 0, 0.08) !important;
	background: #fff !important;
}

@media (max-width: 480px) {
	#abc-winkelmand.abc-wm-style-offcanvas.is-drawer-open .abc-wm-rail {
		right: 0;
	}
}

.abc-wm-rail-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #f2f2f2;
	color: #444;
	transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease;
}

.abc-wm-rail-arrow svg {
	display: block;
}

/* Closed: arrow left. Open: flipped, same white family as drawer (no green block). */
.abc-wm-style-offcanvas.is-drawer-open .abc-wm-rail-arrow {
	transform: scaleX(-1);
	background: #f2f2f2;
	color: #444;
}

.abc-wm-rail-badge {
	font-size: 11px;
	padding: 5px 9px;
}

.abc-wm-rail-icon-wrap .abc-wm-cart-count {
	top: -5px;
	right: -5px;
}

/* —— Tier mini icon (bottom-left, klassiek) —— */
#abc-winkelmand .abc-wm-tier-mini,
#abc-winkelmand button.abc-wm-tier-mini {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 99997;
	display: none;
	align-items: center;
	gap: 10px;
	padding: 10px 14px 10px 10px !important;
	margin: 0 !important;
	background: #fff !important;
	background-color: #fff !important;
	border: 0 !important;
	border-radius: 18px !important;
	box-shadow: var(--abc-wm-shadow) !important;
	cursor: pointer;
	appearance: none !important;
	-webkit-appearance: none !important;
	color: var(--abc-wm-text);
}

.abc-wm-style-offcanvas[data-tier-float="mini"][data-state="minimized"] .abc-wm-tier-mini:not([hidden]),
.abc-wm-style-offcanvas[data-tier-float="mini"][data-state="maximized"] .abc-wm-tier-mini:not([hidden]) {
	display: inline-flex !important;
}

.abc-wm-tier-mini-discount {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	line-height: 1.15;
	text-align: left;
}

.abc-wm-tier-mini-discount[hidden] {
	display: none !important;
}

.abc-wm-tier-mini-pct {
	font-size: 16px;
	font-weight: 800;
	color: var(--abc-wm-orange);
	letter-spacing: -0.02em;
}

.abc-wm-tier-mini-label {
	font-size: 11px;
	font-weight: 600;
	color: var(--abc-wm-muted);
	text-transform: lowercase;
}

/* —— Tier float expanded (bottom-left, off-canvas) —— */
#abc-winkelmand .abc-wm-tier-float {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 99997;
	display: none;
	flex-direction: column;
	gap: 10px;
	/* Wide enough so "30% korting" / "40% korting" labels never overlap */
	width: min(520px, calc(100vw - 32px));
	padding: 18px 22px;
	background: #fff !important;
	border-radius: 18px !important;
	box-shadow: var(--abc-wm-shadow) !important;
	box-sizing: border-box;
}

.abc-wm-style-offcanvas[data-tier-float="open"][data-state="minimized"] .abc-wm-tier-float:not([hidden]),
.abc-wm-style-offcanvas[data-tier-float="open"][data-state="maximized"] .abc-wm-tier-float:not([hidden]) {
	display: flex !important;
}

.abc-wm-tier-float .abc-wm-panel-header {
	gap: 8px;
}

.abc-wm-tier-float .abc-wm-tier-float-close {
	margin-left: auto;
}

/* —— Off-canvas drawer + backdrop —— */
.abc-wm-backdrop {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(20, 20, 20, 0.35);
	border: 0;
	padding: 0;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.abc-wm-style-offcanvas.is-drawer-open .abc-wm-backdrop {
	display: block !important;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 0.35s ease, visibility 0s linear 0s;
}

/*
 * Keep drawer in the layout (no [hidden]/display:none) so transform can animate
 * in sync with the rail slide.
 */
#abc-winkelmand.abc-wm-style-offcanvas .abc-wm-maximized {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(520px, 100vw) !important;
	max-height: 100vh !important;
	height: 100vh;
	border-radius: 18px 0 0 18px !important;
	box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18) !important;
	background: #fff !important;
	display: flex !important;
	flex-direction: column;
	transform: translateX(105%);
	visibility: hidden;
	pointer-events: none;
	transition:
		transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
		visibility 0s linear 0.35s;
	z-index: 99999;
}

#abc-winkelmand.abc-wm-style-offcanvas.is-drawer-open .abc-wm-maximized {
	transform: translateX(0);
	visibility: visible;
	pointer-events: auto;
	transition:
		transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
		visibility 0s linear 0s;
}

@media (max-width: 480px) {
	#abc-winkelmand.abc-wm-style-offcanvas .abc-wm-maximized {
		border-radius: 0 !important;
	}
}

body.abc-wm-drawer-open {
	overflow: hidden;
}

/* —— Celebration confetti dots —— */
.abc-wm-confetti {
	position: absolute;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	pointer-events: none;
	animation: abc-wm-confetti-fall 0.8s ease-out forwards;
}

@keyframes abc-wm-confetti-fall {
	0% { transform: translate(0, 0) scale(1); opacity: 1; }
	100% { transform: translate(var(--dx), var(--dy)) scale(0.4); opacity: 0; }
}

@media (max-width: 600px) {
	#abc-winkelmand:not(.abc-wm-style-offcanvas) {
		right: 12px;
		bottom: 12px;
		left: 12px;
	}

	.abc-wm-minimized {
		width: 100%;
		justify-content: flex-start;
	}

	#abc-winkelmand[data-state="opened"] .abc-wm-opened,
	#abc-winkelmand[data-state="maximized"] .abc-wm-maximized {
		width: 100%;
		max-height: min(88vh, 900px);
	}

	#abc-winkelmand[data-columns="3"] .abc-wm-items-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 420px) {
	#abc-winkelmand .abc-wm-items-grid {
		grid-template-columns: 1fr;
	}

	.abc-wm-max-footer {
		flex-direction: column;
		align-items: stretch;
	}

	.abc-wm-max-footer .abc-wm-btn--checkout {
		width: 100%;
	}
}
