/* ── Build your own print · the collection builder ─────────────────────────
   A5/A6-proportioned sheet previews and the picker grid for the preview page.
   Design tokens come from styles.css (--paper, --ink, --ember, --display). */

.bp {
  --sheet-w: 210px;                 /* A6 short edge on screen */
  --sheet-ratio: 1.4095;            /* 148 / 105 */
}

.bp__head { margin-bottom: 22px; }

.bp__title {
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 8px 0 10px;
}

.bp__lede {
  max-width: 42em;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
  color: var(--ink-2);
}

/* What is in the box, on the intro step. */
.bp__box {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.bp__box li {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
}

.bp__box b {
  display: block;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

/* The two extras: in the collection's own list, but marked as optional. */
.bp__boxopt {
  border-style: dashed !important;
  background: transparent !important;
}

.bp__boxopt b::after {
  content: "optional";
  display: inline-block;
  margin-left: 7px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--paper-2);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: middle;
}

.bp__box small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Step chrome. */
.bp__step {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.bp__kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.bp__ask {
  font-family: var(--display);
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.2;
  color: var(--ink);
  margin: 6px 0 4px;
}

.bp__hint {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-3);
  margin-bottom: 18px;
}

/* ── the sheet ─────────────────────────────────────────────────────────────
   A true A6 proportion (105 × 148 mm) so a collage reads at the shape it will
   be printed at. The paper margin and the gutter are percentages of the sheet,
   so every layout keeps the same breathing room. */
.bp__sheet {
  position: relative;
  /* Never wider than the card it sits in: a fixed 210px sheet overflows a
     narrow summary column and covers the next card. */
  width: min(var(--sheet-w), 100%);
  aspect-ratio: 105 / 148;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 12px 26px rgba(74, 44, 32, .13), 0 2px 4px rgba(74, 44, 32, .07);
  /* The paper margin and the gutter are a share of the SHEET, not of the
     column the sheet happens to sit in. As percentages of the parent they
     grew with the browser window: in a wide column the 210px sheet got a
     24px margin, and the picture no longer matched the print. */
  padding: calc(var(--sheet-w) * 0.034);
  display: grid;
  gap: calc(var(--sheet-w) * 0.014);
  overflow: hidden;
}

/* ── A4 and A6 sheets ──────────────────────────────────────────────────────
   The print the buyer composes is A4 (210 × 297 mm); the small one is A6
   (105 × 148 mm). Both are the same 1:√2 shape, so the cell grids and the
   rotation maths are identical — only the outline changes. */
.bp__sheet[data-size="a4"] { aspect-ratio: 210 / 297; }
.bp__sheet[data-size="a6"] { aspect-ratio: 105 / 148; }

.bp__sheet[data-n="1"] {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}
.bp__sheet[data-n="2"] { grid-template-columns: 1fr; grid-template-rows: repeat(2, 1fr); }

/* ── A6 · one painting is the whole sheet ──────────────────────────────────
   No white margin at all: the print runs to the edge of the paper. */
.bp__sheet[data-size="a6"][data-n="1"] { padding: 0; }

/* ── A4 · a painting is never bigger than A6 ───────────────────────────────
   A6 is exactly a quarter of A4, so one painting is a centred A6 block and
   two are stacked A6 blocks down the middle, with paper left around them.
   Four fill the sheet exactly (2 × 2 of A6) and nine are smaller still. */
.bp__sheet[data-size="a4"][data-n="1"],
.bp__sheet[data-size="a4"][data-n="2"] {
  /* 50% of the sheet, not of its padded box, so the block is a true A6
     (105 × 148 mm) and the paper around it is the margin. */
  padding: 0;
  grid-template-columns: 50%;
  place-content: center;
}

.bp__sheet[data-size="a4"][data-n="1"] { grid-template-rows: 50%; }

.bp__sheet[data-size="a4"][data-n="2"] {
  grid-template-rows: 1fr 1fr;
}

/* Two paintings on the A4 are two A6 blocks turned on their side: 148 mm wide
   is 70.48% of 210, and 105 mm tall is 35.35% of 297. The block is A6, the
   painting inside it is turned to fill. */
.bp__sheet[data-size="a4"][data-n="2"] {
  grid-template-columns: 70.48%;
  grid-template-rows: 35.35% 35.35%;
  padding: 0;
  place-content: center;
}

.bp__cell--rot { position: relative; }

/* Two-class selector on purpose: `.bp__cell img` sets width/height/cover and
   comes later in the file, so a single-class rule here would lose. */
.bp__sheet .bp__cell--rot img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: auto;
  transform: translate(-50%, -50%) rotate(90deg) scale(var(--rot, .71));
}
.bp__sheet[data-n="4"] { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }
.bp__sheet[data-n="9"] { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }

