/**
 * Side basket (Better Homes). Markup: inc/side-basket.php. Behaviour: assets/js/side-basket.js.
 * Desktop: a panel from the right. Phones (767px and less): a sheet from the bottom, like the options drawer.
 * Also: the "Adding…" state of the Add to basket button.
 */

/* ---------- Page behind: locked, nothing moves ---------- */
/* Only the page root is locked (not body), and the scrollbar's space is kept: sticky parts and the
 * page width stay exactly where they are while the basket is open. */
html.bh-sb-lock {
	overflow: hidden !important;
	scrollbar-gutter: stable;
}

.bh-sb {
	--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-sb-pad: 24px;
	position: fixed;
	inset: 0;
	z-index: 100000; /* above the header and the floating buttons */
	color: var(--bh-ink);
	font-family: "Poppins", "Poppins Fallback", Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 1.5;
}

.bh-sb[hidden] {
	display: none;
}

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

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

/* The theme styles every button and field; these are ours. */
.bh-sb button,
.bh-sb input {
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
}

.bh-sb__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .5);
	opacity: 0;
	transition: opacity .3s ease;
}

.bh-sb__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(440px, 100%);
	background: #fff;
	box-shadow: -10px 0 40px rgba(0, 0, 0, .14);
	transform: translateX(100%);
	transition: transform .34s cubic-bezier(.22, .61, .36, 1);
	will-change: transform;
	outline: none;
}

.bh-sb.is-open .bh-sb__overlay {
	opacity: 1;
}

.bh-sb.is-open .bh-sb__panel {
	transform: none;
}

.bh-sb__panel.is-dragging {
	transition: none;
}

/* ---------- Top: "Your basket (2 items)" and close ---------- */

.bh-sb__head {
	position: relative;
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 16px;
	padding: 20px var(--bh-sb-pad) 16px;
	border-bottom: 1px solid #eee;
}

.bh-sb__grip {
	display: none;
}

.bh-sb .bh-sb__title {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	color: var(--bh-ink);
	font-family: inherit;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: none;
}

.bh-sb__count {
	color: var(--bh-muted);
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
}

.bh-sb .bh-sb__close {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1.5px solid var(--bh-ink);
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: var(--bh-ink);
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, transform .2s ease;
}

.bh-sb .bh-sb__close:hover {
	background: var(--bh-ink);
	color: #fff;
	transform: rotate(90deg);
}

/* A thin moving line under the top while a change is being saved (takes no space). */
.bh-sb__progress {
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 2px;
	overflow: hidden;
	opacity: 0;
	transition: opacity .2s ease;
	pointer-events: none;
}

.bh-sb__progress::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 40%;
	background: var(--bh-accent);
	animation: bh-sb-progress 1s ease-in-out infinite;
}

.bh-sb.is-busy .bh-sb__progress {
	opacity: 1;
}

@keyframes bh-sb-progress {
	from {
		transform: translateX(-100%);
	}
	to {
		transform: translateX(250%);
	}
}

/* ---------- Contents ---------- */

.bh-sb__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
}

.bh-sb__body {
	flex: 1 1 auto;
	min-height: 0;
	padding: 4px var(--bh-sb-pad);
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	transition: opacity .2s ease;
}

/* Contents from earlier, being brought up to date. */
.bh-sb.is-stale .bh-sb__body,
.bh-sb.is-stale .bh-sb__foot {
	opacity: .55;
	pointer-events: none;
}

