.sbh-cart {
	display: grid;
	gap: 18px;
	color: #1f2933;
}

.sbh-cart__layout {
	display: flex;
	align-items: stretch;
	gap: 24px;
}

.sbh-cart__items-col {
	flex: 1 1 auto;
	min-width: 0;
}

.sbh-cart__summary-col {
	flex: 0 0 340px;
}

.sbh-cart__section {
	display: grid;
	gap: 12px;
}

.sbh-cart__section-title,
.sbh-cart__summary-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.sbh-cart__notice {
	padding: 12px 14px;
	border: 1px solid #cfe0ff;
	background: #f5f8ff;
	color: #173b7a;
}

.sbh-cart__notice[hidden] {
	display: none;
}

.sbh-cart__notice--error {
	border-color: #ffc8c8;
	background: #fff4f4;
	color: #a40000;
}

.sbh-cart__select-all-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
}

.sbh-cart__select-all-label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-weight: 700;
	cursor: pointer;
}

.sbh-cart__select-all,
.sbh-cart__item-checkbox {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #111827;
}

.sbh-cart__select-all-label .sbh-cart__select-all,
.sbh-cart__item-checkbox {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	display: inline-grid;
	place-content: center;
	width: 22px;
	height: 22px;
	padding: 4px;
	border: 1px solid #9ea2a6;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
}

.sbh-cart__select-all-label .sbh-cart__select-all:not(:checked),
.sbh-cart__select-all-label .sbh-cart__select-all:not(:checked):focus,
.sbh-cart__select-all-label .sbh-cart__select-all:not(:checked):active,
.sbh-cart__item-checkbox:not(:checked),
.sbh-cart__item-checkbox:not(:checked):focus,
.sbh-cart__item-checkbox:not(:checked):active {
	border: 1px solid #b2b5b8;
	background-color: #fff;
	box-shadow: none;
}

.sbh-cart__select-all-label .sbh-cart__select-all::before,
.sbh-cart__item-checkbox::before {
	content: "";
	width: 12px;
	height: 12px;
	background: #fff;
	clip-path: polygon(14% 44%, 0 59%, 38% 100%, 100% 18%, 84% 4%, 36% 68%);
	transform: scale(0);
	transition: transform 0.12s ease;
}

.sbh-cart__select-all-label .sbh-cart__select-all:checked,
.sbh-cart__item-checkbox:checked {
	border-color: #111827;
	background: #111827;
}

.sbh-cart__select-all-label .sbh-cart__select-all:checked::before,
.sbh-cart__item-checkbox:checked::before {
	transform: scale(1);
}

.sbh-cart__select-all-label .sbh-cart__select-all:focus-visible,
.sbh-cart__item-checkbox:focus-visible {
	outline: 2px solid #98a2b3;
	outline-offset: 2px;
}

.sbh-cart .sbh-cart__bulk-remove {
	padding: 0;
	border: 0;
	background: transparent;
	color: #b42318;
	font-weight: 700;
	cursor: pointer;
}

.sbh-cart .sbh-cart__bulk-remove:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.sbh-cart__items {
	display: grid;
	gap: 12px;
}

.sbh-cart__item {
	display: grid;
	grid-template-columns: 24px 104px minmax(0, 1fr) minmax(160px, auto);
	gap: 14px;
	align-items: stretch;
	padding: 16px;
	border: 1px solid #e5e7eb;
	background: #fff;
	border-radius: 8px;
}

.sbh-cart__item:not(.is-selected) {
	opacity: 0.72;
}

.sbh-cart__item-check {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	margin: 4px 0 0;
}

.sbh-cart__item-thumb {
	position: relative;
	display: block;
	width: 104px;
	aspect-ratio: 1;
	background: #f4f4f5;
	overflow: visible;
	border-radius: 6px;
}

.sbh-cart__item-thumb img {
	width: 100%;
	height: 100%;
	border-radius: inherit;
	object-fit: cover;
	display: block;
}

.sbh-cart__item-discount-badge {
	position: absolute;
	z-index: 2;
	top: 6px;
	left: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 22px;
	padding: 0 8px;
	border-radius: 999px;
	background: #f04438;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
}

.sbh-cart__item-discount-badge--pill {
	border-radius: 999px;
}

.sbh-cart__item-discount-badge--ribbon {
	top: 6px;
	left: -6px;
	min-width: 36px;
	border-radius: 4px 4px 4px 0;
}

