/*
 * EmRuth 2026 builder.css (Package B, contract 7.4). Product builder, its sheets and Check your design.
 * Only em2-b-* rules plus the builder-only component names the contract gives B (.em2-size grid, .em2-srow, .em2-qty,
 * .em2-drop, .em2-ok, .em2-thumb live here as em2-b-*), and chrome spacing scoped to the builder's own classes.
 * Square corners, no gradients, no shadows, nothing under 14px; pink only on .em2-btn-pri.
 */

/* ---------- Labels that change with the layout ---------- */
.em2-b .em2-b-short, .em2-b-sticky .em2-b-short { display:none; }
@media (max-width:1023px) {
  .em2-b .em2-b-long { display:none; }
  .em2-b .em2-b-short { display:inline; }
}
.em2-b .em2-b-modes .em2-b-long { display:inline; }
.em2-b .em2-b-modes .em2-b-short { display:none; }
@media (max-width:599px) {
  .em2-b .em2-b-modes .em2-b-long { display:none; }
  .em2-b .em2-b-modes .em2-b-short { display:inline; }
}

/* ---------- Page frame ---------- */
.em2-b-wrap { padding-top:24px; padding-bottom:80px; }
.em2-b-notices:empty { display:none; }
.em2-b-notices { margin-bottom:16px; }
.em2-b .em2-crumbs { margin-bottom:16px; }
.em2-b-grid { align-items:start; }
.em2-b-controls { display:flex; flex-direction:column; gap:24px; min-width:0; }
.em2-b-step { display:flex; flex-direction:column; gap:12px; padding-top:20px; }
.em2-b-msg:empty { display:none; }
.em2-b .em2-seg { display:flex; width:100%; }
.em2-b .em2-seg > .em2-chip { height:44px; min-width:0; padding:0 8px; }
.em2-b-sheetish .em2-seg > .em2-chip, .em2-b-mix .em2-seg > .em2-chip, .em2-b-gsheet .em2-seg > .em2-chip { height:44px; }
.em2-b-mix .em2-seg, .em2-b-gsheet .em2-seg, .em2-b-panel .em2-seg { display:flex; }
.em2-b-mix .em2-seg > .em2-chip, .em2-b-gsheet .em2-seg > .em2-chip, .em2-b-panel .em2-seg > .em2-chip { flex:1 1 0; }
.em2-b-units > .em2-chip { min-width:48px; }

@media (min-width:1024px) {
  .em2-b-gallery { grid-column:span 7; align-self:stretch; }
  .em2-b-gallery-in { position:sticky; top:calc(var(--hdr-h) + 16px + var(--wp-admin--admin-bar--height, 0px)); display:flex; flex-direction:column; gap:16px; }
  .em2-b-controls { grid-column:8 / span 5; }
  .em2-b .em2-b-phone, .em2-b .em2-b-areatoggle, .em2-b .em2-b-slide, .em2-b .em2-b-pos { display:none; }
  .em2-b-page .em2-b-sticky { display:none; }
}
@media (max-width:1023px) {
  .em2-b-wrap { padding-top:0; padding-bottom:0; }
  .em2-b .em2-crumbs, .em2-b .em2-b-thumbs, .em2-b .em2-b-desk, .em2-b .em2-b-desk-only, .em2-b .em2-b-addons, .em2-b .em2-b-actions > #em2-b-review, .em2-b .em2-b-panel, .em2-b .em2-b-live-badge, .em2-b .em2-b-pricing, .em2-b .em2-b-upcharge { display:none; }
  .em2-b .em2-b-colors { gap:0; }
  .em2-b-gallery { margin:0 calc(-1 * var(--gutter)); }
  .em2-b-controls { padding:20px 0 140px; }
  .em2-b .em2-b-h1 { font-size:24px; line-height:1.1; }
  .em2-b-ticks { display:none; }
  .em2-b-page .em2-foot { padding-bottom:144px; }
}

