/* MAIN STAGE pack: THE SHARED FORM LOOK (owner: checkout; FLOW-CONTRACT.md sections 5 and 13).
   One field look for the whole purchasing flow and the basic pages: fields, labels, the required and optional marks,
   errors beside a field, the focus ring, checkboxes and radios, WooCommerce's country and state pickers (selectWoo),
   the store's notices (message, info, error) and the store's buttons. Loaded under the ONE handle "slmg-forms" by the
   cart, checkout, receipt, account and pages modules (WordPress loads a handle once), after the pack's stage.css.
   Nobody restyles fields or notices in their own look file; a page's own file only places them.

   Scope: body.slmg-dir-stage and #main-content (the page between the header and the footer), so the header's search box,
   the release sheet, the cart sheet and the search panel (all outside #main-content) are never reached. The one
   exception is selectWoo's open list, which WooCommerce appends to <body>: it is styled under body.slmg-dir-stage.
   The id in every selector is on purpose: WooCommerce's and Divi's own form rules are long class chains, and this file
   must win without !important (kept only where Divi itself uses !important).

   Rules of the redesign kept here: fields and running text 16 px or more on every screen (an iPhone zooms on focus
   below 16 px); every control 44 px or taller; one orange (#ff9500) with near-black text on it, used for focus, for
   "selected" and for the main button. An ERROR is never the orange (repair pass 2026-11-20: an invalid field looked
   "selected"): it has its own mark, --slmg-error below (a red, 7:1 on the page ground), beside readable text in the
   page's ink. */

/* the error mark's colour (the kit's tokens.css has no error role; a pack may restate this) */
body.slmg-dir-stage { --slmg-error: #ff6b6b; }   /* also in kit/tokens.css since the closing pass; restating it does no harm */

/* ---------- what the checkout body shows on order received only (contract section 13) ---------- */
body.slmg-dir-stage:not(.et-fb) .slmg-rc-only { display: none !important; }
body.slmg-dir-stage.woocommerce-order-received:not(.et-fb) .slmg-rc-only { display: block !important; }
body.slmg-dir-stage.woocommerce-order-received:not(.et-fb) .slmg-co-only,
body.slmg-dir-stage.woocommerce-order-pay:not(.et-fb) .slmg-co-only { display: none !important; }

/* ---------- labels ---------- */
body.slmg-dir-stage #main-content :is(.woocommerce, .slmg-form) .form-row > label,
body.slmg-dir-stage #main-content :is(.woocommerce, .slmg-form) fieldset > legend,
body.slmg-dir-stage #main-content .slmg-form label.slmg-form__label {
  display: block; margin: 0 0 6px; padding: 0; float: none;
  font: 500 12px/1.4 var(--slmg-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--slmg-dim);
}
body.slmg-dir-stage #main-content .woocommerce .form-row label .required,
body.slmg-dir-stage #main-content .woocommerce .form-row label abbr[title] { color: var(--slmg-orange); text-decoration: none; border: 0; font-weight: 500; cursor: default; }
body.slmg-dir-stage #main-content .woocommerce .form-row label .optional { color: var(--slmg-mute); text-transform: none; letter-spacing: 0; font-family: var(--slmg-display); font-size: 13px; }
body.slmg-dir-stage #main-content .woocommerce .form-row { margin: 0 0 var(--slmg-s4); padding: 0; }
body.slmg-dir-stage #main-content .woocommerce .form-row .woocommerce-input-wrapper { display: block; width: 100%; }

/* ---------- text fields, selects, text areas ---------- */
body.slmg-dir-stage #main-content :is(.woocommerce, .slmg-form, .et_pb_contact_form_container) :is(
  input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"],
  input[type="url"], input[type="date"], input.input-text, input.input, select, textarea) {
  box-sizing: border-box; width: 100%; max-width: 100%; min-height: 48px; margin: 0; padding: 12px 14px;   /* (repair pass: Stripe's card form copies this padding into its own frame; with 0 its fields were 22 px high) */
  border: 1px solid var(--slmg-line-strong); border-radius: var(--slmg-r); background: var(--slmg-black); color: var(--slmg-ink);
  font: 400 16px/1.3 var(--slmg-display); letter-spacing: 0; box-shadow: none; outline: 0;
  -webkit-appearance: none; appearance: none; transition: border-color .15s var(--slmg-ease);
}
/* textarea:is(textarea, .x) and select:is(select, .x) weigh as much as the list above (its :is() takes the weight of
   input[type=...]), so these come later and win (pages owner, 2026-11-20: every text area measured 48 px) */
