/* Notes for this file: site-source/code-notes.md (repo only). */
.product {
  padding-top: var(--space-2);
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--space-3);
  padding-bottom: var(--space-10);
}

.pin-range {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stage-col {
  display: contents;
}

.stage-pin {
  position: relative;
  z-index: 2;
  padding-bottom: var(--space-1);
  background: var(--white);
}

@media (max-width: 959px) and (min-height: 600px) {

  .stage-pin {
    position: sticky;
    top: 0;
    padding-top: var(--space-1);
  }

  .pin-range {

    min-height: 1128px;
  }

  .stage-pin:has(> .stage-controls > :not([hidden])) {
    padding-bottom: 0;
  }

  html:has(.stage-controls > :not([hidden])) {
    scroll-padding-top: calc(min((100vw - var(--space-4)) * 0.7, 280px) + var(--space-1) + 48px + var(--space-1));
  }

  html {
    scroll-padding-top: calc(min((100vw - var(--space-4)) * 0.7, 280px) + var(--space-2) + var(--space-1));
  }
}

.steps-col,
.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}

.steps-col {
  margin-top: var(--space-3);
}

.steps h1 {
  font-size: var(--size-h2);
  line-height: var(--line-h2);
  color: var(--navy);
}

.spec {
  margin-top: calc(-1 * var(--space-4));
  color: var(--dusk);
}

:root {
  --stage-max-h: 280px;
}

.stage {
  aspect-ratio: 10 / 7;
  max-height: var(--stage-max-h);
  min-height: 0;
}

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
}

.stage[data-drawing="yard-sign"] {
  --vb-w: 32;
  --vb-h: 27;
}

.stage[data-drawing="banner"] {
  --vb-w: 128;
  --vb-h: 56;
}

.stage[data-drawing="card"] {
  --vb-w: 4.4;
  --vb-h: 2.8;
}

.stage[data-drawing="postcard"] {
  --vb-w: 7.6;
  --vb-h: 5.2;
}

.stage[data-drawing="rack-card"] {
  --vb-w: 11;
  --vb-h: 5.6;
}

.stage[data-drawing="banner-stand"] {
  --vb-w: 56;
  --vb-h: 93;
}

.stage[data-drawing="magnet"] {
  --vb-w: 47;
  --vb-h: 24;
}

.stage[data-drawing="window-cling"] {
  --vb-w: 32;
  --vb-h: 42;
}

.stage[data-drawing="acrylic"] {
  --vb-w: 32;
  --vb-h: 42;
}

.stage[data-drawing="window-perf"] {
  --vb-w: 32;
  --vb-h: 42;
}

.stage[data-drawing="decal"] {
  --vb-w: 32;
  --vb-h: 42;
}

.stage[data-drawing="wall"] {
  --vb-w: 64;
  --vb-h: 108;
}

.stage[data-drawing="ground"] {
  --vb-w: 16;
  --vb-h: 21;
}

.stage[data-drawing="shape"] {
  --vb-w: 47;
  --vb-h: 30;
}

.drawing .shape-box {
  fill: none;
  stroke-dasharray: 4 3;
}