.sbh-cart__item-discount-badge--ribbon::after {
	content: "";
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 5px;
	height: 5px;
	background: inherit;
	filter: brightness(0.72);
	border-radius: 0 0 0 5px;
}

.sbh-cart__item-main {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-self: stretch;
	min-width: 0;
	padding: 4px 0;
	gap: 16px;
}

.sbh-cart__item-name {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	color: inherit;
	text-decoration: none;
}

.sbh-cart__item-name:hover {
	color: inherit;
	text-decoration: none;
}

.sbh-cart__item-name:hover .sbh-cart__item-title {
	text-decoration: underline;
}

.sbh-cart__item-title {
	font-weight: 700;
	line-height: 1.35;
}

.sbh-cart__item-variant-desc {
	color: #667085;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
}

.sbh-cart__item-variation {
	color: #667085;
	font-size: 13px;
	line-height: 1.5;
}

.sbh-cart__item-variation dl,
.sbh-cart__item-variation dd,
.sbh-cart__item-variation p {
	margin: 0;
}

.sbh-cart__item-side {
	display: grid;
	gap: 8px;
	justify-items: end;
}

.sbh-cart__item-nudge {
	grid-column: 3 / -1;
	display: flex;
	align-items: center;
	padding: 9px 12px;
	border-radius: 6px;
	background: #eef8f0;
	color: #326212;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.45;
}

.sbh-cart__item-nudge-text {
	color: inherit;
}

.sbh-cart__item-controls {
	display: flex;
	align-items: center;
	gap: 10px;
}

.sbh-cart__item-actions {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
}

.sbh-cart .sbh-cart__item-wishlist,
.sbh-cart .sbh-cart__item-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	border-radius: 8px;
	border: 1px solid #eeeeee;
	background: #fff;
	color: #667085;
	cursor: pointer;
}

.sbh-cart .sbh-cart__item-wishlist:hover,
.sbh-cart .sbh-cart__item-wishlist.is-wishlisted {
	color: #e11d48;
	border-color: #fecdd3;
	background: #fff1f2;
}

.sbh-cart .sbh-cart__item-remove:hover {
	color: #b42318;
	border-color: #fecaca;
	background: #fff4f4;
}

.sbh-cart__item-wishlist svg,
.sbh-cart__item-remove svg {
	width: 18px;
	height: 18px;
}

.sbh-cart__item-qty-price-group {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

.sbh-cart__item-unit-price {
	color: #111827;
	font-size: 15px;
	line-height: 1.35;
	text-align: right;
	align-self: flex-end;
}

.sbh-cart__item-price {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 4px;
	flex-direction: column;
}

.sbh-cart__item-price--sale {
	color: #d92d20;
	font-weight: 800;
}

.sbh-cart__item-price--regular {
	color: #98a2b3;
	font-size: 13px;
}

.sbh-cart__item-price--regular .woocommerce-Price-amount.amount {
	text-decoration: line-through;
}

.sbh-cart__item-price--regular-current {
	font-weight: 800;
}

.sbh-cart__item-wholesale-note {
	color: #326212;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
}

.sbh-cart__item-qty {
	display: grid;
	gap: 6px;
	justify-items: start;
}

.sbh-cart__qty-stepper {
	display: grid;
	grid-template-columns: 34px 48px 34px;
	border: 1px solid #eeeeee;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.sbh-cart .sbh-cart__qty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	padding: 0;
	border: 0;
	color: #111827;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.sbh-cart .sbh-cart__qty-btn:hover:not(:disabled) {
	background: #eef2f7;
	color: #111827;
}

.sbh-cart .sbh-cart__qty-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.sbh-cart__qty-input {
	width: 48px;
	min-width: 0;
	padding: 0.5rem 0.5rem;
	border: 0;
	border-left: 1px solid #d0d5dd;
	border-right: 1px solid #d0d5dd;
	text-align: center;
	font-size: 14px;
	appearance: textfield;
}

.sbh-cart__qty-input::-webkit-outer-spin-button,
.sbh-cart__qty-input::-webkit-inner-spin-button {
	margin: 0;
	appearance: none;
}

.sbh-cart__item-min-note {
	color: #667085;
	font-size: 12px;
	line-height: 1.35;
}

.sbh-cart__item-min-note[hidden] {
	display: none;
}

.sbh-cart__summary-card {
	display: grid;
	gap: 16px;
	padding: 18px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
}

@media (min-width: 1024px) {
	.sbh-cart--desktop-summary-sticky .sbh-cart__summary-card {
		position: sticky;
		top: var(--sbh-cart-summary-sticky-top, 24px);
	}
}

.sbh-cart__mobile-select-all,
.sbh-cart__coupon-summary-row,
.sbh-cart__mobile-summary-bar,
.sbh-cart__promo-detail-modal {
	display: none;
}

.sbh-cart__coupon-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
}

