/**
 * Basket (Better Homes). Markup: woocommerce/cart/*.php.
 */

.bh-cart {
	--bh-ink: #242424;
	--bh-muted: #6b6b6b;
	--bh-line: #e3e1d8;
	--bh-soft: var(--bh-brand-soft, #f7f0f3);
	--bh-accent: var(--wd-primary-color, #370d1d);
	--bh-error: #c4314b;
	--bh-radius-btn: var(--btn-default-brd-radius, 5px);
	max-width: 1280px;
	margin: 0 auto 64px;
	color: var(--bh-ink);
	font-size: 15px;
	line-height: 1.55;
}

.bh-cart *,
.bh-cart *::before,
.bh-cart *::after {
	box-sizing: border-box;
}

.bh-cart [hidden] {
	display: none !important;
}

/* ---------- Heading ---------- */

.bh-cart-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 24px;
}

.bh-cart .bh-cart-head__title {
	min-width: 0;
	margin: 0;
	color: var(--bh-ink);
	font-size: clamp(26px, 3.4vw, 34px);
	font-weight: 600;
	line-height: 1.2;
}

.bh-cart-head__count {
	white-space: nowrap;
	color: var(--bh-muted);
	font-size: .6em;
	font-weight: 500;
}

.bh-cart .bh-cart-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--bh-ink);
	font-size: 15px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bh-cart .bh-cart-link:hover {
	color: var(--bh-accent);
}

/* "Continue shopping" on the right of the heading, on the same line */
.bh-cart .bh-cart-head__shop {
	flex: 0 0 auto;
	white-space: nowrap;
}

/* ---------- Two columns: 70 / 30 ---------- */

.bh-cart-grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(300px, 3fr);
	gap: 32px;
	align-items: start;
}

.bh-cart-side {
	position: sticky;
	top: var(--bh-side-top, 140px); /* set by basket.js: below the header, or so its end stays in view */
	display: grid;
	gap: 16px;
}

/* ---------- Products ---------- */

