/* =============================================================================
   Gravity Forms 3.x — legacy submit-button compatibility shim   (SHARED, fleet-wide)
   -----------------------------------------------------------------------------
   WHY THIS EXISTS
   Gravity Forms 3.0 changed the submit button from <input type="submit"> to
   <button type="submit"> (form_display.php, GFFormDisplay::get_form_button).
   It did NOT update its own legacy stylesheet: as shipped in GF 3.1.1,
   legacy/css/formsmain.min.css still targets input[type=submit] / input.button
   and contains ZERO button[type=submit] selectors. So every form using
   gform_legacy_markup lost the plugin's own button styling, on every theme.

   This file is a GENERATED mirror of exactly those rules for the <button>
   element. It adds nothing of its own — same declarations, same @media
   contexts, same cascade order as the vendor file.

   SAFETY
   Every selector below is scoped under .gform_legacy_markup_wrapper, inherited
   from the vendor rules. The generator REFUSES to emit any selector that is not,
   so this shim cannot affect any element outside a Gravity Forms legacy form.

   SCOPE / LIMITS
   - Restores only what GF's own legacy CSS provided. A site whose THEME styled
     the button via input[...] selectors needs its own per-site patch as well.
   - No effect on modern-markup (gravity-theme) forms — GF styles those by class.

   PROVENANCE
   Source : gravityforms/legacy/css/formsmain.min.css  (GF 3.1.1, 88710 bytes)
   sha256 : 376d3b1153adeb7e…
   Built  : 2026-09-15 by runs/_fleet/gf3-legacy-markup-survey-20260915/shim/generate-shim.js

   REMOVE THIS FILE when Gravity Forms ships a release whose legacy stylesheet
   targets button[type=submit]. Re-check with:
       grep -c 'button\[type=submit\]' .../legacy/css/formsmain.min.css
   ============================================================================= */

.gform_legacy_markup_wrapper .gform_footer button[type="submit"],
.gform_legacy_markup_wrapper .gform_page_footer button[type="submit"] {font-size:1em;margin:0 0 16px 0;width:100%}
.gform_legacy_markup_wrapper div.form_saved_message div.form_saved_message_emailform form button[type="submit"] {-webkit-appearance:none;-moz-appearance:none;background-color:#31708f;border:1px solid #31708f;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;color:#fff;font-size:1em;line-height:1;padding:.75em 1em;text-transform:uppercase}

@media only screen and (max-width:640px) {
  .gform_legacy_markup_wrapper div.form_saved_message div.form_saved_message_emailform form button[type="submit"] {display:block;width:98%}
}

@media only screen and (min-width:641px) {
  .gform_legacy_markup_wrapper .gform_footer button[type="submit"] {display:-moz-inline-stack;display:inline-block}
  .gform_legacy_markup_wrapper .gform_footer button[type="submit"],
  .gform_legacy_markup_wrapper .gform_page_footer button[type="submit"] {font-size:1em;margin:0 16px 0 0;width:auto}
}

/* ===== end Gravity Forms 3.x legacy submit-button shim ===== */

/* =============================================================================
   LOCAL SUPPLEMENT — shim coverage gap found on Lac Pemichangan, 2026-09-15
   -----------------------------------------------------------------------------
   Everything ABOVE this marker is the shared fleet shim, byte-for-byte. Verify:
       head -c 3084 gf3-legacy-button-shim.css | md5sum   ->  fd1b4f9133d5f89b79587dea9ec0787d

   The shared shim's generator matched only selectors containing
   `input[type=submit]` or `input.button`. It therefore missed rules written with
   a BARE `input` whose :not() list does not exclude submit -- which still styled
   the old submit button. Auditing GF 3.1.1's formsmain.min.css turned up 21 such
   rules, but 20 are scoped to a field container (.gfield_date_day, .math_small,
   .simple_captcha_*, .gfield_list_cell ...) where a submit button never appears,
   so they are inert. Exactly ONE is wrapper-scoped and does reach the button:

   Confirmed empirically -- it is the rule that gives the reference
   <input type="submit"> line-height 32px below 641px, leaving the patched
   <button> 8px shorter than the original at mobile widths.

   This belongs in the SHARED shim; it is carried here only until the fleet copy
   is regenerated. Remove this block once the shared shim covers it.
   ============================================================================= */

@media only screen and (max-width:641px) {
  .gform_legacy_markup_wrapper button[type="submit"]:not([type="radio"]):not([type="checkbox"]):not([type="image"]):not([type="file"]) {line-height:2;min-height:2rem}
}

/* ===== end local supplement ===== */
