/*!
 * ANP Market Day — About Us and Contact.
 *
 * Both pages are written in the product page's vocabulary (bands, eyebrows, buttons), so this file
 * only adds what those two layouts need on top of market-day.css.
 */

/* The page hero already names the page; the theme's own article box would draw a second frame
   around ours, so the content area gets out of the way. */
.amd-brandpage .site-main,
.amd-brandpage .entry-content,
.amd-brandpage .inside-article {
  padding: 0; margin: 0; max-width: none; background: transparent; box-shadow: none;
}
.amd-brandpage .entry-header, .amd-brandpage .entry-footer { display: none; }
.amd-brandpage .amd { background: var(--paper); }

/* ==============================================================================================
   About
   ============================================================================================== */

.amd-about .amd-ab-intro { padding: clamp(48px, 6vw, 86px) 0; }
.amd-about .amd-ab-intro .amd-wrap {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.amd-about .amd-ab-copy h2 {
  margin: 12px 0 22px;
  font: 600 clamp(28px, 3.4vw, 42px)/1.18 var(--slab); color: var(--green-ink);
  max-width: 20ch;
}
.amd-about .amd-ab-copy p {
  margin: 0 0 1.15em; font: 400 17px/1.75 var(--sans); color: var(--ink-2); max-width: 58ch;
}
.amd-about .amd-ab-copy p:first-of-type { font-size: 18.5px; color: var(--charcoal); }

.amd-about .amd-ab-shot { margin: 0; }
.amd-about .amd-ab-shot img {
  width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover;
  border-radius: 26px; box-shadow: 0 30px 50px -34px rgba(60, 40, 20, .8);
}
.amd-about .amd-ab-shot figcaption {
  margin-top: 14px; font: 600 13.5px/1.5 var(--sans); color: var(--brown); text-align: center;
}

.amd-about .amd-ab-cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 26px);
}
.amd-about .amd-ab-card {
  background: var(--white); border-radius: 22px; padding: clamp(24px, 3vw, 34px);
  box-shadow: 0 0 0 1px var(--line), 0 18px 32px -28px rgba(60, 40, 20, .7);
}
.amd-about .amd-ab-card .amd-ic { font-size: 40px; color: var(--green-dk); display: block; margin-bottom: 14px; }
.amd-about .amd-ab-card h3 { margin: 0 0 8px; font: 600 21px/1.25 var(--slab); color: var(--green-ink); }
.amd-about .amd-ab-card p { margin: 0; font: 400 15.5px/1.6 var(--sans); color: var(--ink-2); }

/* The figures are counted from the store list, so they stay true as shops are added. */
.amd-about .amd-ab-numbers { background: var(--green-ink); color: #FFFDF8; padding: clamp(34px, 4vw, 54px) 0; }
.amd-about .amd-ab-numbers .amd-wrap {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; text-align: center;
}
.amd-about .amd-ab-numbers b {
  display: block; font: 600 clamp(28px, 3.4vw, 40px)/1 var(--slab); color: #FFFDF8;
}
.amd-about .amd-ab-numbers span {
  display: block; margin-top: 8px;
  font: 600 12px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  color: rgba(248, 242, 227, .75);
}
.amd-about .amd-ab-numbers div + div { border-left: 1px solid rgba(248, 242, 227, .22); }

.amd-about .amd-ab-ends { padding: clamp(44px, 5vw, 72px) 0 clamp(28px, 3vw, 40px); }
.amd-about .amd-ab-ends .amd-wrap {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 28px);
}
.amd-about .amd-ab-end {
  background: var(--white); border-radius: 22px; padding: clamp(26px, 3.2vw, 38px);
  box-shadow: 0 0 0 1px var(--line);
  display: grid; gap: 12px; justify-items: start; align-content: start;
}
.amd-about .amd-ab-end h3 { margin: 0; font: 600 23px/1.25 var(--slab); color: var(--green-ink); }
.amd-about .amd-ab-end p { margin: 0; font: 400 15.5px/1.6 var(--sans); color: var(--ink-2); max-width: 44ch; }
.amd-about .amd-ab-end-green { background: var(--green-ink); box-shadow: none; }
.amd-about .amd-ab-end-green h3 { color: #FFFDF8; }
.amd-about .amd-ab-end-green p { color: rgba(248, 242, 227, .82); }

.amd-about .amd-ab-call {
  margin: 0; padding: 0 24px clamp(48px, 5vw, 72px);
  text-align: center; font: 500 16px/1.6 var(--sans); color: var(--brown);
}
.amd-about .amd-ab-call a { color: var(--green-dk); font-weight: 700; text-decoration: none; }
.amd-about .amd-ab-call a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ==============================================================================================
   Contact
   ============================================================================================== */

.amd-contact .amd-ct-top { padding: clamp(44px, 5vw, 78px) 0; }
.amd-contact .amd-ct-top .amd-wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(28px, 4vw, 56px); align-items: start;
}
.amd-contact .amd-ct-ways h2 {
  margin: 12px 0 14px; font: 600 clamp(28px, 3.2vw, 40px)/1.18 var(--slab); color: var(--green-ink);
}
.amd-contact .amd-ct-ways .amd-lede { margin: 0 0 26px; max-width: 46ch; }