/* ---------- Gallery ---------- */
/* The photo tile stays light in dark mode (--tile), so everything drawn on it uses the light tokens. */
.em2-b-stage, .em2-b-proofs .em2-tile, .em2-b-measure, .em2-b-crop-stage {
  --ink:#111428; --ink-2:#2b2f4a; --paper:#ffffff; --line:#d6d9e3; --muted:#4d5168; --band:#f3f4f7; --hover-fill:#f3f4f7; --focus:#2467d6;
  color:var(--ink);
}
.em2-b-stage { padding:48px 72px; }
.em2-b-stage .em2-garment { transform-origin:var(--zx, 50%) var(--zy, 50%); }
@media (min-width:1024px) and (hover:hover) {
  .em2-b-stage.is-zoom .em2-garment { transform:scale(1.6); }
  .em2-b-stage { cursor:zoom-in; }
}
.em2-b-zoom { position:relative; }
.em2-b-views { position:absolute; top:20px; left:20px; z-index:2; gap:0; }
.em2-b-views .em2-chip { height:44px; min-width:0; }
.em2-b-views .em2-chip + .em2-chip { margin-left:8px; }
.em2-b-live-badge { position:absolute; top:20px; right:20px; z-index:2; }
.em2-b-areatoggle { position:absolute; top:12px; right:12px; z-index:2; min-width:0; }
.em2-b-slide { position:absolute; top:50%; z-index:2; width:44px; min-width:44px; height:44px; padding:0; margin-top:-22px; border-color:var(--ink); }
.em2-b-slide svg { width:20px; height:20px; }
.em2-b-prev { left:12px; }
.em2-b-next { right:12px; }
.em2-b-pos { position:absolute; left:0; right:0; bottom:12px; justify-content:center; z-index:2; }
.em2-b-bars { display:inline-flex; gap:6px; }
.em2-b-bars i { display:block; width:24px; height:4px; background:var(--line); }
.em2-b-bars i.is-on { background:var(--ink); }
.em2-b-art-layer { position:absolute; inset:0; }
.em2-b-art-layer img { position:absolute; max-width:none; }
.em2-b-proofimg { position:absolute; inset:0; width:100%; height:100%; }
@media (max-width:1023px) {
  .em2-b-stage { padding:56px 36px 44px; touch-action:pan-y; }
  .em2-b-views { top:12px; left:12px; }
}
@media (min-width:600px) and (max-width:1023px) {
  /* Tablets: cap the photo so the title and price show above the sticky bar. */
  .em2-b-stage .em2-garment { max-width:min(100%, 44vh); margin:0 auto; }
}
.em2-b-thumbs { align-items:center; }
.em2-b-thumb { width:96px; height:96px; padding:8px; border:2px solid var(--line); cursor:pointer; flex:none; }
.em2-b-thumb[aria-pressed="true"] { border-color:var(--ink); }
.em2-b-trustnote { flex:1 1 0; min-width:0; padding-left:12px; }

/* Desktop panels (size guide, crop) that replace the stage */
.em2-b-panel { display:flex; flex-direction:column; gap:16px; border:2px solid var(--ink); padding:24px; background:var(--paper); }
.em2-b-panel-back { align-self:flex-start; }
.em2-b-panel-back svg { width:20px; height:20px; }
.em2-b-gallery.is-panel .em2-b-stage, .em2-b-gallery.is-panel .em2-b-thumbs { display:none; }

/* ---------- Title block ---------- */
.em2-b-title { gap:8px; }
.em2-b-priceline { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 6px; }
.em2-b-badges { margin-top:4px; }

/* ---------- Fabric ---------- */
.em2-b-tier { flex:1 1 0; padding:10px 14px; min-height:56px; }

/* ---------- Shirt (a fabric made of several garments, like Ultra soft) ---------- */
.em2-b-shirts { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; }
.em2-b-shirt { padding:10px 14px; min-height:56px; }

/* ---------- Colors ---------- */
.em2-b-colors { gap:4px; }
.em2-b-colorname { font-weight:500; }
.em2-b-allcolors { padding-top:4px; border-top:2px solid var(--line); }
#em2-b-color-note:empty { display:none; }
@media (max-width:1023px) {
  #em2-b-colors .em2-sw:nth-child(n+9):not([aria-checked="true"]) { display:none; }
}

