.mpf-wrapper {
	background: #fff;
	border-radius: 18px;
	border: 1px solid #e1e6f0;
	box-shadow: 0 12px 30px rgba(56, 91, 131, 0.08);
	padding: 24px;
	font-family: inherit;
	color: #0f172a;
}

.mpf-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

.mpf-header {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.mpf-kicker {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #7b8aa0;
}

.mpf-title {
	margin: 6px 0 0;
	font-size: 1.3rem;
	color: #385b83;
	font-weight: 700;
}

.mpf-reset {
	font-weight: 600;
	color: #385b83;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}

.mpf-reset:hover {
	border-bottom-color: #385b83;
}

.woocommerce-ordering,
.mpf-ordering {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.woocommerce-ordering select,
.mpf-ordering select {
	border-radius: 12px;
	border: 1px solid #e1e6f0;
	padding: 10px 14px;
	font-size: 0.95rem;
	font-weight: 600;
	color: #385b83;
	background: #fff;
	box-shadow: 0 6px 18px rgba(56, 91, 131, 0.08);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-ordering select:focus,
.mpf-ordering select:focus {
	outline: none;
	border-color: #385b83;
	box-shadow: 0 0 0 2px rgba(56, 91, 131, 0.2);
}

.mpf-toggle {
	border: 1px solid #c8d2e5;
	background: #fff;
	color: #385b83;
	border-radius: 999px;
	padding: 8px 18px;
	font-weight: 600;
	cursor: pointer;
	display: none;
	align-items: center;
	gap: 8px;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.mpf-toggle:hover {
	background: #f1f5fb;
	border-color: #b5c2da;
}

.mpf-toggle-icon {
	display: inline-flex;
	width: 18px;
	height: 18px;
}

.mpf-toggle-icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.mpf-toolbar {
	display: none;
	width: 100%;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
}

.mpf-toolbar .mpf-toggle {
	flex: 1 1 50%;
	justify-content: center;
}

.mpf-ordering-panel {
	display: block;
	width: 100%;
}

.mpf-active {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mpf-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	background: #eef2f8;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 600;
	color: #385b83;
	text-decoration: none;
}

.mpf-chip span {
	font-weight: 700;
}

.mpf-groups {
	display: grid;
	gap: 16px;
}

.mpf-group {
	border: 1px solid #e1e6f0;
	border-radius: 14px;
	padding: 12px 16px;
	background: #f9fbff;
}

.mpf-group summary {
	font-size: 1rem;
	font-weight: 700;
	color: #385b83;
	cursor: pointer;
	list-style: none;
	outline: none;
}

.mpf-group summary::-webkit-details-marker {
	display: none;
}

.mpf-group summary::after {
	content: '\25BE';
	float: right;
	transition: transform 0.2s ease;
}

.mpf-group[open] summary::after {
	transform: rotate(180deg);
}

.mpf-options {
	margin-top: 12px;
	display: grid;
	gap: 8px;
}

.mpf-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 0.95rem;
	color: #1f2937;
}

.mpf-option input[type="checkbox"] {
	accent-color: #385b83;
	margin-right: 8px;
}

.mpf-option span {
	flex: 1;
}

.mpf-option em {
	font-style: normal;
	font-size: 0.85rem;
	color: #7b8aa0;
}

.mpf-price {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 12px;
	margin-top: 12px;
}

.mpf-price label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #385b83;
}

.mpf-price input {
	border-radius: 12px;
	border: 1px solid #e1e6f0;
	padding: 10px 12px;
	font-size: 0.95rem;
	background: #fff;
	box-shadow: 0 6px 18px rgba(56, 91, 131, 0.08);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mpf-price input:focus {
	outline: none;
	border-color: #385b83;
	box-shadow: 0 0 0 2px rgba(56, 91, 131, 0.2);
}

.mpf-actions {
	display: flex;
	justify-content: flex-start;
}

.mpf-button {
	border: none;
	border-radius: 999px;
	padding: 12px 26px;
	font-weight: 600;
	font-family: inherit;
	background: #385b83;
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.mpf-button:hover {
	background: #2c4b6d;
	transform: translateY(-1px);
}

@media (max-width: 1024px) {
	.mpf-wrapper {
		padding: 0;
		background: transparent;
		border: none;
		box-shadow: none;
		width: 100%;
	}

	.mpf-header {
		display: none;
	}

	.mpf-toggle {
		display: inline-flex;
	}

	.mpf-toolbar {
		display: flex;
	}

	.mpf-wrapper.mpf-open .mpf-header {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
	}

	.mpf-panel {
		display: none;
		width: 100%;
	}

	.mpf-wrapper.mpf-open .mpf-panel {
		display: block;
	}

	.mpf-ordering-panel {
		display: none;
		width: 100%;
		margin-top: 12px;
	}

	.mpf-ordering-panel.mpf-open {
		display: block;
	}

	.mpf-actions {
		width: 100%;
	}

	.mpf-button {
		width: 100%;
		text-align: center;
	}

	.woocommerce-ordering,
	.mpf-ordering {
		width: 100%;
	}

	.woocommerce-ordering select,
	.mpf-ordering select {
		width: 100%;
	}
}

@media (min-width: 1025px) {
	.mpf-toggle,
	.mpf-toolbar {
		display: none !important;
	}

	.mpf-panel {
		display: block;
	}
}
