/*
  The shop's pages (src/shopPages.ts), in the frame's look (site.css), as the website's theme
  draws the same things (read 2026-10-10):

  - the picker as the website's "Choose your pickup location": a square photo with round
    corners, the pickup's name and an arrow under it, no card;
  - a pickup's page as its pickup collections: four cards a row (two on a phone), pale with
    slate text, the picture inset 23 px, the name small and the price large;
  - a product's page as its product pages: the pictures on 65% of the width, the first whole
    and the rest two a row (one at a time, swiped, on a phone), the words beside them; the
    choices as round pills, filled when picked; how it is bought as boxed options; how many in
    a round box; "Add to cart" across the column;
  - the cart as its cart: a big picture a line, the sums and "Check out" at the right.
*/

/* A picture's <picture> only chooses its file (src/pictureMarkup.ts): its <img> is laid out as
   if it stood alone, so the rules below for an img hold as they are. Its AVIF <source> is not
   drawn, or it would take a place of its own in a row or a grid of pictures. */
picture {
  display: contents;
}

picture > source {
  display: none;
}

.shop-lede {
  margin: 0 0 28px;
}

.shop-pickup-line {
  margin: 0 0 18px;
  font-size: 15px;
}

.shop-pickup-line strong {
  color: var(--green);
  font-weight: 400;
}

/* The picker: one pickup day a photo, its name and an arrow under it. */
.pickup-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.pickup-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--green);
  text-decoration: none;
}

.pickup-card img,
.pickup-card-blank {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 11.5px;
  background: var(--green-faint);
}

.pickup-card-words {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--green-soft);
}

.pickup-card-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: var(--heading-spacing);
}

.pickup-card-arrow {
  width: 14px;
  height: 10px;
  transition: transform 0.1s ease;
}

.pickup-card:hover .pickup-card-name {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.pickup-card:hover .pickup-card-arrow {
  transform: translateX(4px);
}

@media (min-width: 750px) {
  .pickup-card-name {
    font-size: 18px;
  }
}

/* A pickup's page: a pale card a product, its picture inset as the website's are. */
.product-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 750px) {
  .product-cards {
    gap: 12px 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 990px) {
  .product-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 23px 23px 40px;
  border-radius: var(--radius-card);
  background: var(--card);
  color: var(--slate);
  text-decoration: none;
}

.product-card:hover .product-card-name {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* Every card's picture cut to one shape, so the names in a row line up (R274). */
.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-card-blank {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--green-faint);
}

/* A card's name leads, larger than its price (R274). */
.product-card-name {
  margin: 26px 0 10px;
  font-size: 17.25px;
  line-height: 1.4;
  letter-spacing: var(--heading-spacing);
}

.product-card-price {
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 1.15px;
}

/* Sold out: shown where it would be, with no way to buy it (R256). */
.sold-out {
  display: inline-block;
  align-self: flex-start;
  margin-top: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--green);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.69px;
}

.choice:has(input[data-sold-out]) .choice-name {
  text-decoration: line-through;
  opacity: 0.6;
}

/* "Sold out": a light fill and green text at full strength, 5.1:1 (R274). */
.add-button:disabled {
  border-color: var(--line-strong);
  background: var(--cream);
  color: var(--green);
  cursor: not-allowed;
}

@media (min-width: 750px) {
  .product-card-name {
    margin-top: 30px;
  }
}

@media (max-width: 749px) {
  .product-card {
    padding: 23px 23px 32px;
  }
}

/* A product's page: its pictures and its words side by side when there is room. */
.product {
  display: grid;
  gap: 24px;
}

@media (min-width: 750px) {
  .product {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
  }
}

/* Wide, as the website's: the pictures 65% less half its 16 px gap, the words 35% less the
   same, set in 46 px (4rem). */
@media (min-width: 990px) {
  .product {
    grid-template-columns: calc(65% - 8px) calc(35% - 8px);
    gap: 16px;
  }
  .product-words {
    padding-left: 46px;
  }
  /* A long page's pictures stay in view as it scrolls, under the header (R274). */
  .product-pictures {
    position: sticky;
    top: calc(var(--header-height, 0px) + 16px);
    align-self: start;
  }
}

.product-pictures img,
.product-pictures .product-card-blank {
  display: block;
  width: 100%;
  height: auto;
  background: var(--green-faint);
}

/* The first picture over the card's, which the browser has from the pickup's page: the page
   opens showing it, cut to the same box, and the sharp one covers it when it arrives (R263). */
.product-picture-over {
  position: relative;
  display: block;
  background: var(--green-faint);
}

.product-picture-over .product-picture-first {
  position: relative;
  background: none;
}