.bp__cell {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  border-radius: 1px;
}

.bp__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* An empty slot on a half-built sheet. */
.bp__cell--empty {
  border: 1px dashed var(--line);
  background: transparent;
}

.bp__cell--empty::after {
  content: attr(data-n);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 15px;
  color: var(--muted);
}

.bp__sheetcap {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ── layout chooser ───────────────────────────────────────────────────────*/
.bp__layouts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.bp__layout {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 14px;
  padding: 12px 12px 10px;
  cursor: pointer;
  display: grid;
  gap: 8px;
  justify-items: center;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}

.bp__layout:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(74, 44, 32, .10); }

.bp__layout[aria-pressed="true"] {
  border-color: var(--ember);
  box-shadow: 0 0 0 2px rgba(214, 59, 22, .16);
}

.bp__layout .bp__sheet {
  --sheet-w: 84px;
  /* A definite width: the card centres its items, so `100%` here would resolve
     against a shrink-to-fit box and collapse the preview to a few pixels. */
  width: var(--sheet-w);
  box-shadow: none;
  border-color: var(--line);
  pointer-events: none;
}

.bp__layout .bp__cell { background: var(--paper-2); }

.bp__layoutname {
  font-family: var(--display);
  font-size: 15px;
  color: var(--ink);
}

.bp__layoutnum {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── painting picker ──────────────────────────────────────────────────────*/
.bp__pickerhead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.bp__hinthead {
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--muted);
  margin: 0;
}

.bp__count {
  font-family: var(--display);
  font-size: 16px;
  color: var(--ink);
}

.bp__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
  max-height: 62vh;
  overflow: auto;
  padding: 4px 6px 14px 2px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bp__pick {
  appearance: none;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 4px;
  cursor: pointer;
  position: relative;
  display: block;
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}

.bp__pick img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.bp__pick:hover { transform: translateY(-2px); }

.bp__pick[aria-pressed="true"] {
  border-color: var(--ember);
  box-shadow: 0 0 0 2px rgba(214, 59, 22, .18);
}

.bp__pick[aria-pressed="true"]::after {
  content: attr(data-order);
  position: absolute;
  top: 7px;
  right: 7px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--ember);
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  display: grid;
  place-items: center;
  padding: 0 5px;
}

.bp__pick[disabled] {
  opacity: .38;
  cursor: not-allowed;
  transform: none;
}

.bp__pickname {
  display: block;
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--ink-3);
  padding: 4px 2px 2px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── the live sheet beside the picker ─────────────────────────────────────*/
.bp__work {
  display: grid;
  /* The sheet column needs a DEFINITE width. With `auto` the column sizes to
     the sheet's own `min(210px, 100%)`, which is circular and collapses to
     min-content — the sheet then overflows its column and covers the picker. */
  grid-template-columns: minmax(0, 1fr) var(--sheet-w);
  gap: 22px;
  align-items: start;
}

.bp__side { position: sticky; top: 16px; }

/* ── buttons and steps ────────────────────────────────────────────────────*/
.bp__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.bp__btn {
  appearance: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s var(--ease), opacity .2s var(--ease);
}

.bp__btn:hover { background: var(--ember-d); border-color: var(--ember-d); }

.bp__btn--ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line);
}

.bp__btn--ghost:hover { background: var(--paper-2); color: var(--ink); border-color: var(--line); }

.bp__btn[disabled] { opacity: .45; cursor: not-allowed; }
.bp__btn[disabled]:hover { background: var(--ink); border-color: var(--ink); }

.bp__note {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 10px;
}

/* ── summary ──────────────────────────────────────────────────────────────*/
.bp__summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
  align-items: start;
  margin-top: 8px;
}

/* A print card is as wide as its sheet needs, so the two prints read at the
   same size and the placeholder pieces sit in their own row. */
.bp__item { overflow: hidden; }
.bp__item .bp__sheet { margin: 0 auto; }

.bp__item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  padding: 14px;
}

.bp__itemname {
  font-family: var(--display);
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 2px;
}

