/* Ark Cart Booster – frontend
 * Kleuren uit de Elementor-kit van Beppy: zwart primair, accent #DCF2C8, oranje #F56B23, grijs #F2F2F2.
 */
:root {
	--arkcb-text: #000;
	--arkcb-muted: #858585;
	--arkcb-grey: #f2f2f2;
	--arkcb-accent: #dcf2c8;
	--arkcb-accent-dark: #a5db7a;
	--arkcb-orange: #f56b23;
	--arkcb-radius: 16px;
}

.arkcb-block,
.arkcb-ladder-wrap,
.arkcb-gift-wrap {
	box-sizing: border-box;
	width: 100%;
}

.arkcb-block *,
.arkcb-ladder-wrap *,
.arkcb-gift-wrap * {
	box-sizing: border-box;
}

/* ---------- Voortgangsbalk ---------- */
.arkcb-ladder {
	padding: 4px 0 8px;
	margin: 0 0 16px;
	color: var(--arkcb-text);
}

.arkcb-ladder__msg {
	margin: 0 0 10px;
	font-size: 15px;
	line-height: 1.35;
}

.arkcb-ladder__msg strong {
	font-weight: 700;
}

.arkcb-ladder__msg .amount {
	white-space: nowrap;
}

.arkcb-ladder__track {
	position: relative;
	height: 6px;
	margin: 14px 14px 0 0;
	border-radius: 6px;
	background: var(--arkcb-grey);
}

.arkcb-ladder__fill {
	height: 100%;
	border-radius: 6px;
	background: linear-gradient(90deg, var(--arkcb-accent) 0%, var(--arkcb-accent-dark) 100%);
	transition: width 0.5s ease;
}

.arkcb-ladder--done .arkcb-ladder__fill {
	background: var(--arkcb-accent-dark);
}

.arkcb-ladder__mark {
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
}

.arkcb-ladder__dot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #e0e0e0;
	color: var(--arkcb-muted);
	transition: all 0.3s ease;
}

.arkcb-ladder__mark.is-reached .arkcb-ladder__dot {
	background: var(--arkcb-text);
	border-color: var(--arkcb-text);
	color: #fff;
}

.arkcb-ladder__labels {
	display: flex;
	margin: 10px 14px 0 0;
}

.arkcb-ladder__label {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
	padding-left: 4px;
	font-size: 11px;
	line-height: 1.25;
	color: var(--arkcb-muted);
}

.arkcb-ladder__label.is-reached {
	color: var(--arkcb-text);
}

.arkcb-ladder__label-amount {
	font-weight: 700;
	font-size: 12px;
	color: var(--arkcb-text);
}

/* ---------- Cadeaukaart ---------- */
.arkcb-gift {
	background: var(--arkcb-grey);
	border-radius: var(--arkcb-radius);
	padding: 14px 16px;
	margin: 0 0 16px;
	color: var(--arkcb-text);
}

.arkcb-gift__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 12px;
	margin-bottom: 10px;
}

.arkcb-gift__title {
	font-weight: 700;
	font-size: 15px;
}

.arkcb-gift__tags {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
}