.amd-contact .amd-ct-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.amd-contact .amd-ct-card {
  display: grid; gap: 4px; padding: 20px;
  background: var(--white); border-radius: 18px; text-decoration: none;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform .18s ease, box-shadow .18s ease;
}
.amd-contact .amd-ct-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--green), 0 18px 30px -26px rgba(60, 40, 20, .8);
}
.amd-contact .amd-ct-card .amd-ic { font-size: 26px; color: var(--green-dk); margin-bottom: 6px; }
.amd-contact .amd-ct-card b { font: 700 12px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--brown); }
.amd-contact .amd-ct-card span { font: 600 16px/1.4 var(--slab); color: var(--green-ink); overflow-wrap: anywhere; }

.amd-contact .amd-ct-hours {
  display: flex; align-items: center; gap: 9px; margin: 18px 0 0;
  font: 600 14.5px/1.4 var(--sans); color: var(--brown);
}
.amd-contact .amd-ct-hours .amd-ic { font-size: 18px; color: var(--green-dk); }

.amd-contact .amd-ct-form {
  background: var(--white); border-radius: 24px; padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 0 0 1px var(--line), 0 24px 40px -34px rgba(60, 40, 20, .8);
}
.amd-contact .amd-ct-form h3 { margin: 0 0 6px; font: 600 23px/1.25 var(--slab); color: var(--green-ink); }
.amd-contact .amd-ct-form > p { margin: 0 0 20px; font: 400 15px/1.6 var(--sans); color: var(--ink-2); }

/* Gravity Forms again writes its colours from a block keyed to the form's id, which outranks any
   class selector — so the variables it reads are restated here, scoped to this card. */
