/* RNS Custom Size Calculator: the size block. Follows the theme: fonts, colours and the theme's own primary button. */
.mm-block { margin: 16px auto; max-width: 760px; font: inherit; color: inherit; container: mm / inline-size; }
.shopify-block:has(> .mm-block) { width: 100%; }
.mm-card { border: 1px solid rgba(127, 127, 127, .3); border-radius: 10px; padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.mm-ctl { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
/* Phone width: the picture and price stay right above the controls. Next to them on a wider column.
   Task -12 (Q6-13): --mm-stick names the part that sticks (the block's script reads it); none sticks once the shopper is past the last option (.mm-free). */
.mm-host { --mm-stick: look; }
.mm-free .mm-look, .mm-free .mm-pr { position: static; }
.mm-view { display: contents; }
.mm-look { position: sticky; top: calc(var(--mm-top, 0px) - 12px); z-index: 2; background: var(--mm-bg, #fff); display: flex; flex-direction: column; gap: 4px; margin: -16px -16px 0; padding: 16px 16px 8px; border-radius: 10px 10px 0 0; border-bottom: 1px solid rgba(127, 127, 127, .35); box-shadow: 0 6px 8px -6px rgba(0, 0, 0, .2); }
.mm-ctl input, .mm-ctl button { scroll-margin-top: calc(var(--mm-pin, 0px) + 8px); }
.mm-hd { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mm-units { display: inline-flex; border: 1px solid rgba(127, 127, 127, .5); border-radius: 999px; overflow: hidden; }
.mm-units button { font: inherit; font-size: 13px; border: 0; background: none; color: inherit; padding: 5px 12px; min-height: 32px; cursor: pointer; }
.mm-units button[aria-pressed="true"] { background: currentColor; }
.mm-units button[aria-pressed="true"] { background: #1f1f1f; color: #fff; }
.mm-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; }
.mm-in { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.mm-in:has(input.bad) .mm-note { color: #b3261e; opacity: 1; }
.mm-box { display: flex; align-items: center; border: 1px solid rgba(127, 127, 127, .6); border-radius: 6px; min-height: 46px; padding: 0 12px; }
.mm-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: inherit; padding: 10px 0; }
.mm-box i { font-style: normal; font-size: 13px; opacity: .7; }
.mm-box:focus-within { outline: 2px solid currentColor; outline-offset: 1px; }
.mm-box input:focus, .mm-box input:focus-visible { outline: 0; box-shadow: none; }
.mm-box:has(input.bad) { border: 2px solid #b3261e; }
.mm-err { color: #b3261e; font-size: 13px; }
.mm-err:empty, .mm-min:empty, .mm-picks:empty, .mm-price:empty { display: none; }
.mm-err a, .mm-links a { color: inherit; }
.mm-lab { font-size: 13px; margin-bottom: -6px; }
.mm-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.mm-pill { font: inherit; font-size: 14px; border: 1px solid rgba(127, 127, 127, .6); background: none; color: inherit; border-radius: 999px; padding: 7px 14px; min-height: 40px; cursor: pointer; }
.mm-pill[aria-checked="true"] { background: #1f1f1f; color: #fff; border-color: #1f1f1f; }
.mm-note { font-size: 12px; opacity: .75; }
.mm-stage { border-radius: 8px; overflow: hidden; aspect-ratio: 5 / 4; max-height: 30vh; min-height: 130px; width: 100%; background: rgba(127, 127, 127, .1); }
.mm-stage:fullscreen { max-height: none; aspect-ratio: auto; }
@container mm (min-width: 500px) {
  .mm-host { --mm-stick: none; }
  .mm-card { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: 16px; align-items: start; }
  .mm-view { display: flex; flex-direction: column; gap: 8px; position: sticky; top: calc(var(--mm-top, 0px) + 12px); }
  .mm-look { position: static; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .mm-stage { aspect-ratio: 8 / 9; max-height: 50vh; min-height: 0; }
  .mm-card .mm-dock { gap: 6px; }
}
/* A desktop product column under 500 px (Horizon with photos): the size boxes first, then the preview, kept to about 40% of the screen while it sticks. */
@media (min-width: 750px) { @container mm (max-width: 499px) {
  .mm-ctl { display: contents; }
  .mm-hd, .mm-hd + .mm-pills, .mm-boxes, .mm-err { order: -1; }
  .mm-look { margin: 0 -16px; padding: 12px 16px 8px; border-radius: 0; }
  .mm-pr { order: -1; }
  .mm-stage { aspect-ratio: 1 / 1; max-height: min(var(--mm-fit, 46vh), calc(40vh - 96px)); min-height: 140px; }
} }
/* A phone: the picture scrolls away and the price stays as one line at the top, until the shopper is past the last option. */
@media (max-width: 749px) { @container mm (max-width: 499px) {
  .mm-host { --mm-stick: pr; }
  .mm-look { display: contents; }
  .mm-pr { position: sticky; top: var(--mm-top, 0px); z-index: 2; background: var(--mm-bg, #fff); margin: 0 -16px; padding: 8px 16px; border-bottom: 1px solid rgba(127, 127, 127, .35); box-shadow: 0 6px 8px -6px rgba(0, 0, 0, .2); }
  .mm-price-for { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
} }
.mm-stage svg { width: 100%; height: 100%; display: block; }
.mm-fill { fill: var(--mm-accent, #d9cdb8); stroke: rgba(0, 0, 0, .25); }
.mm-line { stroke: #3a3a3a; stroke-width: 1.2; }
.mm-chain { stroke-width: 2; stroke-dasharray: 3 2; }
.mm-frame { fill: none; stroke: #8a8478; stroke-width: 2; }
.mm-frame.out { stroke-dasharray: 5 4; }
.mm-dark { filter: brightness(.6); }
.mm-t { font-size: 13px; font-weight: 600; fill: #1f1f1f; text-anchor: middle; }
.mm-pr { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; line-height: 1.3; }
.mm-price { white-space: nowrap; }
@keyframes mm-flash { from { background: rgba(127, 127, 127, .25); } to { background: transparent; } }
.mm-flash .mm-pr, .mm-flash .mm-picks { animation: mm-flash .7s ease-out; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .mm-flash .mm-pr, .mm-flash .mm-picks { animation: none; } }
.mm-pr b { font-size: 22px; }
.mm-qty { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.mm-qty input { width: 72px; min-height: 40px; font: inherit; border: 1px solid rgba(127, 127, 127, .6); border-radius: 6px; padding: 0 8px; background: none; color: inherit; }
.mm-add { width: 100%; min-height: 50px; cursor: pointer; }
.mm-add[disabled] { opacity: .45; cursor: not-allowed; }
.mm-links { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.mm-links a { display: inline-flex; align-items: center; min-height: 24px; }
@media (max-width: 599px) { .mm-links a { min-height: 44px; } }
.mm-brand { font-size: 11px; opacity: .6; text-align: right; }
.mm-sheet { border: 0; border-radius: 12px; padding: 20px; max-width: min(92vw, 480px); }
.mm-sheet::backdrop { background: rgba(0, 0, 0, .4); }
.mm-steps { margin: 12px 0; padding-left: 20px; }
/* The shared 3D view (kit/scene) fills the stage; the 2D drawing shows until its first frame, and stays if it can't run. */
.mm-stage { position: relative; --rnsvz-ink: #1f1f1f; --rnsvz-bg: #fff; }
.mm-2d { position: absolute; inset: 0; }
.mm-on3d .mm-2d { display: none; }
.mm-3dview { position: absolute; inset: 0; }
.mm-3dview:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.mm-dock { display: flex; gap: 4px; flex-wrap: wrap; }
.mm-dock:empty { display: none; }
.mm-dock button { font: inherit; font-size: 12px; border: 1px solid rgba(0, 0, 0, .14); background: none; color: inherit; border-radius: 999px; padding: 8px 9px; min-height: 32px; cursor: pointer; white-space: nowrap; flex: none; }
/* View in your room: the screens of the shared AR code (kit/scene/ar.js), as in Product Visualizer's size-preview.css. */
.rnsvz-armodal{position:fixed;inset:0;z-index:2147483000;background:rgba(0,0,0,.45);display:grid;place-items:center;padding:16px}
.rnsvz-arbox{background:#fff;color:#1f1f1f;border-radius:14px;padding:20px;max-width:300px;text-align:center;font:14px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;box-shadow:0 12px 32px rgba(0,0,0,.25)}
.rnsvz-arbox svg{display:block;margin:12px auto;max-width:100%;height:auto}
.rnsvz-arbox p{margin:0 0 12px}
.rnsvz-arbox button{font:inherit;color:inherit;border:1px solid rgba(0,0,0,.2);background:#fff;border-radius:999px;padding:8px 16px;min-height:36px;cursor:pointer}
.rnsvz-xr{position:fixed;inset:0;z-index:2147483000;font:15px/1.4 system-ui,-apple-system,sans-serif;color:#fff}
.rnsvz-xr-x{position:absolute;top:16px;right:16px;font:inherit;color:#1f1f1f;background:#fff;border:0;border-radius:999px;padding:10px 16px;min-height:44px}
.rnsvz-xr-hint,.rnsvz-xr-note{position:absolute;left:16px;right:16px;bottom:32px;margin:0;text-align:center;text-shadow:0 1px 3px rgba(0,0,0,.7)}
.rnsvz-xr-note{bottom:72px}
.rnsvz-xr p[hidden]{display:none}