.bp__itemmeta {
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

/* The pieces whose artwork Ivy has not sent yet. */
.bp__soon {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: repeating-linear-gradient(
    135deg, rgba(0,0,0,.015) 0 6px, transparent 6px 12px);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px 10px;
}

.bp__soon--cal { aspect-ratio: 105 / 148; width: 150px; margin: 0 auto; }
.bp__soon--bm { aspect-ratio: 50 / 148; width: 62px; }
.bp__soon--card { aspect-ratio: 74 / 105; width: 120px; margin: 0 auto; }
.bp__soon--sticker { aspect-ratio: 105 / 148; width: 150px; margin: 0 auto; }

.bp__duo { display: flex; gap: 8px; justify-content: center; }

.bp__restart {
  background: none;
  border: 0;
  padding: 0;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ── the price, the extras, the money ─────────────────────────────────────
   Everything this drop needs beyond the sheets: the collection price, the
   ACEO quantity stepper, the yes/no and payment options, the destination
   select, and the order breakdown. */

.bp__boxdesc {
  display: block;
  margin-top: 2px;
  color: var(--ink-2);
}

.bp__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.bp__pricefig {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1;
  color: var(--ink);
}

.bp__pricenote {
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--muted);
}

.bp__quote {
  font-family: var(--display);
  font-size: 17px;
  color: var(--ink-2);
  margin: 6px 0 4px;
}

/* ACEO quantity stepper. */
.bp__qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  background: var(--white);
}

.bp__qtybtn {
  appearance: none;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s var(--ease);
}

.bp__qtybtn:hover:not([disabled]) { background: var(--line); }
.bp__qtybtn[disabled] { opacity: .4; cursor: not-allowed; }

.bp__qtyval {
  min-width: 62px;
  text-align: center;
  font-family: var(--display);
  font-size: 20px;
  color: var(--ink);
}

