.mbn-sc {
	--mbn-sc-accent: #b77d74;
	--mbn-sc-accent-dark: #a56e66;
	--mbn-sc-text: #2d2d2d;
	--mbn-sc-muted: #8e8e8e;
	--mbn-sc-border: #e8d8d3;
	--mbn-sc-bg: #ffffff;
	--mbn-sc-panel-width: min(100vw, 380px);
}

body.mbn-sc-open {
	overflow: hidden;
}

.mbn-sc-toggle:not(.mbn-sc--mini-cart-toggle) {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 9998;
	width: 58px;
	height: 58px;
	border: 0;
	border-radius: 999px;
	background: var(--mbn-sc-accent);
	color: #fff;
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.mbn-sc-toggle:not(.mbn-sc--mini-cart-toggle):hover {
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
}

.mbn-sc-toggle__icon {
	width: 26px;
	height: 26px;
	display: inline-flex;
}

.mbn-sc-toggle__icon svg {
	width: 100%;
	height: 100%;
}
.mbn-sc .mbn-sc-toggle__icon path {
	fill: #fff;
}
.mbn-sc-toggle__count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: #fff;
	color: var(--mbn-sc-accent-dark);
	font-size: 12px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.mbn-sc-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.25s ease,
		visibility 0.25s ease;
	z-index: 9998;
}

.mbn-sc-drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: var(--mbn-sc-panel-width);
	max-width: 100%;
	height: 100vh;
	background: var(--mbn-sc-bg);
	color: var(--mbn-sc-text);
	z-index: 9999;
	transform: translateX(100%);
	transition: transform 0.28s ease;
	display: flex;
	flex-direction: column;
	box-shadow: -12px 0 28px rgba(0, 0, 0, 0.15);
}

body.mbn-sc-open .mbn-sc-overlay {
	opacity: 1;
	visibility: visible;
}

body.mbn-sc-open .mbn-sc-drawer {
	transform: translateX(0);
}

.mbn-sc-header,
.mbn-sc-footer {
	padding: 18px 20px;
	border-bottom: 1px solid var(--mbn-sc-border);
}

.mbn-sc-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.mbn-sc-header h3 {
	margin: 0;
	font-size: 24px;
	line-height: 1.1;
}

.mbn-sc-close {
	border: 0;
	background: transparent;
	color: var(--mbn-sc-muted);
	cursor: pointer;
	font-size: 32px;
	line-height: 1;
	padding: 0;
}

.mbn-sc-body {
	flex: 1;
	overflow-y: auto;
}

.mbn-sc-empty {
	padding: 32px 20px;
	color: var(--mbn-sc-muted);
}

.mbn-sc-item {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 14px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--mbn-sc-border);
}

.mbn-sc-item__image img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
}

.mbn-sc-item__content {
	position: relative;
}

.mbn-sc-item__remove {
	position: absolute;
	top: -4px;
	right: -4px;
	border: 0;
	background: transparent;
	color: var(--mbn-sc-muted);
	cursor: pointer;
	font-size: 24px;
	line-height: 1;
	padding: 0;
}

.mbn-sc-item__title-wrap {
	padding-right: 20px;
}

.mbn-sc-item__title {
	display: inline-block;
	color: var(--mbn-sc-text);
	text-decoration: none;
	font-size: 15px;
	line-height: 1.25;
	font-weight: 500;
	margin-bottom: 8px;
}

.mbn-sc-item__title:hover {
	color: var(--mbn-sc-accent-dark);
}

.mbn-sc-item__meta,
.mbn-sc-item__line-total,
.mbn-sc-item .variation,
.mbn-sc-item .wc-item-meta {
	font-size: 13px;
}

.mbn-sc-item .variation,
.mbn-sc-item .wc-item-meta {
	margin: 0 0 8px;
	color: var(--mbn-sc-muted);
}

.mbn-sc-item .variation dt,
.mbn-sc-item .wc-item-meta dt,
.mbn-sc-item .variation dd,
.mbn-sc-item .wc-item-meta dd {
	display: inline;
	margin: 0;
}

.mbn-sc-item__single-price {
	color: var(--mbn-sc-muted);
}

.mbn-sc-qty {
	display: inline-flex;
	align-items: center;
	margin-top: 10px;
	border: 1px solid var(--mbn-sc-border);
	min-height: 36px;
}

.mbn-sc-qty__btn,
.mbn-sc-qty__input {
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	text-align: center;
	color: var(--mbn-sc-text);
}

.mbn-sc-qty__btn {
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
}

.mbn-sc-qty__btn[disabled] {
	opacity: 0.5;
	cursor: wait;
}

.mbn-sc-qty__input {
	font-size: 14px;
	box-shadow:
		inset 1px 0 0 var(--mbn-sc-border),
		inset -1px 0 0 var(--mbn-sc-border);
}

.mbn-sc-qty__input::-webkit-outer-spin-button,
.mbn-sc-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.mbn-sc-qty__input[type=number] {
  -moz-appearance: textfield;
}

.mbn-sc-item__line-total {
	margin-top: 10px;
	color: var(--mbn-sc-accent-dark);
	font-weight: 700;
}

.mbn-sc-footer {
	border-top: 1px solid var(--mbn-sc-border);
	border-bottom: 0;
}

.mbn-sc-subtotal-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
	font-size: 16px;
}

.mbn-sc-subtotal-row strong {
	font-weight: 600;
}

.mbn-sc-actions {
	display: grid;
	gap: 10px;
}

.mbn-sc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 18px;
	border: 1px solid var(--mbn-sc-accent);
	border-radius: 999px;
	background: var(--mbn-sc-accent);
	color: #fff;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 11px;
	font-weight: 700;
}

.mbn-sc-button--ghost {
	background: transparent;
	color: var(--mbn-sc-accent-dark);
}

@media (max-width: 767px) {
	/* .mbn-sc-toggle {
		right: 16px;
		bottom: 16px;
	} */

	.mbn-sc-header,
	.mbn-sc-footer,
	.mbn-sc-item {
		padding-left: 16px;
		padding-right: 16px;
	}
}
