.msf-cart-trigger {
	position: relative;
}

.msf-cart-badge {
	align-items: center;
	background: #1a1a1a;
	border: 1px solid #faf8f5;
	border-radius: 999px;
	color: #fff;
	display: none;
	font-size: 10px;
	font-weight: 600;
	height: 17px;
	justify-content: center;
	line-height: 1;
	min-width: 17px;
	padding: 0 5px;
	position: absolute;
	right: -9px;
	top: -8px;
}

.msf-cart-badge.is-visible {
	display: inline-flex;
}

.msf-cart-badge.is-pulsing {
	animation: msf-cart-badge-pop 420ms ease;
}

.msf-cart-toast {
	align-items: center;
	background: #1a1a1a;
	box-shadow: 0 18px 45px rgba(26, 26, 26, .18);
	color: #fff;
	display: flex;
	font-size: 13px;
	gap: 10px;
	left: 50%;
	letter-spacing: .02em;
	opacity: 0;
	padding: 13px 16px;
	pointer-events: none;
	position: fixed;
	top: 86px;
	transform: translate(-50%, -10px);
	transition: opacity 180ms ease, transform 180ms ease;
	z-index: 100000;
}

.msf-cart-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.msf-cart-toast__icon {
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 50%;
	display: inline-block;
	height: 18px;
	position: relative;
	width: 18px;
}

.msf-cart-toast__icon::after {
	border-bottom: 1px solid #fff;
	border-right: 1px solid #fff;
	content: "";
	height: 8px;
	left: 6px;
	position: absolute;
	top: 3px;
	transform: rotate(45deg);
	width: 4px;
}

.msf-cart-overlay {
	background: rgba(26, 26, 26, .28);
	inset: 0;
	opacity: 0;
	position: fixed;
	transition: opacity 220ms ease;
	z-index: 99998;
}

body.msf-cart-open .msf-cart-overlay {
	opacity: 1;
}

.msf-cart-drawer {
	inset: 0;
	pointer-events: none;
	position: fixed;
	z-index: 99999;
}

.msf-cart-drawer__panel {
	background: #faf8f5;
	display: grid;
	grid-template-rows: auto 1fr auto;
	height: 100%;
	margin-left: auto;
	max-width: min(420px, 100vw);
	pointer-events: auto;
	transform: translateX(100%);
	transition: transform 260ms ease, box-shadow 260ms ease;
	width: 100%;
}

body.msf-cart-open .msf-cart-drawer__panel {
	box-shadow: -24px 0 60px rgba(26, 26, 26, .18);
	transform: translateX(0);
}

.msf-cart-drawer__header {
	align-items: flex-start;
	border-bottom: 1px solid rgba(26, 26, 26, .1);
	display: flex;
	justify-content: space-between;
	padding: 24px;
}

.msf-cart-drawer__eyebrow {
	color: #6E6A5F;
	font-size: 11px;
	letter-spacing: .12em;
	margin: 0 0 7px;
	text-transform: uppercase;
}

.msf-cart-drawer__header h2 {
	color: #1a1a1a;
	font-size: 22px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.1;
	margin: 0;
}

.msf-cart-drawer__close {
	align-items: center;
	background: transparent;
	border: 1px solid rgba(26, 26, 26, .14);
	border-radius: 50%;
	color: #1a1a1a;
	cursor: pointer;
	display: inline-flex;
	height: 36px;
	justify-content: center;
	padding: 0;
	width: 36px;
}

.msf-cart-drawer__close span,
.msf-cart-drawer__close span::after {
	background: currentColor;
	content: "";
	display: block;
	height: 1px;
	width: 15px;
}

.msf-cart-drawer__close span {
	transform: rotate(45deg);
}

.msf-cart-drawer__close span::after {
	transform: rotate(90deg);
}

.msf-cart-drawer__body {
	overflow-y: auto;
	padding: 8px 24px 24px;
}

.msf-cart-drawer__empty {
	color: #6E6A5F;
	font-size: 14px;
	padding: 48px 0;
	text-align: center;
}

.msf-cart-item {
	border-bottom: 1px solid rgba(26, 26, 26, .1);
	display: grid;
	gap: 14px;
	grid-template-columns: 82px 1fr;
	padding: 18px 0;
}

.msf-cart-item__image {
	aspect-ratio: 1;
	background: #ede8e1;
	object-fit: cover;
	width: 82px;
}

.msf-cart-item__image--empty {
	align-items: center;
	color: #6E6A5F;
	display: flex;
	font-size: 11px;
	justify-content: center;
	text-transform: uppercase;
}

.msf-cart-item__top {
	align-items: baseline;
	display: flex;
	gap: 12px;
	justify-content: space-between;
}

.msf-cart-item__name {
	color: #1a1a1a;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.25;
	margin: 0;
}

.msf-cart-item__price {
	color: #1a1a1a;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
}

.msf-cart-item__meta {
	color: #6E6A5F;
	font-size: 12px;
	line-height: 1.45;
	margin-top: 7px;
}

.msf-cart-item__qty {
	color: #1a1a1a;
	font-size: 12px;
	margin-top: 10px;
}

.msf-cart-drawer__footer {
	border-top: 1px solid rgba(26, 26, 26, .1);
	display: grid;
	gap: 10px;
	padding: 20px 24px 24px;
}

.msf-cart-drawer__total {
	align-items: center;
	color: #1a1a1a;
	display: flex;
	font-size: 14px;
	justify-content: space-between;
	margin-bottom: 6px;
}

.msf-cart-drawer__total strong {
	font-size: 18px;
	font-weight: 600;
}

.msf-cart-drawer__button {
	align-items: center;
	display: inline-flex;
	font-size: 12px;
	height: 48px;
	justify-content: center;
	letter-spacing: .12em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.msf-cart-drawer__button--primary {
	background: #1a1a1a;
	color: #fff;
}

.msf-cart-drawer__button--primary:hover {
	background: #4a4a4a;
	color: #fff;
}

.msf-cart-drawer__button--secondary {
	border: 1px solid rgba(26, 26, 26, .18);
	color: #1a1a1a;
}

.msf-cart-drawer__button--secondary:hover {
	border-color: #1a1a1a;
	color: #1a1a1a;
}

body.msf-cart-open {
	overflow: hidden;
}

@keyframes msf-cart-badge-pop {
	0% { transform: scale(1); }
	45% { transform: scale(1.24); }
	100% { transform: scale(1); }
}

@media (max-width: 520px) {
	.msf-cart-toast {
		top: auto;
		bottom: 20px;
		width: calc(100vw - 32px);
		justify-content: center;
	}

	.msf-cart-drawer__header,
	.msf-cart-drawer__body,
	.msf-cart-drawer__footer {
		padding-left: 18px;
		padding-right: 18px;
	}
}
