/* MemMake design studio (/create). Uses the theme palette from memmake-blocksy. */
.mm-create-page .hero-section, .mm-create-page .entry-header { display: none; }
.mm-create-page .site-main > div, .mm-create-page article { padding-top: 0; }
.mm-create { max-width: 1180px; margin: 0 auto; padding: 8px 0 72px; color: var(--mm-ink); font-family: var(--mm-sans); }
.mm-create h1, .mm-create h2 { font-family: var(--mm-serif); font-weight: 400; color: var(--mm-ink); margin: 0; }
.mm-cr-kicker { color: var(--mm-rust); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; margin: 0 0 12px; }
.mm-cr-lede { font-size: 18px; line-height: 1.55; color: var(--mm-muted); margin: 16px 0 26px; max-width: 640px; }
.mm-cr-error { background: #fbeee9; border-left: 3px solid var(--mm-rust); padding: 12px 14px; margin: 0 0 14px; }
.mm-cr-wait { color: var(--mm-muted); padding: 40px 0; }
.mm-cr-fine { font-size: 13px; color: var(--mm-muted); line-height: 1.5; margin: 10px 0 0; }
.mm-cr-fine a { color: inherit; }

/* Buttons */
.mm-cr-primary { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 0 28px; width: 100%; border: 0; border-radius: 2px;
	background: var(--mm-green); color: #fff; font: 600 16px var(--mm-sans); cursor: pointer; text-decoration: none; }
.mm-cr-primary:hover { background: var(--mm-green-dark); color: #fff; }
.mm-cr-primary:disabled { opacity: .55; cursor: default; }
.mm-cr-primary.is-small { min-height: 36px; width: auto; padding: 0 14px; font-size: 14px; }
.mm-cr-link { background: none; border: 0; padding: 0; color: var(--mm-green); text-decoration: underline; text-underline-offset: 3px; font: inherit; font-size: 14px; cursor: pointer; }
.mm-cr-link:disabled { color: var(--mm-muted); cursor: default; }

/* Welcome: the product you picked on the left, a big box to describe it on the right */
.mm-cr-welcome { padding-top: 18px; }
.mm-cr-intro { max-width: 760px; margin-bottom: 28px; }
.mm-cr-intro .mm-cr-lede { margin-bottom: 0; }
.mm-cr-welcome h1 { font-size: clamp(36px, 4.8vw, 56px); line-height: 1.02; letter-spacing: -.02em; }
.mm-cr-welcome h1 em { color: var(--mm-green); }
.mm-cr-step { font: 400 22px/1.2 var(--mm-serif); margin: 0 0 12px; }
.mm-cr-work.is-blank .mm-cr-chat .mm-cr-starters { margin-top: 14px; }
/* Before there is a design the product comes first (pick it, then describe what goes on it) and the empty preview stays small. */
.mm-cr-work.is-blank .mm-cr-options { order: -1; }
.mm-cr-work.is-blank .mm-cr-stage { aspect-ratio: auto; height: clamp(300px, 36vw, 440px); }

.mm-cr-composer { background: #fff; border: 1px solid #c9ccbf; border-radius: 14px; padding: 12px 12px 10px 16px; box-shadow: 0 1px 0 rgba(36,59,48,.04), 0 10px 30px -18px rgba(36,59,48,.35); transition: border-color .15s, box-shadow .15s; }
.mm-cr-composer:focus-within { border-color: var(--mm-green); box-shadow: 0 0 0 3px rgba(33,70,56,.12); }
.mm-cr-composer.is-over { border-color: var(--mm-green); background: #f6f8f3; }
.mm-cr-input { display: block; width: 100%; border: 0 !important; outline: 0; resize: none; background: transparent !important; padding: 4px 0 !important; box-shadow: none !important;
	font: 400 17px/1.5 var(--mm-sans); color: var(--mm-ink); min-height: 0; }
.mm-cr-composer.is-big .mm-cr-input { font-size: 19px; min-height: 84px; }
.mm-cr-input::placeholder { color: #9a9d92; }
.mm-cr-composer-bar { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.mm-cr-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mm-cr-attach { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--mm-line); border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--mm-ink); background: var(--mm-paper); }
.mm-cr-attach:hover { border-color: var(--mm-green); }
.mm-cr-attach.is-suggested { border-color: var(--mm-green); color: var(--mm-green); font-weight: 600; }
.mm-cr-attach.is-off { opacity: .45; pointer-events: none; }
.mm-cr-attach.is-asking { background: var(--mm-green); border-color: var(--mm-green); color: #fff; animation: mm-cr-ask 1.6s ease-in-out infinite; }
@keyframes mm-cr-ask { 50% { box-shadow: 0 0 0 6px rgba(33, 70, 56, .18); } }
@media (prefers-reduced-motion: reduce) { .mm-cr-attach.is-asking { animation: none; } }
.mm-cr-left { flex: 1; font-size: 13px; color: var(--mm-muted); }
.mm-cr-send { height: 40px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--mm-green); color: #fff; font: 600 15px var(--mm-sans); cursor: pointer; }
.mm-cr-send:hover { background: var(--mm-green-dark); }
.mm-cr-send:disabled { opacity: .55; cursor: default; }
.mm-cr-attached { display: flex; gap: 8px; margin: 2px 0 8px; }
.mm-cr-attached span { position: relative; }
.mm-cr-attached img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; display: block; }
.mm-cr-attached button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--mm-ink); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; padding: 0; }

.mm-cr-starters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.mm-cr-starters.is-small { margin: 0 0 10px; }
.mm-cr-starters-label { width: 100%; font-size: 13px; color: var(--mm-muted); }
.mm-cr-tips { margin: 16px 0 0; padding: 14px 16px; background: #fff; border: 1px solid var(--mm-line); border-radius: 10px; font-size: 14px; line-height: 1.45; }
.mm-cr-tips strong { display: block; font: 400 18px var(--mm-serif); margin-bottom: 6px; }
.mm-cr-tips ul { margin: 0; padding-left: 18px; }
.mm-cr-tips li { margin: 4px 0; color: var(--mm-muted); }
.mm-cr-tips b { color: var(--mm-ink); font-weight: 600; }
.mm-cr-nudge { background: #eef3ec; border-left: 3px solid var(--mm-green); padding: 12px 14px; margin: 0 0 12px; border-radius: 4px; }
.mm-cr-nudge p { margin: 0 0 10px; font-size: 15px; line-height: 1.45; }
.mm-cr-nudge div { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.mm-cr-chip { border: 1px solid var(--mm-line); background: var(--mm-paper); color: var(--mm-ink); border-radius: 999px; padding: 8px 14px; font: 400 14px/1.3 var(--mm-sans); cursor: pointer; text-align: left; }
.mm-cr-chip:hover { border-color: var(--mm-green); background: #fff; }
.mm-cr-starters.is-small .mm-cr-chip { padding: 6px 12px; font-size: 13px; }

.mm-cr-gallery { margin-top: 56px; border-top: 1px solid var(--mm-line); padding-top: 28px; }
.mm-cr-gallery h2 { font-size: 30px; }
.mm-cr-gallery ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.mm-cr-gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--mm-ink); font: 500 14px/1.3 var(--mm-sans); }
.mm-cr-gallery-pic { display: block; margin-bottom: 6px; }
.mm-cr-gallery img { display: block; width: 100%; aspect-ratio: 25 / 27; object-fit: cover; background: var(--mm-panel); border-radius: 6px; transition: transform .2s; }
.mm-cr-gallery button:hover img { transform: translateY(-2px); }
/* The artwork on a soft colour, like the wall on the home page. */
.mm-cr-gallery .is-art .mm-cr-gallery-pic { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--bg, var(--mm-panel)); display: grid; place-items: center; padding: 13%; }
.mm-cr-gallery .is-art .mm-cr-gallery-pic::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .4), transparent 55%), radial-gradient(circle at 80% 95%, rgba(0, 0, 0, .08), transparent 50%); }
.mm-cr-gallery .is-art img { position: relative; width: auto; height: auto; max-width: 100%; max-height: 100%; aspect-ratio: auto; object-fit: contain; background: none; border-radius: 0;
	filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 10px 14px rgba(0, 0, 0, .2)); }
