:root {
	--mbfm-ink: #181518;
	--mbfm-muted: #6f6870;
	--mbfm-line: #e8e2e6;
	--mbfm-soft: #faf7f8;
	--mbfm-pink: #e4006d;
	--mbfm-pink-dark: #bd005b;
	--mbfm-success: #177a54;
	--mbfm-error: #a53a35;
}

.micho-bfm-request-page .wp-block-post-title,
.micho-bfm-request-page .entry-title,
.micho-bfm-request-page main > h1:first-child {
	display: none !important;
}

.micho-bfm-request-page .wp-site-blocks main,
.micho-bfm-quote-page .wp-site-blocks main {
	padding-top: 0;
}

.mbfm-shell,
.mbfm-quote-shell {
	box-sizing: border-box;
	width: 100%;
	max-width: 1040px;
	margin: 0 auto;
	padding: clamp(42px, 8vw, 92px) clamp(20px, 5vw, 48px) 72px;
	color: var(--mbfm-ink);
	font-family: inherit;
}

.mbfm-shell *,
.mbfm-quote-shell * {
	box-sizing: border-box;
}

.mbfm-hero {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}

.mbfm-eyebrow {
	margin: 0 0 14px;
	color: var(--mbfm-pink);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .16em;
	line-height: 1.4;
	text-transform: uppercase;
}

.mbfm-hero h1,
.mbfm-success h1,
.mbfm-quote-header h1 {
	margin: 0;
	color: var(--mbfm-ink);
	font-size: clamp(38px, 6vw, 66px);
	font-weight: 800;
	letter-spacing: -.045em;
	line-height: 1.02;
}

.mbfm-lede {
	max-width: 650px;
	margin: 22px auto 0;
	color: var(--mbfm-muted);
	font-size: clamp(17px, 2.3vw, 20px);
	line-height: 1.6;
}

.mbfm-start-card {
	max-width: 780px;
	margin: clamp(34px, 6vw, 56px) auto 0;
	padding: clamp(18px, 3vw, 26px);
	border: 1px solid var(--mbfm-line);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 16px 45px rgba(43, 21, 33, .06);
}

.mbfm-link-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
}

.mbfm-input-wrap {
	position: relative;
	min-width: 0;
}

.mbfm-input-icon {
	position: absolute;
	top: 50%;
	left: 18px;
	width: 22px;
	height: 22px;
	color: var(--mbfm-pink);
	transform: translateY(-50%);
	pointer-events: none;
}

