/* =============================================================================
 *  fmi-checkout.css
 *
 *  Styles for the two-column classic WooCommerce checkout ([woocommerce_checkout]
 *  on /checkout/), rendered by woocommerce/checkout/form-checkout.php and the
 *  partials/checkout-panel.php (the one panel layout, filled from the per-product
 *  "Checkout panel" ACF fields).
 *
 *  Brand tokens (--fmi-*) and the .fmi-btn system come from fmi-theme-ext.css -
 *  that file MUST be enqueued before this one (fmi-checkout.php's asset
 *  enqueue does this automatically when fmi-theme-ext is registered).
 *
 *  Every rule below is scoped under .fmi-checkout, EXCEPT the
 *  "body.woocommerce-checkout .select2-container--open ..." rules in the
 *  SELECT2 section - select2 appends its open dropdown to <body>, outside
 *  any wrapper this stylesheet controls, so those three rules intentionally
 *  reach outside .fmi-checkout. WooCommerce itself adds the
 *  "woocommerce-checkout" class to <body> on this page, so no custom body
 *  class is needed to scope them.
 * ============================================================================= */

.fmi-checkout {
  font-family: var(--fmi-font-body);
  color: var(--fmi-night-sky);
  background: var(--fmi-white);
  -webkit-font-smoothing: antialiased;
}
.fmi-checkout *,
.fmi-checkout *::before,
.fmi-checkout *::after { box-sizing: border-box; }

.fmi-checkout a {
  color: var(--fmi-jade);
  text-decoration: none;
}
.fmi-checkout a:hover {
  color: #3f6f6b;
  text-decoration: underline;
}

/* =============================================================================
 *  MAIN GRID
 *  This checkout lives as normal content inside the theme's content
 *  container now, not a full-bleed section under a fixed nav - so there's
 *  no breakout/.wrap/fixed-nav-clearance padding here, just the grid itself.
 *  The grid div is a direct child of .fmi-checkout.
 * ============================================================================= */
.fmi-checkout__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  padding: 40px 0 80px;
}
@media (max-width: 900px) {
  .fmi-checkout__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
.fmi-checkout__grid--single {
  grid-template-columns: minmax(0, 640px);
  justify-content: center;
}

/* =============================================================================
 *  LEFT COLUMN: PANEL
 *  Emitted by partials/checkout-panel.php, the single layout every product
 *  uses. Blocks map to the per-product ACF fields (eyebrow, prerequisite,
 *  includes intro + list, closing quote); __content styles the free-form
 *  "Additional content" HTML.
 * ============================================================================= */
.fmi-checkout .fmi-panel__eyebrow {
  font-size: 15px;
  color: var(--fmi-ink);
  margin-bottom: 10px;
}
/* One .fmi-panel per cart line. With several lines they stack, separated
   by a rule - the left column is the cart, rendered in full. */
.fmi-checkout .fmi-panel + .fmi-panel {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--fmi-rule);
}
.fmi-checkout .fmi-panel__qty {
  font-family: var(--fmi-font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--fmi-ink);
  margin-left: 8px;
}
.fmi-checkout .fmi-panel__title {
  font-family: var(--fmi-font-display);
  font-weight: 700;
  font-size: 46px;
  line-height: 1.15;
  margin: 0 0 18px;
}
.fmi-checkout .fmi-panel__accent {
  width: 96px;
  height: 6px;
  background: var(--fmi-highlight);
  margin-bottom: 28px;
}
.fmi-checkout .fmi-panel__price {
  font-family: var(--fmi-font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--fmi-afm-green);
  margin-bottom: 20px;
}
.fmi-checkout .fmi-panel__price .woocommerce-Price-amount {
  font-family: var(--fmi-font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--fmi-afm-green);
}
/* With a coupon the panel shows Woo's sale markup: struck-through original,
   then the discounted price. The amount rule above forces 34px green on every
   .woocommerce-Price-amount, so the struck price resets size and colour here. */
.fmi-checkout .fmi-panel__price del {
  font-size: 22px;
  font-weight: 400;
  color: var(--fmi-muted);
  text-decoration: line-through;
  margin-right: 10px;
}
.fmi-checkout .fmi-panel__price del .amount {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}
.fmi-checkout .fmi-panel__price ins {
  text-decoration: none;
}
/* Woo's sale markup includes "Original price was..." screen-reader text. Hide
   it visually in case the theme has no .screen-reader-text utility. */