body.slmg-dir-stage #main-content :is(.woocommerce, .slmg-form, .et_pb_contact_form_container) textarea:is(textarea, .slmg-x) {
  min-height: 120px; padding: 12px 14px; line-height: 1.5; resize: vertical;
}
body.slmg-dir-stage #main-content :is(.woocommerce, .slmg-form, .et_pb_contact_form_container) select:is(select, .slmg-x) {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b4afa6' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
body.slmg-dir-stage #main-content :is(.woocommerce, .slmg-form, .et_pb_contact_form_container) :is(input, textarea)::placeholder { color: var(--slmg-mute); opacity: 1; }
body.slmg-dir-stage #main-content :is(.woocommerce, .slmg-form, .et_pb_contact_form_container) :is(input, select, textarea):hover { border-color: var(--slmg-dim); }
/* (leftovers F-checkout-1: this ring once reached radios and checkboxes too, on every focus, so a payment method chosen by
   mouse or touch wore a white square; they now ring only for the keyboard, below) */
body.slmg-dir-stage #main-content :is(.woocommerce, .slmg-form, .et_pb_contact_form_container) :is(input:not([type="radio"]):not([type="checkbox"]), select, textarea):focus {
  border-color: var(--slmg-orange); box-shadow: inset 0 0 0 1px var(--slmg-orange); outline: 2px solid var(--slmg-ink); outline-offset: 2px;
}
body.slmg-dir-stage #main-content :is(.woocommerce, .slmg-form, .et_pb_contact_form_container) :is(input, select, textarea):disabled,
body.slmg-dir-stage #main-content :is(.woocommerce, .slmg-form) input[readonly] { opacity: .6; cursor: not-allowed; }
/* the browser's own autofill colours (a yellow or blue box) kept on the dark ground */
body.slmg-dir-stage #main-content :is(.woocommerce, .slmg-form, .et_pb_contact_form_container) input:-webkit-autofill {
  -webkit-text-fill-color: var(--slmg-ink); caret-color: var(--slmg-ink); box-shadow: inset 0 0 0 100px #16140f; transition: background-color 9999s;
}

/* ---------- checkboxes and radios: real controls, a 44 px row ---------- */
body.slmg-dir-stage #main-content :is(.woocommerce, .slmg-form) :is(input[type="checkbox"], input[type="radio"]) {
  width: 20px; height: 20px; min-height: 0; margin: 0 10px 0 0; flex: none; accent-color: var(--slmg-orange); cursor: pointer; vertical-align: middle;
}
body.slmg-dir-stage #main-content :is(.woocommerce, .slmg-form) label.checkbox,
body.slmg-dir-stage #main-content :is(.woocommerce, .slmg-form) label.woocommerce-form__label-for-checkbox,
body.slmg-dir-stage #main-content :is(.woocommerce, .slmg-form) .form-row label:has(> input[type="checkbox"]) {
  display: inline-flex; align-items: center; min-height: 44px; margin: 0; cursor: pointer;
  font: 400 16px/1.4 var(--slmg-display); letter-spacing: 0; text-transform: none; color: var(--slmg-ink);
}
body.slmg-dir-stage #main-content :is(.woocommerce, .slmg-form) :is(input[type="checkbox"], input[type="radio"]):focus-visible { outline: 2px solid var(--slmg-ink); outline-offset: 2px; }

