/*
 * Min Mindeplade Designer 3.6
 * Visual language shared with MinMindesten Designer 3 (same tokens, components and
 * desktop/mobile behaviour). Everything is scoped under .mmp3.
 * Desktop/mobile is driven by [data-mode] (set by JS from the space the designer has).
 */

@font-face { font-family: "MMP3 Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-400.woff2") format("woff2"); }
@font-face { font-family: "MMP3 Source Sans 3"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-700.woff2") format("woff2"); }

.mmp3 {
  --ink: #1f2328;
  --ink-soft: #454a52;
  --muted: #72767e;
  --line: #e8e5e0;
  --line-strong: #d8d4cd;
  --panel: #ffffff;
  --tint: #f6f5f2;
  --ok: #2f6b45;
  --ok-bg: #eef4ef;
  --warn: #7d5312;
  --warn-bg: #fbf4e4;
  --error: #8f2f2a;
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --font-ui: "MMP3 Source Sans 3", "MMD3 Source Sans 3", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}
.mmp3 *, .mmp3 *::before, .mmp3 *::after { box-sizing: border-box; }

/* Neutralise typical theme rules for buttons and fields (incl. iOS blue button text). */
.mmp3 :where(button, input, textarea, select) {
  font: inherit;
  color: inherit;
  -webkit-text-fill-color: currentColor;
  margin: 0;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: none;
  box-shadow: none;
  line-height: 1.2;
}
.mmp3 :where(button) { cursor: pointer; }
.mmp3 :where(h2, h3, p, dl, dd, ol) { margin: 0; padding: 0; }
.mmp3 :where(img) { max-width: none; }
.mmp3 :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mmp3-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ */
/* Frame                                                               */
/* ------------------------------------------------------------------ */

.mmp3-app {
  display: grid;
  grid-template-columns: minmax(340px, 400px) minmax(0, 1fr);
  height: clamp(640px, calc(100vh - var(--mmp3-offset, 48px)), 920px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--panel);
}
.mmp3-panel { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border-right: 1px solid var(--line); }
.mmp3-head { padding: 26px 28px 14px; }
.mmp3 .mmp3-title { font-family: var(--font-ui); font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.mmp3-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 26px 28px 30px; scrollbar-width: thin; }
.mmp3-foot { border-top: 1px solid var(--line); padding: 16px 28px 20px; background: var(--panel); }

/* Tabs (desktop) */
.mmp3-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0 16px; border-bottom: 1px solid var(--line); }
.mmp3 .mmp3-tab {
  position: relative; height: 50px; padding: 0 4px; border: 0; border-radius: 0; background: transparent;
  color: var(--muted); font-size: 15px; font-weight: 600; transition: color .15s ease;
}
.mmp3 .mmp3-tab:hover { color: var(--ink); background: transparent; }
.mmp3 .mmp3-tab.is-active { color: var(--ink); }
.mmp3 .mmp3-tab.is-active::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); }
.mmp3 .mmp3-tab:focus-visible { outline-offset: -4px; border-radius: var(--r-sm); }

/* ------------------------------------------------------------------ */
/* Panel content                                                       */
/* ------------------------------------------------------------------ */

.mmp3-heading h3 { font-family: var(--font-ui); font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
.mmp3-heading p { margin-top: 6px; font-size: 15px; color: var(--muted); max-width: 36ch; }
.mmp3-heading + * { margin-top: 22px; }
.mmp3-group { margin-top: 26px; }
.mmp3-heading + .mmp3-group { margin-top: 22px; }
.mmp3-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.mmp3-label-value { font-size: 13.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.mmp3-help { font-size: 14.5px; color: var(--muted); margin-bottom: 12px; max-width: 38ch; }
.mmp3-note { margin-top: 22px; font-size: 14px; color: var(--muted); }
.mmp3-fine { margin-top: 10px; font-size: 13.5px; color: var(--muted); text-align: center; }
.mmp3-fine.is-error { color: var(--error); }
.mmp3-warn { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-md); background: var(--warn-bg); color: var(--warn); font-size: 14.5px; }
.mmp3-subgroup-label { font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 8px; }
.mmp3-subgroup-label:first-child { margin-top: 0; }

.mmp3-row { display: flex; gap: 10px; margin-top: 12px; }
.mmp3-row > .mmp3-btn { flex: 1 1 0; }
.mmp3-row-end { justify-content: flex-end; margin-top: 26px; }
.mmp3-row-split { justify-content: space-between; margin-top: 22px; flex-wrap: wrap; }

/* Buttons */
.mmp3 .mmp3-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--r-md); font-size: 15px; font-weight: 600; line-height: 1.1;
  text-decoration: none; transition: background-color .15s ease, border-color .15s ease, color .15s ease; white-space: nowrap;
}
.mmp3 .mmp3-btn-lg { min-height: 52px; font-size: 16px; }
.mmp3 .mmp3-btn-block { width: 100%; }
.mmp3 .mmp3-btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.mmp3 .mmp3-btn-primary:hover { background: #343a42; border-color: #343a42; color: #fff; }
.mmp3 .mmp3-btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.mmp3 .mmp3-btn-secondary:hover { background: var(--tint); color: var(--ink); }
.mmp3 .mmp3-btn-ghost { background: transparent; color: var(--ink); border-color: transparent; padding: 0 10px; }
.mmp3 .mmp3-btn-ghost:hover { background: var(--tint); }
.mmp3 .mmp3-btn:disabled, .mmp3 .mmp3-btn:disabled:hover { background: #cfd1d4; border-color: #cfd1d4; color: #fff; cursor: not-allowed; }
.mmp3 .mmp3-btn-sm { min-height: 38px; padding: 0 12px; font-size: 14.5px; }

.mmp3-icon { display: inline-flex; width: 18px; height: 18px; flex: none; }
.mmp3-icon svg { width: 100%; height: 100%; display: block; }

.mmp3 .mmp3-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 2px; border: 0; background: transparent;
  color: var(--ink-soft); font-size: 14.5px; font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--line-strong); text-underline-offset: 3px;
}
.mmp3 .mmp3-link:hover { color: var(--ink); text-decoration-color: var(--ink); background: transparent; }
.mmp3 .mmp3-link .mmp3-icon { width: 16px; height: 16px; }