.fmi-checkout .screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  word-wrap: normal !important;
}
.fmi-checkout .fmi-panel__note {
  font-size: 14px;
  color: var(--fmi-ink);
  margin-top: 6px;
}
.fmi-checkout .fmi-panel__note strong {
  font-weight: 700;
  color: var(--fmi-night-sky);
}
.fmi-checkout .fmi-panel__intro {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.fmi-checkout .fmi-panel__list {
  display: grid;
  gap: 14px;
  margin-bottom: 34px;
}
.fmi-checkout .fmi-panel__item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.fmi-checkout .fmi-panel__check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--fmi-jade);
  color: var(--fmi-jade);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex: none;
}
.fmi-checkout .fmi-panel__item span.fmi-panel__item-text {
  font-size: 16px;
}

.fmi-checkout .fmi-panel__quote {
  font-family: var(--fmi-font-display);
  font-size: 24px;
  line-height: 1.35;
  margin-bottom: 20px;
}

.fmi-checkout .fmi-panel__content {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fmi-ink);
}
.fmi-checkout .fmi-panel__content p { margin: 0 0 12px; }
.fmi-checkout .fmi-panel__content > :last-child { margin-bottom: 0; }
.fmi-checkout .fmi-panel__content h2,
.fmi-checkout .fmi-panel__content h3,
.fmi-checkout .fmi-panel__content h4 {
  font-family: var(--fmi-font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--fmi-night-sky);
  margin: 20px 0 8px;
}
.fmi-checkout .fmi-panel__content ul,
.fmi-checkout .fmi-panel__content ol {
  padding-left: 20px;
  margin: 0 0 12px;
}
.fmi-checkout .fmi-panel__content li { margin: 0 0 4px; }
.fmi-checkout .fmi-panel__content a {
  color: var(--fmi-jade);
  font-weight: 700;
}
.fmi-checkout .fmi-panel__content img {
  max-width: 100%;
  height: auto;
}

/* =============================================================================
 *  CARD SHELL
 * ============================================================================= */
.fmi-checkout .fmi-checkout__card {
  border: 1px solid #E3E5E1;
  background: var(--fmi-white);
  box-shadow: 0 2px 18px rgba(34,43,57,0.07);
}
@media (min-width: 900px) {
  /* 120px = fixed nav height (~90-110px depending on breakpoint) plus a
     little breathing room, so the sticky card doesn't sit flush under
     the navbar while the page scrolls. Still a real clearance value even
     though the grid itself is no longer full-bleed. */
  .fmi-checkout .fmi-checkout__card {
    position: sticky;
    top: 120px;
  }
}

.fmi-checkout .fmi-checkout__card-header {
  background: var(--fmi-night-sky);
  color: var(--fmi-white);
  padding: 16px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.fmi-checkout .fmi-checkout__card-header .fmi-checkout__total-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fmi-checkout .fmi-checkout__card-header #fmi-checkout-total {
  font-family: var(--fmi-font-display);
  font-size: 24px;
}
.fmi-checkout .fmi-checkout__card-header #fmi-checkout-total .woocommerce-Price-amount {
  font-family: var(--fmi-font-display);
  font-size: 24px;
}

.fmi-checkout .fmi-checkout__card-body {
  padding: 24px;
}


/* =============================================================================
 *  INPUTS
 *  Woo's own markup never gets a .fmi-input class, so re-declare the same
 *  recipe (see fmi-theme-ext.css FORM SYSTEM section) directly against the
 *  real classic-checkout classes.
 *
 *  SPECIFICITY: WooCommerce styles checkout fields as
 *  ".woocommerce form .form-row ..." (the extra `form` element outranks a
 *  plain ".fmi-checkout .form-row ..."), so form rules in this file are written
 *  as ".fmi-checkout form.checkout ..." to win on specificity, not load order.
 * ============================================================================= */
