/* Isolated MaStore cart drawer. Black/white, transform/opacity only. */

html body .msc,
html body .msc-scrim {
	--msc-bg: #ffffff;
	--msc-ink: #111111;
	--msc-mute: #71717a;
	--msc-line: #ececec;
	--msc-soft: #f4f4f5;
	--msc-pad: 20px;
	--msc-in: cubic-bezier(0.32, 0.72, 0, 1);
	--msc-out: cubic-bezier(0.4, 0, 1, 1);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}

html body .msc *,
html body .msc *::before,
html body .msc *::after {
	box-sizing: border-box;
}

html body .msc-scrim {
	position: fixed;
	inset: 0;
	z-index: 320;
	background: rgba(0, 0, 0, 0.52);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

html body .msc-scrim.is-open {
	visibility: visible;
	pointer-events: auto;
}

html body .msc {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 330;
	width: min(420px, 100vw);
	display: flex;
	flex-direction: column;
	background: var(--msc-bg);
	color: var(--msc-ink);
	transform: translate3d(100%, 0, 0);
	visibility: hidden;
	pointer-events: none;
	will-change: transform;
	box-shadow: -24px 0 64px rgba(0, 0, 0, 0.18);
}

html body .msc.is-open,
html body .msc.is-leaving {
	visibility: visible;
	pointer-events: auto;
}

html body .msc__panel {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	background: #fff;
}

html body .msc__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex: 0 0 auto;
	min-height: 72px;
	padding: 18px var(--msc-pad) 16px;
	border-bottom: 1px solid var(--msc-line);
}

html body .msc__title {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
}

html body .msc__sticker {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	padding: 0 8px;
	border-radius: 9px;
	background: #111;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	line-height: 28px;
	font-style: normal;
}

html body .msc__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--msc-line);
	border-radius: 12px;
	background: #fff;
	color: #111;
	cursor: pointer;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
}

html body .msc__close:hover {
	background: #111;
	color: #fff;
	border-color: #111;
}

html body .msc__close:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

html body .msc__close:active {
	transform: scale(0.94);
}

html body .msc__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
}

html body .msc__scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	scrollbar-width: thin;
	scrollbar-color: #d4d4d8 #fff;
}

html body .msc__list {
	margin: 0;
	padding: 8px var(--msc-pad) 8px;
	list-style: none;
}

html body .msc__item {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr) auto;
	gap: 14px;
	align-items: start;
	padding: 16px 0;
	border-bottom: 1px solid var(--msc-line);
}

html body .msc__item.is-removing {
	opacity: 0.42;
	transform: translate3d(8px, 0, 0);
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

html body .msc__item:last-child {
	border-bottom: 0;
}

html body .msc__thumb {
	display: block;
	width: 80px;
	height: 80px;
	overflow: hidden;
	border-radius: 14px;
	background: var(--msc-soft);
}

html body .msc__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

html body .msc__info {
	min-width: 0;
	padding-top: 2px;
}

html body .msc__name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: #111 !important;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.35;
	letter-spacing: -0.02em;
	text-decoration: none;
}

html body .msc__name:hover {
	text-decoration: underline;
}

html body .msc__meta,
html body .msc__qty {
	margin: 4px 0 0;
	color: var(--msc-mute);
	font-size: 12px;
	line-height: 1.35;
}

html body .msc__delivery {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 7px 0 0;
	color: #52525b;
	font-size: 11px;
	font-weight: 550;
	line-height: 1.35;
}

html body .msc__delivery-ico {
	display: inline-flex;
	flex: 0 0 auto;
	margin-top: -1px;
	color: #111;
}

html body .msc__delivery-ico svg {
	display: block;
}

html body .msc__delivery b {
	color: #111;
	font-weight: 750;
}

html body .msc__delivery i {
	margin: 0 3px;
	font-style: normal;
}

html body .msc__side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

html body .msc__price {
	color: #111;
	font-size: 13px;
	font-weight: 750;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

html body .msc__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--msc-line);
	border-radius: 12px;
	background: #fff;
	color: #111;
	cursor: pointer;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

html body .msc__remove:hover,
html body .msc__remove:focus-visible {
	border-color: #111;
	background: #111;
	color: #fff;
}

html body .msc__remove:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

html body .msc__remove:active {
	transform: scale(0.96);
}

html body .msc__remove:disabled {
	cursor: wait;
	opacity: 0.5;
}

html body .msc__undo {
	position: absolute;
	right: var(--msc-pad);
	bottom: calc(18px + env(safe-area-inset-bottom, 0px));
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	max-width: calc(100% - (var(--msc-pad) * 2));
	min-height: 48px;
	padding: 8px 10px 8px 14px;
	border: 1px solid #111;
	border-radius: 14px;
	background: #111;
	color: #fff;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
	font-size: 13px;
	font-weight: 650;
}