.mmp3 .mmp3-chip { margin-left: auto; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.mmp3 .mmp3-chip:hover { background: var(--tint); }

/* Fields */
.mmp3 .mmp3-input {
  display: block; width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-strong);
  border-radius: var(--r-md); background: #fff; font-size: 17px; color: var(--ink); transition: border-color .15s ease;
}
.mmp3 .mmp3-input:hover { border-color: #bfbab2; }
.mmp3 .mmp3-input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(31, 35, 40, .08); }
.mmp3 .mmp3-textarea { min-height: 88px; resize: vertical; line-height: 1.4; }

/* Sliders */
.mmp3 .mmp3-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 28px; background: transparent; border: 0; padding: 0; --p: 50%; }
.mmp3 .mmp3-range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--ink) var(--p), #e3e0da var(--p)); }
.mmp3 .mmp3-range::-moz-range-track { height: 4px; border-radius: 4px; background: #e3e0da; }
.mmp3 .mmp3-range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--ink); }
.mmp3 .mmp3-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); box-shadow: 0 1px 4px rgba(20, 24, 28, .18); }
.mmp3 .mmp3-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); }

/* Colour swatches (+ free colour picker, which Min Mindeplade has always offered) */
.mmp3-swatches { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mmp3 .mmp3-swatch { position: relative; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); background: var(--c); transition: box-shadow .15s ease; }
.mmp3 .mmp3-swatch:hover { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line-strong); }
.mmp3 .mmp3-swatch.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.mmp3 .mmp3-swatch-custom { background: conic-gradient(from 90deg, #c0392b, #d4a017, #3c8d4a, #2f6fb0, #7b3fa0, #c0392b); overflow: hidden; }
.mmp3 .mmp3-swatch-custom.is-active { background: var(--c); }
.mmp3 .mmp3-swatch-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }

/* Segmented control (alignment, bold/italic) */
.mmp3-seg-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mmp3-seg { display: inline-flex; padding: 3px; border-radius: var(--r-md); background: var(--tint); border: 1px solid var(--line); }
.mmp3 .mmp3-seg button { display: grid; place-items: center; min-width: 40px; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-soft); font-size: 16px; }
.mmp3 .mmp3-seg button:hover { color: var(--ink); }
.mmp3 .mmp3-seg button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(20, 24, 28, .12), 0 0 0 1px var(--line-strong); }
.mmp3 .mmp3-seg .mmp3-icon { width: 18px; height: 18px; }