.arkcb-tag {
	color: var(--arkcb-orange);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.arkcb-gift__row {
	display: flex;
	align-items: center;
	gap: 14px;
}

.arkcb-gift__image {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

.arkcb-gift__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.arkcb-gift__info {
	flex: 1 1 auto;
	min-width: 0;
}

.arkcb-gift__name {
	font-weight: 600;
	font-size: 14px;
	line-height: 1.3;
}

.arkcb-gift__price {
	margin-top: 4px;
	font-size: 14px;
}

.arkcb-gift__cta {
	flex: 0 0 auto;
}

.arkcb-gift__pill {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #e0e0e0;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.arkcb-gift__pill .amount {
	white-space: nowrap;
}

/* ---------- Prijs: doorgestreept + Gratis ---------- */
.arkcb-price-was {
	color: var(--arkcb-muted);
	font-weight: 400;
	margin-right: 4px;
}

.arkcb-price-free {
	color: var(--arkcb-orange);
	font-weight: 700;
}

.arkcb-badge {
	display: inline-block;
	vertical-align: middle;
	margin-left: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--arkcb-accent);
	color: var(--arkcb-text);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.5;
}

/* Cadeauregel in cart/mini-cart */
.arkcb-gift-item .arkcb-gift-qty .product-quantity {
	color: var(--arkcb-muted);
}

/* ---------- Mini-cart (Elementor Pro): smalle kolom ---------- */
.elementor-menu-cart__products .arkcb-ladder-wrap {
	padding: 4px 0 0;
}

.elementor-menu-cart__products .arkcb-ladder {
	margin: 0 0 12px;
	padding-bottom: 14px;
	border-bottom: 1px solid #ececec;
}

.elementor-menu-cart__products .arkcb-ladder__msg {
	font-size: 14px;
}

.elementor-menu-cart__products .arkcb-ladder__label-name {
	display: none;
}

.elementor-menu-cart__products .arkcb-gift-wrap {
	padding: 12px 0 0;
}

.elementor-menu-cart__products .arkcb-gift {
	margin-bottom: 4px;
	padding: 12px 14px;
}

.elementor-menu-cart__products .arkcb-gift__title {
	font-size: 14px;
}

.elementor-menu-cart__products .arkcb-gift__row {
	flex-wrap: wrap;
	gap: 10px 12px;
}

.elementor-menu-cart__products .arkcb-gift__image {
	flex-basis: 52px;
	width: 52px;
	height: 52px;
}

.elementor-menu-cart__products .arkcb-gift__name {
	font-size: 13px;
}

.elementor-menu-cart__products .arkcb-gift__price {
	font-size: 13px;
}

.elementor-menu-cart__products .arkcb-gift__cta {
	flex-basis: 100%;
}

.elementor-menu-cart__products .arkcb-gift__pill {
	display: block;
	width: 100%;
	text-align: center;
}

/* ---------- Cart/checkout: blok bovenaan de pagina ---------- */
.arkcb-block {
	margin: 0 0 24px;
}

.arkcb-block .arkcb-ladder {
	padding: 18px 20px 14px;
	border: 1px solid #e8e8e8;
	border-radius: var(--arkcb-radius);
	background: #fff;
}

.arkcb-block .arkcb-ladder__msg {
	font-size: 17px;
}

@media (min-width: 768px) {
	.arkcb-block .arkcb-gift {
		padding: 16px 20px;
	}
}

@media (max-width: 480px) {
	.arkcb-ladder__dot {
		width: 24px;
		height: 24px;
	}

	.arkcb-ladder__label {
		font-size: 10px;
	}

	.arkcb-gift__row {
		flex-wrap: wrap;
	}

	.arkcb-gift__cta {
		flex-basis: 100%;
	}

	.arkcb-gift__pill {
		width: 100%;
		text-align: center;
	}
}

/* ---------- Knoppen ---------- */
.arkcb-btn {
	display: inline-block;
	padding: 9px 16px;
	border-radius: 999px;
	border: 1px solid var(--arkcb-text);
	background: #fff;
	color: var(--arkcb-text);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.arkcb-btn:hover {
	background: var(--arkcb-text);
	color: #fff;
}

.arkcb-btn--dark {
	background: var(--arkcb-text);
	color: #fff;
}

.arkcb-btn--dark:hover {
	background: #333;
}

.arkcb-btn:disabled,
.arkcb-btn.is-loading {
	opacity: 0.55;
	cursor: wait;
}

.arkcb-error {
	flex-basis: 100%;
	margin-top: 8px;
	font-size: 12px;
	color: #c0392b;
}

/* ---------- Staffel-nudge ---------- */
.arkcb-nudge {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	margin: 0 0 16px;
	border: 1px solid #e8e8e8;
	border-radius: var(--arkcb-radius);
	background: #fff;
	color: var(--arkcb-text);
}

.arkcb-nudge__body {
	flex: 1 1 auto;
	min-width: 0;
}

.arkcb-nudge__title {
	font-weight: 700;
	font-size: 15px;
	line-height: 1.3;
}

.arkcb-nudge__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.arkcb-nudge__sub {
	margin-top: 4px;
	font-size: 12px;
	color: var(--arkcb-muted);
}

.arkcb-nudge__btn {
	flex: 0 0 auto;
}

/* ---------- Upsells ---------- */
.arkcb-upsells {
	margin: 0 0 16px;
	color: var(--arkcb-text);
}

.arkcb-upsells__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.arkcb-upsells__title {
	font-weight: 700;
	font-size: 15px;
}

.arkcb-upsells__nav {
	display: inline-flex;
	gap: 4px;
}

.arkcb-upsells__arrow {
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid #e0e0e0;
	border-radius: 50%;
	background: #fff;
	color: var(--arkcb-text);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.arkcb-upsells__arrow:hover {
	border-color: var(--arkcb-text);
}

.arkcb-upsells__track {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 2px;
}

.arkcb-upsells__track::-webkit-scrollbar {
	display: none;
}

.arkcb-upsell {
	flex: 0 0 auto;
	width: 300px;
	max-width: 85%;
	scroll-snap-align: start;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: var(--arkcb-radius);
	background: var(--arkcb-grey);
}

.arkcb-upsell__image {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

.arkcb-upsell__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.arkcb-upsell__info {
	flex: 1 1 auto;
	min-width: 0;
}

.arkcb-upsell__name {
	font-weight: 600;
	font-size: 13px;
	line-height: 1.3;
}

.arkcb-upsell__price {
	margin-top: 3px;
	font-size: 13px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.arkcb-upsell__price del {
	color: var(--arkcb-muted);
	font-weight: 400;
}

.arkcb-upsell__price ins {
	text-decoration: none;
	font-weight: 600;
}

.arkcb-upsell__badge {
	display: inline-block;
	padding: 2px 7px;
	border-radius: 6px;
	background: var(--arkcb-orange);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.arkcb-upsell__btn {
	flex: 0 0 auto;
	padding: 8px 12px;
	font-size: 12px;
}

/* Mini-cart: smalle kolom */
.elementor-menu-cart__products .arkcb-nudge-wrap {
	padding: 12px 0 0;
}

.elementor-menu-cart__products .arkcb-nudge {
	flex-wrap: wrap;
	padding: 12px 14px;
	margin-bottom: 4px;
}

.elementor-menu-cart__products .arkcb-nudge__title {
	font-size: 14px;
}

.elementor-menu-cart__products .arkcb-nudge__btn {
	flex-basis: 100%;
	text-align: center;
}

.elementor-menu-cart__products .arkcb-upsells-wrap {
	padding: 12px 0 0;
}

.elementor-menu-cart__products .arkcb-upsell {
	width: 100%;
	max-width: 100%;
	flex-wrap: wrap;
}

.elementor-menu-cart__products .arkcb-upsell__btn {
	flex-basis: 100%;
	text-align: center;
}

@media (max-width: 480px) {
	.arkcb-nudge {
		flex-wrap: wrap;
	}

	.arkcb-nudge__btn {
		flex-basis: 100%;
		text-align: center;
	}
}

/* ---------- Mini-cart: sticky footer met totaal, afrekenknop en vertrouwensrij ---------- */
.arkcb-has-footer .elementor-menu-cart__subtotal,
.arkcb-has-footer .elementor-menu-cart__footer-buttons {
	display: none !important;
}

/* De productenlijst is de scroller (Elementor: max-height + overflow-y). De footer plakt onderin. */
.arkcb-has-footer .elementor-menu-cart__products {
	max-height: calc(100vh - 140px);
	padding-bottom: 0;
}

.elementor-menu-cart__products .arkcb-footer-wrap {
	position: sticky;
	bottom: 0;
	z-index: 2;
	margin: 12px -2px 0;
	padding: 0 2px;
	background: var(--cart-background-color, #fff);
}

.arkcb-footer {
	padding: 14px 0 4px;
	border-top: 1px solid #ececec;
	background: var(--cart-background-color, #fff);
	color: var(--arkcb-text);
}

.arkcb-footer__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 12px;
	font-size: 18px;
	font-weight: 600;
}

.arkcb-footer__total-value .amount {
	font-weight: 700;
}

.arkcb-footer__checkout,
.elementor-menu-cart__main a.arkcb-footer__checkout {
	display: block;
	width: 100%;
	padding: 15px 20px;
	border-radius: 999px;
	background: var(--arkcb-text);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	transition: background 0.2s ease;
}

.arkcb-footer__checkout:hover,
.elementor-menu-cart__main a.arkcb-footer__checkout:hover {
	background: #333;
	color: #fff;
}

.arkcb-footer__view-cart,
.elementor-menu-cart__main a.arkcb-footer__view-cart {
	display: block;
	margin-top: 10px;
	text-align: center;
	font-size: 13px;
	color: var(--arkcb-muted);
	text-decoration: underline;
}

.arkcb-trust {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-top: 16px;
}

.arkcb-trust__item {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
	font-size: 11px;
	line-height: 1.3;
	color: var(--arkcb-text);
}

.arkcb-trust__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--arkcb-accent);
	color: var(--arkcb-text);
}

.arkcb-trust__icon svg {
	width: 18px;
	height: 18px;
}

/* ---------- Smalle schermen: labels onder de balk alleen bedragen ---------- */
@media (max-width: 600px) {
	.arkcb-ladder__label-name {
		display: none;
	}

	.arkcb-ladder__label-amount {
		font-size: 11px;
	}

	.arkcb-block .arkcb-ladder {
		padding: 14px 14px 12px;
	}

	.arkcb-block .arkcb-ladder__msg {
		font-size: 15px;
	}
}

/* ---------- Mini-cart vast in beeld (fixed drawer rechts) ----------
 * Elementor's "mini-cart"-type hangt als dropdown onder het icoon en scrolt met de pagina mee.
 * Met body-class arkcb-fixed-cart wordt de container een vaste kolom aan de rechterkant
 * van het scherm; de productenlijst scrolt en de footer blijft onderin.
 * De container houdt Elementor's transform (scale) voor openen/sluiten; daarom is de
 * container zelf fixed en vult __main hem volledig.
 */
.arkcb-fixed-cart .elementor-widget-woocommerce-menu-cart.elementor-menu-cart--cart-type-mini-cart .elementor-menu-cart__container {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	right: 0;
	bottom: 0;
	left: auto;
	inset-inline: auto 0;
	height: auto;
	width: 420px;
	max-width: 100%;
	min-width: 0;
	overflow: visible;
	z-index: 9998;
	transform-origin: top right;
}

.arkcb-fixed-cart .elementor-widget-woocommerce-menu-cart.elementor-menu-cart--cart-type-mini-cart .elementor-menu-cart__main {
	position: relative;
	height: 100%;
	max-height: 100%;
	width: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 0;
	margin-top: 0;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.18);
}

.arkcb-fixed-cart .elementor-menu-cart__main .widget_shopping_cart_content {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.arkcb-fixed-cart .elementor-menu-cart__main .elementor-menu-cart__products {
	flex: 1 1 auto;
	min-height: 0;
	max-height: none;
	overflow-y: auto;
}

@media (max-width: 767px) {
	.arkcb-fixed-cart .elementor-widget-woocommerce-menu-cart.elementor-menu-cart--cart-type-mini-cart .elementor-menu-cart__container {
		width: 100%;
	}
}

/* In de vaste drawer: footer onderin, ook als de inhoud korter is dan het scherm. */
.arkcb-fixed-cart .elementor-menu-cart__main .elementor-menu-cart__products {
	display: flex;
	flex-direction: column;
}

.arkcb-fixed-cart .elementor-menu-cart__main .elementor-menu-cart__products > * {
	flex: 0 0 auto;
}

.arkcb-fixed-cart .elementor-menu-cart__main .elementor-menu-cart__products .arkcb-footer-wrap {
	margin-top: auto;
}

/* Mobiel: Trusted Shops-badge verbergen zolang de drawer (volle breedte) open staat. */
@media (max-width: 767px) {
	body.arkcb-cart-open [id^="trustbadge-container"] {
		display: none !important;
	}
}

/* Productpagina: knop tijdens AJAX-toevoegen */
.single_add_to_cart_button.loading {
	opacity: 0.6;
	cursor: wait;
}

/* ---------- "Dit krijg je": behaalde korting, verzending, cadeaus ---------- */
.arkcb-wins {
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: var(--arkcb-radius);
	background: var(--arkcb-accent);
	color: var(--arkcb-text);
}

.arkcb-wins__title {
	font-weight: 700;
	font-size: 13px;
	margin-bottom: 6px;
}

.arkcb-wins__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.arkcb-wins__item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 6px;
	font-size: 13px;
	line-height: 1.35;
}

.arkcb-wins__item:last-child {
	margin-bottom: 0;
}

.arkcb-wins__icon {
	flex: 0 0 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	border-radius: 50%;
	background: var(--arkcb-text);
	color: #fff;
}

.arkcb-wins__icon svg {
	width: 11px;
	height: 11px;
}

.arkcb-wins__text .amount {
	font-weight: 700;
}

/* Productregel met bundelkorting */
.arkcb-price-now {
	text-decoration: none;
	font-weight: 700;
}

.arkcb-badge--discount {
	background: var(--arkcb-text);
	color: #fff;
}

.arkcb-badge--gift svg {
	width: 10px;
	height: 10px;
	vertical-align: -1px;
	margin-right: 2px;
}

.arkcb-saved {
	display: block;
	margin-top: 3px;
	font-size: 11px;
	color: #3a7d1e;
	font-weight: 600;
}

.arkcb-saved .amount {
	font-weight: 700;
}

/* Cadeauregel: duidelijk groen gemarkeerd */
.elementor-menu-cart__product.arkcb-gift-item,
.woocommerce-cart-form__cart-item.arkcb-gift-item td {
	background: rgba(220, 242, 200, 0.45);
}

.elementor-menu-cart__product.arkcb-gift-item {
	border-radius: 12px;
	padding: 10px 8px;
	margin: 6px -8px;
}

.woocommerce-cart-form__cart-item.arkcb-discount-item .arkcb-price-was {
	display: inline-block;
	margin-right: 6px;
}