/* ---------- WooCommerce's country and state pickers (selectWoo) ---------- */
body.slmg-dir-stage #main-content .woocommerce .select2-container { width: 100% !important; font-size: 16px; }
body.slmg-dir-stage #main-content .woocommerce .select2-container .select2-selection--single {
  box-sizing: border-box; height: 48px; border: 1px solid var(--slmg-line-strong); border-radius: var(--slmg-r); background: var(--slmg-black); outline: 0;
}
body.slmg-dir-stage #main-content .woocommerce .select2-container .select2-selection--single .select2-selection__rendered {
  padding: 0 40px 0 14px; line-height: 46px; color: var(--slmg-ink); font: 400 16px/46px var(--slmg-display);
}
body.slmg-dir-stage #main-content .woocommerce .select2-container .select2-selection--single .select2-selection__placeholder { color: var(--slmg-mute); }
body.slmg-dir-stage #main-content .woocommerce .select2-container .select2-selection--single .select2-selection__arrow { height: 46px; width: 40px; right: 0; top: 0; }
body.slmg-dir-stage #main-content .woocommerce .select2-container .select2-selection--single .select2-selection__arrow b { border-color: var(--slmg-dim) transparent transparent; }
body.slmg-dir-stage #main-content .woocommerce .select2-container--open .select2-selection--single .select2-selection__arrow b { border-color: transparent transparent var(--slmg-dim); }
body.slmg-dir-stage #main-content .woocommerce .select2-container--focus .select2-selection--single,
body.slmg-dir-stage #main-content .woocommerce .select2-container--open .select2-selection--single {
  border-color: var(--slmg-orange); box-shadow: inset 0 0 0 1px var(--slmg-orange); outline: 2px solid var(--slmg-ink); outline-offset: 2px;
}
/* the open list: WooCommerce appends it to <body>, outside #main-content */
body.slmg-dir-stage .select2-container .select2-dropdown { background: var(--slmg-surface); border: 1px solid var(--slmg-line-strong); border-radius: var(--slmg-r); color: var(--slmg-ink); font: 400 16px/1.4 var(--slmg-display); }
body.slmg-dir-stage .select2-container .select2-search--dropdown { padding: 8px; }
body.slmg-dir-stage .select2-container .select2-search--dropdown .select2-search__field {
  box-sizing: border-box; height: 44px; padding: 0 12px; border: 1px solid var(--slmg-line-strong); border-radius: var(--slmg-r); background: var(--slmg-black); color: var(--slmg-ink); font: 400 16px/1 var(--slmg-display);
}
body.slmg-dir-stage .select2-container .select2-search--dropdown .select2-search__field:focus { border-color: var(--slmg-orange); outline: 0; }
body.slmg-dir-stage .select2-container .select2-results__option { min-height: 44px; display: flex; align-items: center; padding: 8px 14px; color: var(--slmg-ink); }
body.slmg-dir-stage .select2-container .select2-results__option[aria-selected="true"],
body.slmg-dir-stage .select2-container .select2-results__option[data-selected="true"] { background: var(--slmg-raised); color: var(--slmg-ink); }
body.slmg-dir-stage .select2-container .select2-results__option--highlighted[aria-selected],
body.slmg-dir-stage .select2-container .select2-results__option--highlighted[data-selected] { background: var(--slmg-orange); color: var(--slmg-on-orange); }
body.slmg-dir-stage .select2-container .select2-results > .select2-results__options { max-height: min(320px, 50vh); }

/* ---------- a field with an error: the error colour's border and bar, and a readable sentence under it ----------
   (never the orange, which means focus and "selected"; the mark is a round "!" so it does not rest on colour alone) */