.drawing .shape-face {
  fill: var(--white);
  stroke: var(--steel);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

.stage[data-art] .drawing .shape-box {
  stroke-dasharray: none;
}

.stage[data-art] .drawing .shape-face {
  fill: none;
  stroke: none;
}

.stage[data-drawing="shirt"] {
  --vb-w: 100;
  --vb-h: 92;
}

.stage-controls {
  display: flex;
  align-items: center;
  min-height: 48px;
}

@media (max-width: 959px) {
  .stage-controls {
    width: 100%;
    max-width: calc(var(--stage-max-h) * 10 / 7);
    margin-inline: auto;
  }

  .stage-controls:not(:has(> :not([hidden]))) {
    display: none;
  }
}

.stage-tabs {
  display: flex;
}

.stage-tabs[hidden] {
  display: none;
}

.stage-tab {
  min-width: 48px;
  min-height: 48px;
  padding: 0 var(--space-2);
  border: 0;
  background: none;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.stage-tab[aria-selected="true"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.stage-tab:focus-visible {
  outline-color: var(--ink);
  outline-offset: -3px;
}

.stage-hide {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-width: 48px;
  min-height: 48px;
  padding: 0 var(--space-2);
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.stage-hide[aria-expanded="true"] .stage-hide-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.stage-hide::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: translateY(2px) rotate(-135deg);
}

.stage-hide[aria-expanded="false"]::after {
  transform: translateY(-2px) rotate(45deg);
}

.stage-hide:focus-visible {
  outline-color: var(--ink);
  outline-offset: 2px;
}

@media (max-width: 959px) {

  .stage-pin[data-preview-hidden] .stage,
  .stage-pin[data-preview-hidden] > .scene-frame,
  .stage-pin[data-preview-hidden] .stage-tabs,
  .stage-pin[data-preview-hidden] + .stage-caption {
    display: none;
  }
}

@media (min-width: 960px) {
  .stage-hide {
    display: none;
  }
}

@media (max-width: 374px) {
  .stage-tab {
    padding: 0 4px;
  }

  .stage-zoom {
    gap: 0;
  }

  .stage-zoom::before {
    display: none;
  }
}

.stage-drawing {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  container-type: size;
}

.plane {
  --strip-top: 20px;
  --strip-right: 48px;
  --strip-bottom: 6px;
  position: absolute;
  inset: var(--strip-top) var(--strip-right) var(--strip-bottom) 0;
  margin: auto;
  width: min(100cqw - var(--strip-right),
             (100cqh - var(--strip-top) - var(--strip-bottom)) * var(--vb-w) / var(--vb-h));
  height: min((100cqw - var(--strip-right)) * var(--vb-h) / var(--vb-w),
              100cqh - var(--strip-top) - var(--strip-bottom));
}

.stage[data-drawing="shirt"] .plane {
  --strip-top: 0px;
  --strip-right: 0px;
}

.drawing {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.stage-caption {
  max-width: none;
  color: var(--dusk);
}

@media (max-width: 959px) {

  .scene-frame {
    width: 100%;
    max-width: calc(var(--stage-max-h) * 10 / 7);
    margin-inline: auto;
  }

  .stage {
    margin-inline: auto;
  }

  .stage-caption {
    width: 100%;
    max-width: calc(var(--stage-max-h) * 10 / 7);
    margin-inline: auto;
  }
}

@media (max-width: 959px) and (min-height: 600px) and (max-height: 639px) {
  :root {
    --stage-max-h: 214px;
  }
}

.drawing .ground {
  fill: var(--scene-ground);
  transform-box: view-box;
  transform-origin: 0 0;
  transition: transform var(--dur-resize) ease;
}

.stage[data-art] .drawing .ground {
  display: none;
}

.drawing .stand-base {
  fill: var(--scene-object);
  stroke: var(--steel);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

.drawing .product {
  transform-box: view-box;
  transform-origin: 0 0;
  transition: transform var(--dur-resize) ease;
}

.drawing .product-face {
  fill: var(--white);
  stroke: var(--steel);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

.drawing .face-metal {
  fill: var(--hairline);
}

.drawing .standoff {
  stroke: var(--steel);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

.drawing .standoffs-silver .standoff {
  fill: var(--hairline);
}

.drawing .standoffs-black .standoff {
  fill: var(--midnight);
}

.drawing .shirt-body {
  stroke: var(--steel);
  stroke-width: 1.5px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.drawing .shirt-black .shirt-body {
  fill: var(--midnight);
}

.drawing .shirt-white .shirt-body {
  fill: var(--white);
}

.drawing .print-area {
  fill: none;
  stroke: none;
}

.drawing .stake {
  fill: none;
  stroke: var(--steel);
  stroke-width: 1.5px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.drawing .stake-heavy {
  stroke-width: 3.5px;
}

.drawing .grommet,
.drawing .slit {
  fill: none;
  stroke: var(--steel);
  stroke-width: 1.25px;
  vector-effect: non-scaling-stroke;
}

.drawing .pocket {
  fill: var(--mist);
  stroke: var(--steel);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

.drawing .mesh {
  opacity: 0.45;
}

.drawing .mesh-dot {
  fill: var(--steel);
}

.drawing .dim {
  fill: none;
  stroke: var(--sky);
  stroke-width: 1.5px;
  vector-effect: non-scaling-stroke;
}

.drawing text {
  text-anchor: middle;
}

.drawing .art-name {
  font-family: var(--font-display);
  font-weight: 700;
  fill: var(--navy);
}

.drawing .art-line {
  font-family: var(--font-body);
  font-weight: 600;
  fill: var(--dusk);
}

.drawing .art-phone {
  font-family: var(--font-body);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  fill: var(--midnight);
}

.drawing .shirt-black .art-name {
  fill: var(--white);
}

.drawing .shirt-black .art-line {
  fill: var(--haze);
}

.drawing .shirt-black .art-phone {
  fill: var(--sky);
}

.drawing .art-back,
.drawing .side-back,
.stage[data-view="back"] .drawing .art-front,
.stage[data-view="back"] .drawing .side-front {
  display: none;
}

.stage[data-view="back"] .drawing .art-back,
.stage[data-view="back"] .drawing .side-back {
  display: inline;
}

.stage .dim-label {
  position: absolute;
  color: var(--sky);
  line-height: 20px;
  white-space: nowrap;
  transition: left var(--dur-resize) ease, top var(--dur-resize) ease;
}

.dim-label[data-dim="w"] {
  transform: translate(-50%, calc(-100% - 4px));
}

.dim-label[data-dim="h"] {
  transform: translate(10px, -50%);
}

.step,
.art-step,
.group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.step > * + *,
.art-step > * + * {
  margin-top: var(--space-2);
}

.step-title {
  padding: 0;
  font-family: var(--font-display);
  font-size: var(--size-h3);
  font-weight: 700;
  line-height: var(--line-h3);
  color: var(--navy);
}

.step-num {
  margin-right: 0.3em;
  color: var(--dusk);
}

.step .group + .group {
  margin-top: var(--space-3);
}

.group-label {
  padding: 0;
  color: var(--dusk);
}

.group > legend + * {
  margin-top: var(--space-1);
}

.settled {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  max-width: none;
  font-weight: 600;
}

.settled-price {
  color: var(--dusk);
  font-weight: 400;
}

.step-note {
  color: var(--dusk);
}

.options {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 11px 15px;
  border: 1px solid var(--steel);
  border-radius: var(--radius-row);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}

.option[hidden] {
  display: none;
}

.option > input.visually-hidden {
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  clip-path: none;
  opacity: 0;
  cursor: pointer;
}

.option:has(input:checked) {
  padding: 10px 14px;
  border: 2px solid var(--navy);
  background: var(--mist);
}

.option:has(input:focus-visible) {
  outline: var(--focus-width) solid var(--ink);
  outline-offset: 2px;
}

@media (hover: hover) {
  .option:hover {
    border-color: var(--navy);
  }
}

.check {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--steel);
  border-radius: 50%;
  background: var(--white);
}

.option input[type="checkbox"] ~ .check {
  border-radius: 6px;
}

.option input:checked ~ .check {
  border-color: var(--navy);
  background: var(--navy);
}

.option input:checked ~ .check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid var(--white);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.option-name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
}

.option-note {
  display: block;
  color: var(--dusk);
}

.custom-size {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: 4px 15px 8px;
}

.custom-size[hidden],
.option-note[hidden],
.custom-say[hidden],
.custom-pdf[hidden],
.custom-panel[hidden],
.custom-cheaper[hidden],
.tag[hidden] {
  display: none;
}

.custom-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.custom-box {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 4px var(--space-1);
}

.custom-box-name {
  grid-column: 1 / -1;
  font-weight: 600;
}

.custom-input {
  width: 56px;
  min-height: 48px;
  padding: 0 8px;
  border: 1px solid var(--steel);
  border-radius: var(--radius-button);
  color: var(--navy);
  font: inherit;
  text-align: center;
}

.custom-input:focus-visible {
  outline: var(--focus-width) solid var(--ink);
  outline-offset: 2px;
}

.custom-say a {
  color: var(--ink);
}

.option-price {
  flex: none;
  color: var(--dusk);
  text-align: right;
  white-space: nowrap;
}

.row-jan {
  flex: none;
  margin-left: auto;
  color: var(--dusk);
  font-size: var(--size-small);
  text-align: right;
  white-space: nowrap;
  text-decoration: line-through;
}

.row-jan + .option-price {
  margin-left: var(--space-2);
}

.nobr {
  white-space: nowrap;
}

.option-name .tag {
  margin-left: var(--space-1);
}

.ladder-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: var(--space-2);
  row-gap: 2px;
}

.ladder-row .row-jan {
  grid-column: 3;
  grid-row: 1;
}

@media (max-width: 379px) {
  .ladder-row .row-jan {
    grid-column: 4;
    grid-row: 2;
  }

  .ladder-row .ladder-sub {
    grid-column: 2 / span 2;
  }
}

.ladder-row .check {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.ladder-name {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--space-1);
}

.ladder-qty {
  font-weight: 600;
}

.ladder-total {
  grid-column: 4;
  grid-row: 1;
  font-weight: 700;
  text-align: right;
}

.ladder-sub {
  grid-column: 2 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px var(--space-2);
  color: var(--dusk);
}

.ladder-save {
  color: var(--navy);
}

.ladder-save:empty {
  display: none;
}

.tag {
  display: inline-block;
  padding: 1px var(--space-1);
  border-radius: 6px;
  background: var(--sky);
  color: var(--navy);
  white-space: nowrap;
}

.summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  padding-top: var(--space-3);
  border-top: 1px solid var(--hairline);
  background: var(--white);
}

.summary-line {
  font-weight: 600;
}

.summary-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: var(--space-2);
}

.summary-total {
  font-size: var(--size-price);
  font-weight: 700;
  line-height: var(--line-price);
}

.summary-each,
.summary-ship {
  color: var(--dusk);
}

.summary-add {
  margin-top: var(--space-1);
}

.is-updated {
  animation: price-in var(--dur-price) ease-out;
}

@keyframes price-in {
  from {
    opacity: 0.35;
  }

  to {
    opacity: 1;
  }
}

button[data-pending] {
  cursor: default;
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.3em;
  max-width: none;
}

.contact-line a,
.step-note a,
.cut-alt a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.guarantee-line a {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 48px;
}

.buy-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: var(--midnight);
  transition: transform var(--dur-price) ease, visibility 0s;
}

.buy-bar.is-away {
  transform: translateY(100%);
  visibility: hidden;
  transition: transform var(--dur-price) ease, visibility 0s linear var(--dur-price);
}

.buy-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 64px;
  padding-block: 3px;
}

.buy-bar-texts {
  min-width: 0;
}

.buy-bar-text {
  max-width: none;
  color: var(--white);
  font-weight: 600;
  line-height: 20px;
}

.buy-bar-detail {
  max-width: none;
  overflow: hidden;
  color: var(--haze);
  line-height: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.buy-bar .btn {
  flex: none;
}

@media (max-width: 959px), (max-height: 639px) {
  body {
    padding-bottom: 64px;
  }

  html {
    scroll-padding-bottom: calc(64px + var(--space-2));
  }
}

@media (min-width: 960px) {
  .product {
    padding-top: var(--space-6);
  }

  .product-grid {
    grid-template-columns: 56% minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: var(--space-6);
    row-gap: var(--space-4);
    padding-bottom: var(--space-12);
    container-type: inline-size;
    --stage-cap: 100000px;
    --stage-h: min(42cqw, var(--stage-cap));
  }

  .pin-range {
    display: contents;
  }

  .stage-col {
    display: block;
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    position: sticky;
    top: 24px;
    z-index: 2;
  }

  .stage-pin {
    position: static;
    padding-bottom: 0;
    background: none;
  }

  .stage {
    aspect-ratio: 4 / 3;
    max-height: none;
  }

  .stage {
    padding-bottom: calc(var(--space-1) + var(--space-2) + var(--size-small) * var(--line-small));
  }

  .plane {
    --strip-bottom: 0px;
  }

  .stage-caption {
    position: absolute;
    left: 0;
    right: 0;
    max-width: none;
    margin: 0;

    bottom: 48px;
    padding: var(--space-1) var(--space-2) var(--space-2);
    color: var(--haze);
  }

  .steps-col {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
  }

  .contact-line {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
  }
}

@media (min-width: 960px) and (min-height: 640px) {
  .product-grid {
    padding-bottom: 0;
  }

  .contact-line {
    margin-bottom: var(--space-12);
  }

  .stage {
    aspect-ratio: auto;
    height: var(--stage-h);
  }

  .stage-col {
    margin-bottom: calc(var(--space-1) + var(--summary-h, 180px));
  }

  .steps-col {
    display: contents;
  }

  .steps {
    grid-column: 2;
    grid-row: 1;
  }

  .summary {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    position: sticky;
    top: calc(24px + var(--stage-h) + 48px + var(--space-1));
    margin-top: calc(var(--stage-h) + 48px + var(--space-1));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: var(--space-2);
    row-gap: var(--space-1);
    padding-top: 0;
    border-top: 0;
  }

  .summary-line,
  .summary-ship {
    grid-column: 1 / -1;
  }

  .summary-price {
    grid-column: 1;
    grid-row: 2;
  }

  .summary-add {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
  }

  .summary-ship {
    grid-row: 3;
  }

  .buy-bar {
    display: none;
  }
}

@media (min-width: 960px) and (min-height: 640px) and (max-height: 699px) {
  .product-grid {
    --stage-cap: calc(344px - max(0px, var(--summary-h, 120px) - 120px));
  }
}

@media (min-width: 960px) and (min-height: 700px) and (max-height: 749px) {
  .product-grid {
    --stage-cap: calc(404px - max(0px, var(--summary-h, 120px) - 120px));
  }
}

@media (min-width: 960px) and (min-height: 750px) and (max-height: 799px) {
  .product-grid {
    --stage-cap: calc(454px - max(0px, var(--summary-h, 120px) - 120px));
  }
}

@media (min-width: 960px) and (min-height: 800px) and (max-height: 849px) {
  .product-grid {
    --stage-cap: calc(504px - max(0px, var(--summary-h, 120px) - 120px));
  }
}

@media (min-width: 960px) and (min-height: 850px) and (max-height: 899px) {
  .product-grid {
    --stage-cap: calc(554px - max(0px, var(--summary-h, 120px) - 120px));
  }
}

.scene-deck {
  display: flex;
  gap: var(--space-2);

  margin-inline: calc(-1 * var(--space-2));
  padding-inline: var(--space-2);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
}

.scene-deck::-webkit-scrollbar {
  display: none;
}

.scene-card {
  flex: 0 0 100%;
  scroll-snap-align: center;
  min-width: 0;
}

.shot {
  position: relative;
  height: 100%;
  contain: size;

  background: var(--hairline);
  border-radius: var(--radius-stage);
  overflow: hidden;
}

@media (min-width: 960px) {

  .shot::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--space-10);
    background: linear-gradient(0deg, color-mix(in srgb, var(--midnight) 78%, transparent) 45%, transparent);
    pointer-events: none;
  }

  .scene-deck {
    gap: var(--space-1);
    margin-right: calc(-1 * var(--space-4));
    padding-right: var(--space-4);
  }
}

.scene-frame {
  position: relative;
}

.scene-arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  padding: 0;
  border: 0;
  background: none;
  display: grid;
  align-items: center;
}

.scene-arrow[hidden] {
  display: none;
}

.scene-arrow[data-step="-1"] {
  left: 0;
  justify-items: start;
}

@media (min-width: 960px) {

  .scene-arrow[data-step="-1"] {
    left: var(--space-1);
  }
}

.scene-arrow[data-step="1"] {
  right: 0;
  justify-items: end;
}

.scene-arrow::before,
.scene-arrow::after {
  content: "";
  grid-area: 1 / 1;
  box-sizing: border-box;
}

.scene-arrow::before {
  width: 26px;
  height: 26px;
  border-top: 8px solid var(--midnight);
  border-right: 8px solid var(--midnight);
}

.scene-arrow::after {
  width: 22px;
  height: 22px;
  border-top: 4px solid var(--white);
  border-right: 4px solid var(--white);
}

.scene-arrow[data-step="-1"]::before,
.scene-arrow[data-step="-1"]::after {
  transform: rotate(-135deg);
  margin-left: 12px;
}

.scene-arrow[data-step="-1"]::before {
  margin-left: 10px;
}

.scene-arrow[data-step="1"]::before,
.scene-arrow[data-step="1"]::after {
  transform: rotate(45deg);
  margin-right: 12px;
}

.scene-arrow[data-step="1"]::before {
  margin-right: 10px;
}

.scene-frame .stage .dim-label {
  z-index: 2;
}

.scene-lock {
  display: none;
}

.scene-lock[data-just-refused] {
  display: block;
  color: var(--navy);
  font-weight: 700;
}

input[name="art-approve"][data-scene-locked] + .art-check {
  opacity: .4;
}

.scene-lock {
  color: var(--dusk);
}

.cart-meter,
.cart-note {
  grid-column: 1 / -1;
  width: 100%;
}

.cart-meter {
  height: 8px;
  margin-top: var(--space-1);
  accent-color: var(--navy);
}

.cart-note {
  margin-top: var(--space-1);
  color: var(--navy);
}

.summary-add[aria-busy],
.buy-bar .btn[aria-busy] {
  cursor: progress;
  opacity: 0.6;
}

.added {
  position: fixed;
  inset: auto 0 0;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 16px 16px 0 0;
  background: var(--white);
  color: var(--navy);
}

.added::backdrop {
  background: var(--midnight);
  opacity: 0.55;
}

.added-body {
  padding: var(--space-3) var(--space-2) calc(var(--space-2) + env(safe-area-inset-bottom));
}

.added-title {
  margin: 0 0 var(--space-2);
  font-size: 24px;
  line-height: 1.2;
}

.added-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-2);
}

