@font-face {
  font-family: "Joystix";
  src: url("./Resources/Fonts/joystix.ttf");
}

@keyframes first_dot {
  0% {
    opacity: 1;
  }
  33% {
    opacity: 0;
  }
}

@keyframes second_dot {
  35% {
    opacity: 1;
  }
  66% {
    opacity: 0;
  }
}

@keyframes third_dot {
  68% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

* {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: "Joystix";
}

body, html {
  height: 100%;
  /* No pull-to-refresh or scroll chaining: dragging an item down near the
     top of the page on a phone would otherwise reload the builder. */
  overscroll-behavior-y: none;
}

/* The canvas is 16:9, so its height follows the width. Keep the width small
   enough that the canvas plus the toolbar (about 230px) and some breathing
   room fits the window's height too, so nothing ends up off the top or
   bottom of the screen. */
.main__wrapper {
  --builder-width: min(62vw, calc((100vh - 290px) * 16 / 9), 1200px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  width: var(--builder-width);
  min-height: 100%;
  padding: 12px 0;
  box-sizing: border-box;
}

.canvas__wrapper {
  position: relative;
  display: flex;
  width: 100%;
  flex-direction: column;
  /* Touches on the room and item menu drag items, never scroll the page */
  touch-action: none;
}

.canvas__wrapper canvas {
  width: 100%;
  image-rendering: pixelated;
  border-left: 2px dashed #ff0000;
  box-sizing: border-box;
}

.items__wrapper {
  position: absolute;
  left: 75%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: calc(var(--builder-width) / 3);
  height: 100%;
  border-left: 2px dashed #ff0000;
}

.items__list {
  width: calc(var(--builder-width) / 3);
  height: calc(var(--builder-width) / 3);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.items__list_item {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: calc(var(--builder-width) / 3 / 3 - 10px);
  height: calc(var(--builder-width) / 3 / 3 - 10px);
  margin: 5px;
}

.items__list_item img {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: calc(var(--builder-width) / 3 / 3 - 10px);
  max-height: calc(var(--builder-width) / 3 / 3 - 10px);
  user-select: none;
}

.items__list_buttons {
  width: 100%;
  height: 30px;
  display: flex;
  justify-content: center;
}

.items__list_prev,
.items__list_next {
  width: 30px;
  height: 100%;
  background-image: url("./Resources/Images/trianglearrow.png");
  background-color: transparent;
  background-size: cover;
  transition: all 0.3s;
}

.items__list_prev {
  transform: rotate(180deg);
}

.items__list_next {
  margin-left: 20px;
}

.items__list_prev:disabled,
.items__list_next:disabled {
  opacity: 0.5;
  filter: grayscale(1);
}

.controls__buttons {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  margin-top: 12px;
}

.controls__buttons button {
  background-color: #f0f682;
  border: 2px solid #df7126;
  padding: 8px 12px;
  color: #df7126;
  box-sizing: border-box;
  cursor: pointer;
}

.controls__buttons button:hover {
  border: 2px solid transparent;
}

.left_side__buttons {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Lines up under the item menu (a third of the width, ending 1/12 from the edge) */
.right_side__buttons {
  width: calc(100% / 3);
  margin-right: calc(100% / 12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* MOVE/ROTATE, the flips and the layer arrows as joined button groups */
.transform__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.transform_mode__buttons,
.mirror__buttons,
.layer__buttons {
  display: flex;
}

/* Icon-only buttons, kept the same height as the text buttons */
.controls__buttons .icon__button,
.trackpad__buttons .icon__button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  align-self: stretch;
}

.pixel__icon {
  display: block;
}

/* LAYER, joined to the arrows it names */
.layer__label {
  display: flex;
  align-items: center;
  padding: 0 8px;
  border: 2px solid #df7126;
  border-right: none;
  background-color: #df7126;
  color: #f0f682;
  font-size: 11px;
  cursor: default;
  user-select: none;
}

.transform_mode__buttons button + button,
.mirror__buttons button + button,
.layer__buttons button + button,
.trackpad__modes button + button {
  margin-left: -2px;
}

/* The one action that matters most: big, filled and pressable */
.controls__buttons .mint__button {
  width: 100%;
  padding: 14px 12px;
  font-size: 26px;
  letter-spacing: 6px;
  background-color: #df7126;
  color: #f0f682;
  border: 3px solid #8f3e0c;
  box-shadow: 0 5px 0 #8f3e0c;
  transition: transform 0.08s, box-shadow 0.08s, background-color 0.15s;
}

.controls__buttons .mint__button:hover {
  border: 3px solid #8f3e0c;
  background-color: #ec8435;
}

.controls__buttons .mint__button:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #8f3e0c;
}

.controls__buttons .mint__button:disabled {
  transform: none;
}

.scene__buttons {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.scene__buttons button {
  flex: 1;
}

/* The transform mode currently in use */
.controls__buttons .transform_mode__buttons button.active {
  background-color: #df7126;
  border-color: #df7126;
  color: #f0f682;
}

/* Stop-motion animation: camera, frame count, preview, clear */
.animation__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.controls__buttons button:disabled {
  opacity: 0.5;
  filter: grayscale(1);
}

.animation__count {
  padding: 0 8px;
  font-size: 13px;
  color: #df7126;
}

.animation_preview__speed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 12px;
  color: #df7126;
}

.animation_preview__speed span {
  flex-basis: 100%;
}

.animation_preview__speed button {
  min-width: 56px;
  padding: 6px 8px;
  font-size: 12px;
  color: #df7126;
  background-color: #f0f682;
  border: 2px solid #df7126;
  cursor: pointer;
}

.animation_preview__speed button.active {
  color: #f0f682;
  background-color: #df7126;
}

.animation_preview__image {
  max-width: 100%;
  max-height: 60vh;
  image-rendering: pixelated;
  border: 2px solid #df7126;
}

@keyframes camera_flash {
  0% {
    filter: brightness(2);
  }
  100% {
    filter: none;
  }
}

.camera_flash {
  animation: camera_flash 0.25s ease-out;
}

.history__buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

.controls__buttons .history__buttons button {
  width: 64px;
  padding: 0;
}

.history__buttons button img {
  image-rendering: pixelated;
  width: 100%;
}

.history__buttons .redo__button img {
  transform: scaleX(-1);
}

.clock__wrapper {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* Rotation clock: a big, visible ring so it's easy to grab anywhere */
.clock {
  width: 200px;
  height: 200px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 3px solid #df7126;
  background: rgba(240, 246, 130, 0.15);
  cursor: grab;
  touch-action: none;
}

.clock__arrow {
  margin: auto;
  width: 3px;
  height: 50%;
  transform: rotate(0deg);
  transform-origin: bottom;
  background-color: #df7126;
}

/* Dialogs grow with their text so long headings and errors stay inside the
   box on phones; on desktop they keep the original 30vw x 15vw size. */
.input_window__window,
.loading_window__window, .loadscene_window__window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: max(30vw, min(420px, 92vw));
  max-width: 92vw;
  min-height: 15vw;
  max-height: 90vh;
  overflow-y: auto;
  padding: 4px 12px 16px;
  background-color: #f0f682;
  border: 3px solid #df7126;
  z-index: 1000;
}

.input_window__content,
.loading_window__content, .loadscene_window__content {
  display: flex;
  flex: 1;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.input_window__close,
.loading_window__close, .loadscene_window__close {
  display: flex;
  justify-content: flex-end;
  background-color: transparent;
  width: 100%;
}

.input_window__heading,
.loading_window__heading {
  font-size: clamp(14px, 4.5vw, 1.5em);
  line-height: 1.3;
  overflow-wrap: break-word;
}

/* 16px stops iOS Safari zooming in when the field is focused */
.input_window__input {
  box-sizing: border-box;
  max-width: 100%;
  padding: 6px;
  font-size: 16px;
  border: 2px solid #df7126;
  background-color: #f0f682;
  color: #df7126;
}

.input_window__input:focus {
  outline: none;
}

.input_window__continue {
  padding: 5px;
  border: 2px solid #df7126;
  background-color: #f0f682;
  font-size: 14px;
}

.input_window__error, .loadscene_window__error {
  margin-bottom: 10px;
  color: #ff0000;
}

.input_window__heading,
.input_window__continue {
  margin: 10px 0;
  color: #df7126;
}

.loading_window__loader {
  color: #df7126;
}

.loading_window__message, .loadscene_window__message {
  color: #df7126;
}

.loading_window__loader ul {
  display: inline;
  list-style: none;
}

.loading_window__loader ul li {
  display: inline;
}

.loading_window__loader ul li:nth-child(1) {
  animation: first_dot ease 3s infinite;
}

.loading_window__loader ul li:nth-child(2) {
  animation: second_dot ease 3s infinite;
}

.loading_window__loader ul li:nth-child(3) {
  animation: third_dot ease 3s infinite;
}

/* Mint loader: a hammer drives three nails into a sign, two strikes each,
   then rests before the nails pop back up. One 4.2s cycle = seven 0.6s
   slots (six strikes, one rest); each strike lands 80% into its slot. */
.mint_sign {
  position: relative;
  width: 200px;
  height: 108px;
  margin: 0 auto 12px;
}

.mint_sign__plank {
  position: absolute;
  left: 15px;
  top: 64px;
  width: 170px;
  height: 36px;
  box-sizing: border-box;
  z-index: 1;
  border: 3px solid #6b3410;
  background: #a0522d;
  box-shadow: inset 0 4px 0 #b8693c, 0 4px 0 #8f3e0c;
  color: #f0f682;
  font-size: 14px;
  line-height: 30px;
  text-align: center;
  letter-spacing: 2px;
}

/* Shaft 2x8px with a 6x2px head, standing on the plank's top edge. The
   room above is for the raised hammer. */
.mint_sign__nail {
  position: absolute;
  top: 54px;
  width: 6px;
  height: 10px;
  background: linear-gradient(#5a5a6a 0 2px, transparent 2px),
    linear-gradient(#6a6a7a, #6a6a7a) 2px 2px / 2px 8px no-repeat;
  animation: 4.2s linear infinite;
}

.mint_sign__nail:nth-child(1) { left: 42px; animation-name: mint_nail_1; }
.mint_sign__nail:nth-child(2) { left: 92px; animation-name: mint_nail_2; }
.mint_sign__nail:nth-child(3) { left: 142px; animation-name: mint_nail_3; }

@keyframes mint_nail_1 {
  0%, 11.4% { transform: translateY(0); }
  11.43%, 25.7% { transform: translateY(4px); }
  25.71%, 99.9% { transform: translateY(8px); }
}

@keyframes mint_nail_2 {
  0%, 39.9% { transform: translateY(0); }
  40%, 54.2% { transform: translateY(4px); }
  54.29%, 99.9% { transform: translateY(8px); }
}

@keyframes mint_nail_3 {
  0%, 68.5% { transform: translateY(0); }
  68.57%, 82.8% { transform: translateY(4px); }
  82.86%, 99.9% { transform: translateY(8px); }
}

/* Moves the hammer from nail to nail between strikes. */
.mint_sign__track {
  position: absolute;
  left: 40px;
  top: 40px;
  z-index: 2;
  animation: mint_track 4.2s linear infinite;
}

@keyframes mint_track {
  0%, 28.5% { transform: translateX(0); }
  28.57%, 57.1% { transform: translateX(50px); }
  57.14%, 100% { transform: translateX(100px); }
}

/* Head on the left, handle to the right; swings around the handle's end. */
.mint_sign__hammer {
  width: 50px;
  height: 16px;
  background: linear-gradient(#7a7a8c, #4b4b5a) 0 0 / 10px 16px no-repeat,
    linear-gradient(#a8703c, #7a4a1e) 10px 5px / 40px 6px no-repeat;
  transform-origin: 48px 8px;
  animation: mint_swing 4.2s infinite;
}

@keyframes mint_swing {
  0% { transform: rotate(40deg); }
  8.57% { transform: rotate(60deg); animation-timing-function: ease-in; }
  11.43% { transform: rotate(0deg); }
  14.29% { transform: rotate(40deg); }
  22.86% { transform: rotate(60deg); animation-timing-function: ease-in; }
  25.71% { transform: rotate(0deg); }
  28.57% { transform: rotate(40deg); }
  37.14% { transform: rotate(60deg); animation-timing-function: ease-in; }
  40% { transform: rotate(0deg); }
  42.86% { transform: rotate(40deg); }
  51.43% { transform: rotate(60deg); animation-timing-function: ease-in; }
  54.29% { transform: rotate(0deg); }
  57.14% { transform: rotate(40deg); }
  65.71% { transform: rotate(60deg); animation-timing-function: ease-in; }
  68.57% { transform: rotate(0deg); }
  71.43% { transform: rotate(40deg); }
  80% { transform: rotate(60deg); animation-timing-function: ease-in; }
  82.86% { transform: rotate(0deg); }
  85.71%, 100% { transform: rotate(40deg); }
}

.loadscene_window__content img {
  padding-bottom: 10px;
}

.loadscene_window__message label {
  text-decoration: underline #df7126;
  cursor: pointer;
}

/* Paid mint pop-up: the price, then the wallet steps. */
.pay_window__text, .pay_window__note {
  margin: 4px 0;
  color: #1a1218;
  font-size: 13px;
}

.pay_window__note {
  font-size: 11px;
  color: #8a6a2a;
}

.pay_window__price {
  margin: 6px 0 4px;
  font-size: clamp(22px, 6vw, 30px);
  color: #df7126;
}

.pay_window__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.pay_window__buttons button {
  min-width: 120px;
  padding: 10px 14px;
  cursor: pointer;
}

.pay_window__pay {
  color: #f0f682 !important;
  background-color: #df7126 !important;
  border-color: #8f3e0c !important;
  box-shadow: 0 3px 0 #8f3e0c;
}

.pay_window__steps {
  list-style: none;
  margin: 8px 0;
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
  color: #b0a070;
}

.pay_window__steps li {
  position: relative;
  padding: 4px 0 4px 26px;
}

.pay_window__steps li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
}

.pay_window__steps li.active {
  color: #df7126;
}

.pay_window__steps li.active::before {
  background-color: #df7126;
  animation: pay_blink 1s steps(2) infinite;
}

.pay_window__steps li.done {
  color: #1e8449;
}

.pay_window__steps li.done::before {
  background-color: #1e8449;
}

.pay_window__clock {
  color: #8a6a2a;
}

@keyframes pay_blink {
  50% { opacity: 0.3; }
}

.asset__link {
  padding: 15px;
  background-color: #f0f682;
  color: #df7126;
  border: 2px solid #df7126;
}

.asset__link:hover {
  border: 2px solid transparent;
}

.asset__note {
  max-width: 260px;
  margin: 12px auto 0;
}

.trackpad__wrapper {
  position: fixed;
  bottom: 0;
  display: none;
  flex-direction: column;
  z-index: 2;
  width: 100%;
  touch-action: none;
}

.trackpad {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  background-color: #f0f682;
  border: 3px solid #df7126;
  box-sizing: border-box;
}

.trackpad__hint {
  padding: 0 12px;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
  color: #df7126;
  opacity: 0.7;
  pointer-events: none;
  user-select: none;
}

/* POINTER/MOVE and SELECT, above the drag area */
.trackpad__buttons {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  padding: 6px;
  background-color: #f0f682;
  border: 3px solid #df7126;
  border-bottom: none;
}

.trackpad__buttons button {
  background-color: #f0f682;
  border: 2px solid #df7126;
  padding: 6px 8px;
  font-size: 11px;
  color: #df7126;
}

.trackpad__modes {
  display: flex;
}

.trackpad__buttons button.active,
.trackpad__buttons .trackpad__select {
  background-color: #df7126;
  color: #f0f682;
}

.trackpad__buttons .trackpad__select {
  flex: 1;
}

@keyframes nudge {
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.trackpad__select.nudge {
  animation: nudge 0.2s 2;
}

/* Dashed box around the selected item; not part of the canvas, so it's
   never minted */
.selection__outline {
  display: none;
  position: absolute;
  box-sizing: border-box;
  border: 2px dashed #df7126;
  pointer-events: none;
  z-index: 1;
}

/* Phone pointer: a crosshair centred on its position */
.builder__pointer {
  display: none;
  position: absolute;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(#df7126, #df7126) center / 2px 100% no-repeat,
    linear-gradient(#df7126, #df7126) center / 100% 2px no-repeat;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff);
}

.open_trackpad__wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.open_trackpad {
  display: block;
  width: 64px;
  height: 32px;
  border: 2px solid #df7126;
  border-bottom: none;
}

/* Sits beside the arrow so the two read as one "TRACKPAD ^" tab */
.open_trackpad__label {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: 32px;
  padding: 0 4px 0 10px;
  font-size: 10px;
  color: #df7126;
  background-color: #f0f682;
  border: 2px solid #df7126;
  border-right: none;
  border-bottom: none;
  user-select: none;
}

.open_trackpad img {
  width: 100%;
  height: 100%;
}

@media (max-width: 1200px) {
  .controls__buttons button {
    padding: 5px 8px;
    font-size: 11px;
  }

  .controls__buttons .mint__button {
    padding: 10px 8px;
    font-size: 20px;
  }
}

@media (max-width: 800px) {
  /* Phones: full width and pinned to the top, leaving the space below the
     buttons for the trackpad. The bottom padding is the trackpad's height,
     set by TrackPad, so the page can always scroll clear of it. */
  .main__wrapper {
    --builder-width: 95vw;
    justify-content: flex-start;
    min-height: 0;
    /* Space above the room so items near the top are easy to grab */
    padding-top: 48px;
    padding-bottom: var(--trackpad-height, 60px);
  }

  .controls__buttons button {
    font-size: 11px;
  }

  /* Phones: tools on top, then a full-width MINT */
  .controls__buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .right_side__buttons {
    width: 100%;
    margin-right: 0;
  }

  .controls__buttons .history__buttons button {
    width: 56px;
  }

  .items__list_buttons {
    height: 15px;
  }

  .items__list_prev, .items__list_next {
    width: 15px;
  }

  .items__list_next {
    margin-left: 10px;
  }

  .trackpad__wrapper {
    display: flex;
  }
}
.pay_window__note a {
  color: #df7126;
}

/* First-time tips. pointer-events is off so they never block a touch. */
.tip__drag {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.tip__label {
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  color: #1a1218;
  background-color: #f0f682;
  border: 3px solid #df7126;
  box-shadow: 3px 3px 0 #1a1218;
}

.tip__drag .tip__label {
  position: absolute;
  top: 8%;
  left: var(--room-x);
  width: max-content;
  max-width: 50%;
  box-sizing: border-box;
  transform: translateX(-50%);
}

/* (left, top) is where the fingertip touches */
.tip__hand {
  position: absolute;
  left: var(--from-x);
  top: var(--from-y);
  animation: tip-drag 3s infinite;
}

.tip__finger {
  position: absolute;
  left: -15px;
  top: 0;
  width: 40px;
  height: auto;
}

.tip__ghost {
  position: absolute;
  left: -28px;
  top: -28px;
  width: 56px;
  height: 56px;
  object-fit: contain;
  image-rendering: pixelated;
  animation: tip-ghost 3s infinite steps(1);
}

@keyframes tip-drag {
  0% { left: var(--from-x); top: var(--from-y); opacity: 0; }
  10%, 22% { left: var(--from-x); top: var(--from-y); opacity: 1; }
  72%, 90% { left: var(--room-x); top: 58%; opacity: 1; }
  100% { left: var(--room-x); top: 58%; opacity: 0; }
}

/* The item stays in the menu until the finger has picked it up */
@keyframes tip-ghost {
  0% { opacity: 0; }
  22% { opacity: 1; }
  90% { opacity: 0; }
}

.tip__trackpad {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  animation: tip-bounce 0.8s infinite steps(2);
}

.tip__arrow {
  width: 33px;
  height: auto;
}

@keyframes tip-bounce {
  50% { transform: translateY(6px); }
}

@media (max-width: 800px) {
  .tip__label {
    padding: 4px 6px;
    font-size: 10px;
  }

  .tip__finger {
    left: -11px;
    width: 30px;
  }

  .tip__ghost {
    left: -20px;
    top: -20px;
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tip__hand, .tip__ghost, .tip__trackpad {
    animation: none;
  }
}

/* SAVE pop-up: name, artist and email, then the share link. */
.save_window__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.save_window__field {
  width: 100%;
  margin: 4px 0;
}

.save_window__links a {
  color: #df7126;
}

/* Shown over a build opened from a share link: steal it, or it's taken. */
.steal__banner {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  width: max-content;
  max-width: min(92vw, 640px);
  padding: 6px 10px;
  background-color: #f0f682;
  border: 2px solid #df7126;
  color: #1a1218;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  z-index: 900;
  pointer-events: none;
}

/* The Bottle level: the label wrapped round the bottle, beside the label. */
.canvas__wrapper canvas.bottle__preview {
  border: none;
  position: absolute;
  pointer-events: none;
  image-rendering: pixelated;
  z-index: 5;
}

/* TEXT pop-up (Bottle level): the words, a preview at label size, colour and size. */
.text_window__input {
  text-transform: uppercase;
}

.text_window__preview {
  height: auto;
  min-height: 4px;
  margin: 8px 0;
  image-rendering: pixelated;
}

.text_window__row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 4px 0;
}

.text_window__swatch {
  width: 28px;
  height: 28px;
  border: 2px solid #df7126;
}

.text_window__size {
  padding: 4px 8px;
  border: 2px solid #df7126;
  background-color: #f0f682;
  color: #df7126;
  font-size: 12px;
}

.text_window__swatch.selected,
.text_window__size.selected {
  outline: 3px solid #1a1218;
  outline-offset: 1px;
}

.input_window__continue:disabled {
  opacity: 0.5;
}

/* COLOUR pop-up (Bottle level): a row of swatches each for the glass and the label. */
.colour_window__name {
  margin: 10px 0 2px;
  text-align: center;
}