.fmi-checkout form.checkout .form-row .input-text,
.fmi-checkout form.checkout .form-row select,
.fmi-checkout form.checkout .form-row textarea,
.fmi-checkout #payment div.payment_box input.input-text {
  font-family: var(--fmi-font-body);
  font-size: 16px;
  line-height: 1.4;
  padding: 11px 13px;
  border: 1px solid var(--fmi-border-input);
  border-radius: 3px;
  color: var(--fmi-night-sky);
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.fmi-checkout input::placeholder,
.fmi-checkout textarea::placeholder {
  color: #A9AFB8;
}
.fmi-checkout form.checkout .form-row .input-text:focus,
.fmi-checkout form.checkout .form-row select:focus,
.fmi-checkout form.checkout .form-row textarea:focus {
  border-color: var(--fmi-jade);
  box-shadow: 0 0 0 3px rgba(82, 144, 139, 0.15);
}

/* Native <select> (used for billing_state on countries with no province
   list, or if select2 hasn't enhanced it yet) gets the same custom-arrow
   treatment as select2 below. */
.fmi-checkout form.checkout .form-row select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--fmi-white);
  /* Arrow stroke color is hardcoded (not var()) because CSS custom
     properties don't resolve inside an inline data-URI SVG. This used to
     match a mockup-only --afm-muted token (#5A6473); now that there's no
     more mockup-specific override, it intentionally reuses the shared
     --fmi-muted value (#8B8F97) instead - the same arrow already used by
     select.fmi-input in fmi-theme-ext.css, so both arrow icons match. */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5.5 8l4.5 4.5L14.5 8' fill='none' stroke='%238B8F97' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 13px;
  padding-right: 34px;
}

/* =============================================================================
 *  SELECT2 / SELECTWOO (country + state dropdowns)
 * ============================================================================= */
/* select2 nests its box in inline spans (.select2-container is
   inline-block, .selection is plain inline). Make both blocks so the box
   lines up with the text inputs instead of sitting on a text line. */
.fmi-checkout .select2-container,
.fmi-checkout .select2-container .selection {
  display: block;
  width: 100%;
}
/* Sized by padding like the text inputs, not a fixed height: Woo 11 pads the
   rendered text .5em top and bottom, which overflowed a fixed 46px box and
   cropped the selected value. Flex centres the text vertically whatever
   line-height it inherits. The margin reset undoes WooCommerce's bundled
   select2.css ("margin: 0 0 -4px"), which pulled the box 4px out of its
   container and row. */
.fmi-checkout .select2-container--default .select2-selection--single {
  display: flex;
  align-items: center;
  margin: 0;
  height: auto;
  border: 1px solid var(--fmi-border-input);
  border-radius: 3px;
  background-color: var(--fmi-white);
}
.fmi-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  flex: 1 1 auto;
  min-width: 0;   /* lets long country names truncate with an ellipsis */
  padding: 11px 34px 11px 13px;
  line-height: 1.4;
  color: var(--fmi-night-sky);
  font-size: 16px;
  font-family: var(--fmi-font-body);
}
.fmi-checkout .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #A9AFB8;
}
/* Hide select2's default arrow glyph/border and draw the same chevron
   used on native selects instead, so both controls look identical. */
.fmi-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 0;
  right: 0;
  height: 100%;
  width: 34px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5.5 8l4.5 4.5L14.5 8' fill='none' stroke='%238B8F97' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px;
}
.fmi-checkout .select2-container--default .select2-selection--single .select2-selection__arrow b {
  display: none;
}
.fmi-checkout .select2-container--default.select2-container--focus .select2-selection--single,
.fmi-checkout .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--fmi-jade);
  box-shadow: 0 0 0 3px rgba(82, 144, 139, 0.15);
}

/* The OPEN select2 dropdown is appended by select2's own JS to <body>, not
   into .fmi-checkout - so while it's open it lives outside our scoped
   selector entirely and ".fmi-checkout .select2-dropdown" would never match
   it. We target it via WooCommerce's own "woocommerce-checkout" body class
   instead - WooCommerce already adds that class on the checkout page, so
   there's no need for a custom body class here. */
