/* A hands-on, live gift studio. Product and edible sprites have transparent backgrounds. */
.builder-promise {
  font-size: 13px;
  color: #8f7756;
  margin-top: 20px;
  line-height: 1.7;
}
.gifting-image .build-image-action {
  top: 24px;
  bottom: auto;
  left: 24px;
  right: auto;
  font: 12px/1.5 var(--sans);
  padding: 11px 15px;
  background: #f7eddae8;
  color: #46331f;
  gap: 18px;
  backdrop-filter: blur(8px);
}
.build-image-action > span {
  font-size: 21px;
}
.builder-dialog {
  width: 1260px;
  max-width: calc(100vw - 38px);
  height: min(920px, 94dvh);
  max-height: 94dvh;
  overflow: hidden;
  background: #f8f3e9;
  padding: 0;
  border: 0;
}
.builder-shell {
  height: 100%;
  display: grid;
  grid-template-columns: 48% 52%;
  min-height: 0;
}
.builder-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 15;
  display: grid;
  place-items: center;
  border: 1px solid #b49c7555;
  border-radius: 50%;
  background: #f8f2e8e8;
  width: 35px;
  height: 35px;
  transition: transform 0.35s;
}
.builder-close:hover {
  transform: rotate(90deg);
}
.builder-close .icon {
  width: 17px;
  height: 17px;
}
.builder-preview {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 45% 45%, #f3e9d8 0%, #e3d4bd 80%);
  padding: 35px 30px;
  color: #57452d;
  border-right: 1px solid #dacbb4;
}
.builder-brand {
  position: absolute;
  top: 30px;
  left: 32px;
  right: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.builder-brand .wordmark > span {
  font-size: 34px;
  letter-spacing: 0.12em;
}
.builder-brand > span:last-child {
  font-size: 8px;
  letter-spacing: 0.18em;
  color: #917552;
}
.box-scene {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1.02;
  display: grid;
  place-items: center;
  margin-top: 37px;
}
.gift-box {
  --box-tone: #842322;
  --box-light: #a14337;
  --box-dark: #541816;
  --box-paper: #e9d8b9;
  --ribbon-color: #c9ac77;
  --ribbon-light: #ead8ae;
  --ribbon-dark: #947344;
  position: relative;
  isolation: isolate;
  width: 87%;
  aspect-ratio: 1.06;
  padding: 16px;
  background: var(--box-tone);
  border: 8px solid #b79658;
  box-shadow:
    0 2px 1px #e1c27c inset,
    0 -4px 1px #65431e inset,
    0 15px 0 var(--box-dark),
    4px 17px 3px #38271966,
    10px 29px 28px #6d533d4a;
  transform: perspective(1000px) rotateX(13deg) rotateZ(-7deg);
  transition:
    background 0.5s,
    border-color 0.5s,
    box-shadow 0.5s;
  transform-style: preserve-3d;
}
.gift-box.woven {
  background:
    repeating-linear-gradient(90deg, transparent 0 11px, #d4b16b66 11px 14px),
    repeating-linear-gradient(
      0deg,
      var(--box-tone) 0 8px,
      var(--box-light) 8px 10px,
      var(--box-dark) 10px 13px
    );
  border-image: repeating-linear-gradient(
      40deg,
      #d1ae68 0px,
      #f1d99d 3px,
      #a77d32 6px,
      #ceac68 9px
    )
    9;
}
.gift-box.kraft {
  border-color: var(--box-tone);
  border-image: none;
  background: linear-gradient(135deg, #bc9064, #d8b58b);
  box-shadow:
    0 2px 1px #e8c8a4 inset,
    0 -4px 1px #a27b51 inset,
    0 15px 0 #a47e57,
    4px 17px 3px #38271966,
    10px 29px 28px #6d533d4a;
}
.box-interior {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background-color: var(--box-paper);
  background-image:
    repeating-linear-gradient(
      32deg,
      transparent 0 8px,
      #fff5df66 9px 12px,
      transparent 13px 22px
    ),
    repeating-linear-gradient(
      -54deg,
      transparent 0 12px,
      #b7a07840 13px 16px,
      transparent 17px 29px
    );
  box-shadow: inset 4px 7px 17px #65491d40;
  overflow: hidden;
}
.box-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 20px;
  color: #9a815d;
}
.box-empty > span {
  font: italic 29px/1.15 var(--serif);
}
.box-empty > p {
  font-size: 11px;
  line-height: 1.9;
  margin-top: 12px;
}
.box-items {
  position: absolute;
  inset: 7px;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.box-items[data-count="1"] {
  grid-template-columns: 1fr;
}
.box-items[data-count="1"] > .box-item {
  width: 87%;
  max-width: 240px;
}
.box-items[data-count="3"] > .box-item:last-child {
  grid-column: span 2;
  width: 53%;
}
.box-items[data-count="5"],
.box-items[data-count="6"],
.box-items.many-pieces {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.box-item {
  position: relative;
  width: var(--piece-size, 49%);
  aspect-ratio: 1;
  max-width: 170px;
  transform: rotate(var(--piece-angle, -3deg));
  animation: place-piece 0.68s var(--ease) both;
  filter: drop-shadow(2px 5px 2px #5438172b);
}
.box-items.many-pieces .box-item {
  max-height: none;
  aspect-ratio: 1;
}
.ingredient-sprite {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background-size: 300% 200%;
  background-repeat: no-repeat;
}
.sprite-products {
  background-image: url("./assets/gift-products-sprite-v1.png");
}
.sprite-edibles {
  background-image: url("./assets/gift-edibles-sprite-v1.png");
}
.box-item > .ingredient-sprite {
  height: 100%;
  width: 100%;
  transform: scale(1.23);
}
.piece-count {
  position: absolute;
  bottom: 9%;
  right: 4%;
  padding: 2px 6px;
  background: #fff7e8e8;
  border: 1px solid #c4ad8966;
  color: #674d28;
  font: 10px var(--sans);
  border-radius: 2px;
}
.custom-parcel {
  position: absolute;
  inset: 21% 16%;
  background: linear-gradient(135deg, #f7edda, #dcc9a8);
  border: 1px solid #b89a6b;
  box-shadow: 2px 3px 4px #5a391526;
  display: grid;
  place-items: center;
  font: italic 15px var(--serif);
  color: #86683e;
}
.custom-parcel:before {
  content: "";
  position: absolute;
  left: calc(50% - 3px);
  width: 6px;
  top: 0;
  bottom: 0;
  background: #ae906451;
  z-index: -1;
}
.gift-lid {
  position: absolute;
  inset: -8px;
  background:
    repeating-linear-gradient(90deg, transparent 0 10px, #d4b16b66 11px 14px),
    repeating-linear-gradient(
      0deg,
      var(--box-tone) 0 7px,
      var(--box-light) 8px 10px,
      var(--box-dark) 10px 13px
    );
  border: 9px solid #cfad6c;
  box-shadow: inset 0 0 0 2px #aa853d;
  opacity: 0;
  transform: translateY(-70px) rotate(-8deg) scale(1.03);
  z-index: 4;
  pointer-events: none;
  visibility: hidden;
}
.kraft .gift-lid {
  background: linear-gradient(135deg, var(--box-light), var(--box-tone));
  border-color: var(--box-dark);
  box-shadow: inset 0 0 0 1px #aa8055;
}
.lid-mark {
  position: absolute;
  bottom: 16%;
  left: 11%;
  background: linear-gradient(145deg, #d0ab5c, #f1d395, #b48943);
  padding: 9px 13px 7px;
  font: 23px/0.9 var(--serif);
  letter-spacing: 0.08em;
  color: #6f5221;
  box-shadow: 0 2px 2px #51311429;
}
.lid-mark small {
  font: 5px/1.5 var(--sans);
  display: block;
  letter-spacing: 0.05em;
  margin-top: 5px;
}
.box-ribbon {
  position: absolute;
  z-index: 5;
  background: linear-gradient(
    90deg,
    var(--ribbon-dark),
    var(--ribbon-light) 17%,
    var(--ribbon-color) 32%,
    var(--ribbon-light) 82%,
    var(--ribbon-dark)
  );
  box-shadow: 1px 2px 3px #2919093d;
  pointer-events: none;
  opacity: 0;
}
.ribbon-vertical {
  top: -8px;
  bottom: -8px;
  left: 48%;
  width: 33px;
  transform: scaleY(0);
  transform-origin: top;
}
.ribbon-horizontal {
  left: -8px;
  right: -8px;
  top: 44%;
  height: 31px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(
    0deg,
    var(--ribbon-dark),
    var(--ribbon-light) 17%,
    var(--ribbon-color) 32%,
    var(--ribbon-light) 82%,
    var(--ribbon-dark)
  );
}
.ribbon-bow {
  position: absolute;
  width: 56%;
  left: 27%;
  top: 23%;
  z-index: 6;
  overflow: visible;
  filter: drop-shadow(2px 5px 2px #40270d48);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.4) rotate(-10deg);
}
.is-wrapped .gift-lid {
  visibility: visible;
  animation: close-gift 0.65s var(--ease) both;
}
.is-wrapped .ribbon-vertical {
  animation: tie-vertical 0.7s var(--ease) 0.35s both;
}
.is-wrapped .ribbon-horizontal {
  animation: tie-horizontal 0.7s var(--ease) 0.6s both;
}
.is-wrapped .ribbon-bow {
  animation: tie-bow 0.85s var(--ease) 0.95s both;
}
.gift-note-preview {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 140px;
  min-height: 87px;
  background: linear-gradient(130deg, #fffaf0, #ede3cf);
  color: #695234;
  box-shadow: 3px 7px 14px #50371629;
  transform: rotate(6deg);
  padding: 15px 14px;
  border: 1px solid #cbbb9e66;
  z-index: 8;
  animation: place-piece 0.7s var(--ease) both;
}
.gift-note-to,
.gift-note-from {
  display: block;
  font: 8px/1.6 var(--sans);
  overflow-wrap: anywhere;
}
.gift-note-preview > p {
  font: italic 13px/1.3 var(--serif);
  margin: 8px 0;
  overflow-wrap: anywhere;
  max-height: 92px;
  overflow: auto;
}
.gift-note-from {
  text-align: right;
}
.preview-caption {
  text-align: center;
  margin-top: 22px;
  line-height: 1.6;
}
.preview-caption > p {
  font: italic 30px/1.2 var(--serif);
  color: #6b5233;
  max-width: 450px;
  overflow-wrap: anywhere;
}
.preview-caption > span {
  display: block;
  font-size: 11px;
  color: #987953;
  margin-top: 10px;
}
.preview-footnote {
  text-align: center;
  font-size: 10px;
  line-height: 1.8;
  color: #9e8461;
  margin-top: 20px;
}
.builder-workspace {
  min-height: 0;
  padding: 40px 42px 25px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.builder-workspace > .eyebrow {
  font-size: 9px;
  color: #94764f;
  letter-spacing: 0.1em;
  margin-right: 12px;
}
.builder-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  color: #967e5a;
  margin-top: 17px;
}
.builder-progress > div {
  height: 1px;
  flex: 1;
  background: #ddcdb5;
}
.builder-progress > div > span {
  display: block;
  height: 1px;
  background: #927046;
  width: 16.67%;
  transition: width 0.5s var(--ease);
}
.builder-step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #d8c9b1;
  margin: 15px 0 24px;
  padding: 0 0 13px;
}
.builder-step-nav > button {
  font-size: 11px;
  color: #9b8566;
  position: relative;
  line-height: 1.7;
  padding: 3px 0;
}
.builder-step-nav > button[aria-current="step"] {
  color: #4c3723;
}
.builder-step-nav > button[aria-current="step"]:after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 0;
  right: 0;
  height: 2px;
  background: #957349;
}
.builder-step-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 1px 10px 12px 1px;
  scrollbar-width: thin;
  scrollbar-color: #cab795 transparent;
  overscroll-behavior: contain;
}
.builder-step-content h2 {
  font: 48px/1 var(--serif);
  letter-spacing: -0.04em;
  outline: none;
}
.builder-step-description {
  font-size: 14px;
  color: #8a755a;
  line-height: 1.7;
  margin-top: 13px;
  max-width: 440px;
}
.builder-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-top: 24px;
}
.ingredient-option {
  position: relative;
  border: 1px solid #d8c9af;
  background: #fbf7ee;
  min-width: 0;
  transition:
    border-color 0.3s,
    background 0.3s;
}
.ingredient-option.is-chosen {
  border-color: #9d7a44;
  background: #eee2cc55;
}
.ingredient-choice {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 12px 12px 15px;
  min-height: 184px;
}
.ingredient-choice > .ingredient-sprite {
  width: 100%;
  max-width: 155px;
  height: auto;
  aspect-ratio: 1;
  margin: -4px 0 -6px;
  transition: transform 0.5s var(--ease);
}
.ingredient-choice:hover > .ingredient-sprite {
  transform: translateY(-4px) rotate(-3deg);
}
.ingredient-name {
  font: 22px/1.05 var(--serif);
  color: #59412b;
  text-align: center;
}
.ingredient-choice > small {
  font-size: 9px;
  line-height: 1.6;
  color: #9c825f;
  text-align: center;
  margin-top: 6px;
  max-width: 160px;
}
.ingredient-tick {
  position: absolute;
  right: 9px;
  top: 8px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 1px solid #c8b392;
  border-radius: 50%;
  font-size: 13px;
  color: #8a6a3a;
}
.is-chosen .ingredient-tick {
  background: #907043;
  color: #fff5df;
  border-color: #907043;
}
.ingredient-quantity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-top: 1px solid #d4c1a2;
  margin: 0 13px;
  padding: 4px 0;
  color: #785a32;
}
.ingredient-quantity > button {
  width: 30px;
  height: 31px;
  font-size: 17px;
  line-height: 1;
}
.ingredient-quantity > span {
  font-size: 12px;
}
.edibles-options {
  gap: 11px;
}
.edibles-options .ingredient-choice {
  min-height: 177px;
  padding-inline: 8px;
}
.edibles-options .ingredient-choice > .ingredient-sprite {
  max-width: 130px;
}
.edibles-options .ingredient-name {
  font-size: 21px;
}
.custom-option-symbol {
  font: 72px/1 var(--serif);
  color: #b59a73;
  margin: 22px 0 24px;
  display: block;
}
.builder-small-print {
  font-size: 11px;
  line-height: 1.8;
  color: #9b8260;
  margin-top: 18px;
}
.tray-options {
  padding: 0;
  margin: 25px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  border: 0;
}
.builder-step-content .field-label {
  font-size: 13px;
  margin: 0 0 12px;
  line-height: 1.6;
  font-weight: 400;
  color: #6e5436;
}
.tray-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #d8c7ac;
  padding: 20px 14px 16px;
  min-width: 0;
  gap: 14px;
  background: #faf6ed;
}
.tray-choice[aria-pressed="true"] {
  background: #e8dbc255;
  border-color: #967142;
}
.tray-choice > span:not(.tray-mini) {
  font: 22px/1.1 var(--serif);
  color: #634930;
}
.tray-choice > small {
  font-size: 10px;
  line-height: 1.7;
  color: #9b825e;
  margin-top: -5px;
}
.tray-mini {
  display: block;
  width: 90px;
  height: 75px;
  transform: perspective(180px) rotateX(15deg) rotate(-7deg);
  border: 6px solid #c49e5d;
  background: #e8d7b7;
  box-shadow:
    0 6px 0 #693524,
    5px 8px 6px #6c482129;
  margin: 10px 0;
}
.woven-mini {
  border-image: repeating-linear-gradient(
      40deg,
      #c89f50 0px,
      #f6dea6 3px,
      #967023 5px,
      #d4af63 8px
    )
    7;
  background:
    repeating-linear-gradient(90deg, transparent 0 9px, #d7b06855 9px 13px),
    repeating-linear-gradient(
      0deg,
      #842d25 0 7px,
      #b5593f 8px 10px,
      #642220 10px 13px
    );
}
.kraft-mini {
  border-color: #ba9269;
  box-shadow:
    0 6px 0 #a58259,
    5px 8px 6px #6c482129;
  background: #e7d9bd;
}
.theme-options,
.ribbon-options {
  border: 0;
  padding: 0;
  margin: 27px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.theme-options > .field-label,
.ribbon-options > .field-label {
  width: 100%;
}
.theme-options > button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 64px;
  font-size: 9px;
  line-height: 1.7;
  color: #967d59;
}
.theme-options > button > i {
  display: block;
  border-radius: 50%;
  height: 32px;
  width: 32px;
  box-shadow:
    0 0 0 4px #f8f3e9,
    0 0 0 5px transparent;
  transition: box-shadow 0.3s;
}
.theme-options > button[aria-pressed="true"] {
  color: #4f3620;
}
.theme-options > button[aria-pressed="true"] > i {
  box-shadow:
    0 0 0 4px #f8f3e9,
    0 0 0 5px #a48250;
}
.ribbon-options {
  gap: 18px;
  margin-bottom: 25px;
}
.ribbon-options > button {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #8c7350;
  min-height: 38px;
}
.ribbon-options > button > i {
  display: block;
  width: 21px;
  height: 32px;
  box-shadow:
    0 0 0 3px #f8f3e9,
    0 0 0 4px transparent;
  transform: rotate(-10deg);
}
.ribbon-options > button[aria-pressed="true"] {
  color: #422b19;
}
.ribbon-options > button[aria-pressed="true"] > i {
  box-shadow:
    0 0 0 3px #f8f3e9,
    0 0 0 4px #9c7947;
}
.note-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 24px;
}
.builder-step-content input,
.builder-step-content textarea {
  border: 1px solid #d7c5a8;
  padding: 12px 14px;
  width: 100%;
  font-size: 16px;
  line-height: 1.7;
  background: #fffbf3;
  border-radius: 0;
  min-width: 0;
}
.builder-step-content input::placeholder,
.builder-step-content textarea::placeholder {
  color: #ae9877;
  font-size: 14px;
}
.builder-step-content textarea {
  resize: vertical;
  min-height: 122px;
}
.note-fields ~ .field-label,
#custom-edible-field .field-label {
  margin-top: 24px;
}
.builder-step-content .field-label > span {
  font-size: 11px;
  margin-left: 6px;
  color: #a18a68;
}
.note-count {
  display: block;
  text-align: right;
  font-size: 10px;
  color: #a18a68;
  margin-top: 5px;
}
.builder-step-content #builder-box-quantity {
  max-width: 120px;
}
.builder-review {
  border-block: 1px solid #d9c7ab;
  margin-top: 15px;
}
.builder-review summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
  line-height: 1.7;
  padding: 15px 0;
  color: #745436;
}
.builder-review summary::-webkit-details-marker {
  display: none;
}
.builder-review summary > span {
  font: 24px var(--serif);
  transition: transform 0.3s;
}
.builder-review[open] summary > span {
  transform: rotate(45deg);
}
#builder-summary {
  margin: 0 0 18px;
  font-size: 12px;
  line-height: 1.75;
}
#builder-summary > div {
  display: grid;
  grid-template-columns: 75px 1fr;
  gap: 17px;
  margin-top: 10px;
}
#builder-summary dt {
  color: #a0855d;
}
#builder-summary dd {
  margin: 0;
  color: #71583a;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.builder-price {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}