.product-picture-over .product-picture-behind {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-pictures-more {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.product-pictures-more img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* On a phone the pictures are one at a time, swiped, the next one showing at the edge. */
@media (max-width: 749px) {
  .product-pictures {
    display: flex;
    gap: 8px;
    margin-right: calc(-1 * var(--gutter));
    padding-right: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .product-pictures::-webkit-scrollbar {
    display: none;
  }
  .product-pictures-more {
    display: contents;
  }
  .product-pictures img,
  .product-pictures .product-card-blank {
    flex: 0 0 calc(100% - 8px);
    width: calc(100% - 8px);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    scroll-snap-align: start;
  }
  .product-picture-over {
    flex: 0 0 calc(100% - 8px);
    width: calc(100% - 8px);
    aspect-ratio: 4 / 3;
    scroll-snap-align: start;
  }
  .product-picture-over .product-picture-first {
    width: 100%;
  }
  .product-pictures:has(> :only-child) img,
  .product-pictures > .product-picture-over:only-child {
    flex-basis: 100%;
    width: 100%;
  }
}

.product-words h1 {
  margin-bottom: 18px;
}

/* A product's name, on its own page (R274). */
@media (min-width: 750px) {
  .product-name {
    font-size: 32px;
  }
}

.product-price {
  font-size: 18.4px;
  letter-spacing: 1.5px;
  color: var(--green);
  margin: 0 0 22px;
}

@media (min-width: 750px) {
  .product-price {
    font-size: 20.7px;
  }
}

/* "Sold out" beside the price of a choice that is (R274). */
.product-price .sold-out {
  margin: 0 0 0 12px;
  vertical-align: 0.15em;
}

/* A product's link with no pickup: its picture and price, as large as a card's, first (R274). */
.product-anywhere {
  max-width: 320px;
}

.product-anywhere img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
  margin-bottom: 18px;
}

/*
  The form, as the website's product form (its theme's and its subscriptions block's own rules,
  read 2026-10-10, at its 11.5 px rem): a field's label 14.95 px; the pills 16.1 px, 41 px
  tall, as wide as their words (the website's 11.5 x 23 px inside at line height 1; here
  9.5 px at 1.25, the same height, so a name that wraps has room between its lines);
  "Quantity"'s box 142 x 53.75 px with 45 px buttons; "Purchase Options" at the body's size, then a box each way, 12 px round, its
  words and price at the body's size (the one-time words a step smaller), the note under the
  weekly one at 0.85em.
*/
.choices-title {
  display: block;
  font-size: 14.95px;
  line-height: 1.435;
  letter-spacing: 0.46px;
  color: var(--green-soft);
  margin: 0 0 6.9px;
  padding: 0;
}

.choices {
  max-width: 506px;
  margin-bottom: 13.8px !important;
}

.choices .choices-title {
  margin-bottom: 2.3px;
}

.choices ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

/* A choice: a round pill, filled when picked, as the website's options. */
.choice {
  display: inline-block;
  margin: 8.05px 5.75px 2.3px 0;
  /* One line is 41 px as the website's (9.5 + 20.1 + 9.5 + the border); a long name that wraps
     keeps room between its lines, and its lines even (A3). */
  padding: 9.5px 23px;
  border: 1px solid var(--green-pill);
  border-radius: var(--radius-input);
  background: var(--paper);
  color: var(--green);
  font-size: 16.1px;
  line-height: 1.25;
  text-wrap: balance;
  letter-spacing: 1.15px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.1s ease;
}

.choice:hover {
  border-color: var(--green);
}

.choice:has(input:checked) {
  border-color: var(--green);
  background: var(--green);
  color: var(--paper);
}

.choice:has(input:focus-visible) {
  box-shadow:
    0 0 0 3.45px var(--paper),
    0 0 0 5.75px var(--green-pill);
}

.choice-unit {
  font-size: 13px;
  letter-spacing: 0.69px;
  opacity: 0.8;
}

.shop-change {
  font-size: 15px;
}

.description {
  margin: 32px 0 24px;
}

.description h2,
.description h3 {
  margin-top: 1em;
}

.pickup-facts {
  margin: 24px 0 0;
  padding: 18px 20px;
  border-radius: var(--radius-box);
  background: var(--cream);
}

.pickup-facts h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

.pickup-facts p {
  margin: 6px 0 0;
  line-height: 1.6;
}

/* A wholesale flower's look-only page; the Latin name in italics (R274). */
.flower-latin {
  margin: 0 0 8px;
  font-style: italic;
}

.flower-choices {
  border-collapse: collapse;
  width: 100%;
  margin-top: 16px;
}

.flower-choices th,
.flower-choices td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--green-line);
  font-weight: 400;
}