.mbfm-shell input[type="url"],
.mbfm-shell input[type="text"],
.mbfm-shell input[type="email"],
.mbfm-shell input[type="number"],
.mbfm-shell select,
.mbfm-shell textarea {
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 13px 16px;
	border: 1px solid #d9d1d6;
	border-radius: 14px;
	background: #fff;
	box-shadow: none;
	color: var(--mbfm-ink);
	font: inherit;
	font-size: 16px;
	line-height: 1.35;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.mbfm-shell .mbfm-link-input {
	min-width: 0;
	padding-left: 52px;
	text-overflow: ellipsis;
}

.mbfm-shell textarea {
	min-height: 104px;
	resize: vertical;
}

.mbfm-shell input:focus,
.mbfm-shell select:focus,
.mbfm-shell textarea:focus {
	border-color: var(--mbfm-pink);
	outline: none;
	box-shadow: 0 0 0 4px rgba(228, 0, 109, .1);
}

.mbfm-primary,
.mbfm-secondary,
.mbfm-text-action,
.mbfm-quantity button {
	appearance: none;
	border: 0;
	font: inherit;
	cursor: pointer;
}

.mbfm-primary {
	display: inline-flex;
	min-height: 52px;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 13px 23px;
	border-radius: 14px;
	background: var(--mbfm-pink);
	color: #fff !important;
	font-weight: 750;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background .18s ease, transform .18s ease;
}

.mbfm-primary:hover,
.mbfm-primary:focus-visible {
	background: var(--mbfm-pink-dark);
	transform: translateY(-1px);
}

.mbfm-primary[disabled] {
	cursor: wait;
	opacity: .62;
	transform: none;
}

.mbfm-divider {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 22px 0;
	color: #9a9198;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
}

.mbfm-divider::before,
.mbfm-divider::after {
	content: "";
	height: 1px;
	flex: 1;
	background: var(--mbfm-line);
}

.mbfm-alt-actions {
	display: flex;
	min-width: 0;
	align-items: center;
	justify-content: center;
	gap: 12px 20px;
	flex-wrap: wrap;
}

.mbfm-secondary {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 11px 19px;
	border: 1px solid var(--mbfm-line);
	border-radius: 13px;
	background: var(--mbfm-soft);
	color: var(--mbfm-ink);
	font-weight: 700;
}

.mbfm-text-action {
	max-width: 100%;
	padding: 8px 2px;
	background: transparent;
	color: var(--mbfm-ink);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: rgba(228, 0, 109, .35);
	text-underline-offset: 4px;
	white-space: normal;
}

.mbfm-trust-row {
	display: grid;
	max-width: 820px;
	margin: 30px auto 0;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	color: var(--mbfm-muted);
	font-size: 13px;
	font-weight: 650;
	text-align: center;
}

.mbfm-trust-row span {
	min-width: 0;
	padding: 9px 6px;
	overflow-wrap: anywhere;
}

.mbfm-trust-row span::before {
	content: "✓";
	margin-right: 6px;
	color: var(--mbfm-pink);
	font-weight: 900;
}

.mbfm-progress {
	display: flex;
	max-width: 720px;
	align-items: center;
	justify-content: space-between;
	margin: 32px auto 22px;
	color: var(--mbfm-muted);
	font-size: 13px;
	font-weight: 700;
}

.mbfm-progress strong {
	color: var(--mbfm-pink);
}

.mbfm-panel {
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(22px, 5vw, 40px);
	border: 1px solid var(--mbfm-line);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 16px 45px rgba(43, 21, 33, .05);
}

.mbfm-panel[hidden],
.mbfm-disclosure[hidden],
.mbfm-resolver-result[hidden] {
	display: none !important;
}

.mbfm-panel-heading {
	margin-bottom: 25px;
}

.mbfm-panel-heading h2 {
	margin: 0 0 8px;
	font-size: clamp(26px, 4vw, 36px);
	letter-spacing: -.03em;
	line-height: 1.15;
}

.mbfm-panel-heading p {
	margin: 0;
	color: var(--mbfm-muted);
	line-height: 1.55;
}

.mbfm-field-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.mbfm-field,
.mbfm-field-wide {
	display: block;
}

.mbfm-field-wide {
	grid-column: 1 / -1;
}

.mbfm-label {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 750;
}

.mbfm-optional {
	color: var(--mbfm-muted);
	font-size: 12px;
	font-weight: 500;
}

.mbfm-disclosure-actions {
	display: flex;
	gap: 10px;
	margin: 20px 0 0;
	flex-wrap: wrap;
}

.mbfm-chip-button {
	min-height: 40px;
	padding: 8px 13px;
	border: 1px solid var(--mbfm-line);
	border-radius: 999px;
	background: #fff;
	color: var(--mbfm-ink);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.mbfm-form-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid var(--mbfm-line);
}

.mbfm-form-footer p {
	max-width: 330px;
	margin: 0;
	color: var(--mbfm-muted);
	font-size: 13px;
	line-height: 1.5;
}

.mbfm-dropzone {
	display: grid;
	min-height: 220px;
	place-items: center;
	padding: 28px;
	border: 1.5px dashed #cfc3ca;
	border-radius: 20px;
	background: var(--mbfm-soft);
	text-align: center;
	cursor: pointer;
	transition: border-color .18s ease, background .18s ease;
}

.mbfm-dropzone:hover,
.mbfm-dropzone.is-dragover {
	border-color: var(--mbfm-pink);
	background: #fff5fa;
}

.mbfm-dropzone input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
}

.mbfm-dropzone-icon {
	display: grid;
	width: 54px;
	height: 54px;
	margin: 0 auto 12px;
	place-items: center;
	border-radius: 17px;
	background: #fff;
	color: var(--mbfm-pink);
	box-shadow: 0 6px 18px rgba(43, 21, 33, .07);
}

.mbfm-dropzone strong {
	display: block;
	font-size: 17px;
}

.mbfm-dropzone small {
	display: block;
	margin-top: 8px;
	color: var(--mbfm-muted);
	line-height: 1.5;
}

.mbfm-upload-preview {
	display: grid;
	grid-template-columns: 86px 1fr;
	gap: 16px;
	align-items: center;
}

.mbfm-upload-preview img {
	width: 86px;
	height: 86px;
	border-radius: 14px;
	object-fit: cover;
}

.mbfm-resolver-status {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-top: 18px;
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--mbfm-soft);
	color: var(--mbfm-muted);
	font-size: 14px;
	line-height: 1.45;
}

.mbfm-resolver-status.is-error {
	background: #fff7f5;
	color: var(--mbfm-error);
}

.mbfm-spinner {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	border: 2px solid rgba(228, 0, 109, .2);
	border-top-color: var(--mbfm-pink);
	border-radius: 50%;
	animation: mbfm-spin .7s linear infinite;
}

@keyframes mbfm-spin { to { transform: rotate(360deg); } }

.mbfm-product-card {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 22px;
	margin: 22px 0 0;
	padding: 18px;
	border: 1px solid var(--mbfm-line);
	border-radius: 18px;
	background: var(--mbfm-soft);
}

