/*
 * BloomPost winkelwagen (woocommerce/cart/cart.php)
 * Maten uit Figma "Kaart first flows": desktop-modus (>=1025px), mobiel (<=767px),
 * tablet (768-1024px) is daartussen afgeleid.
 */

body.bp-cart-page {
	--bp-ink: #0f2c30;
	--bp-black: #000;
	--bp-green-dark: #459e8c;
	--bp-green-soft: #ddf0ed;
	--bp-grey-medium: #d2d8d9;
	--bp-grey-dark: #676f70;
	--bp-red: #e05a5a;
	--bp-font: "Helvetica-Neue", "Helvetica Neue", Helvetica, Arial, sans-serif;

	/* desktop tokens */
	--bp-p1: 18px;
	--bp-p1-lh: 1.1;
	--bp-p2-lh: 1.6;
	--bp-h1: 28px;
	--bp-h3: 20px;
	--bp-btn: 29px;
	--bp-gap-m: 20px;
	--bp-gap-s: 12px;
}

/* Hello Elementor container opheffen zodat de template zelf de breedte bepaalt */
body.bp-cart-page main.site-main,
body.bp-cart-page .site-main .page-content {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
}
body.bp-cart-page .site-main .page-header { display: none; }

body.bp-cart-page .woocommerce-notices-wrapper:not(:empty) {
	box-sizing: border-box;
	max-width: 1300px;
	margin: 16px auto 0;
	padding: 0 108px;
	font-family: var(--bp-font);
}

/* ---------- basis ---------- */
.bp-cart,
.bp-cart * { box-sizing: border-box; }

.bp-cart {
	max-width: 1300px;
	margin: 0 auto;
	padding: 16px 108px 32px;
	font-family: var(--bp-font);
	color: var(--bp-ink);
	font-size: var(--bp-p1);
	line-height: var(--bp-p1-lh);
	-webkit-font-smoothing: antialiased;
}

.bp-cart :where(h1, p, form, aside, a, button, input) {
	margin: 0;
	font-family: inherit;
	letter-spacing: 0;
	text-transform: none;
}

.bp-cart a { text-decoration: none; }

.bp-cart .bp-cart__title {
	margin: 0 0 16px;
	padding: 24px 0;
	font-family: var(--bp-font);
	font-size: var(--bp-h1);
	font-weight: 700;
	line-height: 1;
	color: var(--bp-ink);
	text-align: center;
}

.bp-cart__layout {
	display: flex;
	align-items: flex-start;
	gap: 40px;
}

/* ---------- producten ---------- */
.bp-cart__main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: var(--bp-gap-m);
}

.bp-cart__head {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--bp-black);
	font-size: var(--bp-p1);
	line-height: var(--bp-p1-lh);
	color: var(--bp-black);
}

.bp-cart__item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: #fff;
	border-radius: 8px;
}

.bp-cart__row {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 80px;
}

.bp-cart__thumb {
	flex: 0 0 80px;
	width: 80px;
	height: 80px;
}
.bp-cart__thumb a { display: block; height: 100%; }
.bp-cart .bp-cart__thumb img,
.bp-cart .bp-cart__img {
	display: block;
	width: 80px;
	height: 80px;
	max-width: none;
	object-fit: cover;
	border-radius: 4px;
	box-shadow: none;
}