.flower-choices th {
  color: var(--green-soft);
  font-size: 11.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.flower-price {
  white-space: nowrap;
}

/* Adding to the cart on a product's page (R206): the choice picked, how, how many. */
.add-to-cart fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

/* Quantity: the website's round box, its minus and plus at the sides, the number between. */
.add-qty {
  margin: 0 0 17.25px;
}

.stepper {
  display: flex;
  width: 142px;
  min-height: 53.75px;
  border: 1px solid var(--green);
  border-radius: var(--radius-input);
  background: var(--paper);
  color: var(--green);
}

.stepper-button {
  flex: 0 0 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: var(--radius-input);
  background: none;
  color: inherit;
  cursor: pointer;
}

.stepper-button svg {
  width: 11.5px;
  height: auto;
}

.stepper-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.stepper input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  padding: 0 5.75px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 18.4px;
  letter-spacing: 0.69px;
  opacity: 0.85;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stepper-button:focus-visible,
.stepper input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

/* Purchase Options: a box each way, the radio, its words and the price opposite. */
.add-how {
  margin: 0 0 28.75px !important;
}

.add-how-title {
  display: block;
  margin: 0 0 16.1px;
  padding: 0;
  color: var(--green-soft);
}

.add-bought {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 11.5px;
  padding: 11.5px 16.1px;
  border: 1px solid #3f4c3d;
  border-radius: 12px;
  background: var(--paper);
  color: #3f4c3d;
  cursor: pointer;
}

.add-bought:not([hidden]) ~ .add-bought {
  margin-top: 9.2px;
}

.add-bought input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--green);
  cursor: pointer;
}

.add-bought-price {
  align-self: start;
  padding-left: 11.5px;
  white-space: nowrap;
}

.add-bought-note {
  grid-column: 2 / 4;
  margin-top: 11.5px;
  font-size: 0.85em;
  line-height: 1.35;
}

.add-bought-once .add-bought-name {
  font-size: 0.85em;
}

.add-bought-once .add-bought-price {
  align-self: center;
}

.add-button {
  width: 100%;
  max-width: 506px;
}

.add-said {
  margin: 12px 0 0;
}

/*
  The cart, as the website's (its theme's cart, read 2026-10-10 with an item in it): "Your cart"
  with "Continue shopping" at the right; the lines as a table under small capitals "Product",
  "Quantity" and "Total", a rule under them, 46 px above each line; a 132 px picture, the name
  and how it is bought, the 142 x 53.75 px box with its minus and plus and a remove icon, the
  total at the right; a rule under the lines; then the summary, 402.5 px (35rem) wide at the
  right, "Check out" across it. On a phone each line is a grid: the picture at the left, the
  words and total beside it, how many under them; the summary across the page.

  The cart's script draws it after the page is shown: the cart is a screen tall from the first
  moment and the picker waits unseen, so nothing moves when it is drawn.
*/
.cart {
  min-height: 100vh;
}

.cart-pickup-unseen {
  display: none !important;
}

.cart-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin: 0 0 28px;
}

.cart-title h1 {
  margin: 0;
}

.cart-continue {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.cart-continue:hover {
  text-decoration-thickness: 2px;
}

.cart-items {
  width: 100%;
  border-collapse: collapse;
}

.cart-items th {
  padding: 0 0 20.7px;
  border-bottom: 1px solid var(--green-line);
  color: var(--green-soft);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 1.5px;
  text-align: left;
  text-transform: uppercase;
  opacity: 0.85;
}

.cart-items td {
  padding: 46px 0 0;
  vertical-align: top;
}

.cart-items tbody tr:last-child td {
  padding-bottom: 34.5px;
}

.cart-items tbody {
  border-bottom: 1px solid var(--green-line);
}

.cart-items .cart-col-total,
.cart-item-total {
  text-align: right;
}

.cart-item.stopped {
  opacity: 0.7;
}

.cart-item-media {
  width: 132px;
}

/* The words' column as the website's: 35rem wide, 50rem from 990 px. */
@media (min-width: 750px) {
  .cart-item-details {
    width: 402.5px;
  }
  .cart-picture {
    max-width: none;
  }
}

@media (min-width: 990px) {
  .cart-item-details {
    width: 575px;
  }
}

.cart-picture {
  display: block;
  width: 132px;
  height: auto;
  aspect-ratio: 4 / 3;
  background: var(--card);
  object-fit: cover;
}

.cart-item-details p {
  margin: 0;
  max-width: 575px;
}

.cart-line-name {
  color: var(--green);
  font-size: 16.1px;
  line-height: 1.5;
  letter-spacing: var(--heading-spacing);
}

.cart-line-how {
  margin-top: 6.9px !important;
  font-size: 15px;
  line-height: 1.435;
}

.cart-line-change {
  display: flex;
  align-items: center;
  gap: 0 11.5px;
}

.cart-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--green-soft);
  cursor: pointer;
}