.mbfm-product-card img,
.mbfm-product-placeholder {
	width: 150px;
	height: 150px;
	border-radius: 14px;
	object-fit: cover;
}

.mbfm-product-placeholder {
	display: grid;
	place-items: center;
	background: #eee8eb;
	color: #9b9298;
}

.mbfm-product-card h3 {
	margin: 2px 0 8px;
	font-size: 20px;
	line-height: 1.35;
}

.mbfm-source-badge,
.mbfm-status-badge {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	background: #f5e7ee;
	color: var(--mbfm-pink-dark);
	font-size: 12px;
	font-weight: 800;
}

.mbfm-reference-price {
	margin: 14px 0 4px;
	font-size: 18px;
	font-weight: 800;
}

.mbfm-fine-print {
	margin: 0;
	color: var(--mbfm-muted);
	font-size: 12px;
	line-height: 1.5;
}

.mbfm-quantity {
	display: inline-grid;
	grid-template-columns: 44px 56px 44px;
	align-items: center;
	border: 1px solid #d9d1d6;
	border-radius: 14px;
	overflow: hidden;
}

.mbfm-quantity button {
	height: 50px;
	background: var(--mbfm-soft);
	color: var(--mbfm-ink);
	font-size: 20px;
}

.mbfm-quantity input[type="number"] {
	min-height: 50px;
	padding: 0;
	border: 0;
	border-radius: 0;
	text-align: center;
	-moz-appearance: textfield;
}

.mbfm-quantity input::-webkit-inner-spin-button,
.mbfm-quantity input::-webkit-outer-spin-button { appearance: none; margin: 0; }

.mbfm-success {
	max-width: 720px;
	margin: 0 auto;
	padding: clamp(32px, 6vw, 58px);
	border: 1px solid var(--mbfm-line);
	border-radius: 28px;
	background: #fff;
	box-shadow: 0 18px 55px rgba(43, 21, 33, .06);
	text-align: center;
}

.mbfm-success-mark {
	display: grid;
	width: 64px;
	height: 64px;
	margin: 0 auto 24px;
	place-items: center;
	border-radius: 50%;
	background: #eaf8f2;
	color: var(--mbfm-success);
	font-size: 31px;
	font-weight: 900;
}

.mbfm-success h1 {
	font-size: clamp(34px, 6vw, 54px);
}

.mbfm-success p {
	color: var(--mbfm-muted);
	font-size: 17px;
	line-height: 1.6;
}

.mbfm-request-number {
	margin: 28px auto 10px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.mbfm-success .mbfm-status-badge {
	background: #fff0f7;
}

.mbfm-quote-shell {
	max-width: 900px;
}

.mbfm-quote-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 32px;
}

.mbfm-quote-header h1 { font-size: clamp(38px, 6vw, 58px); }

.mbfm-quote-card {
	padding: clamp(22px, 5vw, 40px);
	border: 1px solid var(--mbfm-line);
	border-radius: 26px;
	background: #fff;
	box-shadow: 0 18px 55px rgba(43, 21, 33, .06);
}

.mbfm-quote-product {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr);
	gap: 26px;
	align-items: center;
	padding-bottom: 30px;
	border-bottom: 1px solid var(--mbfm-line);
}

.mbfm-quote-product img,
.mbfm-quote-image-placeholder {
	width: 160px;
	height: 160px;
	border-radius: 18px;
	object-fit: cover;
}

.mbfm-quote-image-placeholder {
	display: grid;
	place-items: center;
	background: var(--mbfm-soft);
	color: #9b9298;
}

.mbfm-quote-product h2 {
	margin: 0 0 12px;
	font-size: clamp(24px, 4vw, 34px);
	letter-spacing: -.03em;
	line-height: 1.2;
}

.mbfm-quote-meta {
	display: flex;
	gap: 8px 20px;
	margin: 0;
	flex-wrap: wrap;
	color: var(--mbfm-muted);
	font-size: 14px;
}

.mbfm-quote-source {
	display: inline-block;
	margin-top: 13px;
	color: var(--mbfm-pink-dark);
	font-size: 13px;
	font-weight: 750;
	text-decoration: none;
}

.mbfm-price-summary {
	max-width: 620px;
	margin: 28px auto 0;
}

.mbfm-price-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	padding: 10px 0;
	color: var(--mbfm-muted);
	font-size: 15px;
}

.mbfm-price-row strong {
	color: var(--mbfm-ink);
	font-weight: 750;
}

.mbfm-price-total {
	margin-top: 12px;
	padding-top: 22px;
	border-top: 1px solid var(--mbfm-line);
	color: var(--mbfm-ink);
	font-size: 21px;
	font-weight: 850;
}

.mbfm-price-total strong { font-size: 25px; }