.builder-price > span {
  font: 33px var(--serif);
  color: #70502d;
}
.builder-price > p {
  font-size: 11px;
  line-height: 1.8;
  color: #9b805a;
}
.builder-status {
  font-size: 11px;
  line-height: 1.7;
  color: #9c6d35;
  margin-top: 10px;
  min-height: 19px;
}
.builder-status:empty {
  min-height: 0;
  margin-top: 0;
}
.builder-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 23px;
  padding-top: 16px;
  margin-top: 2px;
  border-top: 1px solid #dbc9ac;
}
.builder-actions > .text-link {
  font-size: 13px;
  margin-right: auto;
}
.builder-actions > .button {
  font-size: 13px;
  min-height: 51px;
  padding: 14px 19px;
  gap: 17px;
}
.builder-order-note {
  font-size: 10px;
  line-height: 1.7;
  color: #a28a66;
  margin-top: 12px;
  text-align: right;
}
@keyframes place-piece {
  from {
    opacity: 0;
    transform: translate(50px, -75px) rotate(12deg) scale(0.85);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) rotate(var(--piece-angle, -3deg)) scale(1);
  }
}
@keyframes close-gift {
  from {
    opacity: 0;
    transform: translateY(-70px) rotate(-8deg) scale(1.03);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
}
@keyframes tie-vertical {
  from {
    opacity: 0;
    transform: scaleY(0);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}
@keyframes tie-horizontal {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}
@keyframes tie-bow {
  from {
    opacity: 0;
    transform: scale(0.4) rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(-7deg);
  }
}
@media (max-width: 1100px) {
  .builder-shell {
    grid-template-columns: 46% 54%;
  }
  .builder-workspace {
    padding: 36px 30px 23px;
  }
  .builder-preview {
    padding-inline: 20px;
  }
  .builder-step-content h2 {
    font-size: 44px;
  }
  .builder-preview .gift-box {
    padding: 13px;
    border-width: 7px;
  }
  .box-scene {
    max-width: 410px;
  }
  .gift-note-preview {
    width: 121px;
    padding: 12px;
  }
  .preview-caption > p {
    font-size: 28px;
  }
  .ribbon-options {
    gap: 14px;
  }
  .ribbon-options > button {
    font-size: 10px;
    gap: 8px;
  }
}
@media (max-width: 760px) {
  .builder-dialog {
    width: 540px;
    max-width: calc(100vw - 18px);
    height: calc(100dvh - 18px);
    max-height: calc(100dvh - 18px);
  }
  .builder-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }
  .builder-close {
    top: 12px;
    right: 12px;
    width: 31px;
    height: 31px;
    background: #f5eddfd9;
  }
  .builder-close .icon {
    width: 15px;
    height: 15px;
  }
  .builder-preview {
    padding: 10px 18px;
    height: 255px;
    flex: 0 0 255px;
    border: 0;
    border-bottom: 1px solid #d7c3a4;
    display: block;
    overflow: hidden;
  }
  .builder-brand {
    left: 19px;
    right: auto;
    top: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  .builder-brand .wordmark > span {
    font-size: 25px;
  }
  .builder-brand > span:last-child {
    font-size: 6px;
    letter-spacing: 0.1em;
    max-width: 45px;
    line-height: 1.8;
  }
  .box-scene {
    width: 213px;
    max-width: none;
    height: 204px;
    margin: 0 auto;
    aspect-ratio: auto;
  }
  .gift-box {
    width: 82%;
    padding: 8px;
    border-width: 5px;
  }
  .gift-box.woven {
    border-image-width: 5px;
  }
  .gift-box.kraft {
    box-shadow:
      0 2px 1px #e8c8a4 inset,
      0 -3px 1px #a27b51 inset,
      0 8px 0 #a47e57,
      2px 10px 3px #38271944,
      5px 16px 18px #6d533d3b;
  }
  .gift-box.woven {
    box-shadow:
      0 2px 1px #e1c27c inset,
      0 -3px 1px #65431e inset,
      0 8px 0 var(--box-dark),
      2px 10px 3px #38271944,
      5px 16px 18px #6d533d3b;
  }
  .box-interior {
    box-shadow: inset 2px 4px 9px #65491d40;
    background-size: 80% 80%;
  }
  .box-items {
    inset: 3px;
  }
  .box-empty > span {
    font-size: 16px;
  }
  .box-empty > p {
    font-size: 7px;
    line-height: 1.8;
    margin-top: 7px;
  }
  .box-item > .ingredient-sprite {
    transform: scale(1.3);
  }
  .piece-count {
    font-size: 7px;
    padding: 0 3px;
    bottom: 5%;
    right: 0;
  }
  .custom-parcel {
    font-size: 10px;
  }
  .gift-lid {
    inset: -5px;
    border-width: 5px;
  }
  .lid-mark {
    font-size: 13px;
    padding: 6px 7px 5px;
  }
  .lid-mark small {
    font-size: 3px;
    margin-top: 3px;
  }
  .ribbon-vertical {
    top: -5px;
    bottom: -5px;
    width: 18px;
  }
  .ribbon-horizontal {
    left: -5px;
    right: -5px;
    height: 17px;
  }
  .gift-note-preview {
    width: 80px;
    min-height: 50px;
    padding: 8px 7px;
    right: -22px;
    bottom: 2px;
  }
  .gift-note-to,
  .gift-note-from {
    font-size: 5px;
    line-height: 1.5;
  }
  .gift-note-preview > p {
    font-size: 8px;
    line-height: 1.25;
    margin: 5px 0;
    max-height: 49px;
  }
  .preview-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 14px;
    margin: 0;
  }
  .preview-caption > p {
    font-size: 22px;
    line-height: 1.1;
    max-width: none;
  }
  .preview-caption > span {
    font-size: 8px;
    margin-top: 5px;
  }
  .preview-footnote {
    display: none;
  }
  .builder-workspace {
    flex: 1;
    min-height: 0;
    padding: 18px 21px 14px;
    overflow: hidden;
  }
  .builder-workspace > .eyebrow {
    font-size: 7px;
    letter-spacing: 0.05em;
    line-height: 1.7;
  }
  .builder-progress {
    font-size: 8px;
    gap: 12px;
    margin-top: 8px;
  }
  .builder-step-nav {
    margin: 8px 0 15px;
    padding-bottom: 8px;
    gap: 8px;
  }
  .builder-step-nav > button {
    font-size: 10px;
    line-height: 1.5;
    padding: 3px 0;
  }
  .builder-step-nav > button[aria-current="step"]:after {
    bottom: -9px;
  }
  .builder-step-content {
    padding-right: 5px;
    padding-bottom: 12px;
  }
  .builder-step-content h2 {
    font-size: 35px;
    line-height: 1;
  }
  .builder-step-description {
    font-size: 13px;
    line-height: 1.7;
    margin-top: 10px;
  }
  .builder-options {
    margin-top: 19px;
    gap: 10px;
  }
  .ingredient-choice {
    padding: 10px 10px 12px;
    min-height: 164px;
  }
  .ingredient-choice > .ingredient-sprite {
    max-width: 133px;
    margin: -8px 0 -5px;
  }
  .ingredient-name {
    font-size: 21px;
    line-height: 1.05;
  }
  .ingredient-choice > small {
    font-size: 8px;
    line-height: 1.6;
    max-width: 130px;
  }
  .ingredient-tick {
    width: 17px;
    height: 17px;
    right: 7px;
    top: 7px;
    font-size: 12px;
  }
  .ingredient-quantity {
    margin-inline: 10px;
    gap: 15px;
    padding-block: 1px;
  }
  .ingredient-quantity > span {
    font-size: 11px;
  }
  .ingredient-quantity > button {
    height: 30px;
    font-size: 17px;
  }
  .edibles-options .ingredient-choice {
    min-height: 158px;
    padding-inline: 8px;
  }
  .edibles-options .ingredient-choice > .ingredient-sprite {
    max-width: 114px;
  }
  .edibles-options .ingredient-name {
    font-size: 20px;
  }
  .custom-option-symbol {
    font-size: 61px;
    margin: 20px 0;
  }
  .tray-options {
    margin-top: 20px;
    gap: 10px;
  }
  .builder-step-content .field-label {
    font-size: 12px;
    margin-bottom: 11px;
  }
  .tray-choice {
    padding: 13px 9px 13px;
    gap: 12px;
  }
  .tray-choice > span:not(.tray-mini) {
    font-size: 21px;
  }
  .tray-choice > small {
    font-size: 8px;
    line-height: 1.7;
  }
  .tray-mini {
    width: 74px;
    height: 59px;
    margin: 10px 0;
    border-width: 5px;
  }
  .theme-options {
    margin-top: 23px;
    gap: 8px;
  }
  .theme-options > button {
    font-size: 8px;
    gap: 8px;
    min-width: 54px;
  }
  .theme-options > button > i {
    width: 27px;
    height: 27px;
  }
  .builder-small-print {
    font-size: 10px;
    margin-top: 15px;
  }
  .ribbon-options {
    margin-top: 20px;
    gap: 13px;
  }
  .ribbon-options > button {
    font-size: 9px;
    gap: 8px;
    min-height: 34px;
  }
  .ribbon-options > button > i {
    width: 16px;
    height: 25px;
  }
  .builder-review summary {
    font-size: 13px;
    padding: 12px 0;
  }
  .builder-review summary > span {
    font-size: 21px;
  }
  #builder-summary {
    font-size: 11px;
    margin-bottom: 15px;
  }
  #builder-summary > div {
    grid-template-columns: 62px 1fr;
    gap: 12px;
    margin-top: 9px;
  }
  .builder-price {
    margin-top: 17px;
    gap: 15px;
  }
  .builder-price > span {
    font-size: 30px;
  }
  .builder-price > p {
    font-size: 10px;
  }
  .builder-actions {
    gap: 15px;
    padding-top: 12px;
    margin: 0;
    flex-wrap: wrap;
  }
  .builder-actions > .button {
    font-size: 12px;
    gap: 13px;
    min-height: 45px;
    padding: 12px 15px;
  }
  .builder-actions > .text-link {
    font-size: 12px;
    padding: 8px 0;
  }
  .builder-status {
    font-size: 10px;
    line-height: 1.6;
    margin-top: 7px;
    min-height: 16px;
  }
  .builder-order-note {
    font-size: 8px;
    line-height: 1.7;
    margin-top: 7px;
  }
  .note-fields {
    gap: 11px;
    margin-top: 20px;
  }
  .builder-step-content input,
  .builder-step-content textarea {
    padding: 10px 12px;
    font-size: 16px;
  }
  .builder-step-content input::placeholder,
  .builder-step-content textarea::placeholder {
    font-size: 13px;
  }
  .builder-step-content textarea {
    min-height: 105px;
  }
  .builder-step-content .field-label > span {
    font-size: 10px;
  }
  .note-fields ~ .field-label,
  #custom-edible-field .field-label {
    margin-top: 20px;
  }
  .gifting-image .build-image-action {
    top: 18px;
    left: 18px;
    font-size: 11px;
    padding: 9px 12px;
  }
  .builder-promise {
    font-size: 12px;
  }
}
@media (max-width: 370px) {
  .builder-workspace {
    padding-inline: 17px;
  }
  .builder-step-content h2 {
    font-size: 32px;
  }
  .builder-preview {
    height: 230px;
    flex-basis: 230px;
  }
  .box-scene {
    height: 183px;
    width: 194px;
  }
  .preview-caption > p {
    font-size: 20px;
  }
  .builder-actions {
    gap: 12px;
  }
  .builder-actions > .button {
    font-size: 11px;
    gap: 10px;
    padding-inline: 13px;
  }
  .ingredient-name {
    font-size: 19px;
  }
  .edibles-options .ingredient-name {
    font-size: 18px;
  }
  .theme-options > button {
    min-width: 49px;
  }
  .builder-step-nav {
    gap: 6px;
  }
  .builder-step-nav > button {
    font-size: 9px;
  }
  .tray-choice > span:not(.tray-mini) {
    font-size: 19px;
  }
  .ribbon-options {
    gap: 12px;
  }
  .ribbon-options > button {
    font-size: 8px;
    gap: 7px;
  }
}
@media (max-width: 760px) and (max-height: 700px) {
  .builder-preview {
    height: 181px;
    flex-basis: 181px;
  }
  .box-scene {
    height: 147px;
    width: 156px;
    margin-top: -2px;
  }
  .preview-caption {
    bottom: 9px;
  }
  .preview-caption > p {
    font-size: 17px;
  }
  .preview-caption > span {
    font-size: 7px;
    margin-top: 3px;
  }
  .gift-note-preview {
    width: 67px;
    right: -25px;
    padding: 6px;
  }
  .gift-note-preview > p {
    font-size: 7px;
    max-height: 40px;
  }
  .builder-workspace {
    padding-top: 12px;
  }
  .builder-workspace > .eyebrow {
    display: none;
  }
  .builder-progress {
    margin-top: 0;
  }
  .builder-step-nav {
    margin-bottom: 12px;
  }
  .box-empty > span {
    font-size: 14px;
  }
  .box-empty > p {
    font-size: 6px;
  }
  .builder-order-note {
    display: none;
  }
}
.pouch-preview {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.pouch-preview:focus-visible {
  outline: 2px solid #917046;
  outline-offset: -3px;
  border-radius: 6px;
}
.pouch-preview:disabled {
  opacity: 1;
  cursor: default;
}
.pouch-contents-tag {
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%) rotate(3deg);
  white-space: nowrap;
  background: #fbf4e4f2;
  border: 1px solid #c7ae85;
  color: #6c5130;
  padding: 4px 8px;
  font: 10px/1.4 var(--sans);
  box-shadow: 0 2px 5px #60482d16;
}
.pouch-updated > .ingredient-sprite {
  animation: fill-pouch 0.55s var(--ease);
}
.pouch-card-action {
  font: 11px/1.6 var(--sans);
  color: #755332;
  margin-top: 11px;
  border-bottom: 1px solid #b7a080;
}
.pouch-included {
  border-top: 1px solid #d4c1a2;
  margin: 0 13px;
  padding: 11px 0;
  text-align: center;
  font: 10px/1.6 var(--sans);
  color: #8b704d;
}
.pouch-packing-note {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 23px;
  padding: 11px 14px 11px 7px;
  background: #eee4d154;
  border: 1px solid #d8c9af;
}
.pouch-packing-note > .ingredient-sprite {
  width: 62px;
  flex: 0 0 62px;
}
.pouch-packing-note > div {
  min-width: 0;
}
.pouch-packing-note strong {
  display: block;
  font: 12px/1.6 var(--sans);
  font-weight: 500;
  color: #75583a;
}
.pouch-packing-note p {
  font: 11px/1.8 var(--sans);
  color: #907653;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.pouch-packing-note + .builder-options {
  margin-top: 15px;
}
@keyframes fill-pouch {
  0% {
    translate: 0 -9px;
  }
  55% {
    translate: 0 2px;
  }
  100% {
    translate: 0 0;
  }
}
@media (max-width: 760px) {
  .pouch-contents-tag {
    font-size: 7px;
    padding: 1px 4px;
    bottom: 0;
  }
  .pouch-card-action {
    font-size: 10px;
  }
  .pouch-included {
    margin-inline: 10px;
    padding-block: 9px;
    font-size: 9px;
  }
  .pouch-packing-note {
    gap: 8px;
    padding: 8px 10px 8px 4px;
    margin-top: 18px;
  }
  .pouch-packing-note > .ingredient-sprite {
    width: 48px;
    flex-basis: 48px;
  }
  .pouch-packing-note strong {
    font-size: 11px;
  }
  .pouch-packing-note p {
    font-size: 10px;
  }
}
.motion-off .box-item,
.motion-off .gift-note-preview,
.motion-off .pouch-updated > .ingredient-sprite {
  animation: none !important;
}
.motion-off .is-wrapped .gift-lid,
.motion-off .is-wrapped .box-ribbon,
.motion-off .is-wrapped .ribbon-bow {
  animation: none !important;
  opacity: 1;
  transform: none;
  visibility: visible;
}
@media (prefers-reduced-motion: reduce) {
  .box-item,
  .gift-note-preview,
  .pouch-updated > .ingredient-sprite {
    animation: none !important;
  }
  .is-wrapped .gift-lid,
  .is-wrapped .box-ribbon,
  .is-wrapped .ribbon-bow {
    animation: none !important;
    opacity: 1;
    transform: none;
    visibility: visible;
  }
}

