/*
 * One action size, across Elementor templates and custom / Gravity Forms actions.
 * Scope is semantic: data-lmc-action is authored server-side; the other classes belong only to form actions.
 * !important defeats converter-local typography/padding at every breakpoint, not colors, borders or motion.
 * At a normal 16px root: 24px line + 24px padding + 0–4px border <= 52px minimum.
 * Auto height, wrapping and no maximum height allow longer / enlarged labels to grow instead of clipping.
 */
:root:root :is(
  [data-lmc-action],
  .lmc-lf-cta, .lmc-lf-back, .lmc-lf-continue a,
  .lmc-guide-download,
  :is(.lmc-guide-form, .lmc-lead-form, .lmc-contact-form, .lmc-calc) :is(.gform_button, .gform_next_button, .gform_previous_button),
  .lmc-calc :is(.nf-submit, .nf-ghost)
) {
  box-sizing: border-box !important;
  display: inline-flex;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 52px !important;
  height: auto !important;
  max-height: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 12px 24px !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: var(--lmc-type-body, 16px) !important;
  font-weight: 700 !important;
  line-height: var(--lmc-leading-body, 1.5) !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  text-overflow: clip !important;
}

/* Converted labels often have their own typography; only normal-flow text inherits, never the sheen layer. */
:root:root [data-lmc-action] :is(.e-paragraph-base, span:not([aria-hidden="true"])) {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  white-space: normal !important;
  min-width: 0;
  text-decoration: none !important;
}
:root:root [data-lmc-action] .e-paragraph-base { margin-block: 0 !important; }
:root:root [data-lmc-action][hidden] { display: none !important; }
:root:root [data-lmc-action] :is(img, svg),
:root:root .lmc-calc .nf-ghost svg { flex-shrink: 0; align-self: center; width: 20px; height: 20px; }

/* Keep the calculator's circular arrow treatment, but fit it inside the same action height. */
:root:root .lmc-calc .nf-submit-icon { width: 28px; height: 28px; }
:root:root .lmc-calc .nf-submit > span:first-child { min-width: 0; }

@media (max-width: 767px) {
  :root:root :is(
    [data-lmc-action],
    .lmc-lf-cta, .lmc-lf-back, .lmc-lf-continue a, .lmc-guide-download,
    :is(.lmc-guide-form, .lmc-lead-form, .lmc-contact-form, .lmc-calc) :is(.gform_button, .gform_next_button, .gform_previous_button),
    .lmc-calc :is(.nf-submit, .nf-ghost)
  ) {
    padding-inline: 16px !important;
    letter-spacing: .025em !important;
  }
  /* Only the shared top-bar Contact Us action: beat the shared inline-flex display.
     It is a direct flex item, so display:none also removes its space and adjacent gap.
     The phone, hamburger, logo and expanded-menu actions keep their existing layouts. */
  :root:root .elementor-location-header [data-lmc-action].box-21 { display: none !important; }
}

/* Locations copies: Elementor compiles saved g-9cc9724 to the class name
 * button-4. Keep both forms for cached/unmarked HTML as well as fresh renders.
 * Decoration can originate on the anchor OR any rich-text label descendant;
 * resetting only the anchor cannot cancel a descendant's own underline.
 * No state qualifier: this holds at rest, hover and focus without hiding the
 * shared :focus-visible ring or changing the authored pill/layout/motion. */
:root:root:root .elementor a:is(.g-9cc9724,.button-4),
:root:root:root .elementor a:is(.g-9cc9724,.button-4) * {
  text-decoration:none !important;
}

/* Explicitly approved for all Browse lending locations copies only. */
:root:root:root .elementor :is(a.g-9cc9724,a.button-4,a[data-lmc-action-locations]),
:root:root:root .elementor :is(a.g-9cc9724,a.button-4,a[data-lmc-action-locations]) * {
  text-transform:uppercase !important;
}
