/* The offer as an order: the price beside the button, in the drop's figures. */
.order .field { align-items: center; gap: 22px; }
.order .price { font-family: var(--num); font-weight: 220; font-variation-settings: "opsz" 100; font-size: 56px; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.order .price span { font-family: var(--sans); font-size: 15px; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.order button { min-width: 168px; cursor: pointer; }
.order.busy button { opacity: .6; }
@media (max-width: 760px) {
  .order .field { flex-direction: row; justify-content: space-between; }
  .order button { width: auto; flex: 1; max-width: 220px; }
  .order .price { font-size: 46px; }
}

/* While the order is closed: back from the checkout, the price stays and the email field takes Order's place (page.js) */
.order:not(.closed) .ask, .order.closed .field:not(.ask) button { display: none; }
.order .ask { margin-top: 18px; gap: 10px; }
.order.closed.done .field:not(.ask) { display: flex; }
/* a browser the site knows says it with the button alone */
.order.known .ask input { display: none; }
@media (max-width: 760px) {
  .order .ask { flex-direction: column; align-items: stretch; }
  .order .ask input { flex: none; }
  .order .ask button { flex: none; width: 100%; max-width: none; }
}

/* The order button opens into the checkout: a sheet grows from the button to the whole screen, plum to paper, and
   the checkout page writes itself onto it (pay/pay.css). Back closes the sheet into the button. Under the corner
   box, which holds still across both pages. Driven by page.js; reduced motion goes straight there. */
.paysheet { position: fixed; z-index: 39; visibility: hidden; pointer-events: none; display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 500; white-space: nowrap; }
.paysheet.on { visibility: visible; pointer-events: auto; }
.pay-back .paysheet { visibility: visible; inset: 0; border-color: transparent; background: var(--paper); }
.pay-back .paysheet span { opacity: 0; }

/* Version B: the offer beside the whole box. The five pieces stand together on one floor, the same art as the row
   under it: the print leaning at the back, the bag, the comic, and the card and the sticker in front */
.offer-b .ob { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "pile head" "pile form";
  grid-template-rows: 1fr 1fr; column-gap: clamp(40px, 6vw, 104px); align-items: center; }
.offer-b .ob-box { grid-area: pile; }
.offer-b h2 { grid-area: head; align-self: end; }
.offer-b .order { grid-area: form; align-self: start; margin-top: 38px; }
.ob-box { position: relative; aspect-ratio: 4 / 3; max-height: 620px; }
.ob-box > * { position: absolute; }
.ob-box img { display: block; }
.ob-print { left: 0; bottom: 17%; height: 60%; aspect-ratio: 3 / 5; transform: rotate(-3deg); }
.ob-print .sheet { height: 100%; background: #F8F6F1; box-shadow: 0 1px 2px rgba(42, 12, 26, .16), 0 16px 26px -14px rgba(42, 12, 26, .38); }
.ob-print .sheet img { width: 100%; height: 100%; }
.ob-bag { left: 25%; bottom: 9%; height: 89%; width: auto; filter: drop-shadow(0 14px 20px rgba(42, 12, 26, .2)); }
/* Twenty stands behind the bag's right shoulder, where the tee was, and the tee lies in front, where Twenty was (Matthew,
   Nov 3: «switch twenty and the shirt in the galery one too»): its back with the three notes, as In the box shows it */
.ob-comic { right: 1%; bottom: 33%; height: 56%; aspect-ratio: 2 / 3; transform: rotate(5deg); }
.ob-comic .bx-book { height: 100%; }
.ob-card { left: 11%; bottom: 0; height: 40%; width: auto; transform: rotate(-6deg);
  box-shadow: 0 1px 2px rgba(42, 12, 26, .16), 0 16px 26px -14px rgba(42, 12, 26, .38); }
.ob-sticker { left: 50%; bottom: 0; height: 19%; width: auto; transform: rotate(8deg); filter: drop-shadow(0 6px 8px rgba(42, 12, 26, .18)); }
.ob-tee { right: -6%; bottom: 0; height: 48%; width: auto; transform: rotate(-3deg); filter: drop-shadow(0 14px 20px rgba(42, 12, 26, .2)); }
@media (max-width: 760px) {
  .offer-b .ob { grid-template-columns: 1fr; grid-template-areas: "head" "pile" "form"; grid-template-rows: auto; }
  .offer-b .ob-box { margin: 30px calc(-.5 * var(--gutter)) 0; }
  .offer-b .order { margin-top: 26px; }
  /* the still life runs nearly edge to edge here: the tee stays on the screen, and lies low enough to leave the bag's
     name clear */
  .ob-tee { right: 0; bottom: -5%; height: 44%; }
}

/* The print as an add-on: one toggle above the print, which stands back until it is added. */
.ob-print { transition: opacity .35s ease, filter .35s ease; }
.ob-box:has(#addPrint:not(:checked)) .ob-print { opacity: .42; filter: saturate(.6); }
.ob-add { position: absolute; left: 0; bottom: calc(77% + 14px); display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-size: 15px; line-height: 1.2; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.ob-add input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ob-add i { flex: none; width: 18px; height: 18px; border: 1.25px solid var(--ink); border-radius: 2px; display: grid; place-items: center; transition: background-color .2s ease; }
.ob-add i::after { content: ""; width: 9px; height: 5px; margin-top: -2px; border: solid var(--paper); border-width: 0 0 1.6px 1.6px; transform: rotate(-45deg); opacity: 0; }
.ob-add input:checked + i { background: var(--ink); }
.ob-add input:checked + i::after { opacity: 1; }
.ob-add input:focus-visible + i { outline: 2px solid var(--ink); outline-offset: 3px; }
.order .price data { font: inherit; }

/* What the tee and the print are made of: two quiet ways in where the size used to be (the size is picked on the pay
   page now, Matthew, Nov 3), each opening its rows in place just under this line (shared/made.css). In the box's tee
   and print land here too, clear of the band at the top */
.order .made { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin: 0 0 26px; scroll-margin-top: 96px; }
.order .made > span { font-size: 15px; color: var(--muted); }
.order .made:has(+ .mof.on), .order .made:has(+ .mof + .mof.on) { margin-bottom: 14px; }
/* not the form's own pill: the quiet word, at any width */
.notify.order .made .mof-go { min-width: 0; min-height: 0; width: auto; flex: none; max-width: none; padding: 4px 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: none; color: var(--ink); font-size: 15px; }
.notify.order .made .mof-go:hover { background: none; border-bottom-color: currentColor; }
@media (max-width: 760px) {
  /* the bag stands taller than the print here, so the toggle sits just above the still life, over the print's corner */
  .offer-b .ob-box { margin-top: 52px; }
  .ob-add { left: calc(.5 * var(--gutter)); bottom: calc(100% - 4%); }
}