body.woocommerce-checkout .select2-container--open .select2-dropdown {
  border-color: var(--fmi-jade, #52908B);
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
}
body.woocommerce-checkout .select2-container--open .select2-search--dropdown .select2-search__field {
  border: 1px solid #CDD2D8;
  border-radius: 3px;
  padding: 6px 8px;
}
body.woocommerce-checkout .select2-results__option--highlighted[aria-selected] {
  background-color: #52908B;
}

/* =============================================================================
 *  FORM ROWS / FIELD LAYOUT
 * ============================================================================= */
/* WooCommerce's stock stylesheet lays the checkout out as two floated 48%
   columns (#customer_details .col-1 / .col-2) and floats first/last name
   at 47% each. Inside a ~550px card that would squeeze every field to half
   width, so undo it before the grid below takes over. */
/* Also a class-name collision: the theme loads Bootstrap, whose .col-1 is
   "flex: 0 0 8.33%; max-width: 8.33%" - the same class Woo uses for the
   billing column. Clear those too, or the fields collapse to a sliver. */
.fmi-checkout .col2-set .col-1,
.fmi-checkout .col2-set .col-2 {
  float: none;
  width: 100%;
  max-width: none;
  flex: none;
}
.fmi-checkout form.checkout .form-row-first,
.fmi-checkout form.checkout .form-row-last {
  float: none;
  width: auto;   /* Woo's woocommerce-layout.css sets 47%; the grid sizes these */
}
/* Each field row is a column: label on top, control below, both full width.
   Column flex also blockifies Woo's inline <span class="woocommerce-input-
   wrapper">, so the 46px control is contained by its parent instead of
   hanging off an inline text line (which is what shifted the select2 boxes).
   It also overrides Bootstrap 4's own .form-row ("display:flex; flex-wrap:
   wrap; margin: 0 -5px"), which put labels beside their inputs. */
.fmi-checkout form.checkout .form-row {
  display: flex;
  flex-direction: column;
  margin: 0 0 12px;
  padding: 0;
}
/* Woo's float clearfix on .form-row (::before/::after display:table). No
   floats here, and as flex items they'd be stray empty children. */
.fmi-checkout form.checkout .form-row::before,
.fmi-checkout form.checkout .form-row::after {
  display: none;
}
.fmi-checkout form.checkout .form-row label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;   /* Woo sets 2, which alone added ~10px per field */
}
.fmi-checkout .form-row .required {
  color: var(--fmi-highlight);
  font-weight: 700;
  text-decoration: none;
}

.fmi-checkout .woocommerce-billing-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;   /* rows are spaced by .form-row's margin; column gap only */
}
.fmi-checkout .form-row-wide,
.fmi-checkout .woocommerce-billing-fields__field-wrapper .form-row:not(.form-row-first):not(.form-row-last) {
  grid-column: 1 / -1;
}
@media (max-width: 600px) {
  .fmi-checkout .woocommerce-billing-fields__field-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Woo's "Your order" heading reads as a small uppercase field-group label.
   Woo's own "Billing details" h3 is hidden - the site's global Visual
   Composer CSS already hides it sitewide; saying so here keeps this page
   right without depending on that. */
.fmi-checkout .woocommerce-billing-fields > h3 {
  display: none;
}
.fmi-checkout #order_review_heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fmi-muted);
  margin: 0 0 12px;
  font-family: var(--fmi-font-body);
}

/* Checkbox fields (the theme's newsletter opt-in) wrap
   the input in its label. Undo the bold block label from ".form-row label"
   so the sentence reads as body copy beside its box. */
.fmi-checkout form.checkout .form-row label.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}
.fmi-checkout form.checkout .form-row label.checkbox input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--fmi-jade);
}

/* =============================================================================
 *  ORDER REVIEW TABLE
 * ============================================================================= */