.bh-sb .bh-sb__items {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* One product */
.bh-sb .bh-sb-item {
	position: relative;
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 16px;
	margin: 0;
	padding: 18px 0;
	list-style: none;
}

.bh-sb .bh-sb-item + .bh-sb-item {
	border-top: 1px solid #efeee8;
}

/* Just added: a soft glow that fades. */
.bh-sb .bh-sb-item.is-flash::before {
	content: "";
	position: absolute;
	inset: 6px -12px;
	z-index: -1;
	border-radius: 12px;
	background: var(--bh-brand-tint, #fbf7f9);
	box-shadow: inset 0 0 0 1px var(--bh-brand-line, #e5d3da);
	animation: bh-sb-flash 2.4s ease forwards;
}

.bh-sb__items {
	position: relative;
	z-index: 0;
}

@keyframes bh-sb-flash {
	0%,
	55% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

.bh-sb .bh-sb-item.is-removing {
	overflow: hidden;
	opacity: 0;
	transition: opacity .18s ease, height .24s ease .08s, padding .24s ease .08s;
}

.bh-sb-item__pic {
	display: block;
	width: 88px;
	height: 88px;
	overflow: hidden;
	border-radius: 10px;
	background: var(--bh-soft);
}

.bh-sb .bh-sb-item__pic img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.bh-sb-item__info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.bh-sb-item__top {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.bh-sb .bh-sb-item__name {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	color: var(--bh-ink);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-transform: none;
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.bh-sb .bh-sb-item__name a {
	color: inherit;
	text-decoration: none;
}

@media (hover: hover) {
	.bh-sb .bh-sb-item__name a:hover {
		color: var(--bh-accent);
	}
}

.bh-sb .bh-sb-item__remove {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	min-height: 0;
	margin: -6px -8px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: var(--bh-muted);
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}

.bh-sb .bh-sb-item__remove:hover {
	background: #fdf3f5;
	color: var(--bh-error);
}

/* Options (variation and product add-ons): a tidy "name  value" list. */
.bh-sb .bh-sb-item__meta dl.variation {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 2px 10px;
	margin: 6px 0 0;
	padding: 0;
	border: 0;
	font-size: 13px;
	line-height: 1.45;
}

.bh-sb .bh-sb-item__meta dl.variation dt,
.bh-sb .bh-sb-item__meta dl.variation dd {
	float: none;
	display: block;
	margin: 0;
	padding: 0;
	font-size: inherit;
	line-height: inherit;
}

.bh-sb .bh-sb-item__meta dl.variation dt {
	color: var(--bh-muted);
	font-weight: 400;
	white-space: nowrap;
}

.bh-sb .bh-sb-item__meta dl.variation dd {
	min-width: 0;
	color: var(--bh-ink);
	font-weight: 500;
	overflow-wrap: anywhere;
}

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

/* The same list in Woodmart's markup (its cart-item-data template): ul.variation > li > name + value. */
.bh-sb .bh-sb-item__meta ul.variation {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 2px 10px;
	margin: 6px 0 0;
	padding: 0;
	font-size: 13px;
	line-height: 1.45;
	list-style: none;
}

.bh-sb .bh-sb-item__meta ul.variation li {
	display: contents;
	margin: 0;
	padding: 0;
}

.bh-sb .bh-sb-item__meta .item-variation-name {
	margin: 0;
	color: var(--bh-muted);
	font-weight: 400;
	white-space: nowrap;
}

.bh-sb .bh-sb-item__meta .item-variation-value {
	min-width: 0;
	margin: 0;
	color: var(--bh-ink);
	font-weight: 500;
	overflow-wrap: anywhere;
}

.bh-sb .bh-sb-item__meta .item-variation-value p {
	display: inline;
	margin: 0;
}

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

.bh-sb-item__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 12px;
}

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

.bh-sb-item__price {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	min-width: 0;
	text-align: right;
	transition: opacity .2s ease;
}

.bh-sb .bh-sb-item__price strong {
	color: var(--bh-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
}

.bh-sb-item__each {
	color: var(--bh-muted);
	font-size: 12px;
	line-height: 1.4;
	white-space: nowrap;
}

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

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

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

.bh-sb ins {
	text-decoration: none;
}

/* Price being worked out after a quantity change */
.bh-sb .bh-sb-item.is-updating .bh-sb-item__price {
	opacity: .4;
}

/* Quantity: − 1 + */
.bh-sb-qty {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: stretch;
	height: 36px;
	overflow: hidden;
	border: 1px solid var(--bh-line);
	border-radius: 8px;
	background: #fff;
}

.bh-sb .bh-sb-qty__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	min-width: 0;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	color: var(--bh-ink);
	cursor: pointer;
	transition: background-color .15s ease;
}

.bh-sb .bh-sb-qty__btn:hover:not(:disabled) {
	background: var(--bh-soft);
}

.bh-sb .bh-sb-qty__btn:disabled {
	color: #c4c4c4;
	cursor: not-allowed;
}

.bh-sb .bh-sb-qty__input {
	width: 40px;
	min-width: 0;
	height: auto;
	min-height: 0;
	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-sb .bh-sb-qty__input::-webkit-outer-spin-button,
.bh-sb .bh-sb-qty__input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.bh-sb .bh-sb-qty__input:focus {
	outline: none;
	background: var(--bh-brand-tint, #fbf7f9);
}

/* Messages: "Added to your basket", "Sorry, only 2 available.", discount code results */
.bh-sb-note,
.bh-sb-msg p {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--bh-brand-line, #e5d3da);
	border-radius: 8px;
	background: var(--bh-soft);
	color: var(--bh-ink);
	font-size: 14px;
	line-height: 1.45;
	animation: bh-sb-fade .2s ease;
}

.bh-sb-note {
	margin: 14px 0 2px;
}

.bh-sb-note svg,
.bh-sb-msg p svg {
	flex: 0 0 auto;
	margin-top: 1px;
	color: var(--bh-accent);
}

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

.bh-sb-note.is-error,
.bh-sb-msg p.bh-cart-msg__no {
	border-color: #f1c7cf;
	background: #fdf3f5;
	color: #8a2236;
}

.bh-sb-note.is-error svg,
.bh-sb-msg p.bh-cart-msg__no svg {
	color: var(--bh-error);
}

.bh-sb-msg p {
	margin-top: 10px;
}

@keyframes bh-sb-fade {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
}

/* ---------- Bottom: discount code, subtotal, buttons ---------- */

.bh-sb__foot {
	flex: 0 0 auto;
	padding: 16px var(--bh-sb-pad) calc(18px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid #eee;
	background: #fff;
	box-shadow: 0 -8px 24px rgba(36, 36, 36, .04);
	transition: opacity .2s ease;
}

/* Field and Apply: the same height (as on the basket page). */
.bh-sb-code {
	display: flex;
	align-items: stretch;
	gap: 8px;
	margin: 0;
}

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

.bh-sb .bh-sb-code__input::placeholder {
	color: #9a9a9a;
	text-transform: none;
}

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

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

.bh-sb .bh-sb-code .bh-sb-code__apply {
	flex: 0 0 auto;
	height: 48px;
	min-height: 48px;
	padding: 0 20px;
}

.bh-sb-code.is-sending .bh-sb-code__apply {
	opacity: .6;
	pointer-events: none;
}

.bh-sb-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.bh-sb-row--discount {
	margin: 0 0 12px;
	font-size: 14px;
}

.bh-sb-row--discount .bh-sb-row__value {
	color: var(--bh-accent);
	font-weight: 600;
	white-space: nowrap;
}

.bh-sb-coupon {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	padding: 3px 4px 3px 10px;
	border: 1px dashed var(--bh-brand-line, #e5d3da);
	border-radius: 6px;
	background: var(--bh-soft);
	color: var(--bh-accent);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .03em;
}

.bh-sb-coupon__code {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bh-sb .bh-sb-coupon__remove {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: var(--bh-muted);
	cursor: pointer;
}

.bh-sb .bh-sb-coupon__remove:hover {
	background: #fff;
	color: var(--bh-error);
}

.bh-sb-row--subtotal {
	margin: 16px 0 0;
	font-size: 16px;
	font-weight: 500;
}

.bh-sb-row--subtotal .bh-sb-row__value {
	font-size: 18px;
	font-weight: 600;
	white-space: nowrap;
}

.bh-sb-delivery {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 6px 0 14px;
	color: var(--bh-muted);
	font-size: 13px;
	line-height: 1.45;
}

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

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

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

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

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

@media (hover: hover) {
	.bh-sb .bh-sb-btn--outline:hover {
		background: var(--bh-accent);
		color: #fff;
		filter: none;
	}
}

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

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

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

.bh-sb a:focus-visible,
.bh-sb button:focus-visible,
.bh-sb .bh-sb-qty__input:focus-visible {
	outline: 2px solid var(--bh-accent);
	outline-offset: 2px;
}

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

.bh-sb__empty {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px var(--bh-sb-pad) calc(48px + env(safe-area-inset-bottom, 0px));
	text-align: center;
}

.bh-sb__empty-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: var(--bh-soft);
	color: var(--bh-accent);
}

.bh-sb .bh-sb__empty-title {
	margin: 0 0 6px;
	color: var(--bh-ink);
	font-family: inherit;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: none;
}

.bh-sb__empty p {
	max-width: 300px;
	margin: 0 0 22px;
	color: var(--bh-muted);
	font-size: 15px;
}

.bh-sb__empty .bh-sb-btn {
	min-width: 200px;
}

/* ---------- While loading: grey blocks the size of the real items ---------- */

.bh-sb-item--ghost .bh-sb-item__pic,
.bh-sb-ghost {
	background: #f2eff0;
	animation: bh-sb-pulse 1.2s ease-in-out infinite alternate;
}

.bh-sb-ghost {
	display: block;
	height: 14px;
	margin: 0 0 9px;
	border-radius: 4px;
}

.bh-sb-ghost--name {
	width: 80%;
	height: 16px;
	margin-bottom: 12px;
}

.bh-sb-ghost--meta {
	width: 55%;
	height: 12px;
}

.bh-sb-ghost--short {
	width: 40%;
}

.bh-sb-ghost--foot {
	width: 100%;
	height: 36px;
	margin: 10px 0 0;
	border-radius: 8px;
}

@keyframes bh-sb-pulse {
	from {
		opacity: 1;
	}
	to {
		opacity: .5;
	}
}

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

.bh-sb-confirm {
	width: min(400px, 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, .2);
	font-family: "Poppins", "Poppins Fallback", Arial, Helvetica, sans-serif;
}

.bh-sb-confirm::backdrop {
	background: rgba(20, 20, 20, .35);
}

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

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

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

.bh-sb-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-sb .bh-sb-confirm__title {
	margin: 0 0 8px;
	color: var(--bh-ink);
	font-family: inherit;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: none;
}

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

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

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

.bh-sb .bh-sb-confirm__actions .bh-sb-btn {
	width: 100%;
	min-height: 46px;
	padding: 0 12px;
}

/* ---------- Phones and small tablets: a sheet from the bottom ---------- */

@media (max-width: 767px) {
	.bh-sb {
		--bh-sb-pad: 18px;
	}

	.bh-sb__panel {
		top: auto;
		left: 0;
		width: 100%;
		height: 88vh;
		height: 88dvh;
		border-radius: 16px 16px 0 0;
		box-shadow: 0 -10px 40px rgba(0, 0, 0, .14);
		transform: translateY(100%);
	}

	.bh-sb__head {
		padding: 24px var(--bh-sb-pad) 12px;
		touch-action: none;
	}

	.bh-sb__grip {
		position: absolute;
		top: 9px;
		left: 50%;
		display: block;
		width: 40px;
		height: 4px;
		margin-left: -20px;
		border-radius: 2px;
		background: #d6d6d6;
	}

	.bh-sb .bh-sb__title {
		font-size: 18px;
	}

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

	.bh-sb-item__pic {
		width: 76px;
		height: 76px;
	}

	.bh-sb__foot {
		padding: 12px var(--bh-sb-pad) calc(12px + env(safe-area-inset-bottom, 0px));
	}

	.bh-sb-row--subtotal {
		margin-top: 12px;
	}

	.bh-sb-delivery {
		margin-bottom: 12px;
	}
}

@media (max-width: 360px) {
	.bh-sb-actions {
		gap: 8px;
	}

	.bh-sb .bh-sb-btn {
		padding: 0 10px;
	}
}

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

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

/* ---------- Add to basket: "Adding…" then "Added" ---------- */

.single_add_to_cart_button.bh-atc-busy {
	pointer-events: none;
}

/* Woodmart's own spinner (it would sit on top of the words) */
.single_add_to_cart_button.bh-atc-busy::after,
.single_add_to_cart_button.bh-atc-done::after {
	display: none !important;
}

.single_add_to_cart_button.bh-atc-busy,
.single_add_to_cart_button.bh-atc-done {
	color: var(--btn-accented-color, #fff) !important;
}

.bh-atc-spin {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-right: 10px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: bh-sb-spin .7s linear infinite;
}

.bh-atc-tick {
	display: inline-flex;
	flex: 0 0 auto;
	margin-right: 8px;
}

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

/* Could not be added (e.g. not enough in stock): the reason, under the button. */
.bh-atc-error {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 10px 0 0;
	padding: 10px 12px;
	border: 1px solid #f1c7cf;
	border-radius: 8px;
	background: #fdf3f5;
	color: #8a2236;
	font-size: 14px;
	line-height: 1.45;
	animation: bh-sb-fade .2s ease;
}

.bh-atc-error svg {
	flex: 0 0 auto;
	margin-top: 1px;
	color: #c4314b;
}

@media (prefers-reduced-motion: reduce) {
	.bh-sb__overlay,
	.bh-sb__panel,
	.bh-sb .bh-sb__close,
	.bh-sb .bh-sb-item.is-removing {
		transition: none;
	}

	.bh-sb-confirm[open],
	.bh-sb .bh-sb-item.is-flash::before,
	.bh-sb-note,
	.bh-sb-msg p,
	.bh-atc-error {
		animation: none;
	}

	.bh-sb-item--ghost .bh-sb-item__pic,
	.bh-sb-ghost,
	.bh-sb__progress::before,
	.bh-atc-spin {
		animation-duration: 2s;
	}
}
