/*
 * Seal Master – button styles (2026 refresh)
 * Source of truth: Figma "Site Updates" → "Button Styles" (node 2159:4).
 * Loaded after app.css, header.css and the Beaver Builder layout CSS (functions.php: sm_enqueue_button_styles).
 * To roll back: remove the enqueue in functions.php (this file then has no effect).
 *
 * HOW IT WORKS
 * 1. Every site button (.btn, Beaver Builder a.fl-button, Luke's .revised-*-bg-btn, the header quote button) gets the
 *    new shape: Source Sans Pro Bold 18px, 2px radius, width follows the label, 13×33 arrow strip pinned 2px inside the right edge.
 * 2. Each section sets a colour PALETTE for its background (light by default, dark, or red), using --sp-* (primary)
 *    and --ss-* (secondary) custom properties.
 * 3. Each button is SECONDARY unless it is a contact/quote button, in which case it uses the PRIMARY palette.
 *    Primary = links to /request-a-quote, /contact, /rfq, /request-for-quote, the header quote button, and Luke's
 *    .revised-primary-* buttons. Add class "sm-btn--primary" (button) or "sm-on-dark" / "sm-on-red" (section) to override.
 *
 * Deliberately NOT styled: case-study card labels (.scrollable-btn), the hover image cards (triple-image-flip module),
 * the cross-sections promo module, Gravity Forms buttons, the red outlined "jump to" links.
 */

/* ---------- Palettes ---------- */
:root {
  --sm-btn-red: #d33a31;
  --sm-btn-strip-red: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13.0761' height='33' viewBox='0 0 13.0761 33'%3E%3Crect width='13.0761' height='33' rx='1' fill='%23D33A31'/%3E%3Cpath fill-rule='evenodd' d='M4.59796 20.847C5.75003 19.7826 6.90211 18.7182 8.05418 17.6538C8.46206 17.2763 9.37978 16.6949 8.97548 16.042C8.68031 15.5661 8.0506 15.1779 7.64094 14.8112C6.89674 14.1493 6.15433 13.4874 5.41014 12.8255C5.174 12.6144 4.21871 11.5285 4.04697 12.2369C3.94679 12.6537 4.03802 13.194 4.03802 13.6162C4.03802 14.5715 4.03802 15.5268 4.03802 16.482C4.03802 17.5196 4.03802 18.5554 4.03802 19.5912C4.03802 19.9043 3.89849 21.4929 4.59796 20.847' fill='white'/%3E%3C/svg%3E");
  --sm-btn-strip-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13.0761' height='33' viewBox='0 0 13.0761 33'%3E%3Crect width='13.0761' height='33' rx='1' fill='white'/%3E%3Cpath fill-rule='evenodd' d='M4.59796 20.847C5.75003 19.7826 6.90211 18.7182 8.05418 17.6538C8.46206 17.2763 9.37978 16.6949 8.97548 16.042C8.68031 15.5661 8.0506 15.1779 7.64094 14.8112C6.89674 14.1493 6.15433 13.4874 5.41014 12.8255C5.174 12.6144 4.21871 11.5285 4.04697 12.2369C3.94679 12.6537 4.03802 13.194 4.03802 13.6162C4.03802 14.5715 4.03802 15.5268 4.03802 16.482C4.03802 17.5196 4.03802 18.5554 4.03802 19.5912C4.03802 19.9043 3.89849 21.4929 4.59796 20.847' fill='%23D33A31'/%3E%3C/svg%3E");

  /* light background (default) */
  --sp-bg: #000;      --sp-fg: #fff;    --sp-bd: transparent; --sp-bw: 0px; --sp-hover: var(--sm-btn-red); --sp-strip: var(--sm-btn-strip-red); --sp-hover-strip: var(--sm-btn-strip-red);
  --ss-bg: #f5f5f5;   --ss-fg: #363636; --ss-bd: #363636;     --ss-bw: 1px; --ss-hover: var(--sm-btn-red); --ss-strip: var(--sm-btn-strip-red); --ss-hover-strip: var(--sm-btn-strip-red);
}
/* dark backgrounds */
.sm-on-dark,
#header, .sm-header, .sm-drawer,
.front-1, .front-3, .front-5, .sm-seals,
.fl-module-case-studies,
.cta-404,
.double-blockquote-section .blockquote,
.revised-primary-dark-bg-btn, .revised-secondary-dark-bg-btn {
  --sp-bg: #fff; --sp-fg: #000; --sp-bd: transparent; --sp-bw: 0px; --sp-hover: var(--sm-btn-red);
  --ss-bg: transparent; --ss-fg: #f5f5f5; --ss-bd: #fff; --ss-bw: 1px; --ss-hover: var(--sm-btn-red);
  --sp-strip: var(--sm-btn-strip-red); --ss-strip: var(--sm-btn-strip-red);
}
/* the "alternative" double-blockquote puts the red overlay on panel 2 instead */
.double-blockquote-alternative .blockquote.blockquote-1 {
  --sp-bg: #fff; --sp-fg: #000; --sp-hover: var(--sm-btn-red); --sp-hover-strip: var(--sm-btn-strip-red);
  --ss-bg: transparent; --ss-fg: #f5f5f5; --ss-bd: #fff; --ss-hover: var(--sm-btn-red); --ss-strip: var(--sm-btn-strip-red); --ss-hover-strip: var(--sm-btn-strip-red);
}
/* red backgrounds */
.sm-on-red,
.footer-cta-wrapper,
.fl-module.btn-white,
.double-blockquote-section .blockquote-1,              /* red overlay panel */
.double-blockquote-alternative .blockquote-2,
.fl-node-69kuswc5amgr {                                 /* Bullet Trains: red "Ready to get started?" column */
  --sp-bg: #fff; --sp-fg: #000; --sp-bd: transparent; --sp-bw: 0px; --sp-hover: #000; --sp-strip: var(--sm-btn-strip-red); --sp-hover-strip: var(--sm-btn-strip-red);
  --ss-bg: transparent; --ss-fg: #f5f5f5; --ss-bd: #fff; --ss-bw: 1px; --ss-hover: #000; --ss-strip: var(--sm-btn-strip-white); --ss-hover-strip: var(--sm-btn-strip-red);
}

