/* MV File Checker.
   Like the price calculator, the !important guards stop themes and other
   add-on plugins (which style every input inside form.cart) from restyling
   the checker. Everything here is scoped to .mfc. */

.mfc {
	--mfc-fail: #c0392b;
	--mfc-warn: #b8860b;
	--mfc-pass: #1e7e45;
	--mfc-info: #4a5568;
	--mfc-line: #d9dde3;
	--mfc-bg: #fbfcfd;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 16px 0;
	padding: 16px;
	border: 1px solid var(--mfc-line);
	border-radius: 10px;
	background: var(--mfc-bg);
	font-size: 15px;
	line-height: 1.5;
	color: #1f2933;
}

.mfc *,
.mfc *::before,
.mfc *::after {
	box-sizing: inherit;
}

form.cart .mfc {
	order: 0;
}

.mfc-title {
	margin: 0 0 12px;
	font-size: 17px;
	line-height: 1.3;
	font-weight: 600;
}

/* ---- Size inputs ---- */

.mfc-row.mfc-size {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px;
	margin-bottom: 6px;
}

.mfc-field {
	display: flex;
	flex-direction: column;
	flex: 1 1 90px;
	min-width: 80px;
}

.mfc-field label {
	margin-bottom: 4px;
	font-size: 13px;
	font-weight: 600;
	color: #3d4852;
}

.mfc-field input,
.mfc-field select {
	width: 100% !important;
	min-height: 40px;
	margin: 0 !important;
	padding: 8px 10px !important;
	border: 1px solid #c4cbd4 !important;
	border-radius: 6px !important;
	background: #fff !important;
	font-size: 15px !important;
	line-height: 1.3 !important;
	color: inherit !important;
}

.mfc-unit-field {
	flex: 0 1 92px;
}

.mfc-x {
	padding-bottom: 10px;
	color: #7b8794;
}

.mfc-hint {
	margin: 0 0 12px;
	font-size: 13px;
	color: #616e7c;
}

/* ---- Drop zone ---- */

.mfc-drop {
	display: block;
	padding: 22px 16px;
	border: 2px dashed #c4cbd4;
	border-radius: 10px;
	background: #fff;
	text-align: center;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}

.mfc-drop:hover,
.mfc-drop:focus-visible {
	border-color: #29abe2;
	background: #f5fbfe;
	outline: none;
}

.mfc-drop.mfc-over {
	border-color: #29abe2;
	border-style: solid;
	background: #eaf7fd;
}

.mfc-drop-icon {
	width: 34px;
	height: 34px;
	margin-bottom: 6px;
	color: #7b8794;
}

.mfc-drop-main {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 600;
}

.mfc-drop-sub {
	margin: 0;
	font-size: 13px;
	color: #616e7c;
}

.mfc-privacy {
	margin: 8px 0 0;
	font-size: 12px;
	color: #7b8794;
}

.mfc-busy .mfc-drop {
	opacity: .6;
	pointer-events: none;
}

/* ---- Status line ---- */

.mfc-status:not(:empty) {
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14px;
	background: #eef2f6;
}

.mfc-status-busy::before {
	content: '';
	display: inline-block;
	width: 13px;
	height: 13px;
	margin-right: 8px;
	border: 2px solid #b9c2cc;
	border-top-color: #29abe2;
	border-radius: 50%;
	vertical-align: -2px;
	animation: mfc-spin .7s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
	.mfc-status-busy::before { animation-duration: 2.5s; }
}

.mfc-status-error {
	background: #fdeeec !important;
	color: #8f2c20;
}

/* ---- Verdict ---- */

.mfc-result {
	margin-top: 14px;
}

.mfc-verdict {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 8px;
	background: #eef2f6;
}

