.mfc-modal-open {
	overflow: hidden;
}

.mfc-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px;
	background: rgba(0, 0, 0, 0.42);
}

.mfc-product-modal {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
	width: min(1248px, 100%);
	max-height: min(768px, calc(100vh - 28px));
	overflow: hidden;
	background: #fff;
	border-radius: 22px;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
	color: #18181b;
}

.mfc-product-modal-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 260px;
	max-width: 480px;
	padding: 48px;
	font-weight: 700;
}

.mfc-modal-close {
	position: absolute;
	top: 30px;
	right: 30px;
	z-index: 3;
	width: 42px;
	height: 42px;
	border: none;
	border-radius: 50%;
	background: #f4f4f5;
	color: #111827;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
}

.mfc-modal-options {
	overflow-y: auto;
	max-height: inherit;
	padding: 58px 34px 34px 58px;
	border-right: 1px solid #f1f5f9;
}

.mfc-options-group {
	margin-bottom: 36px;
}

.mfc-options-group:last-child {
	margin-bottom: 0;
}

.mfc-options-group-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.mfc-options-group h3 {
	margin: 0 0 2px;
	font-size: 1.5rem;
	font-weight: 850;
	letter-spacing: 0;
}

.mfc-options-group p {
	margin: 0;
	font-size: 1rem;
	color: #3f3f46;
}

.mfc-required-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 8px;
	border-radius: 4px;
	background: #ef4444;
	color: #fff;
	font-size: 0.82rem;
	font-weight: 800;
	white-space: nowrap;
}

.mfc-required-badge.is-optional {
	background: #f4f4f5;
	color: #52525b;
}

.mfc-option-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	padding: 10px 0;
	border-bottom: 1px solid transparent;
	border-radius: 8px;
	cursor: pointer;
}

.mfc-option-row.is-selected {
	background: #fff7ed;
}

.mfc-option-selector {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	margin: 0;
	accent-color: #f97316;
	cursor: pointer;
}

.mfc-option-image {
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	border-radius: 7px;
	object-fit: cover;
}

.mfc-option-main {
	min-width: 0;
}

.mfc-option-name {
	font-size: 1.08rem;
	font-weight: 500;
	color: #18181b;
}

.mfc-option-price {
	display: block;
	margin-top: 3px;
	color: #52525b;
	font-size: 0.9rem;
}

.mfc-option-free {
	color: #64748b;
}

.mfc-option-add,
.mfc-option-qty button {
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 50%;
	background: #f4f4f5;
	color: #111827;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

.mfc-option-qty {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-width: 84px;
	justify-content: center;
	padding: 0 6px;
	border-radius: 999px;
	background: #f4f4f5;
}

.mfc-option-qty button {
	background: transparent;
}

.mfc-option-qty span {
	min-width: 16px;
	text-align: center;
	font-weight: 800;
}

.mfc-modal-summary {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 72px 76px 58px 34px;
}

.mfc-summary-image-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 180px;
	margin-bottom: 34px;
}

.mfc-summary-image-wrap img {
	max-width: 100%;
	max-height: 210px;
	object-fit: contain;
}

.mfc-product-discount {
	display: inline-flex;
	align-self: flex-start;
	margin-bottom: 12px;
	padding: 4px 6px;
	border-radius: 4px;
	background: #e91e48;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 900;
}

.mfc-modal-summary h2 {
	margin: 0 0 14px;
	font-size: 1.85rem;
	font-weight: 900;
	letter-spacing: 0;
}

.mfc-summary-price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 10px;
	font-size: 1.35rem;
}

.mfc-summary-price strong {
	font-weight: 900;
}

.mfc-product-old-price {
	color: #9ca3af;
	text-decoration: line-through;
	font-size: 1rem;
}

.mfc-summary-desc {
	margin: 0 0 26px;
	color: #71717a;
	line-height: 1.4;
}

.mfc-product-qty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	gap: 16px;
	min-width: 108px;
	margin: 0 0 22px;
	padding: 8px 14px;
	border-radius: 999px;
	background: #f4f4f5;
}

.mfc-product-qty button {
	border: none;
	background: transparent;
	color: #18181b;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

.mfc-product-qty span {
	font-weight: 850;
	min-width: 16px;
	text-align: center;
}

.mfc-modal-error {
	margin-bottom: 14px;
	padding: 10px 12px;
	border-radius: 8px;
	background: rgba(239, 68, 68, 0.09);
	color: #b91c1c;
	font-size: 0.92rem;
	font-weight: 700;
	text-align: center;
}

.mfc-modal-add {
	width: 100%;
	min-height: 48px;
	border: none;
	border-radius: 999px;
	background: var(--moulfood-settings-button, #00765a);
	color: #fff;
	font-size: 1rem;
	font-weight: 850;
	cursor: pointer;
}

.mfc-modal-add:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

@media (max-width: 820px) {
	.mfc-modal-overlay {
		align-items: flex-end;
		padding: 0;
	}

	.mfc-product-modal {
		grid-template-columns: 1fr;
		width: 100%;
		max-height: 92vh;
		border-radius: 22px 22px 0 0;
	}

	.mfc-modal-close {
		top: 14px;
		right: 14px;
		width: 38px;
		height: 38px;
		font-size: 30px;
	}

	.mfc-modal-options {
		order: 2;
		max-height: 46vh;
		padding: 18px 18px 28px;
		border-right: none;
		border-top: 1px solid #f1f5f9;
	}

	.mfc-modal-summary {
		order: 1;
		padding: 54px 18px 18px;
	}

	.mfc-summary-image-wrap {
		min-height: 96px;
		margin-bottom: 14px;
	}

	.mfc-summary-image-wrap img {
		max-height: 116px;
	}

	.mfc-modal-summary h2 {
		font-size: 1.35rem;
		margin-bottom: 8px;
	}

	.mfc-summary-price {
		font-size: 1.06rem;
	}

	.mfc-summary-desc {
		margin-bottom: 14px;
		font-size: 0.92rem;
	}

	.mfc-product-qty {
		margin-bottom: 14px;
	}

	.mfc-options-group {
		margin-bottom: 24px;
	}

	.mfc-options-group h3 {
		font-size: 1.18rem;
	}

	.mfc-option-name {
		font-size: 1rem;
	}
}