/* Yes/no and payment choices. */
.bp__options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bp__opt {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 14px;
  padding: 14px 18px;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 3px;
  min-width: 170px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.bp__opt b {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.bp__opt span {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}

.bp__opt[aria-pressed="true"] {
  border-color: var(--ember);
  box-shadow: 0 0 0 2px rgba(214, 59, 22, .16);
}

/* Destination. */
.bp__select {
  appearance: none;
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  padding: 14px 16px;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
                    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.bp__select:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

.bp__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.bp__total b {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

/* The order breakdown. */
.bp__breakdown {
  margin: 20px 0 0;
  max-width: 520px;
  border-top: 1px solid var(--line);
}

.bp__brow {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}

.bp__brow dt { margin: 0; }
.bp__brow dd { margin: 0; font-variant-numeric: tabular-nums; }

.bp__brow--main { color: var(--ink); font-weight: 500; }

.bp__brow--total {
  border-bottom: 0;
  padding-top: 13px;
  font-family: var(--display);
  font-size: 20px;
  color: var(--ink);
}

.bp__itemmeta2 {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: -6px 0 10px;
}

/* ACEO prints: 2.5 x 3.5 inches, shown in order. */
.bp__aceos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.bp__aceo {
  position: relative;
  width: 74px;
  aspect-ratio: 25 / 35;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(74, 44, 32, .14);
}

.bp__aceo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bp__aceonum {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 15px;
  height: 15px;
  border-radius: 999px;
  background: var(--ember);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.bp__aceoempty {
  font-size: 12px;
  color: var(--muted);
}

/* ── product photos and the bookmark designs ─────────────────────────────
   The photos Ivy sent are A4-proportioned flat-lays; they sit at the top of
   each intro card and in the summary, cropped to a fixed band. The bookmark
   designs are tall and of different shapes, so they are contained, not
   cropped. */

.bp__photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  background: var(--paper-2);
}

.bp__boximg { aspect-ratio: 4 / 3; }

.bp__itemphoto {
  display: block;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  border-radius: 10px;
  background: var(--paper-2);
  aspect-ratio: 3 / 4;
}

/* The eleven bookmark designs. */
.bp__bmgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.bp__bm {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  position: relative;
  display: grid;
  gap: 6px;
  justify-items: center;
  transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}

.bp__bm:hover { transform: translateY(-2px); }

.bp__bm[aria-pressed="true"] {
  border-color: var(--ember);
  box-shadow: 0 0 0 2px rgba(214, 59, 22, .18);
}

.bp__bm[aria-pressed="true"]::after {
  content: attr(data-order);
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--ember);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.bp__bm[disabled] {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
}

.bp__bmimg {
  display: block;
  height: 190px;
  width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  background: none;
  border-radius: 6px;
}

.bp__bmname {
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--ink-3);
  text-align: center;
}

/* The chosen bookmarks, side by side in the summary. */
.bp__bmshow {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: flex-start;
}

.bp__bmshowimg {
  display: block;
  height: 190px;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 6px;
  background: none;
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 700px) {
  /* Three designs across on a phone: eleven tall cards two-up is a long scroll. */
  .bp__bmgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .bp__bm { padding: 5px; }
  .bp__bmimg, .bp__bmshowimg { height: 120px; }
  .bp__bmname { font-size: 9.5px; }
}

/* ── changing one thing from the order page ───────────────────────────────
   Each card carries a small link back to the step that made it, and the two
   rows under the breakdown (post, payment) have theirs in a line of chips. */

.bp__edit {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 6px 13px;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

.bp__edit:hover { border-color: var(--ember); color: var(--ink); }

.bp__edits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.bp__edits .bp__edit { margin-top: 0; }

/* ── the delivery form ────────────────────────────────────────────────────*/
.bp__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  max-width: 620px;
  margin-top: 8px;
}

.bp__field {
  display: grid;
  gap: 5px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.bp__field--wide { grid-column: 1 / -1; }

.bp__field input,
.bp__field select {
  appearance: none;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  padding: 11px 13px;
}

.bp__field input:focus,
.bp__field select:focus {
  outline: 2px solid var(--ember);
  outline-offset: 1px;
}

/* Phone: the dialling code sits in front of the number, as on the checkout. */
.bp__phone {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

/* The code control: a typing box in front, the shop's own combo list under
   it (.combo styles come from styles.css, so it looks like the checkout). */
.bp__field .bp__dial {
  flex: 0 0 auto;
  width: 88px;
  z-index: 6;
}

.bp__dialinput {
  width: 100%;
  text-align: center;
  font-variant-numeric: tabular-nums;
  padding-left: 6px;
  padding-right: 6px;
}

.bp__dial .combo__list { max-height: 232px; overflow-y: auto; }

.bp__field .bp__phoneinput { flex: 1 1 auto; min-width: 0; }

/* On a phone the dialling code gives way to the number itself. */
@media (max-width: 520px) {
  .bp__field .bp__dial { width: 80px; }
  .bp__dialinput { font-size: 14px; }
}

.bp__form .bp__nav { grid-column: 1 / -1; }
.bp__form .bp__note { grid-column: 1 / -1; margin: 4px 0 0; }
.bp__note--bad { color: var(--ember-d); }

@media (max-width: 640px) {
  .bp__form { grid-template-columns: 1fr; }
}

/* ── several A6 sheets side by side ───────────────────────────────────────*/
.bp__a6row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: flex-start;
}

/* The box must hug the sheet, or each flex item fills the column and the
   sheets stack instead of sitting in a row. */
.bp__a6one { position: relative; flex: 0 0 auto; width: var(--sheet-w, 96px); }

.bp__a6one .bp__sheet { box-shadow: 0 8px 18px rgba(74, 44, 32, .13), 0 1px 3px rgba(74, 44, 32, .07); }

.bp__a6num {
  position: absolute;
  top: 4px;
  left: 4px;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  background: var(--ember);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: grid;
  place-items: center;
  z-index: 2;
}

@media (max-width: 860px) {
  /* minmax(0, 1fr), not 1fr: a bare 1fr track refuses to go below its
     min-content width, so the picker kept its desktop width and the whole
     section overflowed a phone by 300px. */
  .bp__work { grid-template-columns: minmax(0, 1fr); }
  .bp__side { position: static; order: -1; }
  .bp { --sheet-w: 150px; }
  .bp__grid { max-height: 50vh; }
  .bp__summary { grid-template-columns: 1fr 1fr; }
}

/* Five paintings across on a phone, the same grid the sheet above uses, so the
   picker never jumps to a bigger tile when a layout with fewer cells is
   chosen. The captions shrink rather than the tiles. */
@media (max-width: 700px) {
  .bp__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding-right: 2px; }
  .bp__pick { padding: 3px; border-radius: 8px; }
  .bp__pickname { font-size: 9px; padding: 3px 1px 1px; }
  .bp__pick[aria-pressed="true"]::after { top: 4px; right: 4px; min-width: 17px; height: 17px; font-size: 10px; }
}

@media (max-width: 460px) {
  .bp__summary { grid-template-columns: 1fr; }
}