body.slmg-dir-stage #main-content .woocommerce .form-row.woocommerce-invalid :is(input.input-text, select, textarea),
body.slmg-dir-stage #main-content .woocommerce .form-row.woocommerce-invalid .select2-container .select2-selection--single,
body.slmg-dir-stage #main-content .woocommerce input.input-text.has-error,
body.slmg-dir-stage #main-content .et_pb_contact_form_container .et_contact_error { border-color: var(--slmg-error); box-shadow: inset 4px 0 0 var(--slmg-error); }
/* while the buyer is in the field again, focus shows as everywhere (the ring); the error bar stays until it is fixed */
body.slmg-dir-stage #main-content .woocommerce .form-row.woocommerce-invalid :is(input.input-text, select, textarea):focus,
body.slmg-dir-stage #main-content .woocommerce input.input-text.has-error:focus { border-color: var(--slmg-error); box-shadow: inset 4px 0 0 var(--slmg-error); }
body.slmg-dir-stage #main-content .woocommerce .form-row.woocommerce-invalid > label { color: var(--slmg-ink); }
body.slmg-dir-stage #main-content .woocommerce .form-row.woocommerce-validated :is(input.input-text, select) { border-color: var(--slmg-line-strong); }
body.slmg-dir-stage #main-content .woocommerce .checkout-inline-error-message,
body.slmg-dir-stage #main-content .woocommerce .form-row .slmg-field-error {
  display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; padding: 0;
  font: 400 16px/1.4 var(--slmg-display); color: var(--slmg-ink);
}
body.slmg-dir-stage #main-content .woocommerce .checkout-inline-error-message::before,
body.slmg-dir-stage #main-content .woocommerce .form-row .slmg-field-error::before,
body.slmg-dir-stage #main-content .woocommerce .coupon-error-notice::before {
  content: "!"; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: var(--slmg-error); color: var(--slmg-on-orange); font: 800 13px/1 var(--slmg-display);
}
/* a refused coupon (WooCommerce 10 prints it under the coupon box, not as a store notice): the notices' error look */
body.slmg-dir-stage #main-content .woocommerce .coupon-error-notice {
  display: flex; gap: 10px; align-items: flex-start; flex: 1 0 100%; width: 100%; box-sizing: border-box; order: 10; margin: 8px 0 0; padding: 10px 14px;
  border: 1px solid var(--slmg-line-strong); border-left: 4px solid var(--slmg-error); border-radius: var(--slmg-r);
  background: var(--slmg-surface); color: var(--slmg-ink); font: 400 16px/1.4 var(--slmg-display); text-align: left;
}
/* a short help line under a field (WooCommerce's "description") */
body.slmg-dir-stage #main-content .woocommerce .form-row .description { display: block; margin-top: 6px; padding: 0; background: none; color: var(--slmg-dim); font-size: 16px; line-height: 1.4; }
body.slmg-dir-stage #main-content .woocommerce .form-row .description::before { display: none; }

/* the password field's own show/hide button: a 44 px target inside the box */
body.slmg-dir-stage #main-content .woocommerce .password-input { display: block; position: relative; }
body.slmg-dir-stage #main-content .woocommerce .password-input input { padding-right: 52px; }
/* (repair pass: WooCommerce's own rule moves the button up by half its height, so it sat across the field's top border;
   it is centred in the field here, and its grey-on-black picture is replaced by an eye drawn in the dim text colour) */
body.slmg-dir-stage #main-content .woocommerce .show-password-input {
  position: absolute; top: 50%; right: 2px; transform: translateY(-50%); width: 44px; height: 44px; padding: 0; margin: 0; border: 0; background: transparent; color: var(--slmg-dim); cursor: pointer;
}
body.slmg-dir-stage #main-content .woocommerce .show-password-input::after { display: none; content: none; }
body.slmg-dir-stage #main-content .woocommerce .show-password-input::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; background: var(--slmg-dim) !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
}
body.slmg-dir-stage #main-content .woocommerce .show-password-input.display-password::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
}
body.slmg-dir-stage #main-content .woocommerce .show-password-input:hover::before { background: var(--slmg-ink) !important; }
/* the sign-in form's "Remember me" row: WooCommerce's clearfix pieces became flex items there and pushed it in by a gap */
body.slmg-dir-stage #main-content .woocommerce form.woocommerce-form-login .form-row:has(.woocommerce-form-login__submit)::before,
body.slmg-dir-stage #main-content .woocommerce form.woocommerce-form-login .form-row:has(.woocommerce-form-login__submit)::after { display: none; content: none; }
body.slmg-dir-stage #main-content .woocommerce .show-password-input:focus-visible { outline: 2px solid var(--slmg-ink); outline-offset: -4px; }
body.slmg-dir-stage #main-content .woocommerce .woocommerce-password-strength { margin-top: 8px; padding: 8px 12px; border-radius: var(--slmg-r); font-size: 16px; text-align: left; background: var(--slmg-raised); color: var(--slmg-ink); border-left: 4px solid var(--slmg-line-strong); }
body.slmg-dir-stage #main-content .woocommerce .woocommerce-password-strength.strong { border-left-color: var(--slmg-ink); }
body.slmg-dir-stage #main-content .woocommerce .woocommerce-password-strength:is(.short, .bad) { border-left-color: var(--slmg-error); }
body.slmg-dir-stage #main-content .woocommerce .woocommerce-password-hint { display: block; margin-top: 6px; color: var(--slmg-dim); font-size: 16px; }