.fmi-checkout table.woocommerce-checkout-review-order-table {
  width: 100%;
  border: none;           /* Woo's .shop_table draws a 1px rounded frame */
  border-radius: 0;
  border-collapse: collapse;
  margin: 0 0 16px;
  background: transparent;
}
.fmi-checkout table.woocommerce-checkout-review-order-table th,
.fmi-checkout table.woocommerce-checkout-review-order-table td {
  border: none;
  padding: 5px 0;
  font-size: 15px;
  vertical-align: baseline;
  background: transparent;
}
.fmi-checkout table.woocommerce-checkout-review-order-table thead {
  display: none;
}
.fmi-checkout table.woocommerce-checkout-review-order-table tbody tr td:last-child,
.fmi-checkout table.woocommerce-checkout-review-order-table tfoot tr td:last-child,
.fmi-checkout table.woocommerce-checkout-review-order-table tfoot tr th:last-child {
  text-align: right;
}
.fmi-checkout table.woocommerce-checkout-review-order-table tr.cart-subtotal td,
.fmi-checkout table.woocommerce-checkout-review-order-table tr.cart-subtotal th,
.fmi-checkout table.woocommerce-checkout-review-order-table tr.fee td,
.fmi-checkout table.woocommerce-checkout-review-order-table tr.fee th,
.fmi-checkout table.woocommerce-checkout-review-order-table tr.tax-rate td,
.fmi-checkout table.woocommerce-checkout-review-order-table tr.tax-rate th {
  font-weight: 400;
}
.fmi-checkout table.woocommerce-checkout-review-order-table tr.order-total td,
.fmi-checkout table.woocommerce-checkout-review-order-table tr.order-total th {
  font-weight: 700;
  font-size: 16px;
  border-top: 1px solid #E3E5E1;
  padding-top: 12px;
}

/* =============================================================================
 *  COUPON
 *  The theme hides Woo's default coupon toggle (hide_checkout_coupon_form in
 *  functions.php) and injects its own "Have a discount code?" block before
 *  the payment section (woocommerce_checkout_coupon_form_custom), whose
 *  jQuery copies the code into Woo's hidden form.checkout_coupon and submits
 *  it. These rules style that custom block; Woo's own form stays hidden as
 *  the submit proxy and is deliberately left alone.
 * ============================================================================= */
.fmi-checkout .checkout-coupon-toggle .woocommerce-info {
  background: transparent;
  border: none;
  padding: 0;
  margin: 4px 0 12px;
  box-shadow: none;
  font-size: 14px;
}
.fmi-checkout .checkout-coupon-toggle .woocommerce-info a {
  font-weight: 700;
  color: var(--fmi-jade);
  text-decoration: underline;
}
.fmi-checkout .checkout-coupon-toggle .woocommerce-info a:hover {
  color: #3f6f6b;
}

/* Input takes the remaining width, button its own. A grid rather than flex:
   an "auto" column sizes to the button's content even if some other rule
   forces the button to width:100%. The theme's JS hides this on load and
   toggles it; grid is what it shows as. */
.fmi-checkout .coupon-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 8px;
  align-items: stretch;
  margin: 0 0 20px;
}
/* Its "If you have a discount code, please apply it below." intro, and the
   float-clearing div - neither belongs in a two-cell row. */
.fmi-checkout .coupon-form > p:not(.form-row),
.fmi-checkout .coupon-form > .clear {
  display: none;
}
.fmi-checkout form.checkout .coupon-form .form-row {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}
/* The theme's coupon markup hardcodes class="woocommerce-validated" on the
   input's row, which gives it Woo's green "valid field" border. */
.fmi-checkout form.checkout .coupon-form .form-row .input-text {
  border-color: var(--fmi-border-input);
}
.fmi-checkout form.checkout .coupon-form button[name="apply_coupon"] {
  width: auto;
  height: 100%;
  min-height: 46px;
  background: var(--fmi-white);
  color: var(--fmi-night-sky);
  font-family: var(--fmi-font-body);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--fmi-night-sky);
  border-radius: 0;
  padding: 0 18px;
  cursor: pointer;
  white-space: nowrap;
}
.fmi-checkout form.checkout .coupon-form button[name="apply_coupon"]:hover {
  background: var(--fmi-night-sky);
  color: var(--fmi-white);
}

/* =============================================================================
 *  PAYMENT
 * ============================================================================= */
.fmi-checkout #payment.woocommerce-checkout-payment {
  background: transparent;
  border-radius: 0;
  border: none;
}
.fmi-checkout #payment.woocommerce-checkout-payment ul.wc_payment_methods {
  list-style: none;
  padding: 0;
  margin: 0;
  border-bottom: none;    /* Woo separates methods from Place Order with a rule */
}
/* Woo pads .place-order 1em on all sides, which would inset the button
   from the fields above it. The button should span the card body. */