.bh-cart .bh-cart-items {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bh-cart .bh-cart-item {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	gap: 20px;
	margin: 0;
	padding: 20px;
	border: 1px solid var(--bh-line);
	border-radius: 14px;
	background: #fff;
	list-style: none;
	transition: box-shadow .2s ease;
}

.bh-cart .bh-cart-item:hover {
	box-shadow: 0 8px 24px rgba(36, 36, 36, .05);
}

.bh-cart-item__pic a,
.bh-cart-item__pic img {
	display: block;
	width: 100%;
}

.bh-cart .bh-cart-item__pic img {
	aspect-ratio: 1;
	border-radius: 10px;
	background: var(--bh-brand-soft, #f7f0f3);
	object-fit: cover;
}

.bh-cart-item__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.bh-cart-item__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.bh-cart .bh-cart-item__name {
	min-width: 0;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
}

.bh-cart .bh-cart-item__name a {
	color: var(--bh-ink);
	text-decoration: none;
}

.bh-cart .bh-cart-item__name a:hover {
	color: var(--bh-accent);
}

.bh-cart .bh-cart-remove {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 5px;
	width: auto;
	height: auto;
	padding: 4px 2px;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--bh-muted);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color .2s ease;
}

.bh-cart .bh-cart-remove:hover {
	background: none;
	color: var(--bh-error);
}

.bh-cart .bh-cart-remove::before,
.bh-cart .bh-cart-remove::after {
	display: none; /* Woodmart's "×" */
}

/* Options (variation and add-ons) as small tags */
.bh-cart .bh-cart-item__meta dl.variation {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	border: 0;
}

.bh-cart .bh-cart-item__meta dl.variation dt,
.bh-cart .bh-cart-item__meta dl.variation dd {
	float: none;
	display: inline;
	margin: 0;
	padding: 0;
	font-size: 13px;
	line-height: 1.4;
}

.bh-cart .bh-cart-item__meta dl.variation dt {
	padding: 4px 0 4px 10px;
	border-radius: 6px 0 0 6px;
	background: var(--bh-soft);
	color: var(--bh-muted);
	font-weight: 400;
}

.bh-cart .bh-cart-item__meta dl.variation dd {
	margin-right: 4px;
	padding: 4px 10px 4px 4px;
	border-radius: 0 6px 6px 0;
	background: var(--bh-soft);
	color: var(--bh-ink);
	font-weight: 500;
}

.bh-cart .bh-cart-item__meta dl.variation dd p {
	display: inline;
	margin: 0;
}

.bh-cart .backorder_notification {
	margin: 6px 0 0;
	color: #8a4b0f;
	font-size: 13px;
}

/* Price, quantity, line total */
.bh-cart-item__foot {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	align-items: end;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid #efeee8;
}

.bh-cart-item__foot > div {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.bh-cart .bh-cart-item__label {
	color: var(--bh-muted);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.bh-cart-item__price,
.bh-cart-item__total {
	font-size: 16px;
}

.bh-cart-item__total {
	text-align: right;
}

.bh-cart .bh-cart-item__total strong {
	font-size: 17px;
	font-weight: 600;
}

.bh-cart .bh-cart-item__qty {
	align-items: center;
}

.bh-cart .amount {
	color: inherit;
}

.bh-cart del .amount {
	color: var(--bh-muted);
	font-weight: 400;
}

/* Quantity stepper (Woodmart's − / +) */
.bh-cart .bh-cart-item__qty .quantity {
	display: inline-flex;
	align-items: stretch;
	height: 42px;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--bh-line);
	border-radius: 8px;
	background: #fff;
}

.bh-cart .bh-cart-item__qty .quantity .minus,
.bh-cart .bh-cart-item__qty .quantity .plus {
	width: 40px;
	min-width: 40px;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	color: var(--bh-ink);
	font-size: 18px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease;
}

.bh-cart .bh-cart-item__qty .quantity .minus:hover,
.bh-cart .bh-cart-item__qty .quantity .plus:hover {
	background: var(--bh-soft);
}

.bh-cart .bh-cart-item__qty .quantity .qty {
	width: 46px;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-right: 1px solid var(--bh-line);
	border-left: 1px solid var(--bh-line);
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	color: var(--bh-ink);
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	-moz-appearance: textfield;
}

.bh-cart .bh-cart-item__qty .quantity .qty::-webkit-outer-spin-button,
.bh-cart .bh-cart-item__qty .quantity .qty::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

/* "Update basket": kept for WooCommerce, not needed with the script (quantities update by themselves) */
.bh-cart .bh-cart-actions {
	margin: 0;
}

/* Hidden from the first moment (not once the script runs), so nothing below moves up on load.
 * Without JavaScript it shows (<noscript> in woocommerce/cart/cart.php). */
.bh-cart .bh-cart-actions .bh-cart-update {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.bh-cart .bh-cart-update {
	padding: 10px 18px;
	border: 1.5px solid var(--bh-accent);
	border-radius: var(--bh-radius-btn);
	background: #fff;
	color: var(--bh-accent);
	font-size: 14px;
	font-weight: 600;
}

/* Reminders under the products */
.bh-cart .bh-cart-promises {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bh-cart .bh-cart-promises li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--bh-soft);
	font-size: 14px;
	line-height: 1.4;
	list-style: none;
}

.bh-cart-promises svg {
	flex: 0 0 auto;
	color: var(--bh-accent);
}

.bh-cart-promises span {
	display: flex;
	flex-direction: column;
}

.bh-cart .bh-cart-promises strong {
	font-weight: 600;
}

.bh-cart .bh-cart-promises a {
	color: var(--bh-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ---------- Right column cards ---------- */

.bh-cart .cart-collaterals,
.bh-cart .cart_totals {
	display: grid;
	gap: 16px;
	width: auto;
	float: none;
	margin: 0;
	padding: 0;
}

.bh-cart .bh-cart-card {
	padding: 22px;
	border: 1px solid var(--bh-line);
	border-radius: 14px;
	background: #fff;
}

.bh-cart .bh-cart-card.is-busy {
	opacity: .6;
	pointer-events: none;
}

.bh-cart .bh-cart-card h2 {
	margin: 0 0 14px;
	color: var(--bh-ink);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: none;
}

.bh-cart .bh-cart-card__lead,
.bh-cart .bh-cart-help p {
	margin: 0 0 12px;
	color: var(--bh-muted);
	font-size: 14px;
}

.bh-cart .bh-cart-summary {
	border-color: var(--bh-brand-line, #e5d3da);
	box-shadow: 0 10px 30px rgba(36, 36, 36, .05);
}

/* Summary rows */
.bh-cart .bh-cart-rows {
	margin: 0 0 18px;
	padding: 0;
}

.bh-cart .bh-cart-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
}

.bh-cart .bh-cart-row dt,
.bh-cart .bh-cart-row dd {
	margin: 0;
	font-size: 15px;
	font-weight: 400;
}

.bh-cart .bh-cart-row dd {
	text-align: right;
}

.bh-cart .bh-cart-row__hint {
	color: var(--bh-muted);
	font-size: 13px;
}

.bh-cart .bh-cart-row__muted {
	color: var(--bh-muted);
	font-size: 14px;
}

/* Discount code row: "Discount" + the code on the left; the amount and "Remove" on the right */
.bh-cart .bh-cart-row--discount dt {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	min-width: 0;
}

.bh-cart .bh-cart-row--discount dd {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
}

.bh-cart .bh-cart-coupon__tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	padding: 3px 10px;
	border: 1px dashed var(--bh-accent);
	border-radius: 999px;
	background: var(--bh-brand-soft, #f7f0f3);
	color: var(--bh-accent);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	line-height: 1.4;
}

.bh-cart .bh-cart-coupon__tag span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bh-cart .bh-cart-coupon__tag svg {
	flex: none;
}

.bh-cart .bh-cart-coupon__amount {
	color: var(--bh-accent);
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
}

.bh-cart .bh-cart-coupon__amount .amount {
	color: inherit;
}

/* Woodmart turns this link into a 30px "×" icon button; here it is a small text link */
.bh-cart .cart_totals a.bh-cart-coupon__remove {
	display: inline;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0 0 1px;
	color: var(--bh-muted);
	font-size: 13px;
	line-height: 1.4;
	/* underline drawn as a line (Woodmart forces text-decoration: none !important) */
	background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}

.bh-cart a.bh-cart-coupon__remove::before,
.bh-cart a.bh-cart-coupon__remove::after {
	content: none !important; /* Woodmart's "×" icon */
	display: none !important;
}

.bh-cart a.bh-cart-coupon__remove:hover {
	color: var(--bh-error);
}

.bh-cart .woocommerce-shipping-methods {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bh-cart .woocommerce-shipping-methods li {
	margin: 0;
	list-style: none;
}

.bh-cart .woocommerce-shipping-methods label {
	margin: 0;
	font-weight: 600;
}

.bh-cart .bh-cart-row--total {
	margin-top: 8px;
	padding-top: 14px;
	border-top: 1px solid var(--bh-line);
}

.bh-cart .bh-cart-row--total dt {
	font-size: 17px;
	font-weight: 600;
}

.bh-cart .bh-cart-row--total dd {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}

.bh-cart .bh-cart-row--total small {
	display: block;
	color: var(--bh-muted);
	font-size: 12px;
	font-weight: 400;
}

/* Buttons */
.bh-cart .bh-cart-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 18px;
	border: 1.5px solid var(--bh-accent);
	border-radius: var(--bh-radius-btn);
	background: var(--bh-accent);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: filter .2s ease, background-color .2s ease, color .2s ease;
}

.bh-cart .bh-cart-btn:hover {
	color: #fff;
	filter: brightness(1.07);
}

.bh-cart .bh-cart-btn--checkout {
	width: 100%;
	min-height: 54px;
	font-size: 16px;
}

.bh-cart .bh-cart-btn--checkout svg {
	transition: transform .2s ease;
}

.bh-cart .bh-cart-btn--checkout:hover svg {
	transform: translateX(3px);
}

.bh-cart .bh-cart-btn--outline {
	background: #fff;
	color: var(--bh-accent);
}

/* Hover only with a mouse: on phones a tapped button would stay filled */
@media (hover: hover) {
	.bh-cart .bh-cart-btn--outline:hover {
		background: var(--bh-accent);
		color: #fff;
		filter: none;
	}
}

.bh-cart .bh-cart-btn--outline:active {
	background: var(--bh-accent);
	color: #fff;
}

.bh-cart .bh-cart-btn:focus-visible,
.bh-cart .bh-cart-link:focus-visible,
.bh-cart .bh-cart-remove:focus-visible,
.bh-cart .bh-cart-whatsapp:focus-visible {
	outline: 2px solid var(--bh-ink);
	outline-offset: 2px;
}

.bh-cart .wc-proceed-to-checkout {
	padding: 0;
}

.bh-cart .bh-cart-secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 12px 0 0;
	color: var(--bh-muted);
	font-size: 13px;
}

/* Code / postcode: field + Apply */
.bh-cart .bh-cart-inline {
	display: flex;
	gap: 8px;
	margin: 0;
}

.bh-cart .bh-cart-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 46px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--bh-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: none;
	color: var(--bh-ink);
	font-family: inherit;
	font-size: 16px; /* no zoom on iPhones */
	text-transform: uppercase;
}

.bh-cart .bh-cart-input::placeholder {
	color: #9a9a9a;
	text-transform: none;
}

.bh-cart .bh-cart-input:focus {
	border-color: var(--bh-accent);
	box-shadow: 0 0 0 3px rgba(55, 13, 29, .15);
	outline: none;
}

.bh-cart .bh-cart-input[aria-invalid="true"] {
	border-color: var(--bh-error);
}

.bh-cart .bh-cart-inline .bh-cart-btn {
	flex: 0 0 auto;
}

.bh-cart .bh-cart-msg p {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 12px 0 0;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.45;
}

.bh-cart .bh-cart-msg__ok {
	border: 1px solid var(--bh-brand-line, #e5d3da);
	background: var(--bh-brand-soft, #f7f0f3);
}

.bh-cart .bh-cart-msg p svg {
	flex: 0 0 auto;
	margin-top: 1px;
}

.bh-cart .bh-cart-msg p > span {
	flex: 1 1 auto;
	min-width: 0;
}

.bh-cart .bh-cart-msg__ok svg {
	color: var(--bh-accent);
}

.bh-cart .bh-cart-msg__no svg {
	color: var(--bh-error);
}

.bh-cart .bh-cart-msg__no {
	border: 1px solid #f1c7cf;
	background: #fdf3f5;
	color: #8a2236;
}

.bh-cart .bh-cart-msg__no a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
}

.bh-cart .bh-cart-msg__info {
	background: var(--bh-soft);
	color: var(--bh-muted);
}

/* Need help? */
.bh-cart .bh-cart-help__line {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	color: var(--bh-ink);
	font-weight: 500;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.bh-cart .bh-cart-help__line svg {
	flex: 0 0 auto;
	color: var(--bh-accent);
}

.bh-cart .bh-cart-help__line:hover {
	color: var(--bh-accent);
}

.bh-cart .bh-cart-whatsapp {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	border-radius: var(--bh-radius-btn);
	background: #1f8f4e;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: filter .2s ease;
}

.bh-cart .bh-cart-whatsapp:hover {
	color: #fff;
	filter: brightness(1.08);
}

.bh-cart .bh-cart-help__more {
	display: block;
	margin-top: 12px;
	font-size: 14px;
	text-align: center;
}

.bh-cart .bh-cart-side__shop {
	justify-self: center;
}

/* ---------- Empty basket ---------- */

.bh-cart--empty {
	max-width: 620px;
	margin: 40px auto 80px;
}

.bh-cart .bh-cart-empty {
	padding: 48px 28px;
	border: 1px solid var(--bh-line);
	border-radius: 16px;
	background: #fff;
	text-align: center;
}

.bh-cart-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	margin: 0 0 18px;
	border-radius: 50%;
	background: var(--bh-brand-soft, #f7f0f3);
	color: var(--bh-accent);
}

.bh-cart .bh-cart-empty__title {
	margin: 0 0 10px;
	font-size: 26px;
	font-weight: 600;
}

.bh-cart .bh-cart-empty p {
	margin: 0 0 22px;
	color: var(--bh-muted);
}

.bh-cart .bh-cart-empty__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0;
}

.bh-cart .bh-cart-empty__actions .bh-cart-btn {
	width: auto;
	min-width: 200px;
}

/* ---------- Phones: total + checkout bar ---------- */

.bh-cart-bar {
	display: none;
}

/* ---------- Tablets and phones ---------- */

@media (max-width: 1024px) {
	.bh-cart-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.bh-cart-side {
		position: static;
	}

	.bh-cart-bar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 400;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--bh-line);
		background: #fff;
		box-shadow: 0 -8px 24px rgba(36, 36, 36, .08);
		transform: translateY(110%);
		transition: transform .25s ease;
	}

	.bh-cart-bar.is-visible {
		transform: none;
	}

	/* Room under the footer so the bar never covers it */
	body.bh-cart-page {
		padding-bottom: calc(76px + env(safe-area-inset-bottom));
	}

	.bh-cart-bar__total {
		display: flex;
		flex-direction: column;
		font-size: 13px;
		line-height: 1.3;
	}

	.bh-cart-bar__total span {
		color: var(--bh-muted);
	}

	.bh-cart-bar__total strong {
		font-size: 18px;
		font-weight: 700;
	}

	.bh-cart-bar .bh-cart-btn {
		min-width: 150px;
	}
}

@media (max-width: 700px) {
	.bh-cart-head {
		gap: 12px;
		margin-bottom: 18px;
	}

	.bh-cart .bh-cart-head__title {
		font-size: 21px;
	}

	.bh-cart .bh-cart-head__shop {
		font-size: 14px;
	}

	.bh-cart .bh-cart-item {
		grid-template-columns: 92px minmax(0, 1fr);
		gap: 14px;
		padding: 14px;
	}

	.bh-cart .bh-cart-item__name {
		font-size: 15px;
	}

	.bh-cart .bh-cart-remove span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.bh-cart-item__foot {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.bh-cart-item__price {
		grid-column: 1 / -1;
		flex-direction: row !important;
		align-items: baseline;
		gap: 8px !important;
	}

	.bh-cart .bh-cart-item__qty {
		align-items: flex-start;
	}

	.bh-cart .bh-cart-promises {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}

	.bh-cart .bh-cart-card {
		padding: 18px;
	}
}

/* ---------- Your wishlist ----------
 * Desktop: under the products (left column), 3 at a time, scrolls sideways (arrows + swipe).
 * Tablets and phones: at the very end, after the summary and help; phones show 1 at a time. */

.bh-cart .bh-cart-grid {
	grid-template-rows: auto auto 1fr; /* products, reminders, wishlist | summary beside all three */
	row-gap: 20px;
}

.bh-cart .bh-cart-main {
	grid-column: 1;
	grid-row: 1;
}

.bh-cart .bh-cart-side {
	grid-column: 2;
	grid-row: 1 / span 3;
}

.bh-cart .bh-cart-promises {
	grid-column: 1;
	grid-row: 2;
}

.bh-cart .bh-cart-wish {
	grid-column: 1;
	grid-row: 3;
	align-self: start;
	min-width: 0;
	margin-top: 8px;
}

.bh-cart .bh-cart-wish__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 36px; /* same height before and after the arrows appear */
	margin-bottom: 14px;
}

.bh-cart .bh-cart-wish__head h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}