.cart-remove svg {
  width: 17.25px;
  height: 17.25px;
}

.cart-remove:hover {
  color: var(--green);
}

.cart-remove:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.cart-item-total {
  color: var(--green);
  white-space: nowrap;
  letter-spacing: 1.15px;
}

/* Wide: the product's column 60% (50% to 990 px), each column 46 px from the last. */
@media (min-width: 750px) {
  .cart-items th:first-child {
    width: 50%;
  }
  .cart-items th + th,
  .cart-items td + td {
    padding-left: 46px;
  }
  .cart-items .cart-col-quantity,
  .cart-item-quantity {
    padding-left: 57.5px !important;
  }
}

@media (min-width: 990px) {
  .cart-items th:first-child {
    width: 60%;
  }
  .cart-items .cart-col-quantity,
  .cart-item-quantity {
    padding-left: 69px !important;
  }
}

/* A phone: each line a grid, as the website's; no "Quantity" heading. */
@media (max-width: 749px) {
  .cart-items,
  .cart-items thead,
  .cart-items tbody {
    display: block;
    width: 100%;
  }
  .cart-items thead tr {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgb(70 82 62 / 0.2);
    margin-bottom: 46px;
  }
  .cart-items th {
    border: 0;
  }
  .cart-items .cart-col-quantity {
    display: none;
  }
  .cart-items tbody {
    padding-bottom: 34.5px;
  }
  .cart-item {
    display: grid;
    grid-template: repeat(2, auto) / repeat(4, minmax(0, 1fr));
    gap: 17.25px;
    margin-bottom: 40px;
  }
  .cart-item:last-child {
    margin-bottom: 0;
  }
  .cart-items td,
  .cart-items tbody tr:last-child td {
    display: block;
    padding: 0;
  }
  .cart-item-media {
    grid-row: 1 / 3;
    width: auto;
  }
  .cart-picture {
    width: 100%;
  }
  .cart-item-details {
    grid-column: 2 / 4;
  }
  .cart-item-quantity {
    grid-column: 2 / 5;
  }
  .cart-item-total {
    grid-column: 4;
    grid-row: 1;
  }
}

/* The summary: at the right under the lines, "Check out" across it. */
.cart-footer {
  display: flex;
  justify-content: flex-end;
  padding: 46px 0 0;
}

.cart-summary {
  display: grid;
  gap: 17.25px;
  width: 100%;
}

@media (min-width: 750px) {
  .cart-summary {
    width: 402.5px;
  }
}

.cart-pickup {
  display: grid;
  gap: 6.9px;
  font-size: 14.95px;
  letter-spacing: 0.46px;
}

/* The pickup's list: round, with the website's small arrow drawn at the right. */
.cart-pickup select {
  width: 100%;
  min-height: 51.75px;
  padding: 0 44px 0 17px;
  border: 1px solid var(--green);
  border-radius: var(--radius-input);
  background: var(--paper);
  color: var(--green);
  font: inherit;
  font-size: 16.1px;
  letter-spacing: 0.69px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--green) 50%),
    linear-gradient(135deg, var(--green) 50%, transparent 50%);
  background-position:
    calc(100% - 24px) 50%,
    calc(100% - 19px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.cart-pickup select:focus-visible,
.cart-line-change input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.cart-when {
  margin: 0;
  color: var(--green);
  font-size: 15px;
  line-height: 1.5;
}

.cart-summary > p {
  margin: 0;
}

.cart-totals {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 4px 24px;
  margin: 0;
}

.cart-totals dt,
.cart-totals dd {
  margin: 0;
  font-size: 15px;
}

.cart-totals dd {
  text-align: right;
  letter-spacing: 1.15px;
}

.cart-totals .strong {
  margin-top: 8px;
  color: var(--green);
}

.cart-totals dt.strong {
  font-size: 16px;
}

.cart-totals dd.strong {
  font-size: 20.7px;
}

.cart-go {
  display: flex;
  width: 100%;
}

/* An empty cart: its words and the way back, in the middle, as the website's. */
.cart-empty {
  padding-top: 40px;
  text-align: center;
}

/*
  The checkout, as Shopify's checkout is (R222, R223): its own header with the logo and the way
  back to the cart, no menu and no footer. A browser not signed in first sees one box, "Log in
  or register", in the middle at the top. Then one page: on the left, white, the pickup, the
  buyer's details and the payment under small headings, with one button across; on the right a
  pale panel to the page's edge with the order. Together at most 1200 px, in the middle. On a
  phone the order is under a bar at the top, opened by a tap. Inputs are rectangles with small
  corners, a small label above each. Everything the script draws after the page is shown goes
  into a place kept for it, or below everything else, so nothing moves.
*/
/* The checkout's header scrolls away with the page, as Shopify's does: held at the top, it covered
   the top of the order panel, which is held there as the left column scrolls. It is as tall as
   the website's header at every width, so the steps under it are where the cart has them. */
.checkout-header {
  position: static;
}

.checkout-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 11px 24px;
}