.amd-contact .amd-ct-form .gform_wrapper.gform-theme,
.amd-contact .amd-ct-form [id^="gform_wrapper_"] {
  --gf-color-primary: #009639 !important;
  --gf-color-primary-rgb: 0, 150, 57 !important;
  --gf-color-primary-contrast: #ffffff !important;
  --gf-color-primary-darker: #0A6B2E !important;
  --gf-ctrl-radius: 12px !important;
  --gf-ctrl-btn-radius: 999px !important;
  --gf-ctrl-label-color-primary: #6B4B2B !important;
  margin: 0 !important;
}
.amd-contact .amd-ct-form .gfield_label,
.amd-contact .amd-ct-form legend.gfield_label {
  font: 700 11.5px/1 var(--sans) !important; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brown) !important; margin-bottom: 6px !important;
}
.amd-contact .amd-ct-form input[type="text"],
.amd-contact .amd-ct-form input[type="email"],
.amd-contact .amd-ct-form input[type="tel"],
.amd-contact .amd-ct-form textarea,
.amd-contact .amd-ct-form select {
  width: 100% !important; box-sizing: border-box;
  padding: 12px 14px !important; margin: 0;
  border: 1px solid var(--line) !important; border-radius: 12px !important;
  background: var(--paper) !important; color: var(--charcoal) !important;
  font: 500 15.5px/1.4 var(--sans) !important;
  -webkit-appearance: none; appearance: none;
}
.amd-contact .amd-ct-form input[type="text"]:focus,
.amd-contact .amd-ct-form input[type="email"]:focus,
.amd-contact .amd-ct-form input[type="tel"]:focus,
.amd-contact .amd-ct-form textarea:focus {
  outline: 0; border-color: var(--green) !important;
  box-shadow: 0 0 0 3px rgba(0, 150, 57, .18) !important;
}
.amd-contact .amd-ct-form textarea { min-height: 140px !important; }
.amd-contact .amd-ct-form .gform_button {
  width: 100% !important; min-height: 50px !important;
  border: 0 !important; border-radius: 999px !important;
  background: var(--green) !important; color: #fff !important;
  font: 700 15.5px/1 var(--sans) !important; cursor: pointer;
  transition: background .25s;
}
.amd-contact .amd-ct-form .gform_button:hover { background: var(--brown) !important; }
.amd-contact .amd-ct-fallback { font: 500 15px/1.6 var(--sans); color: var(--ink-2); }
.amd-contact .amd-ct-fallback a { color: var(--green-dk); font-weight: 700; }

.amd-contact .amd-ct-help .amd-wrap {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 28px);
}
.amd-contact .amd-ct-help article {
  background: var(--white); border-radius: 22px; padding: clamp(24px, 3vw, 34px);
  box-shadow: 0 0 0 1px var(--line);
  display: grid; gap: 10px; justify-items: start; align-content: start;
}
.amd-contact .amd-ct-help .amd-ic { font-size: 34px; color: var(--green-dk); }
.amd-contact .amd-ct-help h3 { margin: 0; font: 600 21px/1.3 var(--slab); color: var(--green-ink); }
.amd-contact .amd-ct-help p { margin: 0 0 4px; font: 400 15.5px/1.6 var(--sans); color: var(--ink-2); max-width: 46ch; }

/* ==============================================================================================
   Narrow
   ============================================================================================== */