/* ---------- the store's notices (CK 1.3 item 1: readable colours, links that can be seen) ---------- */
body.slmg-dir-stage #main-content :is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner) {
  position: relative; display: block; margin: 0 0 var(--slmg-s4); padding: 14px 16px 14px 20px; list-style: none;
  border: 1px solid var(--slmg-line-strong); border-left: 4px solid var(--slmg-dim); border-radius: var(--slmg-r);
  background: var(--slmg-surface); color: var(--slmg-ink); font: 400 16px/1.5 var(--slmg-display); text-align: left; box-shadow: none;
}
body.slmg-dir-stage #main-content .woocommerce-message, body.slmg-dir-stage #main-content .wc-block-components-notice-banner.is-success { border-left-color: var(--slmg-ink); }
body.slmg-dir-stage #main-content .woocommerce-error, body.slmg-dir-stage #main-content .wc-block-components-notice-banner.is-error { border-left-color: var(--slmg-error); }
body.slmg-dir-stage #main-content :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before { display: none !important; content: none !important; }
body.slmg-dir-stage #main-content .woocommerce-error li { margin: 0; padding: 0; list-style: none; color: var(--slmg-ink); }
body.slmg-dir-stage #main-content .woocommerce-error li + li { margin-top: 6px; }
body.slmg-dir-stage #main-content .woocommerce-error li::before { display: none; }
body.slmg-dir-stage #main-content :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) a:not(.button) {
  color: var(--slmg-ink); text-decoration: underline; text-decoration-color: var(--slmg-orange); text-decoration-thickness: 2px; text-underline-offset: 3px;
  display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; vertical-align: baseline;
}
body.slmg-dir-stage #main-content :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) a:not(.button):hover { color: var(--slmg-orange); }
body.slmg-dir-stage #main-content :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) .button {
  float: right; margin: -4px 0 -4px 16px;   /* WooCommerce prints "View cart" before the words */
}
body.slmg-dir-stage #main-content :is(.woocommerce-message, .woocommerce-info, .woocommerce-error):focus { outline: 2px solid var(--slmg-ink); outline-offset: 2px; }
body.slmg-dir-stage #main-content .woocommerce-notices-wrapper:empty { display: none; }
body.slmg-dir-stage #main-content .woocommerce-NoticeGroup { margin: 0 0 var(--slmg-s5); }
body.slmg-dir-stage #main-content .woocommerce-NoticeGroup .woocommerce-error { margin: 0; }