/* ---------- Design ---------- */
.em2-b-side { gap:12px; }
.em2-b-side + .em2-b-side { padding-top:16px; border-top:2px solid var(--line); }
.em2-b-rowlbl { width:56px; flex:none; }
.em2-b-style { min-width:0; }
.em2-b-style-varsity.is-font { font-family:"Alfa Slab One", Rockwell, Georgia, serif; font-weight:400; }
.em2-b-style-bold.is-font { font-family:Anton, Impact, "Arial Narrow", sans-serif; font-weight:400; letter-spacing:.02em; }
.em2-b-style-clean.is-font { font-family:Montserrat, Arial, sans-serif; }
.em2-b-drop { border:2px solid var(--ink); padding:24px; background:var(--paper); }
.em2-b-drop.is-over { background:var(--band); }
.em2-b-rights { cursor:pointer; min-height:44px; font-weight:700; }
.em2-b [data-em2-b-choose][aria-disabled="true"] { background:var(--band); border-color:var(--line); color:var(--muted); cursor:not-allowed; }
.em2-b-art-thumb { width:64px; height:64px; flex:none; }
.em2-b-art-thumb img { width:64px; height:64px; object-fit:contain; }
.em2-b-art-name { word-break:break-all; }
.em2-b-design-links { align-items:center; }
/* The way into the full designer for moving the print, left chest, sleeves and more (2026-11-26). */
.em2-b-fulldesigner { display:flex; flex-direction:column; gap:6px; }
.em2-b-fulldesigner .em2-btn { width:100%; }

/* ---------- Sizes ---------- */
.em2-b-cuts { margin-top:4px; }
.em2-b-sizegrid { display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:8px; }
@media (min-width:1280px) { .em2-b-sizegrid { grid-template-columns:repeat(8, minmax(0, 1fr)); } }
.em2-b-sizegrid[data-one] { grid-template-columns:minmax(0, 120px); }
.em2-b-size { display:flex; flex-direction:column; align-items:stretch; gap:6px; min-width:0; text-align:center; }
.em2-b-size .em2-lbl { display:block; }
.em2-b-size-n { width:100%; min-width:44px; height:44px; padding:0 4px; border:2px solid var(--ink); border-radius:0; background:var(--paper); color:var(--ink); font:700 16px/1 var(--mono); text-align:center; -moz-appearance:textfield; appearance:textfield; }
.em2-b-size-n::-webkit-outer-spin-button, .em2-b-size-n::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.em2-b-size.is-zero .em2-b-size-n { border-color:var(--line); color:var(--muted); }
.em2-b-size-n:disabled { border-color:var(--line); background:var(--band); color:var(--muted); text-decoration:line-through; cursor:not-allowed; }
.em2-b-size-u { font-size:14px; color:var(--muted); min-height:20px; }
.em2-b-chipgrid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:8px; }
.em2-b-chipgrid .em2-chip { min-width:0; }
.em2-b-mixopen { display:flex; align-items:center; gap:10px; width:100%; min-height:48px; padding:12px 14px; border:2px solid var(--ink); background:var(--paper); color:var(--ink); font:800 16px/1.2 var(--body); text-align:left; cursor:pointer; border-radius:0; }
.em2-b-mixopen:hover { background:var(--hover-fill); }
.em2-b-mixopen svg { width:20px; height:20px; flex:none; }
.em2-b-qty { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; }
.em2-b-qty .em2-chip-q { min-width:0; }
.em2-b-qty .em2-chip-q[aria-checked="true"] .em2-small { color:var(--paper); }
.em2-b-typeit { font-size:14px; }
.em2-b-otherq { align-self:flex-start; }
.em2-b-mixed { align-items:center; }
#em2-b-measure-line:empty { display:none; }
.em2-b-studiolink:empty { display:none; }

/* Ladder, price box, savings and nudge */
.em2-b-pricing { display:flex; flex-direction:column; gap:12px; }
.em2-b-ladder { table-layout:fixed; }
.em2-b-ladder-split { display:none; }
@media (min-width:1024px) and (max-width:1279px) {
  .em2-b-ladder-row { display:none; }
  .em2-b-ladder-split { display:flex; flex-direction:column; gap:8px; }
  .em2-b-ladder-split .em2-b-ladder th, .em2-b-ladder-split .em2-b-ladder td { padding:8px 4px; }
}
.em2-b-ladder th, .em2-b-ladder td { padding:8px 2px; text-align:center; vertical-align:middle; }
.em2-b-ladder th { font:700 14px/1.2 var(--mono); }
.em2-b-ladder .em2-price { display:block; font-size:14px; }
.em2-b-ladder .em2-lbl { display:block; margin-top:4px; letter-spacing:0; line-height:1.15; }
.em2-b-pricebox { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; border:2px solid var(--ink); padding:16px 20px; }
.em2-b-right { align-items:flex-end; text-align:right; }
.em2-b-nudge { border:2px solid var(--ink); padding:12px 14px; align-items:center; }
.em2-b-nudge p { flex:1 1 auto; min-width:0; }

/* ---------- Delivery ---------- */
.em2-b-speed { padding:14px 16px; }
.em2-b-speed .em2-col { min-width:0; }