@media (max-width: 900px) {
  .amd-about .amd-ab-intro .amd-wrap,
  .amd-contact .amd-ct-top .amd-wrap { grid-template-columns: 1fr; }
  .amd-about .amd-ab-shot { order: -1; }
  .amd-about .amd-ab-cards { grid-template-columns: 1fr; }
  .amd-about .amd-ab-numbers .amd-wrap { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .amd-about .amd-ab-numbers div:nth-child(odd) { border-left: 0; }
  .amd-about .amd-ab-numbers div:nth-child(3) { border-left: 0; }
  .amd-about .amd-ab-ends .amd-wrap,
  .amd-contact .amd-ct-help .amd-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .amd-contact .amd-ct-grid { grid-template-columns: 1fr; }
  .amd-about .amd-ab-copy h2 { font-size: 27px; }
}

/* ==============================================================================================
   Shop
   ============================================================================================== */

.amd-shop .site-main,
.amd-shop .entry-content,
.amd-shop .inside-article { padding: 0; margin: 0; max-width: none; background: transparent; box-shadow: none; }
.amd-shop .entry-header, .amd-shop .woocommerce-products-header { display: none; }
.amd-shoppage { background: var(--paper); }

.amd-sp-head { padding: clamp(34px, 4vw, 56px) 0 clamp(20px, 2.5vw, 30px); }
.amd-sp-head h1 {
  margin: 10px 0 12px;
  font: 600 clamp(32px, 4vw, 52px)/1.1 var(--slab); color: var(--green-ink);
}
.amd-sp-head .amd-lede { margin: 0 0 24px; max-width: 62ch; }

.amd-sp-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.amd-sp-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--white); color: var(--brown);
  box-shadow: 0 0 0 1px var(--line);
  font: 700 14px/1 var(--sans);
  transition: background .2s, color .2s, box-shadow .2s;
}
.amd-sp-chip b {
  font: 700 11.5px/1 var(--sans);
  background: var(--tan-2); color: var(--brown);
  border-radius: 999px; padding: 4px 7px;
}
.amd-sp-chip:hover { background: var(--tan-2); }
.amd-sp-chip.is-on { background: var(--green); color: #fff; box-shadow: none; }
.amd-sp-chip.is-on b { background: rgba(255, 255, 255, .22); color: #fff; }
.amd-sp-chip:focus-visible { outline: 3px solid var(--pumpkin); outline-offset: 2px; }

.amd-sp-body { padding: 0 0 clamp(44px, 5vw, 72px); }
.amd-sp-count {
  margin: 0 0 18px;
  font: 700 11.5px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--brown);
}

.amd-sp-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
.amd-sp-card {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: 22px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.amd-sp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px var(--green), 0 24px 36px -28px rgba(60, 40, 20, .8);
}
.amd-sp-shot {
  display: grid; place-items: center; padding: 22px 18px 6px;
  background: linear-gradient(180deg, var(--beige) 0%, var(--white) 100%);
  min-height: 190px;
}
.amd-sp-shot img { max-width: 100%; max-height: 172px; width: auto; height: auto; object-fit: contain; }
.amd-sp-body-in { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.amd-sp-line {
  font: 700 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--pumpkin);
}
.amd-sp-card h2 { margin: 0; font: 600 19px/1.25 var(--slab); }
.amd-sp-card h2 a { color: var(--green-ink); text-decoration: none; }
.amd-sp-card p {
  margin: 0; font: 400 13.5px/1.5 var(--sans); color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.amd-sp-foot {
  margin-top: auto; padding-top: 12px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.amd-sp-price { font: 700 15px/1.2 var(--sans); color: var(--green-dk); }
.amd-sp-go {
  display: inline-flex; align-items: center; gap: 6px;
  font: 700 12.5px/1 var(--sans); color: var(--brown);
}
.amd-sp-go .amd-ic { font-size: 14px; transition: transform .2s ease; }
.amd-sp-card:hover .amd-sp-go .amd-ic { transform: translateX(3px); }

.amd-sp-none {
  margin: 28px 0 0; padding: 26px; text-align: center;
  background: var(--white); border-radius: 18px; box-shadow: 0 0 0 1px var(--line);
  font: 500 16px/1.5 var(--sans); color: var(--ink-2);
}

.amd-sp-local .amd-wrap {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(24px, 4vw, 48px); align-items: center;
}
.amd-sp-local h2 { max-width: 20ch; }
.amd-sp-local p { margin: 12px 0 22px; max-width: 54ch; color: var(--ink-2); }
.amd-sp-states { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.amd-sp-states span {
  display: flex; align-items: baseline; gap: 8px;
  font: 600 14px/1.3 var(--sans); color: var(--brown);
}
.amd-sp-states b { font: 700 19px/1 var(--slab); color: var(--green-dk); }

@media (max-width: 900px) {
  .amd-sp-local .amd-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .amd-sp-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .amd-sp-shot { min-height: 138px; padding: 14px 10px 4px; }
  .amd-sp-shot img { max-height: 124px; }
  .amd-sp-body-in { padding: 12px 12px 14px; }
  .amd-sp-card h2 { font-size: 16px; }
  .amd-sp-card p { display: none; }
  .amd-sp-foot { flex-direction: column; align-items: start; gap: 4px; }
  .amd-sp-chip { padding: 9px 13px; font-size: 13px; }
}

/* ----------------------------------------------------------------------------------------------
   Shop: full width, and cards that actually hide.

   The theme boxes its content area, so the page sat in a column with the paper background stopping
   part-way across. And the filter set `hidden` on the cards it wanted out of the way — which a
   `display: flex` on the card quietly overrode, so every filter appeared to do nothing.
   ---------------------------------------------------------------------------------------------- */
/* No 100vw here: the containers below are already the full width of the window, and 100vw counts
   the scrollbar, which pulled the whole page 7px to the left of centre. */
/* The theme lays the content area out as a flex row (content + sidebar), and a plain block child
   of a flex container sizes to its content, not to the row — which is why the page drew 1088px
   wide in a 1920px window with the rest left blank. */
.amd-shop .site-content { display: block; }
.amd-shop .site-content,
.amd-shop .container,
.amd-shop .content-area { max-width: none; padding: 0; margin: 0; }
.amd-shop .amd-shoppage { width: 100%; }
.amd-sp-card[hidden] { display: none !important; }

/* Sale pricing. Discount Rules returns the old and new price together as <del> and <ins>; shown
   as-is they read as one long number, so they are set apart and the card is badged. */
.amd-sp-price { display: flex; flex-direction: column; gap: 1px; }
.amd-sp-price del,
.amd-sp-price del .woocommerce-Price-amount {
  color: var(--brown); opacity: .6; font-weight: 600; font-size: 12.5px;
  text-decoration: line-through; text-decoration-thickness: 1.2px;
}
.amd-sp-price ins { text-decoration: none; color: var(--green-dk); }
.amd-sp-shot { position: relative; }
.amd-sp-sale {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  background: var(--pumpkin); color: #fff;
  font: 700 10.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  border-radius: 999px; padding: 6px 10px;
}

/* Several bag shots are photographed on white, which drew a white square inside the card's warm
   panel. Multiplying the image against the panel lets that white drop away; a cut-out PNG has no
   white to lose, so both kinds sit on the same background. */
.amd-sp-shot img { mix-blend-mode: multiply; }

/* ----------------------------------------------------------------------------------------------
   Contact form spacing.

   Gravity's own row gap is a variable the form's inline block sets, so the rows sat flush: the
   EMAIL label printed directly under the name fields. The select also clipped its own text.
   ---------------------------------------------------------------------------------------------- */
.amd-contact .amd-ct-form .gform_fields {
  display: grid !important;
  grid-row-gap: 20px !important;
  row-gap: 20px !important;
  grid-column-gap: 16px !important;
  column-gap: 16px !important;
}
.amd-contact .amd-ct-form .gfield { margin: 0 !important; padding: 0 !important; }
.amd-contact .amd-ct-form .gfield_label,
.amd-contact .amd-ct-form legend.gfield_label {
  line-height: 1.45 !important; margin-bottom: 7px !important; display: block;
}
.amd-contact .amd-ct-form .ginput_container { margin-top: 0 !important; }

/* The name pair is one row of two. */
.amd-contact .amd-ct-form .ginput_complex.ginput_container_name {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.amd-contact .amd-ct-form .ginput_complex .gform-grid-col { padding: 0 !important; }

/* A select needs its own height and room for the arrow, or the option is cut in half. */
.amd-contact .amd-ct-form select {
  height: 48px !important; line-height: 1.4 !important;
  padding: 0 40px 0 14px !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%236B4B2B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
}
.amd-contact .amd-ct-form textarea { padding: 12px 14px !important; }

/* Turnstile and the button want air around them. */
.amd-contact .amd-ct-form .ginput_container_turnstile { margin-top: 4px; }
.amd-contact .amd-ct-form .gform_footer { margin-top: 20px !important; }
.amd-contact .amd-ct-form .gfield_description,
.amd-contact .amd-ct-form .gform-field-label--type-sub { font: 500 12.5px/1.5 var(--sans); color: var(--ink-2); }

@media (max-width: 480px) {
  .amd-contact .amd-ct-form .ginput_complex.ginput_container_name { grid-template-columns: 1fr; }
}

/* The store map on the shop page: the finder's own tile map, drawn server-side and linked. */
.amd-sp-mapwrap { display: grid; gap: 16px; }
.amd-sp-map { display: block; text-decoration: none; position: relative; }
.amd-sp-map-svg { width: 100%; height: auto; display: block; }
.amd-sp-tile rect { fill: rgba(255, 253, 248, .55); stroke: rgba(107, 75, 43, .18); stroke-width: 1; }
.amd-sp-tile.has rect { fill: var(--white); stroke: rgba(107, 75, 43, .3); }
.amd-sp-bub { fill: rgba(0, 150, 57, .16); stroke: var(--green-dk); stroke-width: 1.2; }
.amd-sp-cnt { fill: var(--green-ink); font-family: var(--slab); font-weight: 600; text-anchor: middle; dominant-baseline: middle; }
.amd-sp-ab { fill: var(--brown); font-family: var(--sans); font-weight: 700; font-size: 11px; opacity: .65; }
.amd-sp-wave { fill: none; stroke: rgba(14, 74, 37, .35); stroke-width: 1.4; }
.amd-sp-map:hover .amd-sp-tile.has rect { stroke: var(--green); }
.amd-sp-maplink {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  font: 700 13px/1 var(--sans); color: var(--green-dk);
}
.amd-sp-map:hover .amd-sp-maplink { color: var(--brown); }
.amd-sp-map:hover .amd-sp-maplink .amd-ic { transform: translateX(3px); }
.amd-sp-maplink .amd-ic { transition: transform .2s ease; }
@media (max-width: 900px) { .amd-sp-map-svg { max-height: 300px; } }

/* ----------------------------------------------------------------------------------------------
   Add to cart from the shelf: size, stepper and button on one line.

   The button had been told to span both grid rows and stretch, which with a pill radius drew it
   as a circle, and the quantity input inherited the theme's full-width rule so its number sat
   outside the 34px the pill allowed.
   ---------------------------------------------------------------------------------------------- */
.amd-sp-buy {
  display: flex; align-items: center; gap: 5px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line);
}
/* flex-basis 0 rather than auto: with auto the select reserves the width of its longest option
   ("30 lb" plus the arrow gutter) and the three controls no longer fit a 280px card. */
.amd-sp-size, .amd-sp-onesize {
  flex: 1 1 0; min-width: 52px; width: auto;
  height: 38px; padding: 0 22px 0 8px; margin: 0;
  border: 1px solid var(--line); border-radius: 10px;
  background-color: var(--paper); color: var(--charcoal);
  font: 600 13px/36px var(--sans);
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%236B4B2B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 7px center;
  text-overflow: ellipsis;
}
.amd-sp-onesize { background-image: none; padding-right: 10px; flex: 0 1 auto; }

.amd-sp-qty {
  flex: 0 0 auto; display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white); height: 38px;
}
.amd-sp-step {
  flex: none; width: 23px; height: 36px; border: 0; background: none; cursor: pointer; padding: 0;
  font: 700 16px/1 var(--sans); color: var(--brown);
}
.amd-sp-step:hover { color: var(--green-dk); }
.amd-sp-num {
  flex: none; width: 22px !important; min-width: 22px; max-width: 22px;
  height: 36px; border: 0; background: none; text-align: center; padding: 0;
  font: 700 13.5px/36px var(--sans); color: var(--charcoal);
  -moz-appearance: textfield; appearance: textfield;
}
.amd-sp-num::-webkit-outer-spin-button,
.amd-sp-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.amd-sp-add {
  flex: 0 0 auto; width: auto; height: 38px; min-height: 0;
  padding: 0 13px; border-radius: 999px;
  font-size: 13px; white-space: nowrap; gap: 0;
}
.amd-sp-add[aria-busy="true"] { opacity: .75; cursor: progress; }
.amd-sp-add.is-done { background: var(--green-dk); }

/* The narrowest cards give the stepper its own line rather than squeezing the size name away. */
@media (max-width: 420px) {
  .amd-sp-buy { flex-wrap: wrap; }
  .amd-sp-size { flex: 1 1 100%; }
}

/* One price, on one line. */
.amd-sp-foot {
  padding-top: 10px; display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px; flex-wrap: wrap;
}
.amd-sp-price { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.amd-sp-price small { font: 600 11px/1 var(--sans); color: var(--brown); opacity: .8; }
.amd-sp-price b { font: 700 15px/1.2 var(--sans); color: var(--green-dk); }
.amd-sp-price del,
.amd-sp-price del .woocommerce-Price-amount {
  color: var(--brown); opacity: .6; font-weight: 600; font-size: 12.5px;
  text-decoration: line-through; text-decoration-thickness: 1.2px;
}

/* The store map on the shop page: the finder's own tile map, drawn server-side and linked. */
.amd-sp-mapwrap { display: grid; gap: 16px; }
.amd-sp-map { display: block; text-decoration: none; position: relative; }
.amd-sp-map-svg { width: 100%; height: auto; display: block; }
.amd-sp-tile rect { fill: rgba(255, 253, 248, .55); stroke: rgba(107, 75, 43, .18); stroke-width: 1; }
.amd-sp-tile.has rect { fill: var(--white); stroke: rgba(107, 75, 43, .3); }
.amd-sp-bub { fill: rgba(0, 150, 57, .16); stroke: var(--green-dk); stroke-width: 1.2; }
.amd-sp-cnt { fill: var(--green-ink); font-family: var(--slab); font-weight: 600; text-anchor: middle; dominant-baseline: middle; }
.amd-sp-ab { fill: var(--brown); font-family: var(--sans); font-weight: 700; font-size: 11px; opacity: .65; }
.amd-sp-wave { fill: none; stroke: rgba(14, 74, 37, .35); stroke-width: 1.4; }
.amd-sp-map:hover .amd-sp-tile.has rect { stroke: var(--green); }
.amd-sp-maplink {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  font: 700 13px/1 var(--sans); color: var(--green-dk);
}
.amd-sp-map:hover .amd-sp-maplink { color: var(--brown); }
.amd-sp-map:hover .amd-sp-maplink .amd-ic { transform: translateX(3px); }
.amd-sp-maplink .amd-ic { transition: transform .2s ease; }
@media (max-width: 900px) { .amd-sp-map-svg { max-height: 300px; } }


/* ----------------------------------------------------------------------------------------------
   A recipe that is no longer made.
   ---------------------------------------------------------------------------------------------- */
.amd-gone { background: var(--paper); padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 88px); }
.amd-gone h1 {
  margin: 10px 0 14px; font: 600 clamp(28px, 3.6vw, 44px)/1.15 var(--slab); color: var(--green-ink);
  max-width: 22ch;
}
.amd-gone-note { margin: 0 0 34px; max-width: 62ch; font: 400 17px/1.7 var(--sans); color: var(--ink-2); }
.amd-gone-h2 { margin: 0 0 16px; font: 600 21px/1.25 var(--slab); color: var(--green-ink); }
.amd-gone-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 840px; }
.amd-gone-card {
  display: grid; grid-template-columns: 108px 1fr; gap: 16px; align-items: center;
  background: var(--white); border-radius: 20px; padding: 14px 18px 14px 14px; text-decoration: none;
  box-shadow: 0 0 0 1px var(--line); transition: transform .2s ease, box-shadow .2s ease;
}
.amd-gone-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--green), 0 20px 32px -26px rgba(60, 40, 20, .8); }
.amd-gone-shot { display: grid; place-items: center; background: var(--beige); border-radius: 14px; padding: 10px; }
.amd-gone-shot img { max-width: 100%; max-height: 100px; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; display: block; }
.amd-gone-body { display: grid; gap: 4px; min-width: 0; }
.amd-gone-line { font: 700 10.5px/1 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--pumpkin); }
.amd-gone-name { font: 600 18px/1.25 var(--slab); color: var(--green-ink); }
.amd-gone-blurb { font: 400 13.5px/1.5 var(--sans); color: var(--ink-2); }
.amd-gone-price { font: 700 14px/1 var(--sans); color: var(--green-dk); margin-top: 2px; }
.amd-gone-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.amd-gone-call {
  display: flex; align-items: center; gap: 9px; margin: 26px 0 0;
  font: 500 15.5px/1.6 var(--sans); color: var(--brown);
}
.amd-gone-call .amd-ic { color: var(--green-dk); font-size: 18px; }
.amd-gone-call a { color: var(--green-dk); font-weight: 700; text-decoration: none; }
.amd-gone-call a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .amd-gone-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------------------------------------
   Recipe finder: two questions, answered against what each recipe is actually made for.
   ---------------------------------------------------------------------------------------------- */
