/* =============================================================
   NOD DTF Builder — app block styles (NOD order-builder port)
   Tokens, checkerboard, cards, size table and summary rail are
   1:1 with NOD (nod.css / order-builder.css / order-page.css),
   scoped under .ndtf / .ndtf-page so merchant themes are safe.
   ============================================================= */

.ndtf, .ndtf-page, .nod-op-lightbox {
  --nod-blue: #E25625;
  --nod-blue-dark: #C2451A;
  --nod-blue-soft: rgba(226, 86, 37, 0.1);
  --nod-ink: #0f172a;
  --nod-ink-soft: #475569;
  --nod-line: #e2e8f0;
  --nod-bg: #f6f8fb;
  --nod-card: #ffffff;
  --nod-danger: #dc2626;
  --fs-0: clamp(12.8px, 12.32px + 0.2vw, 14.08px);
  --fs-1: clamp(15.2px, 14.4px + 0.25vw, 16.8px);
  --fs-2: clamp(18.4px, 16.8px + 0.4vw, 21.6px);
  --sp: clamp(16px, 11.2px + 1.5vw, 24px);
  color: var(--nod-ink);
}
.ndtf *, .ndtf-page *, .nod-op-lightbox * { box-sizing: border-box; }
.ndtf [hidden], .ndtf-page [hidden] { display: none !important; }

/* ================= inline PDP dropzone ================= */

.ndtf { display: flex; flex-direction: column; gap: 12.8px; width: 100%; }

/* --ndtf-* variables come from the merchant's Design settings (app admin),
   stamped on the block root by applyDesign(); fallbacks = the NOD defaults */
.ndtf-drop {
  background: var(--ndtf-drop-bg, var(--nod-card));
  border: 2px dashed var(--ndtf-drop-border, #FECBAA); border-radius: 18px;
  padding: clamp(24px, 17.6px + 2vw, 46.4px) 16px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  cursor: pointer; text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ndtf-drop.is-over, .ndtf-drop:hover, .ndtf-drop:focus-visible {
  border-color: var(--ndtf-accent, var(--nod-blue));
  background: var(--ndtf-drop-hover, #f8fafc);
  outline: none;
}
.ndtf-dropic {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ndtf-accent-soft, var(--nod-blue-soft)); display: grid; place-items: center; margin-bottom: 7px;
}
.ndtf-dropic svg { width: 46%; height: 46%; color: var(--ndtf-accent, var(--nod-blue)); }
.ndtf-drop-t { margin: 0; font-size: clamp(16.8px, 15.2px + 0.7vw, 20.8px); font-weight: 800; color: var(--ndtf-drop-font, var(--nod-ink)); }
.ndtf-drop-s { margin: 0; font-size: 15px; color: var(--ndtf-drop-font, var(--nod-ink-soft)); opacity: 0.8; }
.ndtf-browsebtn {
  display: inline-flex; margin-top: 10px; background: var(--ndtf-accent, var(--nod-blue));
  color: #fff; font-weight: 700; font-size: 14.5px; border-radius: 10px; padding: 10px 22px;
}
.ndtf-drop.is-over .ndtf-browsebtn, .ndtf-drop:hover .ndtf-browsebtn { filter: brightness(0.94); }

.ndtf-continue {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 50px; border: none; border-radius: 12px;
  background: var(--nod-blue); color: #fff; font: inherit; font-weight: 800; font-size: var(--fs-1); cursor: pointer;
}
.ndtf-continue:hover { background: var(--nod-blue-dark); }
.ndtf-continue svg { width: 18px; height: 18px; }

/* ================= NOD checkerboard (exact) ================= */

.nod-ob-thumb, .nod-ob-srow-th {
  background-color: #eceef1;
  background-image:
    linear-gradient(45deg, #c5cad2 25%, transparent 25%),
    linear-gradient(-45deg, #c5cad2 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #c5cad2 75%),
    linear-gradient(-45deg, transparent 75%, #c5cad2 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
}

/* ================= fullscreen builder page ================= */

body.ndtf-page-open { overflow: hidden; }
.ndtf-page {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--nod-bg); overflow-y: auto;
  overscroll-behavior: contain;
  font-size: var(--fs-1); line-height: 1.45;
}
.ndtf-page-topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 11.2px;
  padding: 11.2px var(--sp);
  background: var(--nod-card); border-bottom: 1px solid var(--nod-line);
}
.ndtf-page-title { margin: 0; font-size: var(--fs-2); font-weight: 800; color: var(--nod-ink); }
.ndtf-page-x {
  width: 42px; height: 42px; border: 1px solid var(--nod-line); border-radius: 10px;
  background: var(--nod-card); color: var(--nod-ink-soft); cursor: pointer;
  display: grid; place-items: center;
}
.ndtf-page-x:hover { background: var(--nod-bg); color: var(--nod-ink); }
.ndtf-page-x svg { width: 18px; height: 18px; }

/* layout: work + sticky summary rail (order-page.css) */
.nod-op-layout {
  width: min(1180px, 100%); margin: 0 auto;
  padding: clamp(16px, 9.6px + 2vw, 32px) var(--sp) 48px;
  display: grid; grid-template-columns: 1fr; gap: clamp(16px, 9.6px + 2vw, 32px); align-items: start;
}
@media (min-width: 880px) { .nod-op-layout { grid-template-columns: minmax(0, 1fr) clamp(320px, 32%, 400px); } }
.nod-op-work { position: relative; min-width: 0; }

.nod-op-arthead { display: flex; align-items: center; justify-content: space-between; gap: 12.8px; margin: 0 0 11.2px; }
.nod-op-artlabel { font-size: 11.52px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--nod-ink-soft); margin: 0; }

/* ================= design cards ================= */

.nod-op-design {
  position: relative; background: var(--nod-card); border: 1px solid var(--nod-line);
  border-radius: 16px; margin-bottom: 16px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}
.nod-op-design2 {
  display: grid; grid-template-columns: clamp(150px, 13vw, 176px) minmax(0, 1fr);
  gap: clamp(14.4px, 1.5vw, 19.2px); padding: clamp(14.4px, 1.6vw, 19.2px); align-items: start;
}
.nod-op-leftcol { display: flex; flex-direction: column; gap: 11.2px; min-width: 0; }
.nod-op-rightcol { display: flex; flex-direction: column; gap: 12.8px; min-width: 0; }

/* thumb (6px gutter so the art never touches the edges) */
.nod-ob-thumb {
  position: relative; border-radius: 9px; overflow: hidden;
  aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 6px;
  border: 1px solid var(--nod-line);
}
.nod-op-leftcol .nod-op-thumb { width: 100%; height: auto; }
.nod-ob-thumb img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; display: block; }
.nod-ob-thumb-file { color: var(--nod-ink-soft); display: grid; place-items: center; gap: 4px; font-size: 11.2px; }
.nod-ob-thumb-file svg { width: 30px; height: 30px; }

.nod-ob-thumb-busy {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 6px; text-align: center;
  background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(1px);
}
.nod-ob-spin {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--nod-blue-soft); border-top-color: var(--nod-blue);
  animation: ndtfObSpin 0.7s linear infinite; flex: 0 0 auto;
}
@keyframes ndtfObSpin { to { transform: rotate(360deg); } }
.nod-ob-busy-t { font-size: 11.52px; font-weight: 700; color: var(--nod-blue-dark); max-width: 100%; line-height: 1.25; }