@media (min-width: 990px) {
  .checkout-header-row {
    padding-top: 18px;
    padding-bottom: 18px;
  }
}

/*
  The steps on top of the cart and the checkout (R226), as a store's checkout shows them: Cart,
  Account, Payment, each a ring with its number and its name, joined by a line, in a band right
  under the header, the same height on every page. The one they're on is a filled green ring and
  a dark name; those passed are a green ring with a tick, and the line up to the one they're on
  is green; those to come, and the line to them, are pale. On a phone each name is under its
  ring, the band at most 80 px tall; wider, beside it. A step changes only its colors and its
  tick, never its size, so nothing moves.
*/
.checkout-steps {
  --ring: 32px;
  --step-line: rgb(70 82 62 / 0.2);
  border-top: 1px solid var(--green-line);
  border-bottom: 1px solid var(--green-line);
  background: var(--paper);
  color: var(--green);
  font-size: 15px;
  letter-spacing: 0.4px;
  line-height: 18px;
}

.checkout-steps ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 400px;
  margin: 0 auto;
  padding: 10px 8px;
  list-style: none;
  white-space: nowrap;
}

.checkout-steps .step {
  position: relative;
}

.checkout-steps .step,
.checkout-steps .step > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.checkout-steps .step > a {
  color: inherit;
  text-decoration: none;
}

.checkout-steps .step > a:hover .step-name {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* The line from the step before to this one, between the rings. */
.checkout-steps .step + .step::before {
  content: '';
  position: absolute;
  top: calc(var(--ring) / 2 - 1px);
  left: calc(-50% + var(--ring) / 2 + 8px);
  right: calc(50% + var(--ring) / 2 + 8px);
  height: 2px;
  border-radius: 1px;
  background: var(--step-line);
}

.step-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--ring);
  height: var(--ring);
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--paper);
  font-size: 15px;
  letter-spacing: 0;
}

.step-mark svg {
  display: none;
  width: 16px;
  height: 16px;
}

.checkout-steps [data-state='done'] {
  color: var(--green-soft);
}

.checkout-steps [data-state='done'] .step-mark {
  color: var(--green);
}

.checkout-steps [data-state='done'] .step-number {
  display: none;
}

.checkout-steps [data-state='done'] .step-mark svg {
  display: block;
}

.checkout-steps [data-state='current'] .step-mark {
  border-color: var(--green);
  background: var(--green);
  color: var(--paper);
}

.checkout-steps [data-state='current'] .step-name {
  color: var(--green);
  /* Ovo has one weight: the stroke gives a medium one without changing the name's width. */
  -webkit-text-stroke: 0.4px currentColor;
}

.checkout-steps [data-state='next'] {
  color: rgb(70 82 62 / 0.45);
}

.checkout-steps [data-state='next'] .step-mark {
  border-color: var(--step-line);
}

/* The line to a step reached is green. */
.checkout-steps .step:is([data-state='done'], [data-state='current'])::before {
  background: var(--green);
}

/* Wider: each name beside its ring, the three in a row in the middle, joined by a line. */
@media (min-width: 750px) {
  .checkout-steps {
    --ring: 36px;
    font-size: 17px;
    line-height: 20px;
  }
  .checkout-steps ol {
    display: flex;
    justify-content: center;
    max-width: none;
    padding: 18px 24px;
  }
  .checkout-steps .step,
  .checkout-steps .step > a {
    flex-direction: row;
    gap: 12px;
  }
  .checkout-steps .step + .step::before {
    position: static;
    flex: none;
    width: 96px;
    margin: 0 4px 0 16px;
  }
}

.checkout-header .site-logo img {
  display: block;
}

.site-main:has(> .checkout) {
  display: flex;
  flex-direction: column;
}

.checkout {
  flex: 1;
  display: flex;
  flex-direction: column;
  --checkout-ink: var(--green);
  --checkout-pale: rgb(245 244 240);
  --checkout-line: rgb(70 82 62 / 0.18);
  --checkout-radius: 5px;
  color: var(--checkout-ink);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

.checkout h1 {
  font-size: 26px;
}

.checkout-opening {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Step one: one box, in the middle at the top, as a store's login is. */
.checkout-login {
  width: calc(100% - 40px);
  max-width: 440px;
  margin: 48px auto;
  padding: 32px 28px;
  border: 1px solid var(--checkout-line);
  border-radius: 8px;
}

.checkout-login-form {
  display: grid;
  gap: 16px;
}

.checkout-lede {
  margin: 0;
}

.checkout-login-more {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0;
}

/* Inputs: rectangles with small corners, across, a small label above. */
.checkout-field {
  display: grid;
  gap: 5px;
  font-size: 13px;
}

.checkout-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--checkout-line);
  border-radius: var(--checkout-radius);
  background: var(--paper);
  color: var(--checkout-ink);
  font: inherit;
  font-size: 16px;
  letter-spacing: 0.3px;
}