.bh-cart .bh-cart-wish__tools {
	display: flex;
	align-items: center;
	gap: 8px;
}

.bh-cart .bh-cart-wish__tools .bh-cart-link {
	margin-right: 6px;
}

.bh-cart .bh-cart-wish__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1px solid var(--bh-line);
	border-radius: 50%;
	background: #fff;
	color: var(--bh-ink);
	box-shadow: none;
	cursor: pointer;
}

.bh-cart .bh-cart-wish__arrow:hover:not(:disabled) {
	border-color: var(--bh-accent);
	color: var(--bh-accent);
}

.bh-cart .bh-cart-wish__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.bh-cart .bh-cart-wish__list {
	--bh-wish-gap: 16px;
	--bh-wish-cols: 3;
	display: grid;
	grid-template-columns: none;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--bh-wish-cols) - 1) * var(--bh-wish-gap)) / var(--bh-wish-cols));
	gap: var(--bh-wish-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: thin;
	margin: 0;
	padding: 0 0 10px;
	list-style: none;
	-webkit-overflow-scrolling: touch;
}

.bh-cart .bh-cart-wish__item {
	--bh-card-accent: var(--bh-accent); /* press effect colour (product-card.css / product-card.js) */
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	margin: 0;
	padding: 12px;
	overflow: hidden;
	border: 1px solid var(--bh-line);
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	scroll-snap-align: start;
	transition: box-shadow .25s ease, opacity .25s ease, transform .25s ease;
	-webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
	.bh-cart .bh-cart-wish__item:hover {
		box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
	}

	.bh-cart .bh-cart-wish__item:hover .bh-cart-wish__pic img {
		transform: scale(1.03);
	}
}