.amd-sp-helper {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
  padding: 12px 18px 12px 14px; border: 0; cursor: pointer;
  background: var(--white); border-radius: 999px; box-shadow: 0 0 0 1px var(--line);
  text-align: left; transition: box-shadow .2s ease, transform .15s ease;
}
.amd-sp-helper:hover { box-shadow: 0 0 0 1px var(--green), 0 14px 24px -20px rgba(60, 40, 20, .8); }
.amd-sp-helper > .amd-ic:first-child { font-size: 22px; color: var(--green-dk); }
.amd-sp-helper span { display: grid; gap: 2px; }
.amd-sp-helper b { font: 700 14.5px/1.2 var(--sans); color: var(--green-ink); }
.amd-sp-helper i { font: 400 13px/1.3 var(--sans); font-style: normal; color: var(--ink-2); }
.amd-sp-helper > .amd-ic:last-child { font-size: 14px; color: var(--brown); transition: transform .2s ease; }
.amd-sp-helper.is-open > .amd-ic:last-child { transform: rotate(180deg); }
.amd-sp-helper:focus-visible { outline: 3px solid var(--pumpkin); outline-offset: 2px; }

.amd-sp-finder {
  background: var(--white); border-radius: 22px; padding: clamp(20px, 2.6vw, 30px);
  box-shadow: 0 0 0 1px var(--line); margin: 0 0 22px; display: grid; gap: 22px;
}
.amd-sp-q h2 {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
  font: 600 18px/1.25 var(--slab); color: var(--green-ink);
}
.amd-sp-q h2 span {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green); color: #fff; font: 700 13px/1 var(--sans);
}
.amd-sp-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.amd-sp-opt {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 15px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--paper); color: var(--brown); box-shadow: 0 0 0 1px var(--line);
  font: 600 13.5px/1 var(--sans);
  transition: background .2s, color .2s, box-shadow .2s;
}
.amd-sp-opt .amd-ic { font-size: 17px; color: var(--green-dk); }
.amd-sp-opt small { font: 500 11.5px/1 var(--sans); opacity: .75; margin-left: 2px; }
.amd-sp-opt:hover { background: var(--tan-2); }
.amd-sp-opt.is-on { background: var(--green); color: #fff; box-shadow: none; }
.amd-sp-opt.is-on .amd-ic { color: #fff; }
.amd-sp-opt:focus-visible { outline: 3px solid var(--pumpkin); outline-offset: 2px; }

.amd-sp-answer {
  margin: 0; font: 600 15.5px/1.5 var(--slab); color: var(--green-ink);
}
.amd-sp-answer:empty { display: none; }
.amd-sp-reset {
  justify-self: start; border: 0; background: none; cursor: pointer; padding: 0;
  font: 700 13px/1 var(--sans); color: var(--green-dk); text-decoration: underline; text-underline-offset: 3px;
}
.amd-sp-reset:hover { color: var(--brown); }

/* `display: grid` on the panel overrides the browser's own [hidden] rule, so the questions were
   open on arrival. The same trap as the cards above; both are stated explicitly now. */
.amd-sp-finder[hidden] { display: none !important; }
.amd-sp-reset[hidden] { display: none !important; }
