/* ==========================================================================
   M&M Print Studio — customer facing
   --------------------------------------------------------------------------
   The visual language is taken from a press sheet: paper is cut square, so
   surfaces have no radius; trim marks sit at the corners; the four process
   inks are the whole palette. Cyan is the interactive ink, magenta is the
   attention ink, yellow warns, key carries structure.
   ========================================================================== */

.mmps-config,
.mmps-standalone-quote,
.mmps-track,
.mmps-proof-shell,
.mmps-order-panel {
	--ink-c: var(--mmps-accent, #0090c6);
	--ink-c-deep: var(--mmps-accent-deep, #00719c);
	--ink-c-soft: var(--mmps-accent-soft, rgba(0, 144, 198, 0.09));
	--ink-c-ring: var(--mmps-accent-ring, rgba(0, 144, 198, 0.22));
	--ink-c-ink: var(--mmps-accent-ink, #ffffff);
	--ink-m: var(--mmps-attention, #d6006e);
	--ink-m-soft: var(--mmps-attention-soft, #fff5f9);
	--ink-y: var(--mmps-caution, #ffc400);
	--ink-y-soft: var(--mmps-caution-soft, #fffaeb);
	--ink-k: var(--mmps-panel, #16161a);
	--ink-k-ink: var(--mmps-panel-ink, #ffffff);
	--bar: var(--mmps-bar, linear-gradient(to right, #0090c6 0 25%, #d6006e 25% 50%, #ffc400 50% 75%, #6b6b72 75% 100%));

	--paper: var(--mmps-paper, #ffffff);
	--paper-2: var(--mmps-paper-2, #f7f7f5);
	--paper-3: var(--mmps-paper-3, #ececea);
	--rule: var(--mmps-rule, #d8d8d4);
	--rule-strong: var(--mmps-rule-strong, #16161a);
	--text: var(--mmps-text, #16161a);
	--text-2: var(--mmps-text-2, #5c5c63);
	--text-3: var(--mmps-text-3, #85858d);
	--radius: var(--mmps-radius, 3px);
	--radius-card: var(--mmps-radius-card, 0px);

	--step: 0.75rem;
	--sheet-pad: clamp(1.25rem, 4vw, 2rem);

	color: var(--text);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

/* Several panels are shown and hidden with the hidden attribute, and the
   display rules below would otherwise override it. */
.mmps-config [hidden],
.mmps-standalone-quote [hidden],
.mmps-track [hidden],
.mmps-proof-shell [hidden] {
	display: none !important;
}

/* Numbers in this plugin are money and dimensions. They line up. */
.mmps-total,
.mmps-breakdown,
.mmps-breaks,
.mmps-chip small,
.mmps-file-size,
.mmps-tile-n {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

/* ==========================================================================
   The sheet
   ========================================================================== */

.mmps-config {
	position: relative;
	background: var(--paper);
	color: var(--text);
	border-radius: var(--radius-card);
	padding: var(--sheet-pad);
	margin: 1.5rem 0;
	max-width: 42rem;
}

/* Trim marks. Four L-shaped hairlines instead of a box — this is how a
   printed sheet tells you where it will be cut. */
.mmps-config::before,
.mmps-config::after {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	pointer-events: none;
}

.mmps-config::before {
	top: 0;
	left: 0;
	border-top: 1px solid var(--rule-strong);
	border-left: 1px solid var(--rule-strong);
}

.mmps-config::after {
	bottom: 0;
	right: 0;
	border-bottom: 1px solid var(--rule-strong);
	border-right: 1px solid var(--rule-strong);
}

/* ==========================================================================
   Fields
   ========================================================================== */

.mmps-field {
	margin: 0 0 1.5rem;
}

.mmps-field > label,
.mmps-standalone-quote label > span:first-child {
	display: block;
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: -0.005em;
	margin: 0 0 0.5rem;
}

.mmps-req {
	color: var(--ink-m);
	margin-left: 0.15em;
}

.mmps-input {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-size: 1rem;
	color: var(--text);
	background: var(--paper);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	padding: 0.625rem 0.75rem;
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.mmps-input:hover {
	border-color: #b9b9b4;
}

.mmps-input:focus,
.mmps-input:focus-visible {
	outline: none;
	border-color: var(--ink-c);
	box-shadow: 0 0 0 3px var(--ink-c-ring);
}

select.mmps-input {
	appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2316161a' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	padding-right: 2.25rem;
}

textarea.mmps-input {
	resize: vertical;
	min-height: 3.5rem;
}

.mmps-hint {
	margin: 0.5rem 0 0;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--text-2);
}

.mmps-dims {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 0.75rem;
}

.mmps-dims > div > label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--text-2);
	margin: 0 0 0.375rem;
}

/* ==========================================================================
   Choice chips — cut like die lines, square with a hard key-black edge
   when active. No pills; paper does not have rounded corners.
   ========================================================================== */

.mmps-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.mmps-chip {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 0.125rem;
	min-height: 2.75rem;
	padding: 0.5rem 0.875rem;
	background: var(--paper);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	cursor: pointer;
	transition: border-color 0.12s ease, background 0.12s ease;
}

.mmps-chip input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}

.mmps-chip span {
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.25;
}

.mmps-chip small {
	font-size: 0.75rem;
	color: var(--text-2);
	line-height: 1.2;
}

.mmps-chip:hover {
	border-color: #a9a9a4;
	background: var(--paper-2);
}

.mmps-chip:has(input:checked) {
	border-color: var(--rule-strong);
	box-shadow: inset 0 0 0 1px var(--rule-strong);
	background: var(--paper);
}

.mmps-chip:has(input:checked) small {
	color: var(--text);
}

/* Keyboard focus has to be visible even though the input is hidden. */
.mmps-chip:has(input:focus-visible) {
	outline: 2px solid var(--ink-c);
	outline-offset: 2px;
}

.mmps-chip.is-out,
.mmps-chip:has(input:disabled) {
	opacity: 0.45;
	cursor: not-allowed;
	text-decoration: line-through;
}

/* Browsers without :has still get a usable control. */
@supports not selector(:has(*)) {
	.mmps-chip input {
		position: static;
		opacity: 1;
		width: auto;
		height: auto;
		margin-right: 0.5rem;
	}

	.mmps-chip {
		flex-direction: row;
		align-items: center;
	}
}

.mmps-swatches .mmps-chip {
	flex-direction: row;
	align-items: center;
	gap: 0.5rem;
	padding: 0.375rem 0.75rem 0.375rem 0.375rem;
}

.mmps-swatches img {
	width: 34px;
	height: 34px;
	object-fit: cover;
	border-radius: 2px;
	display: block;
}

.mmps-checkline {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	font-size: 0.9375rem;
	cursor: pointer;
}

.mmps-checkline input {
	margin-top: 0.2rem;
	flex: none;
}

.mmps-breaks {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem 1.25rem;
	font-size: 0.8125rem;
	color: var(--text-2);
}

.mmps-breaks li {
	margin: 0;
}

/* ==========================================================================
   Artwork
   ========================================================================== */

.mmps-artwork {
	padding-top: 1.5rem;
	border-top: 1px solid var(--rule);
}

.mmps-artmode {
	margin-bottom: 0.875rem;
}

/* Dashed = the cut line on a die-cut sheet. */
.mmps-dropzone {
	border: 1px dashed #b4b4ae;
	border-radius: var(--radius);
	background: var(--paper-2);
	padding: 1.75rem 1rem;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.12s ease, background 0.12s ease;
}

.mmps-dropzone:hover {
	border-color: var(--ink-c);
	background: var(--ink-c-soft);
}

.mmps-dropzone:focus-visible {
	outline: 2px solid var(--ink-c);
	outline-offset: 2px;
}

.mmps-dropzone.is-over {
	border-color: var(--ink-c);
	border-style: solid;
	background: var(--ink-c-soft);
}

.mmps-dz-main {
	margin: 0 0 0.25rem;
	font-size: 0.9375rem;
	font-weight: 500;
}

.mmps-dz-sub {
	margin: 0;
	font-size: 0.75rem;
	color: var(--text-3);
	word-break: break-word;
}

.mmps-uploaded {
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.mmps-file {
	background: var(--paper-2);
	border-left: 3px solid var(--rule);
	padding: 0.75rem 0.875rem;
	font-size: 0.875rem;
}

.mmps-file-row {
	display: flex;
	align-items: baseline;
	gap: 0.625rem;
}

.mmps-file-name {
	font-weight: 600;
	word-break: break-all;
	flex: 1;
}

.mmps-file-size {
	color: var(--text-3);
	font-size: 0.75rem;
	flex: none;
}

.mmps-file-remove {
	flex: none;
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	font-size: 0.8125rem;
	color: var(--text-2);
	text-decoration: underline;
	cursor: pointer;
}

.mmps-file-remove:hover {
	color: var(--ink-m);
}

/* Preflight verdicts, coloured with the ink that matches the severity. */
.mmps-level-ok {
	border-left-color: var(--ink-c);
}

.mmps-level-warn {
	border-left-color: var(--ink-y);
	background: var(--ink-y-soft);
}

.mmps-level-fail {
	border-left-color: var(--ink-m);
	background: var(--ink-m-soft);
}

.mmps-preflight {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
	display: grid;
	gap: 0.25rem;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--text-2);
}

.mmps-preflight li {
	margin: 0;
	padding-left: 0.9rem;
	position: relative;
}

.mmps-preflight li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 5px;
	height: 5px;
	background: currentColor;
	opacity: 0.4;
}

.mmps-file.is-uploading {
	border-left-color: var(--ink-c);
	display: grid;
	gap: 0.5rem;
}

.mmps-progress {
	display: block;
	height: 3px;
	background: var(--paper-3);
	overflow: hidden;
}

.mmps-progress i {
	display: block;
	height: 100%;
	width: 0;
	background: var(--ink-c);
	transition: width 0.2s ease;
}

.mmps-artmode-note,
.mmps-artwork-guide {
	margin-top: 0.75rem;
	padding: 0.75rem 0.875rem;
	background: var(--paper-2);
	border-left: 3px solid var(--ink-c);
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--text-2);
}

.mmps-artwork-guide p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   The price panel — the one bold moment.
   A key-black block with the CMYK colour control bar across its top edge,
   exactly where it sits on a real press sheet.
   ========================================================================== */

.mmps-summary {
	position: relative;
	background: var(--ink-k);
	color: var(--ink-k-ink);
	border-radius: var(--radius-card);
	padding: 1.25rem 1.25rem 1.125rem;
	margin: 1.75rem 0 1rem;
}

.mmps-summary::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--bar);
}

.mmps-summary-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.mmps-summary-label {
	font-size: 0.8125rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.62);
}

.mmps-total {
	font-size: clamp(1.75rem, 6vw, 2.375rem);
	font-weight: 650;
	letter-spacing: -0.025em;
	line-height: 1.1;
}

.mmps-total .woocommerce-Price-currencySymbol {
	font-size: 0.62em;
	font-weight: 500;
	margin-right: 0.12em;
	opacity: 0.75;
}

.is-loading .mmps-total {
	opacity: 0.4;
}

.mmps-breakdown {
	list-style: none;
	margin: 0.875rem 0 0;
	padding: 0.875rem 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	display: grid;
	gap: 0.3125rem;
	font-size: 0.8125rem;
}

.mmps-breakdown:empty {
	display: none;
}

.mmps-breakdown li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
}

.mmps-breakdown li span:last-child {
	flex: none;
	color: #fff;
}

.mmps-ready,
.mmps-deposit {
	margin: 0.75rem 0 0;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.72);
}

.mmps-ready {
	color: #fff;
	font-weight: 500;
}

.mmps-summary .mmps-error {
	margin: 0.75rem 0 0;
	padding: 0.625rem 0.75rem;
	background: rgba(214, 0, 110, 0.16);
	border-left: 3px solid var(--ink-m);
	font-size: 0.8125rem;
	line-height: 1.45;
	color: #fff;
}

/* ==========================================================================
   Actions
   ========================================================================== */

.mmps-actions {
	display: flex;
	align-items: flex-end;
	gap: 0.75rem;
}

.mmps-qty {
	flex: none;
	width: 5.5rem;
}

.mmps-qty > span {
	display: block;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--text-2);
	margin: 0 0 0.375rem;
}

.mmps-config .mmps-submit {
	flex: 1;
	min-height: 3rem;
	font-size: 1rem;
	font-weight: 600;
	border-radius: var(--radius);
	background: var(--ink-c);
	color: var(--ink-c-ink);
	border: 0;
	cursor: pointer;
	transition: background 0.12s ease;
}

.mmps-config .mmps-submit:hover:not(:disabled) {
	background: var(--ink-c-deep);
}

.mmps-config .mmps-submit:focus-visible {
	outline: 2px solid var(--ink-k);
	outline-offset: 2px;
}

.mmps-config .mmps-submit:disabled {
	background: var(--paper-3);
	color: var(--text-3);
	cursor: not-allowed;
}

/* ==========================================================================
   Quote panel
   ========================================================================== */

.mmps-quote-cta {
	margin: 1.25rem 0 0;
	padding-top: 1.25rem;
	border-top: 1px solid var(--rule);
	font-size: 0.875rem;
	color: var(--text-2);
}

.mmps-open-quote {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	font-weight: 600;
	color: var(--ink-c);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.mmps-open-quote:hover {
	color: var(--ink-c-deep);
}

.mmps-quote-panel {
	margin-top: 1.25rem;
	padding: 1.25rem;
	background: var(--paper-2);
	border-top: 3px solid var(--ink-c);
}

.mmps-quote-panel h3 {
	margin: 0 0 0.25rem;
	font-size: 1.0625rem;
}

.mmps-qf-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: 0.625rem;
	margin: 0.875rem 0 0.625rem;
}

.mmps-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.mmps-quote-result {
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--ink-c-deep);
}

.mmps-quote-result.is-error {
	color: var(--ink-m);
}

.mmps-quote-result:empty {
	display: none;
}

/* ==========================================================================
   Buttons shared by the proof page, quote form and tracker
   ========================================================================== */

.mmps-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.875rem;
	padding: 0 1.5rem;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	border-radius: var(--radius);
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 0.12s ease, border-color 0.12s ease;
}

.mmps-btn-go {
	background: var(--ink-c);
	color: #fff;
}

.mmps-btn-go:hover {
	background: var(--ink-c-deep);
}

.mmps-btn-alt {
	background: transparent;
	border-color: var(--rule-strong);
	color: var(--text);
}

.mmps-btn-alt:hover {
	background: var(--paper-2);
}

.mmps-btn:focus-visible {
	outline: 2px solid var(--ink-k);
	outline-offset: 2px;
}

/* ==========================================================================
   Standalone quote form
   ========================================================================== */

.mmps-standalone-quote {
	max-width: 38rem;
	background: var(--paper);
	border-top: 3px solid var(--ink-k);
	padding: 1.5rem 0 0;
}

.mmps-standalone-quote h3 {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	letter-spacing: -0.015em;
}

.mmps-standalone-quote label {
	display: block;
	margin-bottom: 0.875rem;
	font-size: 0.9375rem;
	font-weight: 600;
}

.mmps-standalone-quote label .mmps-input {
	margin-top: 0.375rem;
	font-weight: 400;
}

.mmps-standalone-quote .mmps-qf-grid {
	margin-top: 0;
}

.mmps-standalone-quote .mmps-qf-grid label {
	margin-bottom: 0;
}

/* ==========================================================================
   Order page panel
   ========================================================================== */

.mmps-order-panel {
	margin: 2rem 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--rule);
}

.mmps-order-panel h2 {
	font-size: 1.125rem;
	margin: 0 0 0.75rem;
}

.mmps-file-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.375rem;
	font-size: 0.9375rem;
}

.mmps-muted {
	color: var(--text-3);
	font-size: 0.8125rem;
}

.mmps-proof-callout {
	margin-top: 1.25rem;
	padding: 1.125rem 1.25rem;
	background: var(--paper-2);
	border-left: 3px solid var(--ink-m);
}

.mmps-proof-callout p {
	margin: 0 0 0.5rem;
	font-size: 0.9375rem;
}

.mmps-proof-callout p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   Proof approval page (standalone document)
   ========================================================================== */

.mmps-proof-body {
	margin: 0;
	padding: 0;
	background: var(--paper-3, #ececea);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: #16161a;
}

.mmps-proof-shell {
	max-width: 46rem;
	margin: 0 auto;
	padding: 2.5rem 1.25rem 4rem;
}

.mmps-proof-header {
	margin-bottom: 1.5rem;
}

.mmps-proof-shop {
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--text-2);
}

.mmps-proof-header h1 {
	margin: 0;
	font-size: clamp(1.5rem, 5vw, 2rem);
	letter-spacing: -0.025em;
	line-height: 1.15;
}

.mmps-proof-order {
	margin: 0.5rem 0 0;
	font-size: 0.9375rem;
	color: var(--text-2);
}

/* The proof itself sits on a white sheet with the colour bar above it. */
.mmps-proof-viewer {
	position: relative;
	background: #fff;
	padding: 1.25rem;
	margin-bottom: 1.5rem;
}

.mmps-proof-viewer::before {
	content: "";
	display: block;
	height: 4px;
	margin: -1.25rem -1.25rem 1.25rem;
	background: linear-gradient(
		to right,
		#0090c6 0 25%,
		#d6006e 25% 50%,
		#ffc400 50% 75%,
		#16161a 75% 100%
	);
}

.mmps-proof-viewer img,
.mmps-proof-viewer object {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--rule, #d8d8d4);
}

.mmps-proof-viewer object {
	min-height: 65vh;
}

.mmps-proof-dl {
	margin: 0.875rem 0 0;
	font-size: 0.875rem;
}

.mmps-proof-check {
	background: #fff;
	padding: 1.25rem;
	border-left: 3px solid #ffc400;
	margin-bottom: 1.5rem;
}

.mmps-proof-check h2 {
	margin: 0 0 0.5rem;
	font-size: 1.0625rem;
}

.mmps-proof-check p {
	margin: 0 0 0.75rem;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--text-2, #5c5c63);
}

.mmps-proof-check ul {
	margin: 0;
	padding-left: 1.125rem;
	display: grid;
	gap: 0.3125rem;
	font-size: 0.9375rem;
}

.mmps-proof-form {
	background: #fff;
	padding: 1.25rem;
}

.mmps-proof-form label {
	display: block;
	font-size: 0.9375rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.mmps-proof-form textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-size: 1rem;
	padding: 0.625rem 0.75rem;
	border: 1px solid var(--rule, #d8d8d4);
	border-radius: var(--radius);
	resize: vertical;
}

.mmps-proof-form textarea:focus {
	outline: none;
	border-color: #0090c6;
	box-shadow: 0 0 0 3px var(--ink-c-ring);
}

.mmps-proof-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1rem;
}

.mmps-proof-done {
	background: #fff;
	border-left: 3px solid #0090c6;
	padding: 1.125rem 1.25rem;
	margin-bottom: 1.5rem;
}

.mmps-proof-done p {
	margin: 0 0 0.5rem;
	font-size: 0.9375rem;
}

.mmps-proof-done p:last-child {
	margin-bottom: 0;
	color: var(--text-2, #5c5c63);
}

.mmps-proof-done blockquote {
	margin: 0.75rem 0;
	padding-left: 0.875rem;
	border-left: 2px solid var(--rule, #d8d8d4);
	font-size: 0.9375rem;
	color: var(--text-2, #5c5c63);
}

.mmps-proof-help {
	margin: 1.5rem 0 0;
	font-size: 0.875rem;
	color: var(--text-2, #5c5c63);
}

/* ==========================================================================
   Order tracking
   ========================================================================== */

.mmps-track {
	max-width: 34rem;
}

.mmps-track-form h3,
.mmps-track-result h3 {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	letter-spacing: -0.015em;
}

.mmps-track-form label {
	display: block;
	margin-bottom: 0.875rem;
	font-size: 0.9375rem;
	font-weight: 600;
}

.mmps-track-form label .mmps-input {
	margin-top: 0.375rem;
	font-weight: 400;
}

.mmps-track .mmps-error {
	margin: 0 0 1rem;
	padding: 0.625rem 0.75rem;
	background: var(--ink-m-soft);
	border-left: 3px solid var(--ink-m);
	font-size: 0.875rem;
}

/* A vertical run of stages with a rule threading through the dots. */
.mmps-track-steps {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	position: relative;
}

.mmps-track-steps::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 0.75rem;
	bottom: 0.75rem;
	width: 1px;
	background: var(--rule);
}

.mmps-track-steps li {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.875rem;
	padding: 0.4375rem 0;
	font-size: 0.9375rem;
	color: var(--text-3);
}

.mmps-track-dot {
	position: relative;
	z-index: 1;
	flex: none;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: var(--paper-3);
	box-shadow: 0 0 0 3px var(--paper);
}

.mmps-track-steps li.is-done {
	color: var(--text);
}

.mmps-track-steps li.is-now {
	font-weight: 650;
}

.mmps-track-steps li.is-now .mmps-track-dot {
	box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px rgba(0, 144, 198, 0.3);
}

.mmps-track-due,
.mmps-track-ready {
	margin: 0 0 0.75rem;
	font-size: 0.9375rem;
}

.mmps-track-ready {
	padding: 0.75rem 0.875rem;
	background: var(--paper-2);
	border-left: 3px solid var(--ink-c);
}

/* ==========================================================================
   Catalogue price label
   ========================================================================== */

.mmps-price-html {
	font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 600px) {
	.mmps-dims {
		grid-template-columns: 1fr 1fr;
	}

	.mmps-dims > div:last-child {
		grid-column: 1 / -1;
	}

	.mmps-actions {
		flex-wrap: wrap;
	}

	.mmps-qty {
		width: 4.75rem;
	}

	.mmps-config .mmps-submit {
		min-width: 10rem;
	}

	.mmps-proof-actions .mmps-btn {
		width: 100%;
	}
}

/* On a phone the price would scroll out of view while someone works down a
   long form, so it follows them instead. */
@media (max-width: 782px) {
	.mmps-summary {
		position: sticky;
		bottom: 0;
		z-index: 20;
		margin-bottom: 0;
		box-shadow: 0 -8px 24px rgba(22, 22, 26, 0.18);
	}

	.mmps-actions {
		margin-top: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mmps-config *,
	.mmps-proof-shell * {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

@media (prefers-contrast: more) {
	.mmps-input,
	.mmps-chip {
		border-color: var(--rule-strong);
	}
}

/* ==========================================================================
   Ordering model, specification and currency
   ========================================================================== */

.mmps-head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.625rem;
	margin: 0 0 0.875rem;
}

.mmps-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.25rem 0.625rem;
	font-size: 0.75rem;
	font-weight: 600;
	border-radius: var(--mmps-radius, 3px);
	border: 1px solid var(--mmps-rule, #d8d8d4);
	color: var(--mmps-text, #16161a);
	background: var(--mmps-paper-2, #f7f7f5);
}

/* A leading square in the matching ink says which route this is at a glance. */
.mmps-badge::before {
	content: "";
	width: 7px;
	height: 7px;
	flex: none;
}

.mmps-badge.is-ready::before {
	background: var(--mmps-accent, #0090c6);
}

.mmps-badge.is-semi::before {
	background: var(--mmps-caution, #ffc400);
}

.mmps-badge.is-custom::before {
	background: var(--mmps-attention, #d6006e);
}

.mmps-head-time {
	font-size: 0.8125rem;
	color: var(--mmps-text-2, #5c5c63);
}

.mmps-specs {
	width: 100%;
	max-width: 42rem;
	border-collapse: collapse;
	margin: 0 0 1.25rem;
	font-size: 0.875rem;
}

.mmps-specs th,
.mmps-specs td {
	text-align: left;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--mmps-rule, #d8d8d4);
	vertical-align: top;
}

.mmps-specs th {
	width: 10rem;
	font-weight: 500;
	color: var(--mmps-text-2, #5c5c63);
}

/* --- Money ---------------------------------------------------------------- */

.mmps-money-dual {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-end;
	line-height: 1.15;
}

.mmps-breakdown .mmps-money-dual,
.mmps-price-html .mmps-money-dual {
	align-items: flex-end;
}

.mmps-money-alt {
	font-size: 0.68em;
	font-weight: 400;
	opacity: 0.66;
}

.mmps-from {
	font-size: 0.8125rem;
	font-weight: 400;
	color: var(--mmps-text-2, #5c5c63);
}

.mmps-price-quote {
	font-weight: 600;
}

.mmps-fx-note {
	margin: 0.625rem 0 0;
	font-size: 0.75rem;
	line-height: 1.45;
	color: var(--mmps-text-3, #85858d);
}

.mmps-cswitch {
	display: inline-flex;
	border: 1px solid var(--mmps-rule, #d8d8d4);
	border-radius: var(--mmps-radius, 3px);
	overflow: hidden;
}

.mmps-cswitch-btn {
	background: transparent;
	border: 0;
	padding: 0.375rem 0.75rem;
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--mmps-text-2, #5c5c63);
	cursor: pointer;
}

.mmps-cswitch-btn.is-on {
	background: var(--mmps-accent, #0090c6);
	color: var(--mmps-accent-ink, #fff);
}

.mmps-cswitch-btn:focus-visible {
	outline: 2px solid var(--mmps-accent, #0090c6);
	outline-offset: -2px;
}

/* --- Buy now and WhatsApp ------------------------------------------------- */

.mmps-config .mmps-buynow {
	flex: none;
	min-height: 3rem;
	padding: 0 1.25rem;
	font-size: 0.9375rem;
	font-weight: 600;
	border-radius: var(--radius);
	background: var(--paper);
	color: var(--text);
	border: 1px solid var(--rule-strong);
	cursor: pointer;
}

.mmps-config .mmps-buynow:hover:not(:disabled) {
	background: var(--paper-2);
}

.mmps-config .mmps-buynow:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.mmps-btn-wa {
	background: var(--mmps-paper, #fff);
	border: 1px solid var(--mmps-rule-strong, #16161a);
	color: var(--mmps-text, #16161a);
	text-decoration: none;
}

.mmps-btn-wa:hover {
	background: var(--mmps-paper-2, #f7f7f5);
}

.mmps-wa-line {
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
	color: var(--mmps-text-2, #5c5c63);
}

/* --- Quote-only product page --------------------------------------------- */

.mmps-config-quote .mmps-quote-title {
	margin: 0 0 0.375rem;
	font-size: 1.1875rem;
	letter-spacing: -0.015em;
}

.mmps-config-quote .mmps-qf-grid {
	margin: 1rem 0 0.625rem;
}

.mmps-config-quote .mmps-dropzone {
	margin-top: 0.875rem;
}

.mmps-config-quote .mmps-actions {
	margin-top: 1.25rem;
	flex-wrap: wrap;
}

.mmps-loop-quote,
.mmps-loop-configure {
	white-space: nowrap;
}

@media (max-width: 600px) {
	.mmps-specs th {
		width: 7.5rem;
	}

	.mmps-config .mmps-buynow {
		flex: 1;
	}
}

/* ==========================================================================
   Category and service grids
   ========================================================================== */

.mmps-cat-grid,
.mmps-service-grid {
	--mmps-cols: 3;
	display: grid;
	grid-template-columns: repeat(var(--mmps-cols), minmax(0, 1fr));
	gap: 1.25rem;
	margin: 1.5rem 0;
}

.mmps-cat-tile,
.mmps-service-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: var(--mmps-text, #16161a);
	background: var(--mmps-paper, #fff);
	border: 1px solid var(--mmps-rule, #d8d8d4);
	border-radius: var(--mmps-radius-card, 0px);
	overflow: hidden;
	transition: border-color 0.14s ease, transform 0.14s ease;
}

.mmps-cat-tile:hover,
.mmps-service-link:hover {
	border-color: var(--mmps-rule-strong, #16161a);
	color: var(--mmps-text, #16161a);
}

.mmps-cat-tile:focus-visible,
.mmps-service-link:focus-visible {
	outline: 2px solid var(--mmps-accent, #0090c6);
	outline-offset: 2px;
}

.mmps-cat-media,
.mmps-service-media {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--mmps-paper-2, #f7f7f5);
	overflow: hidden;
}

.mmps-cat-media img,
.mmps-service-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* No picture yet is a real state, not a broken one. */
.mmps-cat-initial {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 2.5rem;
	font-weight: 600;
	color: var(--mmps-text-3, #85858d);
	background: var(--mmps-paper-2, #f7f7f5);
}

.mmps-cat-body,
.mmps-service-body {
	display: flex;
	flex-direction: column;
	gap: 0.3125rem;
	padding: 0.875rem 1rem 1rem;
	flex: 1;
}

.mmps-cat-name,
.mmps-service-name {
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

.mmps-cat-blurb {
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--mmps-text-2, #5c5c63);
}

.mmps-cat-count-line,
.mmps-service-time {
	font-size: 0.75rem;
	color: var(--mmps-text-3, #85858d);
}

.mmps-service-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-top: auto;
	padding-top: 0.5rem;
}

.mmps-service-price {
	display: flex;
	align-items: baseline;
	gap: 0.3125rem;
	font-size: 0.9375rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.mmps-service-price.is-quote {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--mmps-text-2, #5c5c63);
}

.mmps-service-foot .mmps-badge {
	font-size: 0.6875rem;
	padding: 0.125rem 0.4375rem;
	font-weight: 500;
}

@media (max-width: 900px) {
	.mmps-cat-grid,
	.mmps-service-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}
}

@media (max-width: 520px) {
	.mmps-cat-grid,
	.mmps-service-grid {
		grid-template-columns: 1fr;
	}

	.mmps-cat-media,
	.mmps-service-media {
		aspect-ratio: 16 / 9;
	}
}
