.mgk-mp .mgk-mp-product-detail__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.62fr) minmax(270px, 1fr);
	gap: 16px;
	align-items: start;
}
.mgk-mp .mgk-mp-product-detail__grid > .mgk-mdash__col {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}
.mgk-mp .mgk-mp-product-detail__main-stack,
.mgk-mp .mgk-mp-product-detail__side-stack {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}
.mgk-mp .mgk-mp-product-detail__side-stack .mgk-mord-detail__side-card + .mgk-mord-detail__side-card {
	margin-top: 0;
}

@media (max-width: 900px) {
	.mgk-mp .mgk-mp-product-detail__grid { grid-template-columns: 1fr; }
}

.mgk-mp-variants__table-wrap {
	overflow-x: auto;
	margin-top: 16px;
	border: 1px solid #e6e1ea;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(53, 35, 96, .04);
}
.mgk-mp-variants {
	width: 100%;
	min-width: 760px;
	border-collapse: separate;
	border-spacing: 0;
	margin: 0;
	table-layout: fixed;
}
.mgk-mp-variants thead { background: #fbfaff; }
.mgk-mp-variants thead th {
	padding: 12px 14px;
	border-bottom: 1px solid #e6e1ea;
	color: #756f80;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.2;
	text-align: left;
	text-transform: uppercase;
	white-space: nowrap;
}
.mgk-mp-variants thead th:nth-child(1) { width: 32%; }
.mgk-mp-variants thead th:nth-child(2) { width: 24%; }
.mgk-mp-variants thead th:nth-child(3),
.mgk-mp-variants thead th:nth-child(4) { width: 16%; }
.mgk-mp-variants thead th:nth-child(5) { width: 12%; }
.mgk-mp-variants tbody th,
.mgk-mp-variants tbody td {
	padding: 13px 14px;
	border-bottom: 1px solid #eeeaf2;
	text-align: left;
	vertical-align: middle;
}
.mgk-mp-variants tbody tr { transition: background-color .15s ease; }
.mgk-mp-variants tbody tr:nth-child(even) { background: #fdfcff; }
.mgk-mp-variants tbody tr:hover { background: #faf6ff; }
.mgk-mp-variants tbody tr:last-child th,
.mgk-mp-variants tbody tr:last-child td { border-bottom: 0; }
.mgk-mp-variants__row th {
	color: #352360;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.45;
	text-transform: none;
	word-break: break-word;
}
.mgk-mp-variants__row td { min-width: 125px; }
.mgk-mp-variants__row .mgk-mp__input {
	box-sizing: border-box;
	width: 100%;
	min-height: 38px;
}
.mgk-mp-variants__numeric-input {
	text-align: left;
	font-variant-numeric: tabular-nums;
}
.mgk-mp-variants__row td:last-child { text-align: center; }
.mgk-mp-variants__row .mgk-mp__checkbox {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	color: #4d475b;
	font-size: 12px;
	white-space: nowrap;
}
.mgk-mp-variants__new {
	display: inline-flex;
	align-items: center;
	margin-left: 8px;
	padding: 2px 7px;
	border: 1px solid #d8b4fb;
	border-radius: 999px;
	color: #7c3aed;
	background: #f7efff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .03em;
	line-height: 1.3;
	text-transform: uppercase;
	vertical-align: middle;
}
.mgk-mp-variant-detail__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 4px; }
.mgk-mp-variant-detail__hint { margin: 4px 0 0; color: #8b8496; font-size: 12px; line-height: 1.45; }
.mgk-mp-variants--readonly .mgk-mp-variants__row td:nth-child(3),
.mgk-mp-variants--readonly .mgk-mp-variants__row td:nth-child(4) { text-align: right; }
.mgk-mp-variants__readonly-number { color: #352360; font-variant-numeric: tabular-nums; font-weight: 600; }
.mgk-mp-variants__availability { display: inline-flex; align-items: center; justify-content: center; min-width: 82px; padding: 5px 8px; border: 1px solid transparent; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.mgk-mp-variants__availability.is-available { color: #087443; background: #eefbf4; border-color: #b7e8cb; }
.mgk-mp-variants__availability.is-out-of-stock { color: #9a5b00; background: #fff8e8; border-color: #f1d49b; }
.mgk-mp-variants__availability.is-unavailable { color: #756f80; background: #f4f1f7; border-color: #e1dce8; }
.mgk-mp-variants__empty { margin: 12px 0 0; color: #756f80; font-size: 13px; }
.mgk-mp-variants__tools {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
	grid-template-areas:
		"filter stock apply"
		"bulk bulk bulk";
	gap: 12px 14px;
	align-items: end;
	margin-top: 14px;
	padding: 14px;
	border: 1px solid #e6e1ea;
	border-radius: 12px;
	background: #fbfaff;
}
.mgk-mp-variants__tools > label:nth-child(1) { grid-area: filter; }
.mgk-mp-variants__tools > label:nth-child(2) { grid-area: stock; }
.mgk-mp-variants__tools > label {
	display: grid;
	gap: 6px;
	min-width: 0;
	color: #756f80;
	font-size: 12px;
	font-weight: 600;
}
.mgk-mp-variants__tools > label .mgk-mp__input { min-height: 38px; }
.mgk-mp-variants__tools > button[data-mgk-variant-fill-stock-apply] {
	grid-area: apply;
	justify-self: start;
	width: auto;
	min-width: 104px;
	min-height: 38px;
}
.mgk-mp-variants__bulk {
	grid-area: bulk;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 7px;
	min-width: 0;
	padding-bottom: 1px;
	color: #756f80;
	font-size: 12px;
}
.mgk-mp-variants__bulk > span { margin-right: 2px; font-weight: 600; white-space: nowrap; }
.mgk-mp-variants__bulk > button { flex: 0 0 auto; }
.mgk-mp-variants__warning { margin: 7px 0 0; color: #925d00; font-size: 12px; line-height: 1.45; }
@media (max-width: 980px) {
	.mgk-mp-variants__tools {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"filter filter"
			"stock apply"
			"bulk bulk";
	}
}
@media (max-width: 700px) {
	.mgk-mp-variants { min-width: 760px; }
	.mgk-mp-variants__tools {
		grid-template-columns: 1fr;
		grid-template-areas:
			"filter"
			"stock"
			"apply"
			"bulk";
	}
	.mgk-mp-variants__tools > button[data-mgk-variant-fill-stock-apply] { justify-self: start; }
	.mgk-mp-variants__bulk { flex-wrap: wrap; }
}

.mgk-mp-removal { width: 540px; padding: 0; color: var(--mdash-text); }
.mgk-mp-removal:not([open]) { display: none; }
.mgk-mp-removal::backdrop { background: rgba(0, 0, 0, .4); }
.mgk-mp-removal .mgk-mp-modal__title { margin: 0; }
.mgk-mp-removal__lead { margin: 0 0 14px; font-size: 14px; line-height: 1.5; }
.mgk-mp-removal__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.mgk-mp-removal__facts > div { padding: 10px 12px; border: 1px solid var(--mdash-border); border-radius: 10px; }
.mgk-mp-removal__facts dt { color: var(--mdash-text-4); font-size: 11px; letter-spacing: .03em; text-transform: uppercase; }
.mgk-mp-removal__facts dd { margin: 4px 0 0; font-size: 18px; font-weight: 700; }
.mgk-mp-removal__list { margin: 0 0 12px; font-size: 13px; }
.mgk-mp-removal__list summary { cursor: pointer; font-weight: 600; }
.mgk-mp-removal__list ul { max-height: 160px; margin: 8px 0 0; padding: 0; overflow-y: auto; border: 1px solid var(--mdash-border-lt); border-radius: 8px; list-style: none; }
.mgk-mp-removal__list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; border-bottom: 1px solid var(--mdash-border-lt); }
.mgk-mp-removal__list li:last-child { border-bottom: 0; }
.mgk-mp-removal__list code { color: var(--mdash-text-3); font-size: 12px; white-space: nowrap; }
.mgk-mp-removal__after { margin: 0 0 12px; font-size: 13px; line-height: 1.5; }
.mgk-mp-removal__warning { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fff4f6; color: var(--mdash-red, #b42121); font-size: 13px; font-weight: 600; line-height: 1.45; }
.mgk-mp-removal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--mdash-border-lt); }
@media (max-width: 560px) {
	.mgk-mp-removal__facts { grid-template-columns: 1fr; }
	.mgk-mp-removal__foot { flex-direction: column-reverse; }
	.mgk-mp-removal__foot .mgk-btn { width: 100%; }
}