/* Moved into the basket */
.bh-cart .bh-cart-wish__item.is-leaving {
	opacity: 0;
	transform: scale(.96);
}

.bh-cart .bh-cart-wish__pic {
	display: block;
	overflow: hidden;
	margin-bottom: 4px;
	border-radius: 6px;
	background: var(--bh-soft);
	aspect-ratio: 1 / 1;
}

.bh-cart .bh-cart-wish__pic img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.bh-cart .bh-cart-wish__name {
	display: -webkit-box;
	min-height: calc(2 * 1.35em); /* two lines: buttons line up across the cards */
	margin: 0;
	overflow: hidden;
	color: var(--bh-ink);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.bh-cart .bh-cart-wish__name a {
	color: inherit;
	text-decoration: none;
}

.bh-cart .bh-cart-wish__name a:hover {
	color: var(--bh-accent);
}

.bh-cart .bh-cart-wish__price {
	color: var(--bh-ink);
	font-size: 14px;
}

.bh-cart .bh-cart-wish__price del {
	color: var(--bh-muted);
	font-size: 13px;
}

.bh-cart .bh-cart-wish__btn {
	position: relative;
	z-index: 4; /* above the press effect */
	width: 100%;
	min-height: 40px;
	margin-top: auto;
	font-size: 14px;
}

/* Adding: the label gives way to a small spinner (the button keeps its size) */
.bh-cart .bh-cart-wish__btn.is-loading {
	color: transparent;
	pointer-events: none;
}

.bh-cart .bh-cart-wish__btn.is-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid var(--bh-accent);
	border-right-color: transparent;
	border-radius: 50%;
	animation: bh-cart-spin .7s linear infinite;
}