/* Choice cards (material, size, template) share the font-card selected state */
.mmp3 .mmp3-card {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--r-md); background: #fff; color: var(--ink); text-align: left;
  transition: border-color .15s ease, background-color .15s ease;
}
.mmp3 .mmp3-card:hover { border-color: var(--line-strong); background: var(--tint); }
.mmp3 .mmp3-card.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fff; }
.mmp3-card-main { flex: 1 1 auto; min-width: 0; }
.mmp3-card-name { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.25; }
.mmp3-card-sub { display: block; font-size: 13.5px; color: var(--muted); }
.mmp3-card-price { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mmp3-list { display: grid; gap: 8px; }
.mmp3-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.mmp3-mat-swatch { width: 34px; height: 34px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.mmp3-mat-swatch[data-material=steel] { background: linear-gradient(105deg, #c9cbca 0%, #f1f2f1 48%, #c8cac9 100%); }
.mmp3-mat-swatch[data-material=brass] { background: linear-gradient(105deg, #c89028, #f1c767 50%, #c48b25); }
.mmp3-mat-swatch[data-material=aluminium] { background: linear-gradient(105deg, #bfc3c4, #eef0ef 48%, #b8bdbd); }

.mmp3 .mmp3-size { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
.mmp3-size-shape { display: flex; align-items: flex-end; height: 34px; }
.mmp3-size-shape i { display: block; border: 1.5px solid currentColor; border-radius: 3px; color: var(--ink-soft); }
.mmp3 .mmp3-size.is-active .mmp3-size-shape i { background: var(--tint); color: var(--ink); }

/* Templates */
.mmp3 .mmp3-tplcard { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 8px 12px; }
.mmp3-tplcard .mmp3-card-name, .mmp3-tplcard .mmp3-card-sub { padding: 0 4px; }
.mmp3-tpl {
  height: 96px; border-radius: 7px; background: linear-gradient(105deg, #c8cac9, #f2f3f2 48%, #c6c8c7);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
  font-family: "Cormorant Garamond", Georgia, serif; font-style: normal; color: #1c1c1c;
}
.mmp3-tpl strong { display: block; font-size: 15px; line-height: 1.05; }
.mmp3-tpl small { display: block; font-size: 7px; margin-top: 5px; }
.mmp3-tpl em { display: block; font-size: 10px; margin-top: 8px; font-style: normal; font-family: "Allura", cursive; }
.mmp3-tpl-photo { justify-content: flex-start; }
.mmp3-tpl-face { width: 42%; height: 100%; background-size: cover; background-position: center; filter: grayscale(1); -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent 100%); mask-image: linear-gradient(90deg, #000 62%, transparent 100%); }
.mmp3-tpl-copy { width: 58%; text-align: center; padding-right: 6px; }
.mmp3-tpl-classic { justify-content: flex-start; padding: 8px 10px; }
.mmp3-tpl-classic-copy { width: 72%; text-align: center; }
.mmp3-tpl-rose { width: 24%; height: 84%; display: block; background: #222; -webkit-mask: var(--tpl-rose) center/contain no-repeat; mask: var(--tpl-rose) center/contain no-repeat; margin-right: 4%; }
.mmp3-tpl-minimal span { text-align: center; }
.mmp3-tpl-minimal strong { font-family: "Montserrat", Arial, sans-serif; font-size: 13px; }
.mmp3-tpl-blank { color: var(--muted); }
.mmp3-tpl-blank .mmp3-icon { width: 26px; height: 26px; }

/* Layer list (text elements) */
.mmp3-layers { display: grid; gap: 6px; }
.mmp3 .mmp3-layer { padding: 10px 12px; gap: 10px; }
.mmp3-layer-type { flex: none; min-width: 46px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.mmp3-layer-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.mmp3-add-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mmp3-add-row .mmp3-btn { padding: 0 8px; }

/* Fonts */
.mmp3-fonts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mmp3 .mmp3-font {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 66px; padding: 8px 6px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; color: var(--ink);
  transition: border-color .15s ease, background-color .15s ease;
}
.mmp3 .mmp3-font:hover { border-color: var(--line-strong); background: var(--tint); }
.mmp3 .mmp3-font.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fff; }
.mmp3-font-sample { font-size: 21px; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mmp3-font-name { font-family: var(--font-ui); font-size: 12px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Photo */
.mmp3-photo-card { position: relative; height: 190px; border-radius: var(--r-lg); border: 1px solid var(--line); background: repeating-conic-gradient(#f2f1ee 0 25%, #fbfaf8 0 50%) 0 0 / 18px 18px; overflow: hidden; }
.mmp3-heading + .mmp3-photo-card, .mmp3-group + .mmp3-photo-card, .mmp3-photo-picker + .mmp3-photo-card { margin-top: 18px; }
.mmp3-photo-card img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; }
.mmp3 .mmp3-round-btn { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 32px; height: 32px; padding: 7px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 2px 8px rgba(20, 24, 28, .22); }
.mmp3 .mmp3-round-btn:hover { background: #343a42; }
.mmp3 .mmp3-round-btn svg { width: 100%; height: 100%; }
.mmp3-badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.mmp3-photo-picker { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.mmp3 .mmp3-photo-pick { width: 52px; height: 52px; padding: 3px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; overflow: hidden; }
.mmp3 .mmp3-photo-pick.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.mmp3-photo-pick img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; }
.mmp3-photo-pick span { display: grid; place-items: center; width: 100%; height: 100%; font-size: 12px; color: var(--muted); }

.mmp3-status-row { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: var(--r-md); background: var(--ok-bg); font-size: 15px; font-weight: 600; }
.mmp3-ok { display: grid; place-items: center; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--ok); color: #fff; flex: none; }
.mmp3-ok svg { width: 100%; height: 100%; }

.mmp3-effects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mmp3 .mmp3-effect { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 0; border: 0; background: transparent; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.mmp3-effect-thumb { display: block; position: relative; aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(105deg, #c9cbca 0%, #f1f2f1 48%, #c8cac9 100%); overflow: hidden; transition: box-shadow .15s ease; }
.mmp3-effect-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mmp3-effect-thumb img.is-memorial { object-fit: contain; filter: grayscale(1) contrast(1.18) brightness(1.03); -webkit-mask-image: radial-gradient(ellipse at 50% 46%, #000 0%, #000 36%, rgba(0,0,0,.48) 62%, transparent 92%); mask-image: radial-gradient(ellipse at 50% 46%, #000 0%, #000 36%, rgba(0,0,0,.48) 62%, transparent 92%); }
.mmp3-effect-thumb img.is-bw { filter: grayscale(1); }
.mmp3 .mmp3-effect:hover .mmp3-effect-thumb { box-shadow: 0 0 0 1px var(--line-strong); }
.mmp3 .mmp3-effect.is-active .mmp3-effect-thumb { box-shadow: 0 0 0 2px var(--ink); border-color: transparent; }
.mmp3 .mmp3-effect.is-active { color: var(--ink); }
.mmp3-effect-label { text-align: center; }

/* Toggle row (black & white) */
.mmp3 .mmp3-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; font-size: 15px; font-weight: 600; text-align: left; }
.mmp3-switch { position: relative; width: 40px; height: 24px; border-radius: 999px; background: #d9d6d0; transition: background-color .15s ease; flex: none; }
.mmp3-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(20, 24, 28, .25); transition: transform .15s ease; }
.mmp3-toggle[aria-checked="true"] .mmp3-switch { background: var(--ink); }
.mmp3-toggle[aria-checked="true"] .mmp3-switch::after { transform: translateX(16px); }

/* Motifs */
.mmp3-motifs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mmp3 .mmp3-motif-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 88px; padding: 10px 6px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; color: var(--ink-soft);
  transition: border-color .15s ease, background-color .15s ease;
}
.mmp3 .mmp3-motif-card:hover { border-color: var(--line-strong); background: var(--tint); }
.mmp3 .mmp3-motif-card.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); background: #fff; }
.mmp3-motif-thumb { display: block; width: 56px; height: 38px; background: var(--ink); -webkit-mask: var(--motif) center/contain no-repeat; mask: var(--motif) center/contain no-repeat; }
.mmp3-motif-name { font-size: 13px; font-weight: 600; text-align: center; line-height: 1.2; }

/* Summary (mobile review) */
.mmp3-summary { margin-top: 20px; border-top: 1px solid var(--line); }
.mmp3-summary-row { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mmp3-summary-row dt { font-size: 14px; color: var(--muted); }
.mmp3-summary-row dd { font-size: 15.5px; font-weight: 600; overflow-wrap: anywhere; white-space: pre-line; }
.mmp3-summary-row.is-warn dd { color: var(--warn); }

/* Order */
.mmp3-order { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mmp3-order-product { flex: 1 1 140px; min-width: 0; }
.mmp3-order-name { font-size: 14.5px; color: var(--muted); }
.mmp3-order-price { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.mmp3-order-price small { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.mmp3-order > .mmp3-btn { flex: 1 1 170px; }
.mmp3-order > .mmp3-fine { flex-basis: 100%; margin-top: 0; }
.mmp3-order.is-large { display: block; margin-top: 22px; }
.mmp3-order.is-large .mmp3-order-product { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 14px; }
.mmp3-confirm { flex-basis: 100%; padding: 14px; border-radius: var(--r-md); background: var(--warn-bg); color: var(--warn); font-size: 14.5px; }
.mmp3-confirm .mmp3-row { margin-top: 10px; }
.mmp3-fatal { padding: 28px; }
.mmp3-fatal p { margin-top: 6px; color: var(--muted); }

/* ------------------------------------------------------------------ */
/* Stage area with the plate                                           */
/* ------------------------------------------------------------------ */

.mmp3-stagearea {
  position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0;
  padding: 72px 36px 52px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06) 0%, rgba(0, 0, 0, .05) 100%),
    linear-gradient(90deg, #cdccca 0%, #d7d6d4 38%, #e0dfdd 70%, #e4e3e2 100%);
  overflow: hidden;
}
.mmp3-frame { position: relative; flex: none; width: 0; }

.mmp3-toolbar {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; gap: 2px; padding: 4px;
  border-radius: 12px; background: rgba(255, 255, 255, .94);
  box-shadow: 0 1px 2px rgba(20, 24, 28, .06), 0 6px 20px rgba(20, 24, 28, .08);
}
.mmp3 .mmp3-tool { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.mmp3 .mmp3-tool:hover { background: var(--tint); }
.mmp3 .mmp3-tool:disabled { color: #b4b7bb; background: transparent; cursor: default; }
.mmp3-tool .mmp3-icon { width: 17px; height: 17px; }

.mmp3-popover { position: absolute; top: 66px; left: 50%; transform: translateX(-50%); z-index: 6; width: 250px; padding: 16px; border-radius: var(--r-lg); background: #fff; box-shadow: 0 12px 40px rgba(20, 24, 28, .18); }
.mmp3-popover-title { font-weight: 700; font-size: 16px; }
.mmp3-popover-text { font-size: 14px; color: var(--muted); margin: 2px 0 12px; }
.mmp3-popover .mmp3-btn + .mmp3-btn { margin-top: 8px; }
.mmp3 .mmp3-popover-cancel { display: block; margin: 8px auto 0; }

.mmp3-busy { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; background: rgba(228, 227, 224, .55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.mmp3-busy[hidden] { display: none; }
.mmp3-busy-pill { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: #fff; box-shadow: 0 8px 30px rgba(20, 24, 28, .14); font-size: 15px; font-weight: 600; }
.mmp3-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #e2dfd9; border-top-color: var(--ink); animation: mmp3-spin .8s linear infinite; }
@keyframes mmp3-spin { to { transform: rotate(360deg); } }

.mmp3-toast { position: absolute; left: 50%; bottom: 18px; z-index: 8; max-width: min(440px, calc(100% - 32px)); padding: 11px 16px; border-radius: var(--r-md); background: var(--ink); color: #fff; font-size: 14.5px; opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.mmp3-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.mmp3-toast.is-error { background: var(--error); }
.mmp3-stagehint { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 13.5px; color: #6b6e73; pointer-events: none; }
.mmp3:not(.is-ready) .mmp3-frame { visibility: hidden; }

/* ------------------------------------------------------------------ */
/* The plate (.mmp3-stage) - exported by html2canvas                   */
/* Designs are authored on a 720 px-wide surface. Positions and widths */
/* are %, font sizes are canonical px scaled by --mmp-stage-scale.     */
/* ------------------------------------------------------------------ */

.mmp3-stage {
  --mmp-stage-scale: 1;
  position: relative; width: 100%; aspect-ratio: 2/1; margin: 0; border-radius: 12px; overflow: hidden;
  background: linear-gradient(105deg, #c9cbca 0%, #f1f2f1 48%, #c8cac9 100%);
  box-shadow: 0 2px 4px rgba(20, 24, 28, .08), 0 18px 44px rgba(20, 24, 28, .18), inset 0 0 0 1px rgba(0, 0, 0, .08);
  touch-action: none; user-select: none; -webkit-user-select: none; outline: none;
}
.mmp3-stage[data-material=brass] { background: linear-gradient(105deg, #c89028, #f1c767 50%, #c48b25); }
.mmp3-stage[data-material=aluminium] { background: linear-gradient(105deg, #bfc3c4, #eef0ef 48%, #b8bdbd); }

/* Physical screw holes are preview/order metadata only. The custom print renderer
   exports artwork objects, so these stage-only elements never enter UV artwork. */
.mmp3-hole {
  /* 3.7.1: Ø6 mm i pladens målestok (sættes af JS ud fra pladens størrelse). */
  /* 3.8.1: hullerne ligger over fotos og tekst, så kunden kan se, hvor de bores. */
  position: absolute; z-index: 3; width: var(--mmp-hole-w, 3%); height: auto; aspect-ratio: 1;
  border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle at 42% 38%, #151719 0 32%, #555b5e 44%, rgba(255,255,255,.5) 58%, #24282a 72%, #101214 100%);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.45), 0 1px 2px rgba(0,0,0,.35);
}
.mmp3-object { z-index: 2; }
.mmp3-hole-option { align-items: center; }
.mmp3-hole-preview { position: relative; flex: 0 0 54px; width: 54px; height: 30px; border-radius: 4px; background: #d9dcdb; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.mmp3-hole-preview[data-hole-type="corners"], .mmp3-hole-preview[data-hole-type="sides"] {
  background-color: #d9dcdb; background-repeat: no-repeat;
}
.mmp3-hole-preview[data-hole-type="corners"] { background-image: radial-gradient(circle, #303437 0 2px, transparent 2.5px), radial-gradient(circle, #303437 0 2px, transparent 2.5px), radial-gradient(circle, #303437 0 2px, transparent 2.5px), radial-gradient(circle, #303437 0 2px, transparent 2.5px); background-position: 5px 5px, calc(100% - 5px) 5px, 5px calc(100% - 5px), calc(100% - 5px) calc(100% - 5px); background-size: 5px 5px; }
.mmp3-hole-preview[data-hole-type="sides"] { background-image: radial-gradient(circle, #303437 0 2px, transparent 2.5px), radial-gradient(circle, #303437 0 2px, transparent 2.5px), radial-gradient(circle, #303437 0 2px, transparent 2.5px), radial-gradient(circle, #303437 0 2px, transparent 2.5px); background-position: 50% 4px, calc(100% - 4px) 50%, 50% calc(100% - 4px), 4px 50%; background-size: 5px 5px; }
.mmp3-stage .mmp3-hint { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: #6e6e6e; font-size: calc(16px * max(var(--mmp-stage-scale), .75)); }

.mmp3-object { position: absolute; transform: translate(-50%, -50%); cursor: grab; touch-action: none; white-space: pre-wrap; text-align: center; line-height: 1.08; max-width: 92%; padding: 4px; border: 1px solid transparent; color: #1d1d1d; }
.mmp3-object:not(.mmp3-photo):not(.mmp3-symbol):not(.mmp3-motif) { width: 55%; font-size: calc(var(--mmp-font-size, 26) * 1px * var(--mmp-stage-scale)); overflow-wrap: break-word; }
.mmp3-object:active { cursor: grabbing; }
/* 3.6.0: "Som uploadet" = boks i fotoets eget format. "Cirkel" = .is-circle med placering/zoom.
   Effekt-variablerne (--mmp-*) sættes på .mmp3-photo og arves af billedet. */
.mmp3-photo { width: 34%; aspect-ratio: var(--mmp-ratio, .82); border-radius: 0; overflow: visible; padding: 0; }
.mmp3-photo img {
  width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none;
  filter: grayscale(var(--mmp-gray, 0)) contrast(var(--mmp-contrast, 1)) brightness(var(--mmp-brightness, 1));
  opacity: var(--mmp-opacity, 1);
  -webkit-mask-image: radial-gradient(ellipse at 50% 46%, #000 0%, #000 var(--mmp-fade-start, 100%), rgba(0,0,0,.88) var(--mmp-fade-mid, 100%), rgba(0,0,0,.48) var(--mmp-fade-soft, 100%), rgba(0,0,0,.14) var(--mmp-fade-end, 100%), transparent 100%);
  mask-image: radial-gradient(ellipse at 50% 46%, #000 0%, #000 var(--mmp-fade-start, 100%), rgba(0,0,0,.88) var(--mmp-fade-mid, 100%), rgba(0,0,0,.48) var(--mmp-fade-soft, 100%), rgba(0,0,0,.14) var(--mmp-fade-end, 100%), transparent 100%);
}
.mmp3-photo.is-circle {
  aspect-ratio: 1/1; border-radius: 50%; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse at 50% 46%, #000 0%, #000 var(--mmp-fade-start, 100%), rgba(0,0,0,.88) var(--mmp-fade-mid, 100%), rgba(0,0,0,.48) var(--mmp-fade-soft, 100%), rgba(0,0,0,.14) var(--mmp-fade-end, 100%), transparent 100%);
  mask-image: radial-gradient(ellipse at 50% 46%, #000 0%, #000 var(--mmp-fade-start, 100%), rgba(0,0,0,.88) var(--mmp-fade-mid, 100%), rgba(0,0,0,.48) var(--mmp-fade-soft, 100%), rgba(0,0,0,.14) var(--mmp-fade-end, 100%), transparent 100%);
}
.mmp3-photo.is-circle img {
  position: absolute; left: var(--mmp-il, 0); top: var(--mmp-it, 0); width: var(--mmp-iw, 100%); height: var(--mmp-ih, 100%);
  object-fit: cover; -webkit-mask-image: none; mask-image: none;
}
.mmp3-photo:has(.mmp3-photo-empty) { aspect-ratio: .82; }
.mmp3-photo-empty { width: 100%; height: 100%; display: grid; place-items: center; padding: 8%; text-align: center; background: rgba(100, 100, 100, .22); color: #3d3f42; font-size: calc(13px * max(var(--mmp-stage-scale), .7)); line-height: 1.2; }
.mmp3-symbol { font-size: 44px; }
.mmp3-motif { width: 24%; aspect-ratio: 1/1; padding: 2px; cursor: grab; background: var(--motif-color, #1d1d1d); -webkit-mask: var(--motif-src) center/contain no-repeat; mask: var(--motif-src) center/contain no-repeat; transform: translate(-50%, -50%) scaleX(var(--flip-x, 1)) scaleY(var(--flip-y, 1)); }

/* Export-only: pre-rendered photos/motifs (html2canvas cannot draw CSS mask/filter/object-fit). */
.mmp3 .mmp3-photo img.mmp3-baked, .mmp3 img.mmp3-baked { position: absolute; display: block; max-width: none; object-fit: fill; filter: none; transform: none; opacity: 1; -webkit-mask-image: none; mask-image: none; }

/* Selection overlay (never inside .mmp3-stage, never exported) */
.mmp3-selbox { position: absolute; z-index: 3; pointer-events: none; border: 1.5px solid rgba(31, 35, 40, .55); border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .7); }
.mmp3-selbox[hidden] { display: none; }
.mmp3 .mmp3-handle { position: absolute; pointer-events: auto; padding: 0; border: 0; background: transparent; touch-action: none; }
.mmp3 .mmp3-handle::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff; border: 1.5px solid var(--ink); box-shadow: 0 1px 4px rgba(20, 24, 28, .25); }
.mmp3 .mmp3-handle-scale { right: -18px; bottom: -18px; width: 36px; height: 36px; cursor: nwse-resize; }
.mmp3 .mmp3-handle-scale::before { width: 16px; height: 16px; border-radius: 50%; }
.mmp3 .mmp3-handle-width { right: -16px; top: 50%; width: 32px; height: 28px; margin-top: -14px; cursor: ew-resize; }
.mmp3 .mmp3-handle-width::before { width: 8px; height: 22px; border-radius: 5px; }
.mmp3 .mmp3-handle-delete { left: 50%; top: -40px; width: 36px; height: 36px; margin-left: -18px; cursor: pointer; }
.mmp3 .mmp3-handle-delete::before { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); border: 0; box-shadow: 0 2px 8px rgba(20, 24, 28, .25); }
.mmp3 .mmp3-handle-delete svg { position: relative; display: block; width: 12px; height: 12px; margin: auto; color: #fff; }
/* 3.8.1: mindre/større-knapper under det valgte element */
.mmp3 .mmp3-sizebar { position: absolute; left: 50%; top: -41px; margin-left: 24px; display: flex; gap: 2px; padding: 3px; pointer-events: auto; background: var(--ink); border-radius: 999px; box-shadow: 0 2px 8px rgba(20, 24, 28, .25); }
.mmp3 .mmp3-sizebtn { width: 32px; height: 28px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: #fff; font: 600 18px/1 system-ui, sans-serif; cursor: pointer; touch-action: none; }
.mmp3 .mmp3-sizebtn:hover, .mmp3 .mmp3-sizebtn:focus-visible { background: rgba(255, 255, 255, .16); outline: none; }
.mmp3 .mmp3-size-steps { display: flex; gap: 8px; margin-top: 8px; }
.mmp3 .mmp3-size-steps .mmp3-btn { flex: 1; }

/* ------------------------------------------------------------------ */
/* Mobile: guided step flow with sticky preview on top                 */
/* ------------------------------------------------------------------ */

.mmp3[data-mode="mobile"] .mmp3-app { display: flex; flex-direction: column; height: auto; border-radius: 16px; overflow: visible; }
.mmp3[data-mode="mobile"] .mmp3-stagearea { order: -1; position: sticky; top: var(--mmp3-sticky-top, 0px); z-index: 5; padding: 52px 14px 16px; border-radius: 16px 16px 0 0; }
.mmp3[data-mode="mobile"] .mmp3-toolbar { top: 8px; padding: 3px; }
.mmp3[data-mode="mobile"] .mmp3-tool { height: 34px; padding: 0 10px; }
.mmp3[data-mode="mobile"] .mmp3-tool-label { display: none; }
.mmp3[data-mode="mobile"] .mmp3-stagehint { display: none; }
.mmp3[data-mode="mobile"] .mmp3-popover { top: 50px; }
.mmp3[data-mode="mobile"] .mmp3-panel { border-right: 0; border-radius: 0 0 16px 16px; }
.mmp3[data-mode="mobile"] .mmp3-head, .mmp3[data-mode="mobile"] .mmp3-foot { display: none; }
.mmp3[data-mode="mobile"] .mmp3-body { overflow: visible; padding: 22px 18px 0; }
.mmp3[data-mode="mobile"] .mmp3-heading h3 { font-size: 22px; }
.mmp3[data-mode="mobile"] .mmp3-toast { bottom: auto; top: calc(100% + 10px); }

.mmp3 .mmp3-steps { display: flex; gap: 2px; list-style: none !important; margin: 0 !important; padding: 12px 10px !important; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.mmp3-steps::-webkit-scrollbar { display: none; }
.mmp3 .mmp3-step { flex: 1 0 auto; margin: 0; padding: 0; list-style: none; }
.mmp3-step::marker { content: '' !important; }
.mmp3 .mmp3-step button { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; min-width: 46px; padding: 2px; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; }
.mmp3-step-num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; font-size: 13px; font-weight: 700; }
.mmp3-step.is-done .mmp3-step-num { border-color: #c9c5bd; background: var(--tint); color: var(--ink-soft); }
.mmp3 .mmp3-step.is-active button { color: var(--ink); }
.mmp3-step.is-active .mmp3-step-num { background: var(--ink); border-color: var(--ink); color: #fff; }

.mmp3-mnav { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 26px -18px 0; padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); border-radius: 0 0 16px 16px; }
.mmp3-mnav-right { display: flex; align-items: center; gap: 14px; }
.mmp3-mnav .mmp3-btn-primary { min-width: 120px; }

.mmp3.is-breakout[data-mode="mobile"] .mmp3-app { border-radius: 0; border-left: 0; border-right: 0; }
.mmp3.is-breakout[data-mode="mobile"] .mmp3-stagearea, .mmp3.is-breakout[data-mode="mobile"] .mmp3-panel, .mmp3.is-breakout[data-mode="mobile"] .mmp3-mnav { border-radius: 0; }

@media (prefers-reduced-motion: reduce) {
  .mmp3 *, .mmp3 *::before, .mmp3 *::after { transition: none !important; animation-duration: .001ms !important; }
}


/* ------------------------------------------------------------------ */
/* 3.6.0: fast plade, centrering, hjælpelinjer, fotoform, beskæring    */
/* ------------------------------------------------------------------ */

.mmp3 .mmp3-card-static { cursor: default; }
.mmp3 .mmp3-card-static:hover { background: #fff; border-color: var(--ink); }

/* Hjælpelinjer ved snap (i rammen, aldrig i printet) */
.mmp3-guide { position: absolute; z-index: 2; pointer-events: none; }
.mmp3-guide[hidden] { display: none; }
.mmp3-guide-x { width: 0; border-left: 1px dashed #e0457b; }
.mmp3-guide-y { height: 0; border-top: 1px dashed #e0457b; }

/* Placering */
.mmp3-align { display: flex; gap: 8px; flex-wrap: wrap; }
.mmp3 .mmp3-align > .mmp3-btn { flex: 1 1 0; min-width: 0; padding-left: 8px; padding-right: 8px; }
.mmp3 .mmp3-align-select { display: block; width: 100%; margin-top: 8px; min-height: 42px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; color: var(--ink); font-size: 15px; }
.mmp3 .mmp3-align-select:focus { border-color: var(--ink); outline: none; }
.mmp3-fine-left { text-align: left; }

/* Fotoets form */
.mmp3 .mmp3-frame-option { align-items: center; gap: 10px; text-align: left; }
.mmp3-frame-icon { display: inline-flex; flex: none; width: 26px; height: 26px; color: #8a7a68; }
.mmp3-frame-icon svg { width: 100%; height: 100%; }
.mmp3-frame-editor { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 14px; }
.mmp3-frame-pos { position: relative; width: min(220px, 70%); aspect-ratio: 1/1; border-radius: 50%; overflow: hidden; cursor: grab; touch-action: none; user-select: none; background: #e9e5dc; box-shadow: 0 0 0 1px var(--line-strong), 0 2px 10px rgba(0,0,0,.08); }
.mmp3-frame-pos.is-dragging { cursor: grabbing; }
.mmp3-frame-pos-img { position: absolute; max-width: none !important; max-height: none !important; pointer-events: none; }
.mmp3-frame-zoom { display: flex; align-items: center; gap: 10px; width: 100%; }
.mmp3-frame-zoom .mmp3-range { flex: 1 1 auto; }
.mmp3-frame-zoom .mmp3-chip { margin-left: 0; }
.mmp3-frame-zoom-label { font-size: 13.5px; color: var(--muted); }

/* Gennemsigtige billeder vises på tern */
.mmp3 .is-transparent { background-image: repeating-conic-gradient(#ecebe8 0 25%, #fbfaf8 0 50%); background-size: 16px 16px; }
.mmp3-status-row-quiet { margin-top: 10px; background: var(--tint); font-weight: 600; }
.mmp3-status-row-quiet .mmp3-ok { color: var(--ink-soft); background: transparent; }

/* Beskær billede (modal) */
.mmp3-crop-overlay { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(20, 19, 18, .72); }
.mmp3-crop-modal { width: min(580px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 20px; border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.mmp3-crop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.mmp3-crop-head strong { display: block; font-size: 20px; line-height: 1.2; }
.mmp3-crop-head p { margin-top: 4px; color: var(--muted); font-size: 14.5px; }
.mmp3 .mmp3-crop-close { display: grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; color: var(--ink); }
.mmp3 .mmp3-crop-close:hover { background: var(--tint); }
.mmp3-crop-close svg { width: 100%; height: 100%; }
.mmp3-crop-stage { display: flex; justify-content: center; width: 100%; }
.mmp3-crop-viewport { position: relative; overflow: hidden; background: #eee; cursor: grab; touch-action: none; user-select: none; border-radius: 10px; }
.mmp3-crop-viewport.is-dragging { cursor: grabbing; }
.mmp3-crop-image { position: absolute; left: 50%; top: 50%; max-width: none !important; max-height: none !important; pointer-events: none; transform-origin: center center; }
.mmp3-crop-viewport::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 2px rgba(255,255,255,.9); }
.mmp3-crop-viewport.is-circle::after { border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.95), 0 0 0 999px rgba(20,18,16,.45); }
.mmp3-crop-modal .mmp3-group { margin-top: 18px; }
.mmp3 .mmp3-crop-aspects { display: flex; width: 100%; }
.mmp3 .mmp3-crop-aspects button { flex: 1 1 0; font-size: 14.5px; font-weight: 600; }
.mmp3-crop-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; }
.mmp3-crop-buttons { display: flex; gap: 10px; }

@media (max-width: 600px) {
  .mmp3-crop-overlay { padding: 0; align-items: flex-end; }
  .mmp3-crop-modal { border-radius: 16px 16px 0 0; max-height: 94vh; padding: 16px; }
  .mmp3-crop-actions { position: sticky; bottom: -16px; flex-wrap: wrap; padding: 12px 0 16px; background: #fff; }
  .mmp3-crop-buttons { width: 100%; }
  .mmp3-crop-buttons .mmp3-btn { flex: 1 1 0; }
}

/* 3.5.2: sign templates and single-product plate info */
.mmp3-tpl-face-bleed { width: 46%; height: 92%; align-self: flex-end; background-size: cover; background-position: left bottom; filter: none; -webkit-mask-image: none; mask-image: none; }
.mmp3-tpl-boks .mmp3-tpl-copy { text-align: center; }
.mmp3-tpl-face-round { width: 34%; height: auto; aspect-ratio: 1; margin: 0 4% 0 6%; border-radius: 50%; filter: none; -webkit-mask-image: none; mask-image: none; }
.mmp3-tpl-sign .mmp3-tpl-copy { width: 56%; text-align: left; }
.mmp3-tpl-sign small { letter-spacing: .14em; }
.mmp3-tpl .mmp3-tpl-serif { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; }
.mmp3-tpl-number { justify-content: flex-start; gap: 8%; padding: 0 10%; }
.mmp3-tpl-num { font: 700 30px/1 "Montserrat", Arial, sans-serif; letter-spacing: -.03em; }
.mmp3-tpl-number span { text-align: left; }