html body .msc__undo button {
	min-width: 44px;
	min-height: 32px;
	padding: 0 8px;
	border: 0;
	border-radius: 9px;
	background: #fff;
	color: #111;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

html body .msc__undo button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

html body .msc__undo--error {
	background: #fff;
	color: #111;
}

html body .msc__foot {
	flex: 0 0 auto;
	padding: 16px var(--msc-pad) calc(20px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--msc-line);
	background: #fff;
}

html body .msc__sum {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 14px;
	font-size: 14px;
	color: var(--msc-mute);
}

html body .msc__sum b {
	color: #111;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.04em;
}

html body .msc__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

html body .msc__btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	margin: 0 !important;
	padding: 0 16px !important;
	border-radius: 14px;
	font-size: 14px;
	font-weight: 750;
	letter-spacing: -0.02em;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

html body .msc__btn--solid {
	background: #111;
	color: #fff !important;
	border: 1px solid #111;
}

html body .msc__btn--solid:hover {
	background: #000;
}

html body .msc__btn--ghost {
	background: #fff;
	color: #111 !important;
	border: 1px solid #111;
}

html body .msc__btn--ghost:hover {
	background: #111;
	color: #fff !important;
}

html body .msc__btn:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

html body .msc__btn:active {
	transform: scale(0.98);
}

html body .msc__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 240px;
	padding: 36px var(--msc-pad) 28px;
	text-align: center;
}

html body .msc__empty-ico {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin-bottom: 16px;
	border-radius: 22px;
	background: #111;
	color: #fff;
}

html body .msc__empty-ico svg {
	width: 28px;
	height: 28px;
}

html body .msc__empty-title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.04em;
}

html body .msc__empty-text {
	margin: 8px 0 20px;
	max-width: 240px;
	color: var(--msc-mute);
	font-size: 14px;
	line-height: 1.45;
}

html body .msc__empty .msc__btn {
	width: auto;
	min-width: 200px;
}

html body .msc__recs {
	margin: 8px var(--msc-pad) 20px;
	padding: 16px 14px 14px;
	border: 1px solid var(--msc-line);
	border-radius: 20px;
	background: #f7f7f8;
}

html body .msc__recs-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0 4px 14px;
}

html body .msc__recs-title {
	margin: 0;
	color: #111;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.15;
}

html body .msc__recs-hint {
	margin: 0;
	color: var(--msc-mute);
	font-size: 12px;
	font-weight: 550;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

html body .msc__recs-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

html body .msc__rec {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 44px;
	padding: 0;
	overflow: hidden;
	border-radius: 16px;
	background: #fff;
	color: #111 !important;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

html body .msc__rec:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

html body .msc__rec-media {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 1;
	overflow: hidden;
	background: #ececee;
}

html body .msc__rec-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1);
	transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1) !important;
}

html body .msc__rec:hover .msc__rec-media img,
html body .msc__rec:focus-visible .msc__rec-media img {
	transform: scale(1.06);
}

html body .msc__rec-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 10px 12px;
}

html body .msc__rec-brand {
	color: #71717a;
	font-size: 10px;
	font-weight: 750;
	letter-spacing: 0.1em;
	line-height: 1.2;
	text-transform: uppercase;
}

html body .msc__rec-name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 32px;
	color: #111;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.35;
	letter-spacing: -0.02em;
}

html body .msc__rec-price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 2px;
	color: #111;
	font-size: 13px;
	line-height: 1.2;
}

html body .msc__rec-price s {
	color: #a1a1aa;
	font-size: 11px;
	font-weight: 550;
	text-decoration: line-through;
}

html body .msc__rec-price b {
	font-weight: 800;
	letter-spacing: -0.03em;
}

html body.msc-open {
	overflow: hidden;
}

html body.msc-open .msd,
html body.msc-open .mlc-fab,
html body.msc-open #mastore-live-chat,
html body.msc-open #mastore-live-chat .mlc-fab {
	visibility: hidden !important;
	pointer-events: none !important;
}

@media (max-width: 600px) {
	html body .msc {
		width: 100vw;
		--msc-pad: 16px;
	}

	html body .msc__head {
		min-height: 64px;
		padding: 14px var(--msc-pad);
	}

	html body .msc__title {
		font-size: 20px;
	}

	html body .msc__item {
		grid-template-columns: 72px minmax(0, 1fr) auto;
	}

	html body .msc__side {
		gap: 4px;
	}

	html body .msc__thumb {
		width: 72px;
		height: 72px;
	}

	html body .msc__recs {
		margin: 4px var(--msc-pad) 16px;
		padding: 14px 12px 12px;
		border-radius: 18px;
	}

	html body .msc__recs-grid {
		gap: 8px;
	}

	html body .msc__rec-body {
		padding: 8px 8px 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html body .msc__item,
	html body .msc__remove,
	html body .msc__undo {
		transition: none !important;
	}
}

@media (min-width: 901px) {
	html body #msh-root.msh a.msh-act--cart {
		display: inline-flex !important;
		align-items: center;
		gap: 10px;
		min-height: 44px;
		padding: 0 6px 0 14px;
		border: 0;
		border-radius: 14px;
		background: #fff !important;
		color: #000 !important;
	}

	html body #msh-root.msh a.msh-act--cart:hover,
	html body #msh-root.msh a.msh-act--cart:focus-visible {
		background: #fff !important;
		color: #000 !important;
		outline: 2px solid #fff;
		outline-offset: 2px;
	}

	html body #msh-root.msh a.msh-act--cart:active {
		transform: scale(0.96);
	}

	html body #msh-root.msh a.msh-act--cart svg {
		color: #000 !important;
	}

	html body #msh-root.msh a.msh-act--cart .msh-badge {
		position: relative !important;
		top: auto !important;
		right: auto !important;
		left: auto !important;
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		min-width: 28px;
		height: 28px;
		margin: 0;
		padding: 0 8px;
		border-radius: 9px;
		background: #000 !important;
		color: #fff !important;
		font-size: 13px;
		font-weight: 800;
		line-height: 28px;
		transform: none !important;
	}
}