.sbh-cart__coupon-input {
	min-height: 42px;
	padding: 0 12px;
	border: 1px solid #d0d5dd;
	border-radius: 6px;
}

@media (min-width: 768px) {
	.sbh-cart .sbh-cart__coupon-summary-row {
		display: none !important;
	}
}

.sbh-cart .sbh-cart__coupon-btn {
	min-height: 42px;
	padding: 0 16px;
	border: 1px solid #111827;
	border-radius: 6px;
	background: #111827;
	color: #fff;
	cursor: pointer;
}

.sbh-cart__coupon-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.sbh-cart__coupon-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border-radius: 999px;
	background: #eef2f7;
	font-size: 13px;
}

.sbh-cart .sbh-cart__coupon-remove {
	width: 18px;
	height: 18px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #111827;
	color: #fff;
	line-height: 18px;
	cursor: pointer;
}

.sbh-cart__totals {
	display: grid;
	gap: 4px;
	padding-top: 0;
	border-top: 0 solid #e5e7eb;
}

.sbh-cart__totals--has-divider {
	padding-top: 14px;
	border-top-width: 1px;
	border-top-style: solid;
	border-top-color: #e5e7eb;
}

.sbh-cart__total-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 8px 0;
	color: #344054;
}

.sbh-cart__total-row--discount {
	color: #b42318;
}

.sbh-cart__total-row-coupon-code {
	font-weight: 800;
}

.sbh-cart__total-row strong {
	white-space: nowrap;
}

.sbh-cart__total-row--grand {
	margin-top: 6px;
	padding-top: 14px;
	border-top: 1px solid #e5e7eb;
	color: #111827;
	font-size: 18px;
}

.sbh-cart__checkout {
	display: flex;
	justify-content: stretch;
}

.sbh-cart__checkout-btn,
.sbh-cart__shop-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	padding: 0 22px;
	border: 1px solid #111827;
	border-radius: 6px;
	background: #111827;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
}

.sbh-cart__checkout-btn:hover,
.sbh-cart__shop-link:hover {
	background: #344054;
	color: #fff;
	text-decoration: none;
}

.sbh-cart__checkout-btn.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: auto;
}

.sbh-cart__empty {
	display: grid;
	gap: 10px;
	justify-items: start;
	padding: 28px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
}

.sbh-cart__empty h3,
.sbh-cart__empty p {
	margin: 0;
}

.sbh-cart.is-loading {
	opacity: 0.72;
	pointer-events: none;
}

@media (max-width: 1024px) {
	.sbh-cart__layout {
		flex-direction: column;
	}

	.sbh-cart__summary-col {
		flex-basis: auto;
		width: 100%;
	}

	.sbh-cart__summary-card {
		position: static;
	}
}