@keyframes bh-cart-spin {
	to {
		transform: rotate(360deg);
	}
}

.bh-cart .bh-cart-wish__out {
	margin-top: auto;
	color: var(--bh-muted);
	font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
	.bh-cart .bh-cart-wish__list {
		scroll-behavior: auto;
	}
}

@media (max-width: 1024px) {
	.bh-cart .bh-cart-grid {
		grid-template-rows: none;
	}

	/* Products, summary and help, reminders, wishlist: one after another */
	.bh-cart .bh-cart-main,
	.bh-cart .bh-cart-side,
	.bh-cart .bh-cart-promises,
	.bh-cart .bh-cart-wish {
		grid-column: 1;
		grid-row: auto;
	}

	.bh-cart .bh-cart-grid {
		row-gap: 24px;
	}

	.bh-cart .bh-cart-wish {
		margin-top: 16px;
	}
}

@media (max-width: 700px) {
	.bh-cart .bh-cart-wish__list {
		--bh-wish-gap: 12px;
		grid-auto-columns: 84%; /* one card, with the next one peeking */
	}

	.bh-cart .bh-cart-wish__arrow {
		display: none;
	}
}

/* ---------- Notices ("Basket updated", "Item removed. Undo?"…) ----------
 * They float over the page (top right; full width on phones) instead of pushing the basket down, so nothing
 * jumps when they come and go. Close button; confirmations go by themselves (basket.js). */