/* The studio shares the ivory paper and burgundy type of the catalogue. */
.builder-dialog {
  width: 1380px;
  background: var(--ivory);
  max-width: calc(100vw - 40px);
  height: min(940px, 94dvh);
}
.builder-preview {
  background: #eee8dd;
  border-right: 1px solid var(--line);
  color: var(--ink);
}
.builder-brand .wordmark > span {
  font-size: 45px;
  color: var(--wine);
  letter-spacing: 0.06em;
}
.builder-brand > span:last-child {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.builder-close {
  width: 40px;
  height: 40px;
  background: var(--paper);
  border-color: var(--line);
}
.builder-close:hover {
  transform: none;
  background: #eadfd7;
}
.builder-workspace {
  padding: 45px 43px 28px;
}
.builder-workspace > .eyebrow {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.builder-progress {
  font-size: 11px;
  color: var(--muted);
  margin-top: 20px;
}
.builder-progress > div {
  background: var(--line);
}
.builder-progress > div > span {
  background: var(--wine);
}
.builder-step-nav {
  border-color: var(--line);
  margin-top: 14px;
  margin-bottom: 25px;
  padding-bottom: 5px;
}
.builder-step-nav > button {
  font-size: 13px;
  color: var(--muted);
  min-height: 40px;
  padding: 8px 0;
}
.builder-step-nav > button[aria-current="step"] {
  color: var(--wine);
}
.builder-step-nav > button[aria-current="step"]:after {
  bottom: -6px;
  background: var(--wine);
}
.builder-step-content h2 {
  font-size: 53px;
  line-height: 1.03;
  color: var(--wine);
}
.builder-step-description {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85;
  margin-top: 16px;
}
.ingredient-option,
.tray-choice {
  border-color: var(--line);
  background: var(--paper);
}
.ingredient-option.is-chosen,
.tray-choice[aria-pressed="true"] {
  border-color: var(--wine);
  background: #eee5da;
}
.ingredient-choice {
  padding: 17px 12px 20px;
}
.ingredient-name {
  font-size: 27px;
  color: var(--ink);
  line-height: 1.12;
}
.ingredient-choice > small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 9px;
}
.ingredient-choice:hover > .ingredient-sprite {
  transform: translateY(-3px);
}
.ingredient-tick {
  border-color: #c6b7a5;
  color: var(--wine);
  width: 21px;
  height: 21px;
}
.is-chosen .ingredient-tick {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--paper);
}
.ingredient-quantity {
  border-color: var(--line);
  color: var(--ink);
  padding-block: 5px;
  gap: 20px;
}
.ingredient-quantity > button {
  width: 36px;
  height: 36px;
}
.ingredient-quantity > span {
  font-size: 13px;
}
.edibles-options .ingredient-name {
  font-size: 25px;
}
.builder-step-content .field-label {
  color: var(--ink);
  font-size: 14px;
}
.builder-dialog .tray-choice > small {
  color: var(--muted);
  font-size: 11px;
}
.builder-dialog .tray-choice > span:not(.tray-mini) {
  color: var(--ink);
  font-size: 25px;
}
.builder-dialog .tray-new {
  display: none;
}
.builder-dialog .tray-selected {
  background: var(--wine);
  color: var(--paper);
}
.theme-options > button {
  font-size: 11px;
  color: var(--muted);
}
.theme-options > button[aria-pressed="true"],
.ribbon-options > button[aria-pressed="true"] {
  color: var(--wine);
}
.ribbon-options > button {
  font-size: 12px;
  color: var(--muted);
  min-height: 42px;
}
.builder-small-print,
.builder-order-note,
.tray-finish-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.builder-status {
  color: var(--wine);
  font-size: 12px;
}
.builder-actions {
  border-color: var(--line);
  padding-top: 19px;
}
.builder-actions > .button {
  font-size: 14px;
  min-height: 52px;
}
.builder-actions > .text-link {
  font-size: 14px;
}
.preview-caption > p {
  font: 35px/1.2 var(--serif);
  color: var(--wine);
}
.preview-caption > span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.preview-footnote {
  font-size: 11px;
  color: var(--muted);
  margin-top: 23px;
}
.builder-price > span {
  font-size: 32px;
  color: var(--wine);
  line-height: 1.1;
}
.builder-price > p {
  font-size: 12px;
  color: var(--muted);
}
.builder-review {
  border-color: var(--line);
}
.builder-review summary {
  font-size: 14px;
  color: var(--ink);
}
#builder-summary {
  font-size: 13px;
}
#builder-summary dt {
  color: var(--muted);
}
#builder-summary dd {
  color: var(--ink);
}
.builder-step-content input,
.builder-step-content textarea {
  background: var(--paper);
  border-color: var(--line);
}
.pouch-packing-note {
  background: #eee5d9;
  border-color: var(--line);
}
.pouch-packing-note strong {
  color: var(--wine);
  font-size: 13px;
}
.pouch-packing-note p {
  color: var(--muted);
  font-size: 12px;
}
.pouch-included,
.pouch-card-action {
  font-size: 11px;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .builder-workspace {
    padding: 39px 30px 25px;
  }
  .builder-step-content h2 {
    font-size: 47px;
  }
  .builder-step-description {
    font-size: 14px;
  }
  .builder-dialog .tray-choice > span:not(.tray-mini) {
    font-size: 22px;
  }
  .builder-dialog .tray-choice > small {
    font-size: 10px;
  }
  .ingredient-name {
    font-size: 25px;
  }
  .edibles-options .ingredient-name {
    font-size: 23px;
  }
}
@media (max-width: 760px) {
  .builder-dialog {
    width: 560px;
    max-width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
  }
  .builder-preview {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .builder-brand .wordmark > span {
    font-size: 28px;
  }
  .builder-brand > span:last-child {
    font-size: 7px;
  }
  .builder-close {
    width: 35px;
    height: 35px;
    top: 12px;
    right: 12px;
  }
  .builder-workspace {
    padding: 16px 22px 14px;
  }
  .builder-workspace > .eyebrow {
    font-size: 9px;
  }
  .builder-progress {
    font-size: 10px;
    margin-top: 8px;
  }
  .builder-step-nav {
    margin-top: 5px;
    margin-bottom: 16px;
    padding-bottom: 3px;
    gap: 9px;
  }
  .builder-step-nav > button {
    font-size: 12px;
    min-height: 35px;
    padding: 7px 0;
  }
  .builder-step-nav > button[aria-current="step"]:after {
    bottom: -4px;
  }
  .builder-step-content h2 {
    font-size: 37px;
  }
  .builder-step-description {
    font-size: 13px;
    line-height: 1.75;
    margin-top: 11px;
  }
  .ingredient-choice {
    padding: 12px 10px 16px;
  }
  .ingredient-name {
    font-size: 23px;
  }
  .ingredient-choice > small {
    font-size: 10px;
    line-height: 1.65;
  }
  .edibles-options .ingredient-name {
    font-size: 22px;
  }
  .ingredient-tick {
    width: 19px;
    height: 19px;
  }
  .ingredient-quantity {
    padding-block: 2px;
    gap: 16px;
  }
  .ingredient-quantity > button {
    width: 34px;
    height: 34px;
  }
  .ingredient-quantity > span {
    font-size: 12px;
  }
  .builder-dialog .tray-choice > span:not(.tray-mini) {
    font-size: 22px;
  }
  .builder-dialog .tray-choice > small {
    font-size: 10px;
  }
  .builder-step-content .field-label {
    font-size: 13px;
  }
  .theme-options > button {
    font-size: 10px;
  }
  .ribbon-options > button {
    font-size: 10px;
  }
  .builder-small-print,
  .builder-order-note,
  .tray-finish-note {
    font-size: 11px;
  }
  .builder-actions {
    padding-top: 13px;
    gap: 16px;
  }
  .builder-actions > .button {
    font-size: 13px;
    min-height: 48px;
    padding: 13px 16px;
  }
  .builder-actions > .text-link {
    font-size: 12px;
  }
  .builder-status {
    font-size: 11px;
  }
  .preview-caption > p {
    font-size: 23px;
  }
  .preview-caption > span {
    font-size: 9px;
    margin-top: 5px;
  }
  .preview-footnote {
    display: none;
  }
  .builder-price > span {
    font-size: 28px;
  }
  .builder-price > p {
    font-size: 11px;
  }
  #builder-summary {
    font-size: 12px;
  }
  .pouch-packing-note strong {
    font-size: 12px;
  }
  .pouch-packing-note p {
    font-size: 11px;
  }
}
@media (max-width: 760px) and (max-height: 700px) {
  .builder-workspace {
    padding-top: 12px;
  }
  .builder-progress {
    margin-top: 0;
  }
  .builder-step-nav {
    margin-top: 3px;
    margin-bottom: 12px;
  }
  .builder-step-nav > button {
    min-height: 30px;
  }
  .preview-caption > p {
    font-size: 18px;
  }
  .preview-caption > span {
    font-size: 8px;
  }
  .builder-step-content h2 {
    font-size: 33px;
  }
}