/* ---------- Actions ---------- */
/* Only the main button (and its status line) is sticky (decision 26); the links and ticks sit in normal flow under it. */
.em2-b-actions, .em2-b-actmore { display:flex; flex-direction:column; gap:12px; }
@media (min-width:1024px) {
  .em2-b-actions { position:sticky; bottom:0; z-index:5; gap:8px; background:var(--paper); border-top:2px solid var(--ink); padding:16px 0; }
  .em2-b-actmore { gap:8px; margin-top:-16px; }
  /* Focused fields scroll clear of the sticky button block (90px tall). */
  html { scroll-padding-bottom:104px; }
}
@media (max-width:1023px) {
  .em2-b .em2-b-actions { display:contents; }
}
.em2-b-links { align-items:center; }
.em2-b-links .em2-btn-ghost { padding-left:0; white-space:normal; text-align:left; height:auto; min-height:44px; }
.em2-b-textus { min-height:44px; display:inline-flex; align-items:center; }
#em2-b-save-note:empty { display:none; }

/* ---------- Accordions, trust ---------- */
.em2-b-details { margin:8px 0 0; padding-left:20px; display:flex; flex-direction:column; gap:4px; }
.em2-b-accs .em2-acc-body p + p { margin-top:8px; }
.em2-b-faq .em2-acc-list, .em2-b-faq .em2-acc:last-child { border-bottom:0; }
.em2-b-trust { padding:24px; display:flex; flex-direction:column; gap:8px; }

/* ---------- Size guide ---------- */
.em2-b-guide { display:flex; flex-direction:column; gap:16px; }
.em2-b-guide-ctl .em2-seg { width:auto; flex:1 1 160px; }
.em2-b-guide-how { align-items:flex-start; }
.em2-b-measure { position:relative; width:120px; height:112px; flex:none; }
.em2-b-measure-photo { position:absolute; inset:0; }
.em2-b-measure-photo img { width:100%; height:100%; object-fit:contain; }
.em2-b-measure-lines { position:absolute; inset:0; width:100%; height:100%; }
.em2-b-key { position:absolute; display:inline-flex; align-items:center; gap:4px; padding:0 4px; min-width:22px; height:22px; border:2px solid var(--ink); background:var(--paper); color:var(--ink); font:700 14px/1 var(--mono); }
.em2-b-key-a { left:-8px; top:calc(36% - 11px); }
.em2-b-key-b { right:-12px; top:4px; }
.em2-b-keyv:empty { display:none; }
.em2-b-k { display:inline-grid; place-items:center; min-width:22px; height:22px; margin-right:4px; border:2px solid var(--ink); font:700 14px/1 var(--mono); }
.em2-b-gtable td, .em2-b-gtable th { padding:0 12px; height:44px; vertical-align:middle; }
.em2-b-gsize { display:block; width:100%; min-height:44px; padding:0; border:0; background:transparent; color:inherit; font:800 16px/1 var(--body); text-align:left; cursor:pointer; }
.em2-b-gtable tr.is-on td { background:var(--ink); color:var(--paper); }

/* ---------- Mix sizes sheet ---------- */
.em2-b-srows { display:flex; flex-direction:column; }
.em2-b-srow { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:60px; padding:8px 0; border-bottom:2px solid var(--line); }
.em2-b-srow:last-child { border-bottom:0; }
.em2-b-srow.is-zero .em2-h4 { color:var(--muted); }
.em2-b-srow .em2-small { margin-left:auto; margin-right:8px; }
.em2-b-names { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:48px; padding:10px 14px; border:2px solid var(--line); color:var(--ink); text-decoration:none; }
.em2-b-names:hover { border-color:var(--ink); }
.em2-b-mixtotal { display:flex; flex-direction:column; gap:8px; border:2px solid var(--ink); padding:14px 16px; }