.mfc-level-fail .mfc-verdict { background: #fdeeec; }
.mfc-level-warn .mfc-verdict { background: #fdf6e3; }
.mfc-level-pass .mfc-verdict { background: #edf9f1; }

.mfc-badge {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 26px;
	text-align: center;
}

.mfc-level-fail .mfc-badge { background: var(--mfc-fail); }
.mfc-level-warn .mfc-badge { background: var(--mfc-warn); }
.mfc-level-pass .mfc-badge { background: var(--mfc-pass); }

.mfc-verdict-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.mfc-verdict-text strong {
	font-size: 15px;
}

.mfc-filemeta {
	font-size: 12.5px;
	color: #52606d;
	overflow-wrap: anywhere;
}

/* ---- Diagram ---- */

.mfc-diagram {
	margin: 14px 0 4px;
}

.mfc-diagram-title {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	color: #3d4852;
}

.mfc-svg {
	display: block;
	width: 100%;
	max-width: 340px;
	max-height: 260px;
	margin: 0 auto;
	background:
		linear-gradient(45deg, #eceff3 25%, transparent 25%, transparent 75%, #eceff3 75%),
		linear-gradient(45deg, #eceff3 25%, #fff 25%, #fff 75%, #eceff3 75%);
	background-size: 14px 14px;
	background-position: 0 0, 7px 7px;
	border-radius: 6px;
}

.mfc-r-paper { fill: #fff; stroke: none; }
.mfc-r-ink   { fill: #29abe2; fill-opacity: .18; stroke: #29abe2; stroke-opacity: .5; }
.mfc-r-bleed { fill: none; stroke: #c0392b; }
.mfc-r-trim  { fill: none; stroke: #1f2933; }
.mfc-r-safe  { fill: none; stroke: #1e7e45; }

.mfc-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	font-size: 12.5px;
	color: #52606d;
}

.mfc-legend li {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.mfc-key {
	width: 16px;
	height: 0;
	border-top-width: 2px;
	border-top-style: solid;
}

.mfc-key-trim  { border-top-color: #1f2933; }
.mfc-key-bleed { border-top-color: #c0392b; border-top-style: dashed; }
.mfc-key-safe  { border-top-color: #1e7e45; border-top-style: dotted; }
.mfc-key-ink   { border-top-color: #29abe2; height: 10px; background: rgba(41,171,226,.18); }

.mfc-key-val { color: #7b8794; }

/* ---- Findings ---- */

.mfc-findings {
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.mfc-f {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 11px 0;
	border-top: 1px solid var(--mfc-line);
}

.mfc-f:first-child {
	border-top: none;
}

.mfc-f-mark {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	margin-top: 3px;
	border-radius: 50%;
	background: #cbd2d9;
}

.mfc-f-fail .mfc-f-mark { background: var(--mfc-fail); }
.mfc-f-warn .mfc-f-mark { background: var(--mfc-warn); }
.mfc-f-pass .mfc-f-mark { background: var(--mfc-pass); }
.mfc-f-info .mfc-f-mark { background: #9aa5b1; }

.mfc-f-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.mfc-f-title {
	font-size: 14.5px;
	font-weight: 600;
}

.mfc-f-level {
	margin-left: 8px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #7b8794;
}

.mfc-f-fail .mfc-f-level { color: var(--mfc-fail); }
.mfc-f-warn .mfc-f-level { color: var(--mfc-warn); }
.mfc-f-pass .mfc-f-level { color: var(--mfc-pass); }

.mfc-f-msg {
	font-size: 14px;
	color: #3d4852;
}

.mfc-f-fix {
	padding: 8px 10px;
	border-left: 3px solid #29abe2;
	border-radius: 0 6px 6px 0;
	background: #f2f9fd;
	font-size: 13.5px;
	color: #29405a;
}

/* Passed and informational items are quieter — problems should stand out. */
.mfc-f-pass .mfc-f-msg,
.mfc-f-info .mfc-f-msg {
	color: #616e7c;
}

/* ---- Print-as-is confirmation ---- */

.mfc-ack {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 14px 0 0;
	padding: 12px 14px;
	border: 1px solid #f0c9c2;
	border-radius: 8px;
	background: #fdeeec;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.mfc-ack input {
	width: auto !important;
	min-height: 0 !important;
	margin: 3px 0 0 !important;
	flex: 0 0 auto;
}

.mfc-note {
	margin: 14px 0 0;
	font-size: 13px;
	color: #616e7c;
}

/* ---- Narrow screens ---- */

@media (max-width: 480px) {
	.mfc {
		padding: 13px;
	}

	.mfc-field {
		flex: 1 1 100%;
	}

	.mfc-x {
		display: none;
	}

	.mfc-unit-field {
		flex: 1 1 100%;
	}
}