.fmi-checkout #payment.woocommerce-checkout-payment div.form-row.place-order {
  padding: 0;
  margin: 0;
}
.fmi-checkout #payment.woocommerce-checkout-payment div.payment_box {
  background: transparent;
  padding: 0;
  margin: 12px 0;
  font-size: 13px;
  color: var(--fmi-ink);
}
/* Kill the little triangle Woo draws pointing at the selected payment
   method radio - it's meaningless once the box has no fill to point at. */
.fmi-checkout #payment.woocommerce-checkout-payment div.payment_box::before {
  display: none;
}

/* =============================================================================
 *  TERMS CHECKBOX
 *  Shown for every country (inc/fmi-checkout.php). The label is styled by the
 *  "label.checkbox" rule in the form fields section (14px, 1.5, regular), so
 *  only the spacing, the terms link and the invalid state are added here.
 * ============================================================================= */
.fmi-checkout .fmi-checkout__terms {
  margin: 0 0 14px;
}
/* Night sky, not jade: jade on white is 3.7:1, below the 4.5:1 WCAG 1.4.3 asks
   of body-size text. The underline means colour isn't the only cue (1.4.1). */
.fmi-checkout .fmi-checkout__terms a {
  font-weight: 700;
  color: var(--fmi-night-sky);
  text-decoration: underline;
}
.fmi-checkout .fmi-checkout__terms a:focus-visible {
  outline: 2px solid var(--fmi-night-sky);
  outline-offset: 2px;
}
/* Woo's privacy notice (wc_checkout_privacy_policy_text), under the terms box. */
.fmi-checkout .woocommerce-privacy-policy-text p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fmi-ink);
}
.fmi-checkout .woocommerce-privacy-policy-text a {
  font-weight: 700;
  color: var(--fmi-night-sky);
  text-decoration: underline;
}
.fmi-checkout .fmi-checkout__terms.woocommerce-invalid label {
  color: #B3261E;
}
.fmi-checkout .fmi-checkout__terms.woocommerce-invalid input[type="checkbox"] {
  outline: 2px solid #B3261E;
  outline-offset: 1px;
}

/* =============================================================================
 *  PLACE ORDER BUTTON
 * ============================================================================= */
.fmi-checkout #payment.woocommerce-checkout-payment #place_order {
  float: none;
  display: block;
  width: 100%;
  background: var(--fmi-afm-green);
  background-image: none;
  color: var(--fmi-white);
  font-family: var(--fmi-font-body);
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 16px;
  cursor: pointer;
}
.fmi-checkout #payment.woocommerce-checkout-payment #place_order:hover {
  background: #5E883F;
  color: var(--fmi-white);
}
.fmi-checkout #payment.woocommerce-checkout-payment #place_order:disabled,
.fmi-checkout #payment.woocommerce-checkout-payment #place_order.disabled {
  background: #A9AFB8;
  cursor: not-allowed;
}

/* =============================================================================
 *  NOTICES
 *  Keep clearly visible (never hide) - just drop the default Woo icon
 *  padding/box treatment for something quieter and on-brand.
 * ============================================================================= */
.fmi-checkout .woocommerce-error,
.fmi-checkout .woocommerce-message,
.fmi-checkout .woocommerce-info {
  background: var(--fmi-greyne);
  border: none;
  border-left: 4px solid var(--fmi-highlight);
  box-shadow: none;
  padding: 14px 16px;
  margin: 0 0 16px;
  font-size: 14px;
  list-style: none;
}
.fmi-checkout .woocommerce-error {
  border-left-color: #B3261E;
}
.fmi-checkout .woocommerce-error::before,
.fmi-checkout .woocommerce-message::before,
.fmi-checkout .woocommerce-info::before {
  content: none;
}
.fmi-checkout .woocommerce-error ul,
.fmi-checkout .woocommerce-message ul,
.fmi-checkout .woocommerce-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* WooCommerce's own blockUI loading overlay (shown while placing the order /
   refreshing totals) is left completely alone - don't touch .blockUI /
   .blockOverlay here. */
