/*
 * Archway Animal Orders — the little that WordPress has to dress itself.
 *
 * DELIBERATELY ALMOST EMPTY. The form brings its own stylesheet, which is
 * already written as a content block for this theme: no Tailwind preflight, no
 * html/body rules, no viewport ownership, and every rule scoped under
 * .afo-root. Nothing in here should restyle the app, and adding app styles here
 * would put the form's design in two files that nobody keeps in sync.
 *
 * What is left is the three things the app cannot know about, because they only
 * exist inside WordPress: the staff-preview band, the "the build is missing"
 * notice, and the fallback page core renders when the farm is unreachable.
 *
 * The values are the order tracker's (assets/tracker.css), which were measured
 * off the live site's computed styles rather than picked by eye:
 *   terracotta #f15a34   sage #a9be61   panel tint #f1f5e6   body text #212529
 *   headings   Quando 500 over a 1px sage rule with 10px of air
 *   buttons    pill (radius 50px), UPPERCASE, Montserrat 400
 *
 * Fonts are NOT declared here. The theme already serves Montserrat and Quando;
 * a second copy would be a second download of the same faces.
 */

/* The block's own column. The app is correct from ~320px up and caps its own
   measure, so this only has to stop it colliding with the theme's green footer
   band, the way the tracker does. */
.archway-animal-order {
  margin: 0 0 56px;
}

/* ---------- staff preview band ----------
   Loud on purpose. An unannounced preview of a form that looks exactly like
   the live one is how somebody quotes a provisional price to a customer. */
.archway-animal-order-preview {
  margin: 0 0 24px;
  padding: 12px 16px;
  border-left: 4px solid #f15a34;
  background: #fdf0ec;
  color: #212529;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- admin-only notices and the unreachable-farm fallback ----------
   Both are plain server-rendered markup, so they get the theme's own language
   rather than the app's utilities (which are not loaded when the app is). */
.archway-animal-order-notice,
.archway-animal-order-error {
  max-width: 640px;
  margin: 0 0 56px;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #212529;
}

.archway-animal-order-notice {
  padding: 16px;
  border: 1px solid #e4ded4;
  background: #f1f5e6;
}

/* core's fallback markup: .track-head wraps the title and its subtitle, and the
   rule goes under the WHOLE block rather than under the h1 — a rule between a
   title and the line that belongs to it separates the two. */
.archway-animal-order-error .track-head {
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #a9be61;
}

.archway-animal-order-error h1 {
  margin: 0 0 6px;
  font-family: "Quando", Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.archway-animal-order-error h2 {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #a9be61;
  font-family: "Quando", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 1.3rem;
}

.archway-animal-order-error .panel {
  margin: 0 0 24px;
  padding: 20px;
  border: 1px solid #e4ded4;
  background: #f1f5e6;
}

/* The tap-to-call button. A pill, uppercase, Montserrat — the site's own button,
   and sized for a thumb because the person reading this is being asked to make
   a phone call from a phone. */
.archway-animal-order-error .btn-primary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  background: #f15a34;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.archway-animal-order-error .btn-primary:hover,
.archway-animal-order-error .btn-primary:focus {
  background: #d4441f;
  color: #fff;
}

/* The theme's `.container a` outranks a single-class selector — this is one of
   the two faults the tracker hit, and it rendered its links dark green. Scoped
   two classes deep for that reason, not for tidiness. */
.archway-animal-order-error a:not(.btn-primary),
.archway-animal-order-notice a {
  color: #d4441f;
  text-decoration: underline;
}