.mm-cr-gallery .is-art.is-dark img { filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .3)); }
/* Full pictures fill the card. */
.mm-cr-gallery .is-art.is-poster .mm-cr-gallery-pic { padding: 0; }
.mm-cr-gallery .is-art.is-poster .mm-cr-gallery-pic::before { display: none; }
.mm-cr-gallery .is-art.is-poster img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; filter: none; }
.mm-cr-gallery .is-art button:hover img { transform: scale(1.04); }

/* Workspace: product on the left, conversation on the right */
.mm-cr-work { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px; align-items: start; }
.mm-cr-product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.mm-cr-stage { position: relative; background: var(--mm-panel); aspect-ratio: 1000 / 1080; border-radius: 6px; overflow: hidden; }
.mm-cr-stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mm-cr-stage-wait { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mm-muted); font-size: 15px; }
.mm-cr-stage.is-busy img { opacity: .6; transition: opacity .3s; }
.mm-cr-stage-note { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; gap: 10px; min-width: 220px; padding: 14px 20px; text-align: center;
	background: rgba(255, 255, 255, .95); border: 1px solid var(--mm-line); border-radius: 10px; box-shadow: 0 12px 30px -18px rgba(36, 59, 48, .45); font-size: 15px; }
.mm-cr-stage.is-loading::after { content: ''; position: absolute; inset: auto 0 0; height: 3px; background: var(--mm-green); animation: mm-cr-bar 1.2s ease-in-out infinite; }
.mm-cr-chat { position: sticky; top: 24px; display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.mm-cr-chat-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--mm-line); }
.mm-cr-chat-head strong { font: 400 24px var(--mm-serif); }
.mm-cr-log { overflow-y: auto; padding: 12px 2px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.mm-cr-msg { max-width: 88%; }
.mm-cr-msg p { margin: 0; padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; }
.mm-cr-msg.is-customer { align-self: flex-end; }
.mm-cr-msg.is-customer p { background: var(--mm-green); color: #fff; border-bottom-right-radius: 4px; }
.mm-cr-msg.is-assistant p { background: #fff; border: 1px solid var(--mm-line); border-bottom-left-radius: 4px; }
.mm-cr-msg-photos { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 6px; }
.mm-cr-msg-photos img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.mm-cr-msg .mm-cr-link { margin: 6px 4px 0; }
.mm-cr-msg .mm-cr-bar { margin: 8px 4px 0; }
/* "Your drawings": this session's pictures, a row of small ones. */
.mm-cr-history { margin: 8px 0 10px; }
.mm-cr-history summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--mm-ink); }
.mm-cr-history summary small { font-weight: 400; color: var(--mm-muted); }
.mm-cr-history-row { display: flex; gap: 8px; overflow-x: auto; padding: 8px 2px 4px; scrollbar-width: thin; }
.mm-cr-history-row button { flex: none; width: 72px; height: 72px; padding: 4px; border: 1px solid var(--mm-line); border-radius: 10px; background: var(--mm-panel); cursor: pointer; }
.mm-cr-history-row button.is-on { border-color: var(--mm-green); box-shadow: inset 0 0 0 2px var(--mm-green); }
.mm-cr-history-row button:disabled { opacity: .5; cursor: default; }
.mm-cr-history-row img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mm-cr-sheet-title.is-failed { color: #a33a1b; }
.mm-cr-sheet-error { margin: 0 0 12px; color: #a33a1b; font-size: 14px; line-height: 1.45; }
.mm-cr-primary.is-waiting { opacity: .8; pointer-events: none; }
.mm-cr-takes { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; margin-top: 8px; }
.mm-cr-take { padding: 6px; background: #fff; border: 1px solid var(--mm-line); border-radius: 10px; cursor: pointer; }
.mm-cr-take img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--mm-panel); border-radius: 6px; }
.mm-cr-takes.is-dark .mm-cr-take img { background: #26282c; }
.mm-cr-take.is-on { border-color: var(--mm-green); box-shadow: inset 0 0 0 2px var(--mm-green); }
.mm-cr-msg.is-typing p { display: inline-flex; gap: 4px; padding: 14px 16px; }
.mm-cr-msg.is-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--mm-muted); animation: mm-cr-dot 1.2s infinite ease-in-out; }
.mm-cr-msg.is-typing span:nth-child(2) { animation-delay: .15s; }
.mm-cr-msg.is-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes mm-cr-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.mm-cr-bar { height: 4px; background: var(--mm-line); overflow: hidden; border-radius: 2px; }
.mm-cr-bar span { display: block; height: 100%; width: 40%; background: var(--mm-green); animation: mm-cr-bar 1.4s ease-in-out infinite; }
/* A drawing in progress: a bar that fills by the usual time, and what is happening now. */
.mm-cr-bar.is-real span { width: 0; animation: none; transition: width 1s linear; }
.mm-cr-progress { display: grid; gap: 6px; }
.mm-cr-msg .mm-cr-progress { margin: 8px 4px 0; }
.mm-cr-msg .mm-cr-progress .mm-cr-bar { margin: 0; }
.mm-cr-progress-label { font-size: 13px; color: var(--mm-muted); }
.mm-cr-meanwhile { margin: 8px 4px 0 !important; padding: 0 !important; background: none !important; border: 0 !important; font-size: 14px; color: var(--mm-muted); }
@keyframes mm-cr-bar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* Product options */
.mm-cr-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 16px; }
.mm-cr-cat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; background: #fff; border: 1px solid var(--mm-line); border-radius: 4px; cursor: pointer; font: 600 13px var(--mm-sans); color: var(--mm-ink); text-align: left; }
.mm-cr-cat small { font-weight: 400; color: var(--mm-muted); font-size: 12px; }
.mm-cr-cat.is-on { border-color: var(--mm-green); box-shadow: inset 0 0 0 1px var(--mm-green); }
.mm-cr-pick { border: 0; padding: 0; margin: 0 0 12px; }
.mm-cr-pick legend { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--mm-muted); margin: 0 0 8px; padding: 0; } /* the theme pulls legends 15px left */
.mm-cr-pill { min-width: 44px; height: 38px; padding: 0 13px; margin: 0 6px 6px 0; background: #fff; border: 1px solid var(--mm-line); border-radius: 4px; font: inherit; font-size: 14px; color: var(--mm-ink); cursor: pointer; }
.mm-cr-pill.is-on { background: var(--mm-green); border-color: var(--mm-green); color: #fff; }
.mm-cr-buy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 6px; }
.mm-cr-price { font-size: 26px; margin: 0; }
.mm-cr-price span { display: block; font-size: 13px; color: var(--mm-muted); }
/* "Email me this design", under the buy button */
.mm-cr-keep { margin: 12px 0 0; font-size: 14px; }
.mm-cr-keep.is-sent { background: #eef3ec; padding: 10px 12px; border-radius: 4px; line-height: 1.45; overflow-wrap: anywhere; }
.mm-cr-keep.is-open { padding: 14px; background: #fff; border: 1px solid var(--mm-line); border-radius: 10px; }
.mm-cr-keep label { display: block; font-weight: 600; margin: 0 0 8px; }
.mm-cr-keep-row { display: flex; gap: 8px; }
.mm-cr-keep-row input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--mm-line); border-radius: 999px; background: var(--mm-paper); color: var(--mm-ink); font: 400 16px var(--mm-sans); }
.mm-cr-keep-row input:focus { outline: none; border-color: var(--mm-green); box-shadow: 0 0 0 3px rgba(33,70,56,.12); }
.mm-cr-keep-error { color: #a33a1b; margin: 8px 0 0; }
.mm-cr-keep .mm-cr-fine { margin-top: 8px; }
.mm-cr-added { margin: 10px 0 0; font-size: 14px; color: var(--mm-muted); }
.mm-cr-added span { color: var(--mm-green); font-weight: 600; }
.mm-cr-added a { color: var(--mm-green); font-weight: 600; text-underline-offset: 3px; }
.mm-cr-swatch { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px 0 8px; margin: 0 6px 6px 0; background: #fff; border: 1px solid var(--mm-line); border-radius: 4px; font: inherit; font-size: 14px; color: var(--mm-ink); cursor: pointer; }
.mm-cr-swatch i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.mm-cr-bds { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.mm-cr-bd { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 76px; padding: 4px; background: #fff; border: 1px solid var(--mm-line); border-radius: 4px; font: inherit; font-size: 12px; color: var(--mm-ink); cursor: pointer; }
.mm-cr-bd img { width: 66px; height: 50px; object-fit: cover; background: #f4ece0; }
.mm-cr-bd.is-on, .mm-cr-swatch.is-on { border-color: var(--mm-green); box-shadow: inset 0 0 0 1px var(--mm-green); }

@media (max-width: 900px) {
	.mm-cr-work { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	/* Phones: the picture, then the conversation, then the product options, so what you say sits right under what it changes. */
	.mm-cr-product { display: contents; }
	.mm-cr-stage { order: 1; }
	.mm-cr-chat { position: static; max-height: none; order: 2; }
	.mm-cr-options { order: 3; }
	.mm-cr-work.is-blank .mm-cr-options { order: 1; }
	.mm-cr-work.is-blank .mm-cr-chat { order: 2; }
	.mm-cr-work.is-blank .mm-cr-stage { order: 3; height: min(300px, 70vw); }
	.mm-cr-intro { margin-bottom: 18px; }
	.mm-cr-log { max-height: 340px; }
	.mm-cr-cats { grid-template-columns: repeat(3, 1fr); }
	.mm-cr-buy { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.mm-cr-gallery ul { grid-template-columns: repeat(2, 1fr); }
	.mm-cr-lede { font-size: 16px; }
}

/* Style cards (before the first drawing) and "Try another style" (after) */
.mm-cr-styles { border: 0; padding: 0; margin: 4px 0 14px; min-width: 0; }
.mm-cr-styles legend { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--mm-muted); margin: 0 0 8px; padding: 0; }
.mm-cr-styles legend small { text-transform: none; letter-spacing: 0; font-size: 12px; }
.mm-cr-styles > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mm-cr-style { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px 7px; background: #fff; border: 1px solid var(--mm-line); border-radius: 8px;
	font: 500 12px/1.2 var(--mm-sans); color: var(--mm-ink); cursor: pointer; text-align: center; }
.mm-cr-style:hover { border-color: var(--mm-green); }
.mm-cr-style.is-on { border-color: var(--mm-green); box-shadow: inset 0 0 0 2px var(--mm-green); background: #f3f7f1; }
.mm-cr-style img, .mm-cr-style i { display: block; width: 100%; height: 72px; object-fit: contain; }
.mm-cr-style i.is-text { display: grid; place-items: center; font: 400 30px var(--mm-serif); font-style: normal; color: var(--mm-muted); }
.mm-cr-style i.is-mix { position: relative; }
.mm-cr-style i.is-mix img { position: absolute; top: 6px; width: 52%; height: 60px; }
.mm-cr-style i.is-mix img:nth-child(1) { left: 0; transform: rotate(-8deg); }
.mm-cr-style i.is-mix img:nth-child(2) { left: 24%; z-index: 1; top: 2px; }
.mm-cr-style i.is-mix img:nth-child(3) { right: 0; transform: rotate(8deg); }
.mm-cr-take span { display: block; font-size: 12px; margin-top: 4px; color: var(--mm-muted); }

/* Product cards show the design on each product; the stage can show all of them */
.mm-cr-cat img { display: block; width: 100%; aspect-ratio: 1000 / 1080; object-fit: contain; background: var(--mm-panel); border-radius: 3px; margin-bottom: 4px; }
.mm-cr-all-toggle { position: absolute; top: 12px; right: 12px; z-index: 2; height: 34px; padding: 0 14px; border: 1px solid var(--mm-line); border-radius: 999px;
	background: rgba(255, 255, 255, .94); font: 600 13px var(--mm-sans); color: var(--mm-green); cursor: pointer; }
.mm-cr-all-toggle:hover { border-color: var(--mm-green); }
.mm-cr-all { position: absolute; inset: 0; padding: 54px 10px 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 8px; }
.mm-cr-all button { display: flex; flex-direction: column; min-height: 0; padding: 4px; background: #fff; border: 1px solid var(--mm-line); border-radius: 6px; cursor: pointer; font: 600 13px var(--mm-sans); color: var(--mm-ink); }
.mm-cr-all button:hover, .mm-cr-all button.is-on { border-color: var(--mm-green); box-shadow: inset 0 0 0 1px var(--mm-green); }
.mm-cr-all img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.mm-cr-all span { padding: 4px 0 2px; }
@media (min-width: 901px) { .mm-cr-styles > div { grid-template-columns: repeat(6, minmax(0, 1fr)); } .mm-cr-style img, .mm-cr-style i { height: 58px; } .mm-cr-style i.is-mix img { height: 48px; } }
@media (max-width: 900px) {
	/* Phones: one scrolling row of style cards. */
	.mm-cr-styles > div { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; }
	.mm-cr-style { flex: 0 0 88px; scroll-snap-align: start; }
	.mm-cr-all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mm-cr-work:not(.is-blank) .mm-cr-stage.is-all { aspect-ratio: 3 / 4; }
}

/* Two photos with the first message: how to put them together */
.mm-cr-poses { margin: 12px 0 0; }
.mm-cr-poses .mm-cr-fine { margin-top: 2px; }
.mm-cr-attached { counter-reset: mm-photo; }
.mm-cr-attached span::before { counter-increment: mm-photo; content: counter(mm-photo); position: absolute; left: 4px; bottom: 4px; min-width: 18px; height: 18px; border-radius: 9px;
	background: rgba(36, 59, 48, .85); color: #fff; font: 600 11px/18px var(--mm-sans); text-align: center; }
.mm-cr-step small { font: 400 14px var(--mm-sans); color: var(--mm-muted); margin-left: 4px; }
.mm-cr-step.is-small { font-size: 18px; margin-bottom: 8px; }

/* Phones: the design on the other products, under the picture */
.mm-cr-also { display: none; }
@media (max-width: 900px) {
	.mm-cr-also { order: 1; display: flex; align-items: center; gap: 6px; overflow-x: auto; margin-top: -8px; }
	.mm-cr-also > span { flex: 0 0 auto; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--mm-muted); margin-right: 2px; }
	.mm-cr-also button { flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 3px; background: #fff; border: 1px solid var(--mm-line); border-radius: 6px; cursor: pointer; color: var(--mm-ink); }
	.mm-cr-also img { width: 56px; height: 56px; object-fit: contain; background: var(--mm-panel); border-radius: 4px; }
	.mm-cr-also small { font-size: 10px; white-space: nowrap; }
}

/* A first look at the photos just added: what we see, ideas that fit */
.mm-cr-pair { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--mm-muted); }
.mm-cr-pair .mm-cr-link { white-space: nowrap; }
.mm-cr-guide { margin: 10px 0 0; padding: 12px 14px; background: #f3f7f1; border-left: 3px solid var(--mm-green); border-radius: 4px; }
.mm-cr-guide.is-warn { background: #fbf3e6; border-left-color: #c88a2c; }
.mm-cr-guide > p { margin: 0 0 6px; font-size: 14px; line-height: 1.45; }
.mm-cr-guide .mm-cr-fine { margin: 0; }
.mm-cr-guide .mm-cr-who { font-weight: 600; }
.mm-cr-guide .mm-cr-starters { margin: 8px 0 0; }
.mm-cr-guide .mm-cr-chip { background: #fff; }
/* Before a design exists the right column is long (styles, photo tips, poses): it scrolls with the page instead of sticking. */
.mm-cr-work.is-blank .mm-cr-chat { position: static; max-height: none; }

/* Before a design: fit, colour and side in one folded line ("Everyday · White · Front print  Change") */
.mm-cr-more { margin: 0 0 4px; }
.mm-cr-more > summary { display: flex; align-items: baseline; gap: 10px; cursor: pointer; list-style: none; padding: 10px 12px; margin: 0 0 12px; background: #fff; border: 1px solid var(--mm-line); border-radius: 6px; font-size: 14px; }
.mm-cr-more > summary::-webkit-details-marker { display: none; }
.mm-cr-more > summary span { flex: 1; }
.mm-cr-more > summary small { color: var(--mm-green); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.mm-cr-more[open] > summary small { visibility: hidden; }
@media (min-width: 901px) { .mm-cr-more[open] > summary { display: none; } }

/* Size & fit guide under "Your size" */
.mm-cr-sizes { margin: -4px 0 14px; font-size: 14px; }
.mm-cr-sizes summary { cursor: pointer; color: var(--mm-green); text-decoration: underline; text-underline-offset: 3px; width: max-content; }
.mm-cr-sizes p { margin: 8px 0; line-height: 1.45; }
.mm-cr-sizes table { width: 100%; border-collapse: collapse; margin: 6px 0 0; font-size: 13px; background: #fff; }
.mm-cr-sizes th, .mm-cr-sizes td { padding: 6px 8px; border-bottom: 1px solid var(--mm-line); text-align: left; }
.mm-cr-sizes th { font-weight: 600; color: var(--mm-muted); font-size: 12px; }
.mm-cr-sizes tr.is-on td { background: #eef3ec; font-weight: 600; }

/* "Added to your cart" */
.mm-cr-secondary { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; width: 100%; padding: 0 20px; border: 1px solid var(--mm-green); border-radius: 2px;
	background: #fff; color: var(--mm-green); font: 600 15px var(--mm-sans); cursor: pointer; }
.mm-cr-secondary:hover { background: #f3f7f1; }
.mm-cr-sheet { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px; background: rgba(28, 36, 31, .45); animation: mm-cr-fade .15s ease-out; }
.mm-cr-sheet-box { position: relative; width: min(420px, 100%); display: grid; gap: 10px; padding: 22px 20px 16px; background: var(--mm-paper, #faf8f3); border-radius: 14px; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .5); }
.mm-cr-sheet-x { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--mm-muted); cursor: pointer; }
.mm-cr-sheet-title { margin: 0 0 2px; font: 400 24px var(--mm-serif); color: var(--mm-ink); }
.mm-cr-sheet-title span { color: var(--mm-green); }
.mm-cr-sheet-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; margin-bottom: 6px; }
.mm-cr-sheet-item img { width: 96px; aspect-ratio: 1000 / 1080; object-fit: contain; background: var(--mm-panel); border-radius: 6px; }
.mm-cr-sheet-item div { display: grid; gap: 2px; font-size: 14px; }
.mm-cr-sheet-item strong { font-size: 16px; }
.mm-cr-sheet-item span, .mm-cr-sheet-item small { color: var(--mm-muted); }
.mm-cr-sheet-item b { font-size: 18px; margin-top: 2px; }
.mm-cr-sheet-links { display: flex; justify-content: space-between; margin: 4px 2px 0; font-size: 14px; }
.mm-cr-sheet-links a { color: var(--mm-green); text-underline-offset: 3px; }
@keyframes mm-cr-fade { from { opacity: 0; } }
@media (max-width: 600px) {
	.mm-cr-sheet { place-items: end stretch; padding: 0; }
	.mm-cr-sheet-box { width: 100%; border-radius: 16px 16px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); animation: mm-cr-up .2s ease-out; }
}
@keyframes mm-cr-up { from { transform: translateY(40px); opacity: 0; } }

/* The preview, small, in the corner while the big one is scrolled out of view: options below it show their effect at once. */
.mm-cr-mini { position: fixed; top: 14px; left: auto; right: 16px; z-index: 9989; width: 250px; aspect-ratio: 1000 / 1080; padding: 0; border: 1px solid var(--mm-line); border-radius: 12px; overflow: hidden;
	background: var(--mm-panel); box-shadow: 0 14px 36px -14px rgba(0, 0, 0, .45); cursor: pointer; transition: transform .2s ease-out, opacity .2s ease-out; }
.mm-cr-mini img { display: block; width: 100%; height: 100%; object-fit: contain; transition: opacity .2s; }
.mm-cr-mini.is-hidden { transform: translateY(-12px); opacity: 0; pointer-events: none; }
.mm-cr-mini.is-loading img { opacity: .55; }
.mm-cr-mini.is-loading::after { content: ''; position: absolute; inset: auto 0 0; height: 3px; background: var(--mm-green); animation: mm-cr-bar 1.2s ease-in-out infinite; }
.mm-create:has(.mm-cr-sheet) .mm-cr-mini { opacity: 0; pointer-events: none; }
@media (max-width: 900px) {
	.mm-cr-mini { width: 128px; top: 10px; border-radius: 10px; }
	.mm-create:has(.mm-cr-input:focus) .mm-cr-mini { opacity: 0; pointer-events: none; }
}

/* Phones: buy bar at the bottom once there is a design */
.mm-cr-sticky { display: none; }
@media (max-width: 900px) {
	.mm-create.is-working { padding-bottom: 96px; }
	.mm-cr-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(250, 248, 243, .97); border-top: 1px solid var(--mm-line); box-shadow: 0 -8px 24px -18px rgba(0, 0, 0, .4);
		transition: transform .2s ease-out; }
	.mm-cr-sticky.is-hidden, .mm-create:has(.mm-cr-input:focus) .mm-cr-sticky, .mm-create:has(.mm-cr-keep input:focus) .mm-cr-sticky, .mm-create:has(.mm-cr-sheet) .mm-cr-sticky { transform: translateY(110%); }
	.mm-cr-sticky img { width: 48px; height: 52px; object-fit: contain; background: var(--mm-panel); border-radius: 4px; }
	.mm-cr-sticky-text { display: grid; gap: 1px; min-width: 0; }
	.mm-cr-sticky-text strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.mm-cr-sticky-text .mm-cr-link { font-size: 12px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--mm-muted); }
	.mm-cr-sticky .mm-cr-primary { width: auto; min-height: 46px; padding: 0 18px; font-size: 15px; border-radius: 999px; }

	/* Phones, before a design: a shorter intro and one scrolling row of products, so the box to describe it is on the first screen. */
	.mm-cr-welcome { padding-top: 4px; }
	.mm-cr-welcome .mm-cr-kicker { margin-bottom: 6px; }
	.mm-cr-welcome h1 { font-size: 30px; }
	.mm-cr-welcome .mm-cr-lede { display: none; }
	.mm-cr-intro { margin-bottom: 12px; }
	.mm-cr-work.is-blank { gap: 12px; }
	.mm-cr-work.is-blank .mm-cr-step { font-size: 18px; margin-bottom: 8px; }
	.mm-cr-work.is-blank .mm-cr-step small { display: none; }
	.mm-cr-work.is-blank .mm-cr-cats { display: flex; overflow-x: auto; gap: 6px; margin: 0 -16px 10px; padding: 0 16px 4px; scroll-snap-type: x proximity; }
	.mm-cr-work.is-blank .mm-cr-cat { flex: 0 0 86px; padding: 5px 6px; font-size: 12px; scroll-snap-align: start; }
	.mm-cr-work.is-blank .mm-cr-cat img { aspect-ratio: 1; }
	.mm-cr-work.is-blank .mm-cr-cat small { font-size: 11px; }
	.mm-cr-work.is-blank .mm-cr-options > .mm-cr-fine { display: none; }
	.mm-cr-work.is-blank .mm-cr-chat-head strong { font-size: 20px; }
}

/* The customer's photo printed as it is: next steps (cut it out, or turn it into art). */
.mm-cr-next { display: grid; gap: 8px; margin: 2px 0 10px; }
.mm-cr-next-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mm-cr-chip.is-main { background: var(--mm-green); border-color: var(--mm-green); color: #fff; font-weight: 600; }
.mm-cr-chip.is-main:hover { background: var(--mm-green-dark); border-color: var(--mm-green-dark); color: #fff; }
.mm-cr-chip.has-pic { display: inline-flex; align-items: center; gap: 6px; padding-left: 5px; }
.mm-cr-chip.has-pic img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; }
.mm-cr-chip.is-on { border-color: var(--mm-green); background: #eef3ec; box-shadow: inset 0 0 0 1px var(--mm-green); font-weight: 600; }
/* The picked style, shown large above the message box. */
.mm-cr-picked { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: 0 0 10px; padding: 8px 10px 8px 8px; background: #eef3ec; border: 1px solid var(--mm-green); border-radius: 12px; }
.mm-cr-picked img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; background: #fff; }
.mm-cr-picked p { margin: 0; font-size: 14px; line-height: 1.4; }
.mm-cr-picked button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--mm-muted); font-size: 20px; line-height: 1; cursor: pointer; }
.mm-cr-picked button:hover { background: rgba(0, 0, 0, .06); color: var(--mm-ink); }
@media (max-width: 600px) {
	.mm-cr-next .is-styles { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
	.mm-cr-next .is-styles::-webkit-scrollbar { display: none; }
	.mm-cr-next .is-styles .mm-cr-chip { flex: none; }
	.mm-cr-next .is-styles .mm-cr-starters-label { flex: none; width: auto; align-self: center; }
}

/* Computers: the same buy bar, as a floating strip, while the price and "Add to cart" are further down the page. */
@media (min-width: 901px) {
	/* Under the product column (7 of 12, as .mm-cr-work), so it never covers the chat box on the right. It ends up below the page content, hidden, once the buy box is in view. */
	.mm-cr-sticky { position: sticky; bottom: 18px; z-index: 9990; width: calc((100% - 36px) * 7 / 12); margin-top: 10px;
		display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 12px 10px 14px;
		background: rgba(250, 248, 243, .98); border: 1px solid var(--mm-line); border-radius: 16px; box-shadow: 0 14px 40px -18px rgba(0, 0, 0, .45);
		transition: transform .2s ease-out, opacity .2s ease-out; }
	.mm-cr-sticky.is-hidden, .mm-create:has(.mm-cr-sheet) .mm-cr-sticky { transform: translateY(140%); opacity: 0; pointer-events: none; }
	.mm-cr-sticky img { width: 52px; height: 56px; object-fit: contain; background: var(--mm-panel); border-radius: 6px; }
	.mm-cr-sticky-text { display: grid; gap: 2px; min-width: 0; }
	.mm-cr-sticky-text strong { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.mm-cr-sticky-text .mm-cr-link { font-size: 13px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--mm-muted); }
	.mm-cr-sticky .mm-cr-primary { width: auto; min-height: 48px; padding: 0 26px; font-size: 16px; border-radius: 999px; }
}

/* Font for the printed words: each button shows its own font (Latin subset of the print fonts). */
@font-face { font-family: 'MM Classic'; src: url('fonts/DMSerifDisplay-Regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'MM Clean'; src: url('fonts/InstrumentSans-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'MM Poster'; src: url('fonts/BebasNeue-Regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'MM Hand'; src: url('fonts/Caveat-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
.mm-cr-font { font-size: 17px; line-height: 1.1; }
.mm-cr-font.is-serif { font-family: 'MM Classic', Georgia, serif; font-weight: 400; }
.mm-cr-font.is-sans { font-family: 'MM Clean', system-ui, sans-serif; font-weight: 700; }
.mm-cr-font.is-poster { font-family: 'MM Poster', Impact, sans-serif; font-weight: 400; font-size: 19px; letter-spacing: .03em; }
.mm-cr-font.is-script { font-family: 'MM Hand', cursive; font-weight: 700; font-size: 21px; }