.bp-cart__info {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.bp-cart__name {
	font-size: var(--bp-p1);
	font-weight: 700;
	line-height: 1;
	color: var(--bp-ink);
}
.bp-cart__qty { font-weight: 400; }

.bp-cart .bp-cart__remove {
	font-size: 12px;
	line-height: 1;
	font-weight: 400;
	color: var(--bp-grey-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.bp-cart .bp-cart__remove:hover { color: var(--bp-ink); }

.bp-cart__price {
	flex: 0 0 auto;
	font-size: var(--bp-p1);
	line-height: var(--bp-p1-lh);
	color: var(--bp-ink);
	text-align: right;
	white-space: nowrap;
}

/* persoonlijke tekst */
.bp-cart__message {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bp-cart__message-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	font-size: var(--bp-p1);
	line-height: var(--bp-p1-lh);
}

.bp-cart .bp-cart__edit {
	display: inline-flex;
	align-items: center;
	color: var(--bp-green-dark);
	font-size: var(--bp-p1);
	line-height: var(--bp-p1-lh);
}
.bp-cart .bp-cart__edit:hover { color: var(--bp-ink); }
.bp-cart__chevron { flex: 0 0 10px; width: 10px; height: 10px; margin-left: 2px; }

.bp-cart__message-box {
	padding: 8px;
	border: 1px solid var(--bp-grey-medium);
	border-radius: 8px;
	font-size: var(--bp-p1);
	line-height: var(--bp-p2-lh);
	color: var(--bp-ink);
	overflow-wrap: anywhere;
}

/* kortingscode */
.bp-cart__coupon {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bp-cart__coupon-row {
	display: flex;
	gap: 8px;
}

.bp-cart .bp-cart__coupon-input {
	flex: 0 1 240px;
	width: 240px;
	min-width: 0;
	height: 32px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--bp-grey-medium);
	border-radius: 100px;
	background: #fff;
	box-shadow: none;
	font-family: var(--bp-font);
	font-size: var(--bp-p1);
	line-height: var(--bp-p2-lh);
	color: var(--bp-ink);
}
.bp-cart .bp-cart__coupon-input::placeholder { color: var(--bp-ink) !important; opacity: 1; }
.bp-cart .bp-cart__coupon-input:focus::placeholder { color: transparent !important; }
.bp-cart .bp-cart__coupon-input:focus { border-color: var(--bp-grey-dark); outline: none; }

.bp-cart .bp-cart__coupon-btn {
	flex: 0 0 auto;
	min-width: 120px;
	height: 32px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 100px;
	background: var(--bp-green-soft);
	box-shadow: none;
	font-family: var(--bp-font);
	font-size: var(--bp-p1);
	font-weight: 400;
	line-height: var(--bp-p1-lh);
	color: var(--bp-ink);
	cursor: pointer;
	transition: background-color .15s ease;
}
.bp-cart .bp-cart__coupon-btn:hover,
.bp-cart .bp-cart__coupon-btn:focus { background: #b3dfd6; color: var(--bp-ink); }

.bp-cart__coupon-note {
	font-size: var(--bp-p1);
	line-height: var(--bp-p2-lh);
	color: var(--bp-ink);
}

/* ---------- totalen ---------- */
.bp-cart__side {
	flex: 0 0 315px;
	width: 315px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
}

.bp-cart__totals {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 16px 16px 24px;
	background: #fff;
	border: 1px solid var(--bp-grey-dark);
	border-radius: 16px;
	box-shadow: 0 4px 4px rgba(0, 0, 0, .25);
}

.bp-cart__total-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--bp-gap-s);
	min-height: 24px;
}

.bp-cart__total-label {
	font-size: var(--bp-h3);
	font-weight: 700;
	line-height: 1;
	color: var(--bp-ink);
}

.bp-cart__total-value {
	font-size: var(--bp-p1);
	line-height: var(--bp-p1-lh);
	color: var(--bp-ink);
	text-align: right;
	white-space: nowrap;
}
.bp-cart__muted { white-space: normal; font-size: .8em; color: var(--bp-grey-dark); }

.bp-cart__total-row--discount .bp-cart__total-value { color: #68bfad; }
.bp-cart .bp-cart__coupon-remove {
	display: inline-block;
	margin-left: 4px;
	font-size: 12px;
	font-weight: 400;
	color: var(--bp-grey-dark);
}

.bp-cart .bp-cart__checkout-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 51px;
	padding: 8px var(--bp-gap-m);
	border-radius: 100px;
	background: var(--bp-ink);
	color: #fff;
	font-family: var(--bp-font);
	font-size: var(--bp-btn);
	font-weight: 700;
	line-height: 1;
	text-align: center;
	transition: background-color .15s ease;
}
.bp-cart .bp-cart__checkout-btn:hover,
.bp-cart .bp-cart__checkout-btn:focus { background: #1d464c; color: #fff; }

/* ---------- Kiyoh ---------- */
.bp-kiyoh {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 33px;
	color: var(--bp-grey-dark);
	--bp-kiyoh-star: 20px;
}
.bp-cart a.bp-kiyoh:hover { color: var(--bp-ink); }

.bp-kiyoh__score {
	position: relative;
	flex: 0 0 33px;
	width: 33px;
	height: 33px;
	border-radius: 50%;
	background: conic-gradient(from 200deg, #e8412c, #f39200, #f7d117, #9cc93b, #3fae49, #e8412c);
	display: flex;
	align-items: center;
	justify-content: center;
}
.bp-kiyoh__score span {
	width: 23px;
	height: 23px;
	border-radius: 50%;
	background: #fff;
	color: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.bp-kiyoh__stars {
	position: relative;
	display: inline-block;
	line-height: 0;
	white-space: nowrap;
}
.bp-kiyoh__stars svg {
	width: var(--bp-kiyoh-star);
	height: var(--bp-kiyoh-star);
	margin-right: 4px;
}
.bp-kiyoh__stars-base svg { fill: none; stroke: #f7b500; stroke-width: 1.5px; }
.bp-kiyoh__stars-fill {
	position: absolute;
	inset: 0 auto 0 0;
	overflow: hidden;
}
.bp-kiyoh__stars-fill svg { fill: #f7b500; stroke: #f7b500; stroke-width: 1.5px; }

.bp-kiyoh__count {
	font-size: 20px;
	line-height: 1;
	color: var(--bp-grey-dark);
	white-space: nowrap;
}

/* ---------- meldingen (bijv. "… verwijderd. Ongedaan maken?") in eigen stijl ---------- */
body.bp-cart-page .woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
	display: block;
	margin: 0 0 8px;
	padding: 12px 16px;
	border: 0;
	border-radius: 8px;
	background: var(--bp-green-soft);
	box-shadow: none;
	font-family: var(--bp-font);
	font-size: var(--bp-p1);
	line-height: var(--bp-p2-lh);
	color: var(--bp-ink);
	text-align: center;
	list-style: none;
}
body.bp-cart-page .woocommerce-notices-wrapper .woocommerce-error {
	background: #fbe9e9;
}
body.bp-cart-page .woocommerce-notices-wrapper .woocommerce-error li { margin: 0; padding: 0; }
body.bp-cart-page .woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before,
body.bp-cart-page .woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) > svg {
	display: none;
	content: none;
}
body.bp-cart-page .woocommerce-notices-wrapper a:not(.button) {
	color: var(--bp-green-dark);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}
body.bp-cart-page .woocommerce-notices-wrapper a:not(.button):hover,
body.bp-cart-page .woocommerce-notices-wrapper a:not(.button):focus { color: var(--bp-ink); }

/* ---------- lege winkelwagen ---------- */
.bp-cart--empty { text-align: center; }
.bp-cart .bp-cart__empty-text {
	font-size: var(--bp-p1);
	line-height: var(--bp-p2-lh);
	color: var(--bp-ink);
	text-align: center;
}
body.bp-cart-page .wc-empty-cart-message,
body.bp-cart-page .cart-empty,
body.bp-cart-page .return-to-shop {
	max-width: 1084px;
	margin-left: auto;
	margin-right: auto;
	font-family: var(--bp-font);
	color: var(--bp-ink);
	text-align: center;
}
body.bp-cart-page .return-to-shop { padding: 24px 0 64px; }
body.bp-cart-page .return-to-shop .button {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 8px 20px;
	border: 0;
	border-radius: 100px;
	background: var(--bp-ink);
	color: #fff;
	font-family: var(--bp-font);
	font-size: 16px;
	font-weight: 700;
}

/* ---------- tablet (768 - 1024) ---------- */
@media (max-width: 1024px) {
	body.bp-cart-page {
		--bp-p1: 15px;
		--bp-h1: 24px;
		--bp-h3: 17px;
		--bp-btn: 22px;
		--bp-gap-m: 18px;
		--bp-gap-s: 10px;
	}

	body.bp-cart-page .woocommerce-notices-wrapper:not(:empty) { padding: 0 40px; }

	.bp-cart { max-width: 800px; padding: 16px 40px 32px; }
	.bp-cart .bp-cart__title { padding: 16px 0; }

	.bp-cart__layout {
		flex-direction: column;
		align-items: stretch;
		gap: 32px;
	}

	.bp-cart__side { flex: 0 0 auto; width: 100%; }
	.bp-cart__totals { gap: 20px; }
	.bp-cart .bp-cart__checkout-btn { min-height: 46px; }
	.bp-kiyoh { --bp-kiyoh-star: 18px; }
	.bp-kiyoh__count { font-size: 17px; }
}

/* ---------- mobiel (<= 767) ---------- */
@media (max-width: 767px) {
	body.bp-cart-page {
		--bp-p1: 12px;
		--bp-h1: 19px;
		--bp-h3: 15px;
		--bp-btn: 16px;
		--bp-gap-m: 16px;
		--bp-gap-s: 8px;
	}

	body.bp-cart-page .woocommerce-notices-wrapper:not(:empty) { padding: 0 20px; }

	.bp-cart { max-width: none; padding: 16px 20px; }
	.bp-cart .bp-cart__title { margin-bottom: 16px; padding: 0; }

	.bp-cart__layout { gap: 16px; }

	.bp-cart__head { padding-bottom: 16px; }

	.bp-cart__message-label { font-weight: 700; line-height: 1; }

	.bp-cart .bp-cart__remove { font-size: 10px; }

	.bp-cart .bp-cart__coupon-input { flex: 1 1 auto; width: auto; }
	.bp-cart .bp-cart__coupon-btn { min-width: 0; }

	.bp-cart__side { gap: 16px; }

	.bp-cart__totals {
		gap: 16px;
		padding: 16px 0 0;
		border: 0;
		border-top: 1px solid var(--bp-black);
		border-radius: 0;
		box-shadow: none;
		background: transparent;
	}

	.bp-cart__total-row { min-height: 18px; }
	.bp-cart__total-row--grand .bp-cart__total-value { font-weight: 700; line-height: 1; }

	.bp-cart .bp-cart__checkout-btn { min-height: 36px; padding: 8px 16px; }

	.bp-kiyoh { height: 27px; gap: 5px; --bp-kiyoh-star: 16px; }
	.bp-kiyoh__score { flex-basis: 27px; width: 27px; height: 27px; }
	.bp-kiyoh__score span { width: 19px; height: 19px; font-size: 11px; }
	.bp-kiyoh__stars svg { margin-right: 3px; }
	.bp-kiyoh__count { font-size: 16px; }
}