.checkout-field input:focus-visible {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.checkout-field input:disabled,
.checkout-check input:disabled + span,
.checkout-choice input:disabled + span {
  opacity: 0.6;
}

.checkout-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.checkout-check input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.checkout-go {
  width: 100%;
  border-radius: var(--checkout-radius);
}

.checkout-go:disabled {
  opacity: 0.6;
  cursor: default;
}

.checkout-problem {
  margin: 12px 0 0;
  color: var(--critical);
}

.checkout-login-form .checkout-problem {
  margin: 0;
}

/* Step two: the page. */
.checkout-page {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}

.checkout-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  border: 0;
  border-bottom: 1px solid var(--checkout-line);
  background: var(--checkout-pale);
  color: var(--checkout-ink);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.checkout-toggle-total {
  font-size: 17px;
}

.checkout-aside {
  display: none;
  background: var(--checkout-pale);
  border-bottom: 1px solid var(--checkout-line);
}

.checkout-aside.open {
  display: block;
}

.checkout-aside-inner {
  padding: 20px;
}

.checkout-main {
  padding: 24px 20px 48px;
}

@media (min-width: 1000px) {
  /* The two columns run to the bottom of the window, the panel pale all the way. */
  .checkout-page {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-content: stretch;
  }

  .checkout-toggle {
    display: none;
  }

  .checkout-main {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    width: 100%;
    max-width: 600px;
    padding: 40px 48px 64px 24px;
  }

  .checkout-aside,
  .checkout-aside.open {
    display: block;
    grid-column: 2;
    grid-row: 1;
    border-bottom: 0;
    border-left: 1px solid var(--checkout-line);
  }

  .checkout-aside-inner {
    position: sticky;
    top: 0;
    max-width: 600px;
    padding: 40px 24px 64px 48px;
  }
}

.checkout-who {
  margin: 0 0 20px;
}

.checkout-section {
  margin: 0 0 28px;
}

.checkout-section h2 {
  margin: 0 0 12px;
  font-size: 19px;
}

.checkout-pickup {
  display: grid;
  margin: 0;
}

.checkout-pickup-place {
  font-size: 16px;
}

.checkout-change {
  display: inline-block;
  margin-top: 6px;
  color: var(--checkout-ink);
  text-underline-offset: 0.3em;
}

/* A signed-in customer's details, as the farm keeps them (R225). */
.checkout-details {
  display: grid;
  margin: 0;
}

.checkout-details-change {
  margin: 6px 0 0;
  font-size: 14px;
}

.checkout-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.checkout-choices {
  display: grid;
  margin-bottom: 12px;
  border: 1px solid var(--checkout-line);
  border-radius: var(--checkout-radius);
}

.checkout-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 14px;
}

.checkout-choice + .checkout-choice {
  border-top: 1px solid var(--checkout-line);
}

.checkout-choice input {
  width: 18px;
  height: 18px;
  margin: 0;
}

/*
  The place kept for Stripe's card fields, as tall as they open (measured 2026-10-10: 284 px on a
  phone and 212 px wide), so nothing moves when they do. A card kept for a share is the same: the
  page's own sentence says what it may be charged for, not Stripe's (R102).
*/
.checkout-card {
  min-height: 320px;
  padding: 14px;
  border: 1px solid var(--checkout-line);
  border-radius: var(--checkout-radius);
  background: var(--paper);
}

@media (min-width: 1000px) {
  .checkout-card {
    min-height: 250px;
  }
}

.checkout-card > p {
  margin: 0;
}

.checkout-agree {
  margin: 0 0 16px;
  font-size: 14px;
}

/* The order: each item with its picture and how many, then what it comes to. */
.checkout-items {
  display: grid;
  gap: 14px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.checkout-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.checkout-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  border: 1px solid var(--checkout-line);
  border-radius: 8px;
  background: var(--paper);
}

/* Its <picture> too, which an edge-to-edge page's rule (site.css) makes a block of its own. */
.checkout-thumb picture,
.checkout-thumb img,
.checkout-thumb .leaf-thumb {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 7px;
  object-fit: cover;
}

.checkout-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 11px;
  background: rgb(70 82 62 / 0.85);
  color: var(--paper);
  font-size: 12px;
  line-height: 21px;
  text-align: center;
}

.checkout-item-words {
  display: grid;
}