.nod-ob-lowres { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.48px; font-weight: 700; color: #b45309; }
.nod-ob-lowres svg { width: 15px; height: 15px; flex: 0 0 auto; }
.nod-ob-caption { margin: 0; font-size: 12.48px; font-weight: 700; }

/* magnifier */
.nod-op-mag {
  position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 8px;
  border: none; background: rgba(15, 23, 42, 0.55); color: #fff; cursor: pointer;
  display: grid; place-items: center; z-index: 3;
}
.nod-op-mag:hover { background: rgba(15, 23, 42, 0.82); }
.nod-op-mag svg { width: 16px; height: 16px; }

/* delete design */
.nod-op-delete {
  align-self: flex-end; display: inline-flex; align-items: center; gap: 4px;
  border: none; background: none; color: var(--nod-danger); padding: 4px 2px;
  font: inherit; font-weight: 700; font-size: 11.52px; cursor: pointer;
}
.nod-op-delete svg { width: 11px; height: 11px; }
.nod-op-delete:hover { opacity: 0.7; text-decoration: underline; }

/* size table — subgrid columns on desktop */
.nod-op-sizetable {
  display: grid;
  grid-template-columns: minmax(78.4px, 1fr) minmax(78.4px, 1fr) minmax(67.2px, 0.8fr) minmax(59.2px, auto) minmax(54.4px, auto) minmax(46.4px, auto) auto;
  gap: 6.4px 8.8px; align-items: center;
}
.nod-op-sizehdr, .nod-op-srow2 { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; }
.nod-op-sizehdr > span { font-size: 11.2px; font-weight: 700; color: var(--nod-ink-soft); line-height: 1.2; }
.nod-op-srow2 { padding: 8px 0; }
.nod-op-srow2 + .nod-op-srow2 { border-top: 1px dashed var(--nod-line); }
.nod-op-scell { min-width: 0; font-size: var(--fs-0); color: var(--nod-ink); line-height: 1.25; }
.nod-op-scell-v { display: block; min-width: 0; }
.nod-op-scell-l { display: none; }
.nod-ob-base { color: var(--nod-ink-soft); font-weight: 600; }
.nod-op-sc--price .nod-ob-base, .nod-op-sc--total .nod-ob-base { display: block; font-size: 0.82em; }
.nod-op-sc--price strong, .nod-op-sc--total strong { font-weight: 800; }
.nod-op-sc--price small { color: var(--nod-ink-soft); font-weight: 600; font-size: 0.72em; }
.nod-op-off { color: #15803d; font-weight: 800; font-size: var(--fs-0); white-space: nowrap; }
.nod-op-srow-err { grid-column: 1 / -1; margin: 2px 0 0; }
.nod-op-sizeerr { color: var(--nod-danger); font-size: 11.52px; font-weight: 700; margin: 4px 0 0; }

/* per-row remove X */
.nod-op-rowx {
  justify-self: end; width: 21px; height: 21px; border-radius: 50%; border: none;
  background: #cbd5e1; color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0;
  transition: background 0.14s ease;
}
.nod-op-rowx svg { width: 11px; height: 11px; }
.nod-op-rowx:hover { background: var(--nod-danger); }

/* number field with steppers */
.nod-op-num { display: inline-flex; align-items: stretch; border: 1px solid var(--nod-line); border-radius: 9px; overflow: hidden; background: var(--nod-card); }
.nod-op-numin { width: 57.6px; border: none; padding: 8px 8px; font: inherit; font-size: var(--fs-0); text-align: left; color: var(--nod-ink); background: var(--nod-card); -moz-appearance: textfield; }
.nod-op-numin::-webkit-outer-spin-button, .nod-op-numin::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nod-op-numin:focus { outline: none; }
.nod-op-num:focus-within { border-color: var(--nod-blue); box-shadow: 0 0 0 2px var(--nod-blue-soft); }
.nod-op-num--err { border-color: var(--nod-danger); box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.18); }
.nod-op-numbtns { display: flex; flex-direction: column; border-left: 1px solid var(--nod-line); }
.nod-op-numbtn { border: none; background: var(--nod-bg); color: var(--nod-ink-soft); width: 22px; flex: 1 1 0; display: grid; place-items: center; cursor: pointer; padding: 0; }
.nod-op-numbtn:first-child { border-bottom: 1px solid var(--nod-line); }
.nod-op-numbtn:hover { background: var(--nod-blue-soft); color: var(--nod-blue-dark); }
.nod-op-numbtn svg { width: 12px; height: 12px; }
.nod-op-pm { display: none; }

/* qty stepper mirrors the number field */
.nod-op-qty2 .nod-op-numin, .nod-op-qtyin3 { width: 40px; border: none; padding: 8px 4px; font: inherit; font-size: var(--fs-0); font-weight: 700; text-align: center; color: var(--nod-ink); background: var(--nod-card); -moz-appearance: textfield; }
.nod-op-qtyin3::-webkit-outer-spin-button, .nod-op-qtyin3::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nod-op-qtyin3:focus { outline: none; }

/* tools */
.nod-op-tools { display: flex; flex-direction: column; gap: 8.8px; min-width: 0; }
.nod-op-toolrow { display: flex; align-items: center; justify-content: space-between; gap: 6.4px; }
.nod-op-toolrow > span { color: var(--nod-ink); font-size: 12.48px; font-weight: 700; line-height: 1.2; }
.nod-op-switch { flex: 0 0 auto; cursor: pointer; position: relative; }
.nod-op-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.nod-op-track { position: relative; display: block; width: 31px; height: 18px; border-radius: 999px; background: #cbd5e1; transition: background 0.15s ease; }
.nod-op-knob { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform 0.15s ease; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.3); }
.nod-op-switch input:checked + .nod-op-track { background: var(--nod-blue); }
.nod-op-switch input:checked + .nod-op-track .nod-op-knob { transform: translateX(13px); }
.nod-op-switch:hover .nod-op-track { background: #aab6c6; }
.nod-op-switch:hover input:checked + .nod-op-track { background: var(--nod-blue-dark); }

.nod-op-aibtn {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  border: 1px solid var(--nod-blue); background: var(--nod-card); color: var(--nod-blue-dark);
  border-radius: 9px; padding: 6px 10px; min-height: 28px; font: inherit; font-weight: 700; font-size: 11.52px; cursor: pointer;
}
.nod-op-aibtn:hover { background: var(--nod-blue-soft); }
.nod-op-aibtn svg { width: 11px; height: 11px; }
.nod-op-aiform { display: flex; gap: 6px; }
.nod-op-aiform input { flex: 1 1 auto; min-width: 0; min-height: 38px; padding: 6px 10px; border: 1px solid var(--nod-line); border-radius: 9px; font: inherit; font-size: var(--fs-0); }
.nod-op-aiform input:focus { outline: 2px solid var(--nod-blue-soft); border-color: var(--nod-blue); }
.nod-op-aiform button { border: none; background: var(--nod-blue); color: #fff; font: inherit; font-weight: 700; border-radius: 9px; padding: 0 14px; cursor: pointer; }

/* actions: add another size + notes */
.nod-op-design-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 11.2px; }
/* pinned to the top of the row so an open notes column never drags it down */
.nod-op-addsize { display: inline-flex; align-items: center; gap: 5px; border: none; background: none; padding: 12px 2px 4px; color: var(--nod-blue-dark); font: inherit; font-weight: 700; font-size: var(--fs-0); cursor: pointer; align-self: flex-start; }
.nod-op-addsize svg { width: 14px; height: 14px; }
.nod-op-addsize:hover { text-decoration: underline; }
.nod-op-noteschk { display: inline-flex; align-items: center; gap: 11.2px; border: 1px dashed var(--nod-line); border-radius: 12px; padding: 8px 14px; cursor: pointer; transition: border-color 0.14s ease, background 0.14s ease; position: relative; }
.nod-op-noteschk:hover { border-color: var(--nod-blue); background: var(--nod-blue-soft); }
.nod-op-noteschk.is-on { border-style: solid; border-color: var(--nod-blue); }
.nod-op-noteschk input { position: absolute; opacity: 0; width: 0; height: 0; }
.nod-op-noteschk-box { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px; border: 2px solid #cbd5e1; display: grid; place-items: center; color: #fff; transition: background 0.14s ease, border-color 0.14s ease; }
.nod-op-noteschk.is-on .nod-op-noteschk-box { background: var(--nod-blue); border-color: var(--nod-blue); }
.nod-op-noteschk-box svg { width: 14px; height: 14px; }
.nod-op-noteschk-t { display: flex; flex-direction: column; line-height: 1.25; }
.nod-op-noteschk-t strong { font-weight: 800; color: var(--nod-ink); font-size: var(--fs-0); }
.nod-op-noteschk-t small { color: var(--nod-ink-soft); font-size: 12.48px; }
/* the notes column: textarea matches the checkbox pill's width exactly */
.nod-op-notecol { display: flex; flex-direction: column; align-items: stretch; gap: 9.6px; min-width: 0; }
.nod-op-notes { width: 100%; min-height: 130px; resize: vertical; border: 1px solid var(--nod-line); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: var(--fs-0); color: var(--nod-ink); line-height: 1.5; background: var(--nod-card); }
.nod-op-notes::placeholder { color: var(--nod-ink-soft); }
.nod-op-notes:focus { outline: none; border-color: var(--nod-blue); box-shadow: 0 0 0 2px var(--nod-blue-soft); }
.nod-op-design-extra2 { display: flex; flex-direction: column; gap: 8px; }

/* add-more dropzone */
.nod-op-adddrop {
  display: flex; flex-direction: column; align-items: center; gap: 4.8px;
  padding: clamp(22.4px, 16px + 3vw, 35.2px) 16px;
  border: 2px dashed var(--ndtf-drop-border, #cbd5e1); border-radius: 16px;
  background: var(--ndtf-drop-bg, var(--nod-card));
  cursor: pointer; text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.nod-op-adddrop:hover { border-color: var(--ndtf-accent, var(--nod-blue)); background: var(--ndtf-drop-hover, #f8fafc); }
.nod-op-dropic { width: 52px; height: 52px; border-radius: 50%; background: var(--ndtf-accent-soft, var(--nod-blue-soft)); display: grid; place-items: center; margin-bottom: 4.8px; }
.nod-op-dropic svg { width: 46%; height: 46%; color: var(--ndtf-accent, var(--nod-blue)); }
.nod-op-add-t { font-weight: 800; color: var(--ndtf-drop-font, var(--nod-ink)); font-size: var(--fs-1); }
.nod-op-add-t strong { color: var(--ndtf-accent, var(--nod-blue-dark)); }
.nod-op-add-s { font-size: var(--fs-0); color: var(--ndtf-drop-font, var(--nod-ink-soft)); opacity: 0.75; }

/* ================= summary rail ================= */

.nod-op-card {
  background: var(--nod-card); border: 1px solid var(--nod-line); border-top: 3px solid var(--nod-blue);
  border-radius: 18px; overflow: clip; box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}
@media (min-width: 880px) {
  .nod-op-rail { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; }
  .nod-op-card-foot { position: sticky; bottom: 0; background: var(--nod-card); box-shadow: 0 -10px 18px -14px rgba(15, 23, 42, 0.3); }
}
@media (max-width: 879px) { .nod-op-rail { display: none; } }
.nod-op-card-h { font-size: calc(var(--fs-2) * 0.9); font-weight: 800; color: var(--nod-ink); margin: 0; padding: 17.6px 19.2px 0; }
.nod-op-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 9.6px; padding-bottom: 6.4px; }
.nod-op-card-count { padding: 17.6px 19.2px 0 0; margin: 0; font-size: var(--fs-0); color: var(--nod-ink-soft); font-weight: 700; white-space: nowrap; }
.nod-op-lines { padding: 9.6px 19.2px; display: flex; flex-direction: column; gap: 9.6px; border-bottom: 1px solid var(--nod-line); }
.nod-op-emptybox { margin: 4.8px 0; padding: 13.6px 16px; background: var(--nod-bg); border-radius: 12px; color: var(--nod-ink-soft); font-size: var(--fs-0); line-height: 1.5; }
.nod-op-card-foot { padding: 16px 19.2px 19.2px; }

/* pre-cut card above the summary (NOD): scissors, price-each, +amount, switch */
.nod-op-precutcard { background: var(--nod-card); border: 1px solid var(--nod-line); border-top: 3px solid var(--nod-blue); border-radius: 16px; padding: 11.2px 17.6px; margin-bottom: 16px; box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04); }
.nod-op-precutcard--mobile { display: none; margin-top: 16px; margin-bottom: 0; }
@media (max-width: 879px) { .nod-op-precutcard--mobile { display: block; } }
.nod-precut { display: flex; align-items: center; justify-content: space-between; gap: 12.8px; cursor: pointer; }
.nod-precut-info { display: flex; align-items: center; gap: 9.6px; min-width: 0; }
.nod-precut-info > svg { width: 22px; height: 22px; color: var(--nod-blue); flex: 0 0 auto; }
.nod-precut-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.nod-precut-text strong { font-size: var(--fs-0); color: var(--nod-ink); font-weight: 800; }
.nod-precut-price { font-size: 11.52px; font-weight: 600; color: var(--nod-blue); }
.nod-precut-text small { font-size: 11.52px; color: var(--nod-ink-soft); }
.nod-precut-right { display: flex; align-items: center; gap: 11.2px; flex: 0 0 auto; }
.nod-precut-amt { font-weight: 800; color: var(--nod-ink); font-size: var(--fs-0); white-space: nowrap; }
.nod-precut-sw { position: relative; flex: 0 0 auto; display: inline-block; width: 44px; height: 26px; }
.nod-precut-sw input { position: absolute; opacity: 0; width: 0; height: 0; }
.nod-precut-track { position: absolute; inset: 0; display: block; border-radius: 999px; background: #cbd5e1; transition: background 0.15s ease; }
.nod-precut-knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.15s ease; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.3); }
.nod-precut-sw input:checked + .nod-precut-track { background: var(--nod-blue); }
.nod-precut-sw input:checked + .nod-precut-track .nod-precut-knob { transform: translateX(18px); }
.nod-precut-sw input:focus-visible + .nod-precut-track { outline: 2px solid var(--nod-blue-soft); outline-offset: 2px; }
.nod-precut-line { display: flex; align-items: center; justify-content: space-between; gap: 9.6px; font-size: var(--fs-0); color: var(--nod-ink); padding: 7.2px 0 0; }
.nod-precut-line-l { display: flex; align-items: center; gap: 6px; color: var(--nod-ink-soft); }
.nod-precut-line-l svg { width: 15px; height: 15px; color: var(--nod-blue); flex: 0 0 auto; }
.nod-precut-line-amt { font-weight: 800; }

/* free-shipping countdown (NOD) */
.nod-freeship { padding: 0 0 9.6px; }
.nod-freeship-top { display: flex; align-items: center; justify-content: space-between; gap: 9.6px; font-size: var(--fs-0); color: var(--nod-ink); margin-bottom: 7px; }
.nod-freeship-msg { display: inline-flex; align-items: center; gap: 6px; }
.nod-freeship-msg strong { font-weight: 800; color: var(--nod-blue-dark); }
.nod-freeship-msg svg { width: 16px; height: 16px; color: #16a34a; flex: 0 0 auto; }
.nod-freeship-goal { color: var(--nod-ink-soft); font-weight: 700; flex: 0 0 auto; }
.nod-freeship-track { height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.nod-freeship-fill { display: block; height: 100%; border-radius: 999px; background: var(--nod-blue); transition: width 0.25s ease; }
.nod-freeship.is-unlocked .nod-freeship-msg strong { color: #16a34a; }
.nod-freeship.is-unlocked .nod-freeship-fill { background: #16a34a; }

/* totals block (NOD): Subtotal -> Discounts & savings (green) -> Total (large) */
.nod-sum-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; font-weight: 800; color: var(--nod-ink); font-size: var(--fs-1); padding-top: 8px; }
.nod-sum-subtotal { padding-top: 0; }
.nod-sum-discount, .nod-sum-discount .nod-sum-amt { color: #15803d; }
.nod-sum-total { font-size: var(--fs-2); border-top: 1px solid var(--nod-line); margin: 6.4px 0 9.6px; padding-top: 11.2px; }
.nod-sum-amt { text-align: right; white-space: nowrap; }
.nod-op-subtotal { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; color: var(--nod-ink); font-size: var(--fs-1); margin: 0 0 8px; }
.nod-op-subamt { font-size: var(--fs-2); }
.nod-op-subamt .nod-ob-base { font-size: 0.6em; font-weight: 600; }
.nod-op-savings { margin: 0 0 11.2px; font-size: var(--fs-0); font-weight: 700; color: #15803d; }
.nod-op-checkout {
  width: 100%; min-height: 52px; border: none; border-radius: 12px;
  background: var(--nod-blue); color: #fff; font: inherit; font-weight: 800; font-size: var(--fs-1);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.nod-op-checkout:hover:not([disabled]) { background: var(--nod-blue-dark); }
.nod-op-checkout[disabled] { opacity: 0.5; cursor: default; }
.nod-op-checkout svg { width: 18px; height: 18px; }

/* summary rows — grouped per design (NOD): sizes stack under one name */
.nod-ob-srow-sz { display: flex; align-items: flex-start; justify-content: space-between; gap: 12.8px; margin-top: 5px; }
.nod-ob-srow-szl { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nod-ob-srow--grouped .nod-ob-srow-name { white-space: normal; overflow: visible; text-overflow: clip; }
.nod-ob-srow-disc { font-size: 11.52px; font-weight: 700; color: #15803d; margin-top: 5px; }
.nod-ob-srow { display: flex; align-items: flex-start; gap: 11.2px; }
.nod-ob-srow-th { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; padding: 3px; border: 1px solid var(--nod-line); }
.nod-ob-srow-th img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nod-ob-srow-th svg { width: 20px; height: 20px; color: var(--nod-ink-soft); }
.nod-ob-srow-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nod-ob-srow-name { font-weight: 800; font-size: var(--fs-0); color: var(--nod-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nod-ob-srow-size, .nod-ob-srow-qty { font-size: 12.48px; color: var(--nod-ink-soft); }
.nod-ob-srow-amt { flex: 0 0 auto; text-align: right; font-size: var(--fs-0); display: flex; flex-direction: column; }
.nod-ob-srow-amt strong { font-weight: 800; color: var(--nod-ink); }
.nod-ob-srow-amt .nod-ob-base { font-size: 0.82em; }

/* ================= mobile ================= */

@media (max-width: 1199px) {
  .nod-op-design2 { grid-template-columns: 1fr; gap: 7.2px; }
  .nod-op-leftcol { flex-direction: row; align-items: stretch; flex-wrap: wrap; }
  .nod-op-leftcol .nod-op-thumb { width: clamp(112px, 32vw, 140px); flex: 0 0 auto; align-self: flex-start; }
  .nod-op-leftcol .nod-op-tools { flex: 1 1 160px; justify-content: flex-end; }
  .nod-op-delete { position: absolute; top: clamp(14.4px, 1.6vw, 19.2px); right: clamp(14.4px, 1.6vw, 19.2px); margin: 0; align-self: auto; z-index: 4; }
  .nod-op-sizetable { display: block; }
  .nod-op-sizehdr { display: none; }
  .nod-op-srow2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 11.2px 6.4px; padding: 11.2px 0; }
  .nod-op-scell { display: flex; flex-direction: column; gap: 5px; }
  .nod-op-scell-l { display: block; font-size: 11.52px; font-weight: 700; color: var(--nod-ink-soft); }
  .nod-op-srow2 .nod-op-sc--dim { align-self: stretch; flex: 1 1 calc(50% - 6.4px); }
  .nod-op-srow2 .nod-op-sc--qty, .nod-op-srow2 .nod-op-sc--price, .nod-op-srow2 .nod-op-sc--total, .nod-op-srow2 .nod-op-sc--off { flex: 0 0 auto; align-self: stretch; }
  .nod-op-srow2 .nod-op-sc--qty .nod-op-scell-v, .nod-op-srow2 .nod-op-sc--price .nod-op-scell-v, .nod-op-srow2 .nod-op-sc--total .nod-op-scell-v, .nod-op-srow2 .nod-op-sc--off .nod-op-scell-v { margin-block: auto; }
  .nod-op-srow2 .nod-op-sc--off:not(.is-on) { display: none; }
  .nod-op-rowx { align-self: center; }

  /* touch steppers: [− value +] */
  .nod-op-num { display: flex; }
  .nod-op-sc--dim .nod-op-num { width: 100%; }
  .nod-op-numin { flex: 1 1 auto; width: auto; min-width: 0; text-align: center; order: 1; }
  .nod-op-qtyin3 { flex: 0 0 auto; width: 32px; min-width: 0; text-align: center; order: 1; }
  .nod-op-numbtns { display: contents; }
  .nod-op-numbtn { width: 46px; min-height: 44px; flex: 0 0 auto; }
  .nod-op-sc--qty .nod-op-numbtn { width: 32px; }
  .nod-op-numbtn, .nod-op-numbtn:first-child { border-bottom: none; }
  .nod-op-numbtn--dn { order: 0; border-right: 1px solid var(--nod-line); }
  .nod-op-numbtn--up { order: 2; border-left: 1px solid var(--nod-line); }
  .nod-op-numbtn svg { display: none; }
  .nod-op-pm { display: block; font-size: 20.8px; font-weight: 700; font-style: normal; line-height: 1; }
}

/* mobile fixed cart bar */
.nod-op-bottombar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; gap: 11.2px;
  padding: 10px var(--sp); padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: var(--nod-card); border-top: 1px solid var(--nod-line);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}
.nod-op-bottombar-info { border: none; background: none; text-align: left; display: flex; flex-direction: column; line-height: 1.2; color: var(--nod-ink-soft); font: inherit; font-size: var(--fs-0); }
.nod-op-bottombar-info strong { color: var(--nod-ink); font-size: var(--fs-1); }
.nod-op-bottombar-cta { flex: 1 1 auto; min-height: 48px; border: none; border-radius: 12px; background: var(--nod-blue); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.nod-op-bottombar-cta[disabled] { opacity: 0.5; }
@media (min-width: 880px) { .nod-op-bottombar { display: none !important; } }
@media (max-width: 879px) { .ndtf-page .nod-op-layout { padding-bottom: calc(86px + env(safe-area-inset-bottom)); } }

/* ================= lightbox (NOD checkerboard) ================= */

.nod-op-lightbox { position: fixed; inset: 0; z-index: 9600; background: rgba(15, 23, 42, 0.85); display: grid; place-items: center; padding: 4vh 4vw; cursor: zoom-out; }
.nod-op-lightbox[hidden] { display: none; }
.nod-op-lightbox img {
  max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 10px; padding: 6px;
  background-color: #eceef1;
  background-image:
    linear-gradient(45deg, #c5cad2 25%, transparent 25%),
    linear-gradient(-45deg, #c5cad2 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #c5cad2 75%),
    linear-gradient(-45deg, transparent 75%, #c5cad2 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.nod-op-lightbox-x { position: fixed; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 10px; border: none; background: rgba(255, 255, 255, 0.15); color: #fff; cursor: pointer; display: grid; place-items: center; }
.nod-op-lightbox-x:hover { background: rgba(255, 255, 255, 0.28); }
.nod-op-lightbox-x svg { width: 22px; height: 22px; }

/* artwork copy deterrents (uploaded art is the product) */
.ndtf-page .nod-ob-thumb img, .nod-op-lightbox img, .nod-ob-srow-th img {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* ================= Edit with AI modal (NOD) ================= */

.nod-ai-scrim {
  position: fixed; inset: 0; z-index: 9550; display: grid; place-items: center;
  padding: 16px; background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px); overflow-y: auto;
  --nod-blue: #E25625; --nod-blue-dark: #C2451A; --nod-blue-soft: rgba(226, 86, 37, 0.1);
  --nod-ink: #0f172a; --nod-ink-soft: #475569; --nod-line: #e2e8f0;
  --nod-bg: #f1f5f9; --nod-card: #ffffff;
}
.nod-ai-modal { width: min(560px, 100%); background: var(--nod-card); border-radius: 20px; box-shadow: 0 30px 70px rgba(15, 23, 42, 0.35); overflow: hidden; }
.nod-ai-modal * { box-sizing: border-box; }
.nod-ai-head { display: flex; align-items: center; justify-content: space-between; padding: 17.6px 20.8px 8px; }
.nod-ai-head h2 { margin: 0; font-size: 18.4px; font-weight: 800; color: var(--nod-ink); }
.nod-ai-x { border: none; background: none; cursor: pointer; color: var(--nod-ink); width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
.nod-ai-x:hover { background: var(--nod-bg); }
.nod-ai-x svg { width: 20px; height: 20px; }
.nod-ai-body { padding: 8px 20.8px 22.4px; display: flex; flex-direction: column; gap: 14.4px; }
.nod-ai-stage { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 10px; border: none; }
.nod-ai-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.nod-ai-stage.is-loading { background: var(--nod-bg); background-image: none; gap: 11.2px; color: var(--nod-ink-soft); font-weight: 700; grid-auto-flow: row; }
.nod-ai-stage.is-loading .nod-ob-spin { width: 30px; height: 30px; border-width: 3px; }
.nod-ai-help { margin: 0; text-align: center; font-size: 15.2px; line-height: 1.45; color: var(--nod-ink-soft); }
.nod-ai-promptbox { position: relative; }
.nod-ai-input { width: 100%; min-height: 110px; resize: vertical; padding: 14px 56px 14px 16px; border: 2px solid var(--nod-blue); border-radius: 16px; font: inherit; font-size: 16px; color: var(--nod-ink); line-height: 1.5; background: var(--nod-card); }
.nod-ai-input:focus { outline: none; box-shadow: 0 0 0 3px var(--nod-blue-soft); }
.nod-ai-send { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border: none; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #7c3aed, #2563eb); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35); }
.nod-ai-send:hover { filter: brightness(1.05); }
.nod-ai-send svg { width: 20px; height: 20px; }
.nod-ai-toggle { display: flex; gap: 4px; align-self: center; background: var(--nod-bg); border-radius: 999px; padding: 4px; }
.nod-ai-tg { border: none; background: none; border-radius: 999px; padding: 9px 22px; font: inherit; font-weight: 800; font-size: 14.72px; color: var(--nod-ink-soft); cursor: pointer; }
.nod-ai-tg[data-ai-show="ai"].is-on { background: #7c3aed; color: #fff; }
.nod-ai-tg[data-ai-show="original"].is-on { background: var(--nod-blue); color: #fff; }
.nod-ai-apply, .nod-ai-useorig { width: 100%; }
.nod-ai-useorig { background: var(--nod-ink-soft); }
.nod-ai-redo { margin: 1.6px 0 0; text-align: center; font-size: 14.4px; color: var(--nod-ink-soft); }
.nod-ai-startover { border: none; background: none; padding: 0; font: inherit; font-weight: 800; font-size: 15.2px; color: var(--nod-blue); cursor: pointer; }
.nod-ai-startover:hover { text-decoration: underline; }

/* toast */
.ndtf-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(8px);
  background: rgba(15, 23, 42, 0.92); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: var(--fs-0); opacity: 0; pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease; z-index: 9700;
}
.ndtf-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .nod-op-knob, .nod-op-track, .ndtf-toast, .ndtf-drop { transition: none; }
  .nod-ob-spin { animation-duration: 1.4s; }
}

/* =============================================================
   Landing layout — the app-generated product.dtf-transfers page.
   One accent (--ndtf-accent) flows through the entire page; the
   theme's fonts are inherited so the page reads native.
   ============================================================= */
.ndtf-land {
  --ndtf-land-accent: var(--ndtf-accent, #E25625);
  --ndtf-land-soft: var(--ndtf-accent-soft, rgba(226, 86, 37, 0.1));
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.5rem) clamp(1rem, 4vw, 2.5rem) clamp(2rem, 5vw, 4rem);
  font-family: inherit;
}
.ndtf-land, .ndtf-land * { box-sizing: border-box; }

.ndtf-land-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.25rem, 3.5vw, 3rem);
  align-items: start;
}
@media (max-width: 899px) {
  .ndtf-land-hero { grid-template-columns: minmax(0, 1fr); }
}

/* media carousel */
.ndtf-land-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ndtf-land-soft);
}
.ndtf-land-track { position: relative; aspect-ratio: 1 / 1; }
.ndtf-land-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .25s ease;
}
.ndtf-land-slide.is-active { opacity: 1; }
.ndtf-land-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ndtf-land-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #1f2933;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}
.ndtf-land-nav svg { width: 18px; height: 18px; }
.ndtf-land-prev { left: 12px; }
.ndtf-land-next { right: 12px; }
.ndtf-land-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 7px;
  z-index: 2;
}
.ndtf-land-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, .65);
  cursor: pointer;
}
.ndtf-land-dot.is-active { background: var(--ndtf-land-accent); }

/* info column */
.ndtf-land-title {
  margin: 0 0 .3em;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -.015em;
}
.ndtf-land-aslow { margin: 0 0 1em; font-size: 1.05rem; }
.ndtf-land-aslow strong { font-size: 1.35em; letter-spacing: -.01em; }
.ndtf-land-desc { margin: 0 0 1.4em; line-height: 1.6; opacity: .82; max-width: 62ch; }
.ndtf-land-info .ndtf { margin: 0 0 1.2rem; }

/* trust strip */
.ndtf-land-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: .8rem 1.4rem;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 12px;
  padding: clamp(.9rem, 2vw, 1.2rem) clamp(1rem, 2.4vw, 1.5rem);
}
.ndtf-land-trust-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 650;
  font-size: .95rem;
}
.ndtf-land-trust-item svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--ndtf-land-accent);
}

/* benefits row */
.ndtf-land-why { margin-top: clamp(2rem, 5vw, 3.5rem); }
.ndtf-land-eyebrow {
  text-align: center;
  margin: 0 0 1.2rem;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ndtf-land-accent);
}
.ndtf-land-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15.5rem, 100%), 1fr));
  gap: clamp(.8rem, 2vw, 1.25rem);
}
.ndtf-land-card {
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 12px;
  padding: 1.1rem 1.2rem 1.2rem;
}
.ndtf-land-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ndtf-land-soft);
  display: grid;
  place-items: center;
  margin-bottom: .7rem;
}
.ndtf-land-card-icon svg { width: 20px; height: 20px; color: var(--ndtf-land-accent); }
.ndtf-land-card h3 { margin: 0 0 .35em; font-size: 1.02rem; line-height: 1.25; }
.ndtf-land-card p { margin: 0; font-size: .92rem; line-height: 1.5; opacity: .78; }