@media (max-width: 767px) {
	.sbh-cart__item-controls {
		justify-content: space-between;
	}
	.sbh-cart--mobile-sticky-summary .sbh-cart__items-col {
		padding-bottom: 80px;
	}

	.sbh-cart--mobile-sticky-summary .sbh-cart__summary-col {
		width: 100%;
	}

	.sbh-cart--mobile-sticky-summary .sbh-cart__summary-card {
		position: fixed;
		top: auto;
		z-index: 999;
		right: 0;
		bottom: 0;
		left: 0;
		height: auto;
		display: grid;
		gap: 10px;
		padding: 10px 14px 14px;
		border-radius: 14px 14px 0 0;
		box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.16);
	}

	.sbh-cart--mobile-sticky-summary .sbh-cart__order-items > .sbh-cart__select-all-bar {
		display: none;
	}

	.sbh-cart--mobile-sticky-summary .sbh-cart__mobile-select-all {
		display: block;
	}

	.sbh-cart--mobile-sticky-summary .sbh-cart__mobile-select-all .sbh-cart__select-all-bar {
		padding: 0 0 8px;
		border-width: 0 0 1px;
		border-radius: 0;
	}

	.sbh-cart--mobile-sticky-summary .sbh-cart__coupon-summary-row {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		width: 100%;
		padding: 8px 0;
		border: 0;
		background: transparent;
		color: #344054;
		font-size: 13px;
		font-weight: 700;
		text-align: left;
		cursor: pointer;
	}

	.sbh-cart__coupon-summary-main {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		min-width: 0;
	}

	.sbh-cart__coupon-summary-main svg,
	.sbh-cart__chevron {
		flex: 0 0 auto;
	}

	.sbh-cart--mobile-sticky-summary .sbh-cart__coupon {
		display: none;
	}

	.sbh-cart--mobile-sticky-summary.is-coupon-expanded .sbh-cart__coupon {
		display: grid;
		padding: 10px;
		border: 1px solid #e5e7eb;
		border-radius: 8px;
		background: #f9fafb;
	}

	.sbh-cart--mobile-sticky-summary .sbh-cart__totals,
	.sbh-cart--mobile-sticky-summary .sbh-cart__checkout {
		display: none;
	}

	.sbh-cart--mobile-sticky-summary .sbh-cart__mobile-summary-bar {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 12px;
	}

	.sbh-cart--mobile-sticky-summary .sbh-cart__summary-detail-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		min-width: 0;
		padding: 0;
		border: 0;
		background: transparent;
		color: inherit;
		text-align: left;
		cursor: pointer;
	}

	.sbh-cart__summary-copy {
		display: grid;
		gap: 2px;
		min-width: 0;
	}

	.sbh-cart__summary-final-price {
		color: #111827;
		font-size: 17px;
		line-height: 1.25;
	}

	.sbh-cart__summary-discount-label {
		color: #667085;
		font-size: 12px;
		font-weight: 600;
		line-height: 1.3;
	}

	.sbh-cart--mobile-sticky-summary .sbh-cart__checkout-btn--mobile,
	.sbh-cart--mobile-sticky-summary .sbh-cart__checkout-btn--modal {
		width: auto;
		min-width: 112px;
		min-height: 42px;
		padding: 0 18px;
	}

	.sbh-cart--mobile-sticky-summary .sbh-cart__promo-detail-modal {
		position: fixed;
		z-index: 1000;
		inset: 0;
		align-items: flex-end;
		background: rgba(17, 24, 39, 0.42);
	}

	.sbh-cart--mobile-sticky-summary.is-promo-detail-open .sbh-cart__promo-detail-modal {
		display: flex;
	}

	.sbh-cart__promo-detail-panel {
		position: relative;
		display: grid;
		gap: 12px;
		width: 100%;
		padding: 18px 16px 16px;
		border-radius: 16px 16px 0 0;
		background: #fff;
		box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.18);
	}

	.sbh-cart .sbh-cart__promo-detail-close {
		position: absolute;
		top: 12px;
		left: 14px;
		width: 28px;
		height: 28px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: #f2f4f7;
		color: #111827;
		cursor: pointer;
	}

	.sbh-cart__promo-detail-title {
		margin: 0;
		padding: 0 36px;
		text-align: center;
		font-size: 16px;
		line-height: 1.3;
	}

	.sbh-cart__promo-detail-row,
	.sbh-cart__promo-detail-footer {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 14px;
		color: #344054;
		font-size: 14px;
	}

	.sbh-cart__promo-detail-divider {
		height: 1px;
		background: #e5e7eb;
	}

	.sbh-cart__promo-detail-coupon-code {
		font-weight: 800;
	}

	.sbh-cart__item {
		display: grid;
		grid-template-columns: 24px 78px minmax(0, 1fr);
		grid-template-areas:
			"check thumb name"
			"check thumb side"
			"check thumb controls"
			"check thumb nudge";
		gap: 10px 14px;
		align-items: start;
	}

	.sbh-cart__item-check {
		grid-area: check;
	}

	.sbh-cart__item-thumb {
		grid-area: thumb;
		width: 78px;
	}

	.sbh-cart__item-main {
		display: contents;
	}

	.sbh-cart__item-name {
		grid-area: name;
	}

	.sbh-cart__item-side {
		grid-area: side;
		justify-items: start;
		width: 100%;
		text-align: left;
	}

	.sbh-cart__item-nudge {
		grid-area: nudge;
		width: 100%;
	}

	.sbh-cart__item-controls {
		grid-area: controls;
		flex-wrap: wrap;
	}

	.sbh-cart__item-unit-price {
		text-align: left;
	}

	.sbh-cart__item-price {
		justify-content: flex-start;
	}

	.sbh-cart .sbh-cart__coupon-btn {
		min-width: 80px;
	}
}