/* ---------- Level: every button is secondary unless it is a contact / quote button ---------- */
:where(.btn, .fl-button-wrap a.fl-button, [class*="revised-"][class*="-bg-btn"], .sm-quote-btn) {
  --b-bg: var(--ss-bg); --b-fg: var(--ss-fg); --b-bd: var(--ss-bd); --b-bw: var(--ss-bw);
  --b-hover: var(--ss-hover); --b-strip: var(--ss-strip); --b-hover-strip: var(--ss-hover-strip);
}
:where(.btn, .fl-button-wrap a.fl-button, [class*="revised-"][class*="-bg-btn"]):is([href*="request-a-quote"], [href*="request-for-quote"], [href*="/rfq"], [href*="/contact"]),
:where(.sm-quote-btn, .revised-primary-light-bg-btn, .revised-primary-dark-bg-btn, .sm-btn--primary),
:where(.fl-module.sm-btn--primary) :where(a.fl-button) {
  --b-bg: var(--sp-bg); --b-fg: var(--sp-fg); --b-bd: var(--sp-bd); --b-bw: var(--sp-bw);
  --b-hover: var(--sp-hover); --b-strip: var(--sp-strip); --b-hover-strip: var(--sp-hover-strip);
}

/* ---------- Shape (all buttons) ---------- */
html body .btn:not(.scrollable-btn, .triple-image-flip *, .fl-module-cross-sections *),
html body .page-content .fl-builder-content .fl-button-wrap a.fl-button:not(.triple-image-flip *, .fl-module-cross-sections *),
html body .fl-builder-content .fl-module .fl-button-wrap a.fl-button:not(.triple-image-flip *, .fl-module-cross-sections *),
html body [class*="revised-"][class*="-bg-btn"]:not(.triple-image-flip *, .fl-module-cross-sections *) {
  position: relative;
  isolation: isolate;
  display: inline-block;
  vertical-align: middle;
  min-width: 0 !important;       /* was 283px: width follows the label */
  width: fit-content;
  max-width: 100%;
  padding: 7px 25px 7px 10px;    /* 37px tall; 25px right = 10px gap + 13px strip + 2px */
  background: var(--b-bg) !important;
  border: var(--b-bw) solid var(--b-bd);
  border-radius: 2px;
  box-shadow: none;
  color: var(--b-fg);
  font-family: "Source Sans Pro", "Source Sans 3", sans-serif;
  font-size: 18px;
  font-weight: 700 !important;
  line-height: 23px;
  letter-spacing: normal;
  text-align: left;
  text-transform: none !important;
  text-decoration: none !important;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
html body .btn:not(.scrollable-btn, .triple-image-flip *, .fl-module-cross-sections *) *,
html body .page-content .fl-builder-content .fl-button-wrap a.fl-button:not(.triple-image-flip *, .fl-module-cross-sections *) *,
html body .fl-builder-content .fl-module .fl-button-wrap a.fl-button:not(.triple-image-flip *, .fl-module-cross-sections *) *,
html body [class*="revised-"][class*="-bg-btn"]:not(.triple-image-flip *, .fl-module-cross-sections *) * {
  position: static;
  display: inline;
  padding: 0;
  background: none;
  color: inherit !important;
  font: inherit;
}

/* The arrow strip: the existing ::before becomes a 13px strip pinned 2px inside the right edge; ::after (old triangle) is removed. */
html body .btn:not(.scrollable-btn, .triple-image-flip *, .fl-module-cross-sections *)::before,
html body .page-content .fl-builder-content .fl-button-wrap a.fl-button:not(.triple-image-flip *, .fl-module-cross-sections *)::before,
html body .fl-builder-content .fl-module .fl-button-wrap a.fl-button:not(.triple-image-flip *, .fl-module-cross-sections *)::before,
html body [class*="revised-"][class*="-bg-btn"]:not(.triple-image-flip *, .fl-module-cross-sections *)::before {
  content: "";
  display: block;
  position: absolute;
  top: 2px;
  right: 2px;
  bottom: 2px;
  left: auto;
  width: 13px;
  height: auto;
  margin: 0;
  background: var(--b-strip) center / 100% 100% no-repeat !important;
  border-radius: 1px;
  transform: none;
  transition: none;
  z-index: auto;
}
html body .btn:not(.scrollable-btn, .triple-image-flip *, .fl-module-cross-sections *)::after,
html body .page-content .fl-builder-content .fl-button-wrap a.fl-button:not(.triple-image-flip *, .fl-module-cross-sections *)::after,
html body .fl-builder-content .fl-module .fl-button-wrap a.fl-button:not(.triple-image-flip *, .fl-module-cross-sections *)::after,
html body [class*="revised-"][class*="-bg-btn"]:not(.triple-image-flip *, .fl-module-cross-sections *)::after {
  content: none !important;
  display: none !important;
}

/* Hover and keyboard focus */
html body .btn:not(.scrollable-btn, .triple-image-flip *, .fl-module-cross-sections *):is(:hover, :focus-visible),
html body .page-content .fl-builder-content .fl-button-wrap a.fl-button:not(.triple-image-flip *, .fl-module-cross-sections *):is(:hover, :focus-visible),
html body .fl-builder-content .fl-module .fl-button-wrap a.fl-button:not(.triple-image-flip *, .fl-module-cross-sections *):is(:hover, :focus-visible),
html body [class*="revised-"][class*="-bg-btn"]:not(.triple-image-flip *, .fl-module-cross-sections *):is(:hover, :focus-visible) {
  background: var(--b-hover) !important;
  border-color: transparent;
  color: #fff;
}
html body .btn:not(.scrollable-btn, .triple-image-flip *, .fl-module-cross-sections *):is(:hover, :focus-visible)::before,
html body .page-content .fl-builder-content .fl-button-wrap a.fl-button:not(.triple-image-flip *, .fl-module-cross-sections *):is(:hover, :focus-visible)::before,
html body .fl-builder-content .fl-module .fl-button-wrap a.fl-button:not(.triple-image-flip *, .fl-module-cross-sections *):is(:hover, :focus-visible)::before,
html body [class*="revised-"][class*="-bg-btn"]:not(.triple-image-flip *, .fl-module-cross-sections *):is(:hover, :focus-visible)::before {
  width: 13px;
  height: auto;
  background-image: var(--b-hover-strip) !important;
}
html body .btn:focus-visible, html body a.fl-button:focus-visible, html body [class*="revised-"][class*="-bg-btn"]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* ---------- Overrides for older rules that use !important ---------- */
/* Header quote button (header.css forces 185px / 10px 34px padding) */
html body .sm-quote-btn { min-width: 0 !important; padding: 7px 25px 7px 10px !important; white-space: nowrap; }
html body .sm-quote-btn > span:first-child { padding: 0 !important; background: none !important; font-size: 18px; }
/* "Ready to get started?" mid-page banner buttons (.btn-white forces transparent, uppercase, 100px) */
html body .btn-white a.fl-button { background: var(--b-bg) !important; min-width: 0 !important; }
html body .btn-white a.fl-button:is(:hover, :focus-visible) { background: var(--b-hover) !important; }
/* Mid-page "Ready to get started?" banner (global BB column "CTA – Button Group"): heading and button sit in two columns.
   The narrower, text-width button left the pair off-centre, so centre the pair as a group on desktop and tablet. */
@media (min-width: 769px) {
  html body .fl-col-group-nested:has(> .fl-col > .fl-col-content > .fl-module.btn-white) { display: flex; justify-content: center; align-items: center; }
  html body .fl-col-group-nested:has(> .fl-col > .fl-col-content > .fl-module.btn-white) > .fl-col { width: auto !important; flex: 0 0 auto; float: none; }
}
/* Cross Sections page: "Looking for a custom solution? Contact Us" (forced 14px) */
html body .cross-section-container__bottom-btns a.btn { font-size: 18px !important; }
/* Red outlined "Jump to" / "VIEW ALL +" buttons (Cross Sections, Inflatable Seals 101): 3px letter-spacing adds space after
   the last character, so trim the right padding by 3px to make the visible left and right spacing equal (requested by Chris). */
html body .cross-section__white-btn { padding-right: 2px; }
/* Homepage hero: "Request a Quote" on its own line, the two secondary buttons centred below (requested by Chris).
   An invisible full-width flex item after the first button forces the line break; row-gap is halved because the break is its own row. */
.front-1 .hero-overlay > div:has(> a.btn + a.btn) { row-gap: 12px !important; }
.front-1 .hero-overlay > div:has(> a.btn + a.btn)::after { content: ""; flex-basis: 100%; height: 0; order: 1; }
.front-1 .hero-overlay > div:has(> a.btn + a.btn) > a.btn:first-child { order: 0; }
.front-1 .hero-overlay > div:has(> a.btn + a.btn) > a.btn:not(:first-child) { order: 2; }
/* Bottom band: fixed 200px width */
html body .footer-content .btn, html body .footer-content [class*="revised-"] { width: fit-content; }

/* ---------- Alignment: left-align buttons that sat centred under left-aligned text (42 modules, found by crawl 2026-10-07) ---------- */
/* /engineering/ "About Us" */
/* /engineering/geometry/ "Select My Cross Section" */
/* /what-we-do/ "Select My Cross Section" */
/* /what-we-do/ "Download" */
/* /what-we-do/materials/ "Learn More" */
/* /what-we-do/products/accessories/ "Download" */
/* /what-we-do/products/inflatable-seals/fabric-reinforced/ "Explore Materials" */
/* /what-we-do/solutions/ "Download" */
/* /what-we-do/solutions/hold/ "Download" */
/* /what-we-do/solutions/lift/ "Download" */
/* /what-we-do/solutions/push/ "Download" */
/* /what-we-do/solutions/seal/ "Download" */
/* /what-we-do/solutions/squeeze/ "Download" */
/* /what-we-do/solutions/stop/ "Download" */
/* /who-we-serve/markets/automotive/doors-and-hatches/ "Request a Quote" */
/* /who-we-serve/markets/automotive/doors-and-hatches/ "Learn More About Our Seals" */
/* /who-we-serve/markets/automotive/doors-and-hatches/ "Contact Us" */
/* /who-we-serve/markets/automotive/test-sheds/ "Request a Quote" */
/* /who-we-serve/markets/automotive/test-sheds/ "Learn More About Our Seals" */
/* /who-we-serve/markets/defense/aircraft-canopies/ "Learn More About Sealing with Seal Master" */
/* /who-we-serve/markets/defense/aircraft-canopies/ "View Chart" */
/* /who-we-serve/markets/defense/aircraft-carriers/ "Read More" */
/* /who-we-serve/markets/defense/aircraft-carriers/ "View Chart" */
/* /who-we-serve/markets/defense/military-vehicles/ "Read More" */
/* /who-we-serve/markets/defense/military-vehicles/ "View Chart" */
/* /who-we-serve/markets/defense/tanks/ "Request a Quote" */
/* /who-we-serve/markets/defense/tanks/ "View Chart" */
/* /who-we-serve/markets/defense/tanks/ "Request a Quote" */
/* /who-we-serve/markets/food-processing/ "Learn More" */
/* /who-we-serve/markets/food-processing/mixers/ "View Chart" */
/* /who-we-serve/markets/food-processing/smokehouses/ "View Chart" */
/* /who-we-serve/markets/hatch-and-door-manufacturers/ "Request a Quote" */
/* /who-we-serve/markets/hatch-and-door-manufacturers/ "Learn More About Our Seals" */
/* /who-we-serve/markets/hatch-and-door-manufacturers/flood-gates/ "Request a Quote" */
/* /who-we-serve/markets/hatch-and-door-manufacturers/flood-gates/ "Learn More About Our Seals" */
/* /who-we-serve/markets/hatch-and-door-manufacturers/flood-gates/ "Contact Us" */
/* /who-we-serve/markets/hatch-and-door-manufacturers/hatch-seals/ "Request a Quote" */
/* /who-we-serve/markets/hatch-and-door-manufacturers/hatch-seals/ "Learn More About Our Seals" */
/* /who-we-serve/markets/hatch-and-door-manufacturers/hatch-seals/ "Contact Us" */
/* /who-we-serve/markets/nuclear/access-doors/ "View Chart" */
/* /who-we-serve/markets/nuclear/spent-fuel-pools/ "View Chart" */
/* /who-we-serve/markets/pharmaceuticals/ "Learn More" */
html body .fl-node-eordvntp3m61 .fl-button-wrap,
html body .fl-node-4eg13hkslj7y .fl-button-wrap,
html body .fl-node-4i5ku6hc8mry .fl-button-wrap,
html body .fl-node-3s5ekp27ghq6 .fl-button-wrap,
html body .fl-node-bz8qi2c14lje .fl-button-wrap,
html body .fl-node-7u9thecvn1lp .fl-button-wrap,
html body .fl-node-h83xv9fn4aqp .fl-button-wrap,
html body .fl-node-284ly9rjoxhz .fl-button-wrap,
html body .fl-node-56jb3qv9m2ah .fl-button-wrap,
html body .fl-node-livq35n6jrb4 .fl-button-wrap,
html body .fl-node-parotjkgcefi .fl-button-wrap,
html body .fl-node-x5gprf3nwtly .fl-button-wrap,
html body .fl-node-x5vpq9t1b8dz .fl-button-wrap,
html body .fl-node-6ctgknd0qob3 .fl-button-wrap,
html body .fl-node-j7xgz5y3c4uk .fl-button-wrap,
html body .fl-node-motbehpfy80k .fl-button-wrap,
html body .fl-node-nvsrp294mjke .fl-button-wrap,
html body .fl-node-q2y09ekuvdm1 .fl-button-wrap,
html body .fl-node-8f36s2dm0x1w .fl-button-wrap,
html body .fl-node-615639ec6ae7c .fl-button-wrap,
html body .fl-node-615639ec6ae7d .fl-button-wrap,
html body .fl-node-60df24f4c1f4e .fl-button-wrap,
html body .fl-node-60df25835d425 .fl-button-wrap,
html body .fl-node-6102a5558e396 .fl-button-wrap,
html body .fl-node-6102a58c5f31f .fl-button-wrap,
html body .fl-node-j20gkrzc54po .fl-button-wrap,
html body .fl-node-6590yn3e4mur .fl-button-wrap,
html body .fl-node-ezajp4kh58wy .fl-button-wrap,
html body .fl-node-n7wx50e28jc3 .fl-button-wrap,
html body .fl-node-6171706e4b217 .fl-button-wrap,
html body .fl-node-619d3d0b83c10 .fl-button-wrap,
html body .fl-node-613bae0f75cfc .fl-button-wrap,
html body .fl-node-613baf53084b0 .fl-button-wrap,
html body .fl-node-t7b38ufi50vh .fl-button-wrap,
html body .fl-node-m09b3q15gsxe .fl-button-wrap,
html body .fl-node-x0zgn5tfyvse .fl-button-wrap,
html body .fl-node-7kb9uj0pvfz1 .fl-button-wrap,
html body .fl-node-5lurfg0xo2dt .fl-button-wrap,
html body .fl-node-ef3aqrxnsy08 .fl-button-wrap,
html body .fl-node-c3vkgy9f1wrd .fl-button-wrap,
html body .fl-node-61e18ee997da0 .fl-button-wrap,
html body .fl-node-iv2zg35s6xu7 .fl-button-wrap { text-align: left !important; }

/* ==========================================================================
 * 2026-10-21 additions (open items B11, B14 and issue I3 from the final report)
 * ========================================================================== */

/* B11: "View Case Study" on the case-study cards (market and product pages) sits centred under the title,
   the same as on the homepage. Copied from the homepage-only rule (front-page CSS) so every page matches. */
html body .fl-module-case-studies .scrollable-btn {
  position: absolute !important;
  top: 50% !important;
  left: 50%;
  right: auto;
  min-width: 100px;
  width: 200px;
  padding: 12px !important;
  transform: translate(-50%, 180%);
  color: #fff !important;
  font-weight: 600 !important;
  text-transform: capitalize !important;
}

/* B14: Gravity Forms buttons (Submit, Next, Download, Get Engineering Help) take the PRIMARY style.
   "Previous" takes the secondary style. Inputs can't have ::before, so the arrow strip is a background layer.
   The theme's old black bar + strip on the form footer (app.css .gform_footer) is switched off. */
html body .gform_wrapper .gform_footer,
html body .gform_wrapper .gform_page_footer {
  position: static;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0;
  margin-top: 16px;
  background: none !important;   /* also beats the old .gform_footer:hover #333 */
  border: 0;
  z-index: auto;
}
html body .gform_wrapper .gform_footer::before,
html body .gform_wrapper .gform_footer::after,
html body .gform_wrapper .gform_page_footer::before,
html body .gform_wrapper .gform_page_footer::after {
  content: none;
  display: none;
}
html body .gform_wrapper :is(.gform_footer, .gform_page_footer) :is(input[type="submit"], input[type="button"], button) {
  --b-bg: var(--sp-bg); --b-fg: var(--sp-fg); --b-bd: var(--sp-bd); --b-bw: var(--sp-bw);
  --b-hover: var(--sp-hover); --b-strip: var(--sp-strip); --b-hover-strip: var(--sp-hover-strip);
  position: static;
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;
  width: auto !important;
  min-width: 0;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 7px 25px 7px 10px !important;
  border: var(--b-bw) solid var(--b-bd) !important;
  border-radius: 2px !important;
  background: var(--b-strip) right 2px center / 13px calc(100% - 4px) no-repeat, var(--b-bg) !important;
  box-shadow: none;
  color: var(--b-fg) !important;
  font-family: "Source Sans Pro", "Source Sans 3", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 23px;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
html body .gform_wrapper :is(.gform_footer, .gform_page_footer) :is(input, button).gform_previous_button.gform_previous_button {
  --b-bg: var(--ss-bg); --b-fg: var(--ss-fg); --b-bd: var(--ss-bd); --b-bw: var(--ss-bw);
  --b-hover: var(--ss-hover); --b-strip: var(--ss-strip); --b-hover-strip: var(--ss-hover-strip);
}
html body .gform_wrapper :is(.gform_footer, .gform_page_footer) :is(input[type="submit"], input[type="button"], button):is(:hover, :focus-visible) {
  background: var(--b-hover-strip) right 2px center / 13px calc(100% - 4px) no-repeat, var(--b-hover) !important;
  border-color: transparent !important;
  color: #fff !important;
}
html body .gform_wrapper :is(.gform_footer, .gform_page_footer) :is(input[type="submit"], input[type="button"], button):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* I3: the header "Request a Quote" button was squeezed (strip over the text) between 1021px and 1120px.
   Keep it at full width and tighten the nav spacing in that range instead. */
html body .sm-quote-btn {
  flex-shrink: 0;
}
@media (min-width: 1021px) and (max-width: 1120px) {
  html body .sm-main-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
  html body .sm-primary-nav > ul > li.menu-item > a {
    padding: 0 6px !important;
  }
}

/* B14: the "Get Engineering Help" form on Inflatable Seals sits in a black Beaver Builder box,
   so its buttons use the dark-background palette (white primary). */
.fl-node-dtzi5g10pjqv {
  --sp-bg: #fff; --sp-fg: #000; --sp-bd: transparent; --sp-bw: 0px; --sp-hover: var(--sm-btn-red);
  --sp-strip: var(--sm-btn-strip-red); --sp-hover-strip: var(--sm-btn-strip-red);
  --ss-bg: transparent; --ss-fg: #f5f5f5; --ss-bd: #fff; --ss-bw: 1px; --ss-hover: var(--sm-btn-red);
  --ss-strip: var(--sm-btn-strip-red); --ss-hover-strip: var(--sm-btn-strip-red);
}

/* I3 (continued): from 1191px the theme widens the nav links to 18px again, which pushed the quote button
   off the right edge until about 1280px. Keep the 12px spacing up to 1279px. */
@media (min-width: 1191px) and (max-width: 1279px) {
  html body .sm-primary-nav > ul > li.menu-item > a {
    padding: 0 12px !important;
  }
}

/* 2026-10-22: form spacing. Submit sits closer to the last field, and the tight forms get room below it.
   The invisible reCAPTCHA field (its badge is fixed to the corner) and the form body's bottom margin were adding ~60px. */
html body .gform_wrapper .gfield--captcha-invisible {
  position: absolute !important;   /* out of the grid flow (newer form layout), no empty row gap */
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
}
html body .gform_wrapper .gform_body {
  margin-bottom: 0 !important;
}
html body .gform_wrapper .gform_footer,
html body .gform_wrapper .gform_page_footer {
  margin-top: 8px !important;   /* + the last field's 24px bottom margin = 32px */
  padding-top: 0 !important;
}
/* Request a Quote, Get Engineering Help (Inflatable Seals) and the Inflatable Bags Guide had 16-46px below Submit */
html body :is(.fl-node-qdom7c2xrfjn, .fl-node-09hb4jml52uf, .fl-node-ravzskx2cjb7) .gform_wrapper {
  margin-bottom: 56px !important;
}

/* 2026-10-23: some Beaver Builder buttons contain stray <br> tags around the label (e.g. "View All" and "View Projects"
   on Custom Engineering Capabilities), which made them three lines tall. Ignore line breaks inside buttons. */
html body :is(.btn, a.fl-button, [class*="revised-"][class*="-bg-btn"]) br {
  display: none !important;
}