.mbfm-shipping-note {
	margin: 28px 0;
	padding: 16px 18px;
	border-radius: 14px;
	background: var(--mbfm-soft);
	color: var(--mbfm-muted);
	font-size: 14px;
	line-height: 1.55;
}

.mbfm-quote-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 18px;
}

.mbfm-not-now {
	color: var(--mbfm-muted);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.mbfm-alert {
	padding: 18px 20px;
	border-radius: 15px;
	background: var(--mbfm-soft);
	color: var(--mbfm-muted);
	line-height: 1.55;
}

.mbfm-alert-error { background: #fff3f2; color: var(--mbfm-error); }
.mbfm-alert-success { background: #edf9f4; color: var(--mbfm-success); }

@media (max-width: 720px) {
	.mbfm-shell,
	.mbfm-quote-shell { padding: 36px 16px 54px; }
	.mbfm-link-row { grid-template-columns: 1fr; }
	.mbfm-link-row .mbfm-primary { width: 100%; }
	.mbfm-trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mbfm-field-grid { grid-template-columns: 1fr; }
	.mbfm-form-footer { align-items: stretch; flex-direction: column; }
	.mbfm-form-footer .mbfm-primary { width: 100%; }
	.mbfm-product-card,
	.mbfm-quote-product { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; }
	.mbfm-product-card img,
	.mbfm-product-placeholder { width: 104px; height: 104px; }
	.mbfm-quote-product img,
	.mbfm-quote-image-placeholder { width: 104px; height: 104px; }
	.mbfm-quote-header { align-items: flex-start; flex-direction: column; }
	.mbfm-quote-actions { align-items: stretch; flex-direction: column-reverse; text-align: center; }
	.mbfm-quote-actions .mbfm-primary { width: 100%; }
}

@media (max-width: 460px) {
	.mbfm-start-card,
	.mbfm-panel,
	.mbfm-quote-card { border-radius: 18px; }
	.mbfm-alt-actions { align-items: stretch; flex-direction: column; }
	.mbfm-secondary { width: 100%; }
	.mbfm-product-card,
	.mbfm-quote-product { grid-template-columns: 1fr; }
	.mbfm-product-card img,
	.mbfm-product-placeholder,
	.mbfm-quote-product img,
	.mbfm-quote-image-placeholder { width: 100%; height: min(64vw, 260px); }
}

@media (prefers-reduced-motion: reduce) {
	.mbfm-primary,
	.mbfm-shell input,
	.mbfm-shell select,
	.mbfm-shell textarea,
	.mbfm-dropzone { transition: none; }
	.mbfm-spinner { animation-duration: 1.4s; }
}

/* WordPress admin request editor (scoped to the plugin metabox). */
.mbfm-admin { color: #1d2327; }
.mbfm-admin-header { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:0 0 18px; padding:4px 0 18px; border-bottom:1px solid #e2e4e7; }
.mbfm-admin-header h2 { margin:0; font-size:24px; }
.mbfm-admin-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.mbfm-admin-section { margin:0 0 18px; padding:18px; border:1px solid #dcdcde; border-radius:10px; background:#fff; }
.mbfm-admin-section h3 { margin:0 0 16px; font-size:14px; letter-spacing:.06em; text-transform:uppercase; }
.mbfm-admin-section-wide { grid-column:1 / -1; }
.mbfm-admin-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.mbfm-admin-field { display:block; }
.mbfm-admin-field-wide { grid-column:1 / -1; }
.mbfm-admin-field span { display:block; margin-bottom:6px; font-weight:650; }
.mbfm-admin-field input,
.mbfm-admin-field select,
.mbfm-admin-field textarea { width:100%; }
.mbfm-admin-detected { display:grid; grid-template-columns:120px minmax(0,1fr); gap:16px; align-items:start; }
.mbfm-admin-detected img { width:120px; height:120px; border-radius:8px; object-fit:cover; background:#f0f0f1; }
.mbfm-admin-data { margin:0; }
.mbfm-admin-data dt { margin:10px 0 2px; color:#646970; font-size:12px; font-weight:700; text-transform:uppercase; }
.mbfm-admin-data dd { margin:0; overflow-wrap:anywhere; }
.mbfm-admin-quote { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:16px; border-radius:8px; background:#f6f7f7; }
.mbfm-admin-quote strong { font-size:20px; }
.mbfm-admin-actions { display:flex; gap:10px; flex-wrap:wrap; }
@media (max-width: 782px) {
	.mbfm-admin-grid,
	.mbfm-admin-fields { grid-template-columns:1fr; }
	.mbfm-admin-section-wide,
	.mbfm-admin-field-wide { grid-column:auto; }
	.mbfm-admin-header,
	.mbfm-admin-quote { align-items:flex-start; flex-direction:column; }
}