/* ---------- the store's buttons: primary (orange) and plain ---------- */
body.slmg-dir-stage #main-content .woocommerce :is(a.button, button.button, input.button, input[type="submit"].button),
body.slmg-dir-stage #main-content .woocommerce button[type="submit"]:not(.show-password-input):not(.slmg-plainbtn) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box;
  min-height: 48px; padding: 0 20px; margin: 0; border: 1px solid var(--slmg-line-strong); border-radius: var(--slmg-r);
  background: transparent; color: var(--slmg-ink); text-decoration: none; text-align: center; text-transform: none; text-shadow: none; box-shadow: none;
  font: 600 16px/1.2 var(--slmg-display); letter-spacing: 0; cursor: pointer; transition: border-color .15s var(--slmg-ease), background-color .15s var(--slmg-ease), color .15s var(--slmg-ease);
}
body.slmg-dir-stage #main-content .woocommerce :is(a.button, button.button, input.button, button[type="submit"]):hover { border-color: var(--slmg-ink); background: transparent; color: var(--slmg-ink); padding: 0 20px; }
body.slmg-dir-stage #main-content .woocommerce :is(a.button, button.button, input.button, button[type="submit"])::after,
body.slmg-dir-stage #main-content .woocommerce :is(a.button, button.button, input.button, button[type="submit"])::before { display: none !important; content: none !important; }
body.slmg-dir-stage #main-content .woocommerce :is(a.button, button.button, input.button, button[type="submit"]):focus-visible { outline: 2px solid var(--slmg-ink); outline-offset: 2px; }
body.slmg-dir-stage #main-content .woocommerce :is(a.button, button.button, input.button):is(:disabled, .disabled) { opacity: .5; cursor: not-allowed; }
/* primary: WooCommerce marks its main buttons "alt" (Proceed to checkout, Place order); the sign-in press, the
   lost-password press and the account's two saves are named here (WooCommerce does not mark them "alt") */
/* (closing pass 2026-11-20, C7: this is the ONE primary-button rule; the colours carry !important because Divi's
   orange colour scheme paints buttons with !important; cart.css and the colour-scheme block below no longer repeat it) */
body.slmg-dir-stage #main-content .woocommerce :is(a.button.alt, button.button.alt, input.button.alt, #place_order, .checkout-button, .woocommerce-form-login__submit, button[name="save_account_details"], button[name="save_address"], .woocommerce-ResetPassword button[type="submit"]),
body.slmg-dir-stage #main-content .et_pb_contact_form_container .et_pb_contact_submit {
  min-height: 52px; border-color: var(--slmg-orange) !important; background: var(--slmg-orange) !important; color: var(--slmg-on-orange) !important; font-weight: 700;
}
body.slmg-dir-stage #main-content .woocommerce :is(a.button.alt, button.button.alt, input.button.alt, #place_order, .checkout-button, .woocommerce-form-login__submit, button[name="save_account_details"], button[name="save_address"], .woocommerce-ResetPassword button[type="submit"]):hover,
body.slmg-dir-stage #main-content .et_pb_contact_form_container .et_pb_contact_submit:hover {
  border-color: var(--slmg-orange-hover) !important; background: var(--slmg-orange-hover) !important; color: var(--slmg-on-orange) !important;
}
body.slmg-dir-stage #main-content .woocommerce .button.loading { opacity: .7; }
body.slmg-dir-stage #main-content .woocommerce .button.loading::after { display: none !important; }

/* ---------- Divi's own Contact Form (the basic pages): the same field look; Divi places its fields ---------- */
body.slmg-dir-stage #main-content .et_pb_contact_form_container .et_pb_contact_field { margin-bottom: var(--slmg-s4); }
body.slmg-dir-stage #main-content .et_pb_contact_form_container .et_pb_contact_form_label { display: block !important; margin: 0 0 6px; font: 500 12px/1.4 var(--slmg-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--slmg-dim); }
/* Divi hides the labels and shows placeholders that vanish while typing: the labels show, the placeholders go quiet */
body.slmg-dir-stage #main-content .et_pb_contact_form_container :is(input, textarea)::placeholder { color: transparent; }
body.slmg-dir-stage #main-content .et_pb_contact_form_container .et_pb_contact_submit {
  display: inline-flex; align-items: center; justify-content: center; padding: 0 24px !important; border-width: 1px !important; border-style: solid; border-radius: var(--slmg-r) !important;
  font: 700 16px/1.2 var(--slmg-display) !important; letter-spacing: 0 !important; cursor: pointer;
}
body.slmg-dir-stage #main-content .et_pb_contact_form_container .et_pb_contact_submit::after { display: none !important; }
body.slmg-dir-stage #main-content .et_pb_contact_form_container .et_pb_contact_submit:hover { background: var(--slmg-orange-hover) !important; padding: 0 24px !important; }
body.slmg-dir-stage #main-content .et_pb_contact_form_container .et-pb-contact-message { color: var(--slmg-ink); font-size: 16px; }
body.slmg-dir-stage #main-content .et_pb_contact_form_container .et-pb-contact-message li { border-left: 4px solid var(--slmg-error); padding-left: 12px; }
body.slmg-dir-stage #main-content .et_pb_contact_form_container .et_pb_contact_captcha_question { color: var(--slmg-ink); font-size: 16px; }
body.slmg-dir-stage #main-content .et_pb_contact_form_container input.et_pb_contact_captcha { width: 72px; text-align: center; }