.added-thumb {
  display: block;
  width: 96px;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--navy);
}

.added-name,
.added-spec,
.added-price {
  margin: 0;
}

.added-name,
.added-price {
  font-weight: 600;
}

.added-actions {
  display: grid;
  gap: var(--space-1);
}

.added-actions .btn {
  box-sizing: border-box;
  width: 100%;
}

.added-quiet {
  border: 1px solid var(--steel);
  background: var(--white);
  color: var(--navy);
}

.added-hint {
  margin: var(--space-1) 0 0;
  text-align: center;
}

@media (min-width: 600px) {
  .added {
    inset: 0;
    width: 440px;
    height: fit-content;
    margin: auto;
    border-radius: 16px;
  }

  .added-body {
    padding: var(--space-4);
  }
}

@media (max-width: 599px) and (prefers-reduced-motion: no-preference) {
  .added[open] {
    animation: added-up 200ms ease-out;
  }

  @keyframes added-up {
    from {
      transform: translateY(100%);
    }
  }
}

.art-approve {
  position: relative;
}

.art-approve-row.is-nudged {
  padding: 10px 14px;
  border: 2px solid var(--navy);
  background: var(--sky);
  font-weight: 700;
}

.art-approve-row.is-nudged input[name="art-approve"] + .art-check {
  border-color: var(--navy);
  opacity: 1;
}

.proof-toast {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 5;
  margin: 0;
  padding: var(--space-1) 12px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  pointer-events: none;
}

.proof-toast::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 24px;
  border: 8px solid transparent;
  border-top-color: var(--navy);
  border-bottom: 0;
}

.custom-box {
  grid-template-columns: auto 1fr;
}

.custom-step {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.custom-btn {
  min-width: 44px;
  min-height: 48px;
  border: 1px solid var(--steel);
  border-radius: var(--radius-button);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.custom-btn:focus-visible {
  outline: var(--focus-width) solid var(--ink);
  outline-offset: 2px;
}

.custom-box-name {
  grid-column: 1;
  grid-row: 1;
}

.custom-unit {
  grid-column: 2;
  grid-row: 1;
}

.custom-step {
  grid-column: 1 / -1;
  grid-row: 2;
}

.custom-step .custom-input {
  width: 48px;
  padding: 0 4px;
}