/* ---------- Crop view ---------- */
.em2-b-crop { display:flex; flex-direction:column; gap:16px; }
.em2-b-crop-stage { position:relative; align-self:center; max-width:100%; margin-top:8px; user-select:none; -webkit-user-select:none; touch-action:none; background:var(--tile); }
.em2-b-crop-stage img { display:block; max-width:100%; max-height:60vh; width:auto; height:auto; pointer-events:none; }
.em2-b-crop-sel { position:absolute; outline:2px solid #111428; cursor:move; }

.em2-b-crop-h { position:absolute; width:44px; height:44px; padding:0; border:0; background:transparent; cursor:nwse-resize; }
.em2-b-crop-h::after { content:""; position:absolute; left:15px; top:15px; width:14px; height:14px; background:var(--paper); border:2px solid #111428; }
.em2-b-crop-h[data-h="tl"] { left:-22px; top:-22px; }
.em2-b-crop-h[data-h="tr"] { right:-22px; top:-22px; cursor:nesw-resize; }
.em2-b-crop-h[data-h="bl"] { left:-22px; bottom:-22px; cursor:nesw-resize; }
.em2-b-crop-h[data-h="br"] { right:-22px; bottom:-22px; }

/* ---------- Add-ons ---------- */
.em2-b-addons { margin-top:72px; display:flex; flex-direction:column; gap:24px; }
.em2-b-addon-list { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:24px; }
.em2-b-addon-tile { padding:20px; }
.em2-b-addon .em2-row { align-items:flex-start; }
.em2-b-addon-why:empty { display:none; }

/* ---------- Sticky bar ---------- */
.em2-b-sticky-l { min-width:0; }
body.em2-b-page .em2-b-sticky { z-index:50; }

/* ---------- Check your design ---------- */
body.em2-is-checking .em2-ann, body.em2-is-checking .em2-hdr, body.em2-is-checking [data-em2-hdr] { display:none; }
.em2-b[data-state="check"] .em2-b-build { display:none; }
.em2-b-checkbar { border-bottom:2px solid var(--ink); background:var(--paper); }
.em2-b-checkbar-in { min-height:72px; flex-wrap:wrap; }
.em2-b-checklogo img { width:190px; height:auto; }
.em2-b-steps { display:flex; gap:24px; margin:0; padding:0; list-style:none; font:700 14px/1.3 var(--mono); letter-spacing:.04em; text-transform:uppercase; color:var(--muted); }
.em2-b-steps li[aria-current="step"] { color:var(--ink); border-bottom:2px solid var(--ink); padding-bottom:4px; }
.em2-b-checkbody { padding-top:40px; padding-bottom:80px; align-items:start; }
.em2-b-proofs { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px; }
.em2-b-proofs .em2-tile { padding:28px; }
.em2-b-proof { position:absolute; inset:0; width:100%; height:100%; }
.em2-b-oklist { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:16px; }
.em2-b-ok { display:flex; gap:12px; align-items:flex-start; }
.em2-b-ok > svg { width:22px; height:22px; flex:none; margin-top:1px; color:var(--green); }
.em2-b-ok.is-warn > svg { color:var(--ink); }
.em2-b-lookrow { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.em2-b-lookrow .em2-btn-ghost { flex:none; font-size:15px; }
.em2-b-money { padding-top:16px; }
.em2-b-moneyrow { display:flex; justify-content:space-between; align-items:baseline; gap:12px; }
.em2-b-confirm { background:var(--band); padding:14px 16px; cursor:pointer; min-height:52px; }
.em2-b-confirm .em2-check { pointer-events:none; }
.em2-b-confirm:has(input:focus-visible) .em2-check { outline:2px solid var(--focus); outline-offset:2px; }
#em2-b-ok:checked + .em2-check { background:var(--ink); }
#em2-b-ok:checked + .em2-check::after { opacity:1; }
.em2-b-backedit { align-self:center; }
#em2-b-add-status:empty { display:none; }
@media (min-width:1024px) {
  .em2-b-checkleft { grid-column:span 7; }
  .em2-b-checkright { grid-column:8 / span 5; }
}
@media (max-width:1023px) {
  .em2-b-checkbar-in { min-height:60px; padding-top:8px; padding-bottom:8px; }
  .em2-b-checklogo img { width:140px; }
  .em2-b-steps { order:3; width:100%; gap:16px; }
  .em2-b-checkbody { padding-top:24px; padding-bottom:140px; }
  .em2-b-checkbody .em2-d2 { font-size:32px; }
  .em2-b-addwrap > #em2-b-add { display:none; }
  .em2-b-proofs .em2-tile { padding:12px; }
}
.em2-b-crop-dim { position:absolute; background:var(--scrim); pointer-events:none; }
@media (min-width:1024px) {
  .em2-b-actmore .em2-b-links { flex-wrap:wrap; row-gap:0; }
  .em2-b-actmore .em2-b-links .em2-btn-ghost, .em2-b-actmore .em2-b-textus { font-size:14px; min-height:44px; height:auto; white-space:nowrap; }
  .em2-b-actmore .em2-b-textus b { font-size:14px; }
}
.em2-b-sticky-l .em2-h4 { white-space:nowrap; }