@media (max-width: 900px) {
  body.slmg-dir-stage #main-content .woocommerce .form-row { margin-bottom: var(--slmg-s4); }
  body.slmg-dir-stage #main-content .woocommerce :is(a.button, button.button, input.button) { white-space: normal; }
  body.slmg-dir-stage #main-content :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) .button { float: none; display: flex; width: 100%; margin: 12px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  body.slmg-dir-stage #main-content :is(.woocommerce, .slmg-form, .et_pb_contact_form_container) :is(input, select, textarea, .button) { transition: none; }
}

/* ---------- Divi's colour scheme ("orange", et_color_scheme_orange) paints the store's notices and buttons with
   !important (measured on the checkout: #edb059 and #e59732 backgrounds, white text). Only the colours are restated
   here with !important; everything else above wins on its own. ---------- */
body.slmg-dir-stage #main-content :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) { background: var(--slmg-surface) !important; color: var(--slmg-ink) !important; }
body.slmg-dir-stage #main-content .woocommerce :is(a.button, button.button, input.button, button[type="submit"]):not(.alt):not(#place_order):not(.checkout-button):not(.show-password-input):not(.woocommerce-form-login__submit):not([name="save_account_details"]):not([name="save_address"]):not(.woocommerce-ResetPassword button):not(.slmg-plainbtn) { background: transparent !important; color: var(--slmg-ink) !important; border-color: var(--slmg-line-strong) !important; }
/* (the primary button's colours are in its one rule above) */

/* ---------- the help band at the foot of the cart, the checkout (and receipt) and the account (closing pass, V9) ----------
   ONE band, generated the same way in all three bodies (build/lib/flowhelp.py): a Text module of class slmg-help holding
   <nav><p><span class="slmg-help__k">Help</span> four links</p></nav>. Each page's own column class sets its width. On a
   phone the four links sit two by two, so no link is ever alone on a line.
   The band's layout sits on the <nav>, not on the paragraph (builder fixer 2026-11-20, finding VB3): retyping the band in
   the builder's text editor drops the <p> inside the <nav>, and the band must keep its layout whatever markup the editor
   leaves. A paragraph inside the nav adds no box of its own (display: contents); a band whose nav the editor removed
   altogether is laid out on its paragraph instead. */
body.slmg-dir-stage #main-content .slmg-help-sec .et_pb_column { padding-top: var(--slmg-s5); padding-bottom: var(--slmg-s7); border-top: 1px solid var(--slmg-line); }
body.slmg-dir-stage #main-content .slmg-help :is(nav, .et_pb_text_inner > p) { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--slmg-s5); margin: 0; padding: 0; }
body.slmg-dir-stage #main-content .slmg-help nav p { display: contents; }
body.slmg-dir-stage #main-content .slmg-help__k { margin-right: var(--slmg-s2); font: 500 12px/1.4 var(--slmg-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--slmg-dim); }
body.slmg-dir-stage #main-content .slmg-help a {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--slmg-ink); font: 400 16px/1.3 var(--slmg-display);
  text-decoration: underline; text-decoration-color: var(--slmg-line-strong); text-decoration-thickness: 1px; text-underline-offset: 4px;
}
body.slmg-dir-stage #main-content .slmg-help a:hover { color: var(--slmg-orange); text-decoration-color: currentColor; }
@media (max-width: 600px) {
  body.slmg-dir-stage #main-content .slmg-help :is(nav, .et_pb_text_inner > p) { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--slmg-s4); }
  body.slmg-dir-stage #main-content .slmg-help__k { grid-column: 1 / -1; margin: 0 0 var(--slmg-s1); }
}