body.bh-cart-page .wd-content-layout .woocommerce-notices-wrapper:not(:empty) {
	position: fixed;
	top: calc(var(--bh-cart-top, 0px) + 16px);
	right: 24px;
	z-index: 1000;
	display: grid;
	gap: 10px;
	width: min(420px, calc(100vw - 32px));
	margin: 0;
	pointer-events: none;
}

body.bh-cart-page .wd-content-layout .woocommerce-notices-wrapper > * {
	pointer-events: auto;
	margin: 0 !important;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(36, 36, 36, .14);
	animation: bh-notice-in .25s ease-out;
}

@keyframes bh-notice-in {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.bh-cart-page .woocommerce-notices-wrapper > .bh-notice {
	position: relative;
	padding-right: 48px;
	transition: opacity .3s ease, transform .3s ease;
}

.bh-cart-page .woocommerce-notices-wrapper > .bh-notice.is-leaving {
	opacity: 0;
	transform: translateY(-8px);
}

.bh-cart-page .bh-notice__close {
	position: absolute;
	top: 50%;
	right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	min-height: 0;
	margin: -16px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	box-shadow: none;
	cursor: pointer;
	opacity: .7;
}

.bh-cart-page .bh-notice__close:hover,
.bh-cart-page .bh-notice__close:focus-visible {
	opacity: 1;
	background: rgba(0, 0, 0, .06);
}

@media (max-width: 700px) {
	body.bh-cart-page .wd-content-layout .woocommerce-notices-wrapper:not(:empty) {
		right: 12px;
		left: 12px;
		width: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.bh-cart-page .wd-content-layout .woocommerce-notices-wrapper > *,
	.bh-cart-page .woocommerce-notices-wrapper > .bh-notice {
		animation: none;
		transition: none;
	}
}

/* ---------- Remove: "Remove this item?" Yes / No ---------- */

.bh-cart .bh-cart-confirm {
	width: min(420px, calc(100vw - 32px));
	max-width: none;
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: #fff;
	color: var(--bh-ink);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}

.bh-cart .bh-cart-confirm::backdrop {
	background: rgba(20, 20, 20, .45);
}

.bh-cart .bh-cart-confirm[open] {
	animation: bh-cart-pop .18s ease-out;
}

@keyframes bh-cart-pop {
	from {
		opacity: 0;
		transform: translateY(8px) scale(.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.bh-cart .bh-cart-confirm__box {
	padding: 28px 24px 24px;
	text-align: center;
}

.bh-cart .bh-cart-confirm__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: var(--bh-soft);
	color: var(--bh-accent);
}

.bh-cart .bh-cart-confirm__title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}

.bh-cart .bh-cart-confirm__text {
	margin: 0 0 22px;
	color: var(--bh-muted);
	font-size: 15px;
	overflow-wrap: anywhere;
}

.bh-cart .bh-cart-confirm__text strong {
	color: var(--bh-ink);
	font-weight: 600;
}

.bh-cart .bh-cart-confirm__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.bh-cart .bh-cart-confirm__actions .bh-cart-btn {
	width: 100%;
	min-height: 46px;
}

@media (max-width: 420px) {
	.bh-cart .bh-cart-confirm__actions {
		grid-template-columns: 1fr;
	}

	.bh-cart .bh-cart-confirm__actions [data-bh-yes] {
		order: -1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bh-cart .bh-cart-confirm[open] {
		animation: none;
	}
}