.checkout-item-how {
  font-size: 13px;
  color: var(--green-soft);
}

.checkout-item-price {
  text-align: right;
  white-space: nowrap;
}

.checkout-sums {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  margin: 0;
}

.checkout-sums dt,
.checkout-sums dd {
  margin: 0;
}

.checkout-sums dd {
  text-align: right;
}

.checkout-sums .checkout-total {
  margin-top: 6px;
  font-size: 19px;
}

/* An amount with its note under it, smaller and gray: "starts Thu, Nov 12" (R285, R287). In the
   cart's and the checkout's sums and the phone's order bar. */
.amount {
  display: inline-grid;
  justify-items: end;
}

.amount-note {
  color: var(--green-soft);
  font-size: 13px;
  font-weight: normal;
  letter-spacing: normal;
  line-height: 1.4;
  white-space: nowrap;
}

/*
  Invoices (R305; src/accountPages.ts, `invoicesPage`): the shop's checkout for a customer's open
  invoices. On a phone, as Shopify's invoice checkout: the card, then what is being paid in rows
  closed to start, then "Pay now", nothing else beside it. On a computer, the shop's two columns,
  "Pay now" under the card and what is being paid open on the right.
*/
.invoice-checkout-page {
  grid-template-areas: 'card' 'order' 'go';
}

.invoice-checkout-card {
  grid-area: card;
  padding-bottom: 0;
}

.invoice-checkout-card .checkout-section {
  margin-bottom: 8px;
}

.invoice-checkout-kept,
.invoice-checkout-receipt {
  margin: 10px 0 0;
}

.invoice-checkout .checkout-aside {
  grid-area: order;
  display: block;
  background: none;
  border-bottom: 0;
}

.invoice-checkout .checkout-aside-inner {
  padding: 12px 20px 0;
}

.invoice-checkout-go {
  grid-area: go;
  padding: 20px 20px 48px;
}

.invoice-checkout-back {
  margin: 18px 0 0;
  font-size: 14px;
  text-align: center;
}

.invoice-checkout-back a {
  color: var(--checkout-ink);
  text-underline-offset: 0.3em;
}

/* The privacy policy's link, small, under a checkout's pay button (src/siteFrame.ts). */
.checkout-privacy {
  margin: 16px 0;
  font-size: 13px;
  text-align: center;
}

.checkout-privacy a {
  color: var(--green);
  text-underline-offset: 0.3em;
}

/* An invoice's number after the customer's own name for it, never broken. */
.invoice-checkout-number {
  color: var(--green-soft);
  white-space: nowrap;
}

/* A row that opens an invoice's lines: its photos, its words, its amount and a caret. */
.invoice-open {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 12px 0;
  border: 0;
  background: none;
  color: var(--checkout-ink);
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}

.invoice-open-words {
  display: grid;
  min-width: 0;
}

.invoice-open-name {
  overflow-wrap: anywhere;
}

.invoice-open-more {
  color: var(--green-soft);
  font-size: 13px;
}

.invoice-open-amount {
  font-size: 16px;
  white-space: nowrap;
}

.invoice-caret {
  width: 18px;
  height: 18px;
  transition: transform 0.15s ease;
}

.invoice-open[aria-expanded='true'] .invoice-caret {
  transform: rotate(180deg);
}

.invoice-open[aria-expanded='false'] + .checkout-items,
.invoice-open[aria-expanded='false'] + .invoice-one {
  display: none;
}

/* Two photos stacked, the second tucked under the first. */
.invoice-stack {
  display: flex;
}

.invoice-stack-photo {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 2px solid var(--paper);
  border-radius: 9px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--checkout-line);
}

.invoice-stack-photo:first-child {
  z-index: 1;
}

.invoice-stack-photo + .invoice-stack-photo {
  margin-left: -20px;
  margin-top: 8px;
}

.invoice-stack-photo picture,
.invoice-stack-photo img,
.invoice-stack-photo .leaf-thumb {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 7px;
  object-fit: cover;
}

/* One invoice: a row on a phone over its lines and sums. */
.invoice-summary {
  border-top: 1px solid var(--checkout-line);
  border-bottom: 1px solid var(--checkout-line);
}

.invoice-one {
  padding-top: 20px;
}

.invoice-checkout-title {
  margin: 0 0 2px;
  font-size: 19px;
}

.invoice-checkout-day {
  margin: 0 0 20px;
  color: var(--green-soft);
}

.invoice-one .checkout-items {
  padding-top: 8px;
}

/* Several: each a row with its tick, which has a tap area of its own; an unticked one faint. */
.invoice-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--checkout-line);
}

.invoice-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  border-bottom: 1px solid var(--checkout-line);
}

.invoice-row-tick {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-left: -12px;
  cursor: pointer;
}

.invoice-row-tick input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--green);
  cursor: pointer;
}

.invoice-row:has(.invoice-row-tick input:not(:checked)) .invoice-open {
  opacity: 0.5;
}

.invoice-row .checkout-items {
  grid-column: 2;
  margin: 0;
  padding: 8px 0 18px;
}

.invoice-rows-total {
  margin-top: 8px;
}

.invoice-rows-total [data-pay-count] {
  color: var(--green-soft);
  font-size: 15px;
}

@media (min-width: 1000px) {
  .invoice-checkout-page {
    grid-template-areas: 'card order' 'go order';
    grid-template-rows: auto 1fr;
  }

  .invoice-checkout .checkout-aside {
    grid-row: 1 / span 2;
    background: var(--checkout-pale);
  }

  .invoice-checkout .checkout-aside-inner {
    padding: 40px 24px 64px 48px;
  }

  .invoice-checkout-go {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
    width: 100%;
    max-width: 600px;
    padding: 12px 48px 64px 24px;
  }

  /* One invoice: its lines and sums open, no row. */
  .invoice-summary {
    display: none;
  }

  .invoice-open[aria-expanded='false'] + .invoice-one {
    display: block;
  }

  .invoice-one {
    padding-top: 0;
  }

  .invoice-stack-photo,
  .invoice-stack-photo + .invoice-stack-photo {
    border-color: var(--checkout-pale);
  }
}

.checkout-done h1 {
  margin-bottom: 16px;
}

.notice {
  margin: 0 0 16px;
  padding: 14px 18px;
  border-radius: var(--radius-box);
  background: var(--cream);
  color: var(--green);
}

.checkout .notice {
  border-radius: var(--checkout-radius);
}

.notice[data-kind='problem'] {
  background: rgb(176 58 46 / 0.08);
  color: rgb(140 40 30);
}

.notice ul {
  margin: 6px 0 0;
}

.link-button {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  cursor: pointer;
}

.quiet {
  color: var(--green-soft);
}

.small {
  font-size: 14px;
}

/*
  The flowers while a payment goes through, and the bouquet once it has (public/garden.js):
  farm_hub's Build button garden (`.oe-garden`). While paying, the flowers grow in the Pay
  button's place, at its height, beside a farm chore with a light passing through it, so
  nothing below moves. The leaves, soil and twine are farm_hub's colors; the chore is in the
  checkout's own ink and type.
*/
.garden,
.garden-bouquet {
  --leaf: #3d7a5a;
  --soil: #cabfae;
  --twine: #a67a4c;
}

.garden {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
}

.garden-bed {
  display: block;
  flex: none;
  width: 34px;
  height: 47px;
  overflow: visible;
}

/*
  The words keep one width, the longest chore's ("Snipping stem ends…", 19 characters), so
  they don't jump as the chore changes.
*/
.garden-words {
  position: relative;
  display: block;
  width: 9.6em;
  height: 1.5em;
  overflow: hidden;
  font-family: var(--font);
  font-size: 16px;
  letter-spacing: 0.3px;
}

/* A new chore slides up in as the old one slides out. */
.garden-chore {
  position: absolute;
  inset: 0;
  white-space: nowrap;
  line-height: 1.5em;
  transition:
    transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.32s ease;
  /* The shimmer: a pale light passing left to right through the words, then resting. */
  color: var(--checkout-ink, var(--green));
  background: linear-gradient(
    100deg,
    var(--checkout-ink, var(--green)) 0%,
    var(--checkout-ink, var(--green)) 38%,
    rgb(176 190 152) 50%,
    var(--checkout-ink, var(--green)) 62%,
    var(--checkout-ink, var(--green)) 100%
  );
  background-size: 300% 100%;
  background-position: 100% 0;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: garden-shimmer 2.2s ease-in-out infinite;
}

.garden-chore.is-out {
  transform: translateY(-80%);
  opacity: 0;
}

.garden-chore.is-in {
  transform: translateY(80%);
  opacity: 0;
}

@keyframes garden-shimmer {
  0% {
    background-position: 100% 0;
  }
  55% {
    background-position: 0% 0;
  }
  100% {
    background-position: 0% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .garden-chore {
    animation: none;
    -webkit-text-fill-color: currentColor;
    background: none;
    transition: none;
  }
}

/*
  Once paid: the bouquet, made and tied, above the thanks, its flowers in line with the words'
  left edge. Its drawing is cut to the tied bouquet (garden.js), so these are its own size; the
  stems come in from beyond it as they are laid in.
*/
.garden-bouquet-bed {
  display: block;
  width: 142px;
  height: 160px;
  margin: 0 0 12px;
  overflow: visible;
}

@media (max-width: 749px) {
  .garden-bouquet-bed {
    width: 124px;
    height: 140px;
  }
}
