/* Shared filled action button. Width belongs to its containing component.
 * Existing markup is adapted here; no browser script adds or rewrites classes.
 * Theme/GreenShift/Fluent Forms defaults necessitate scoped !important rules.
 * Replaced site-owned declarations must be removed before this is deployed.
 */
:is(
  .uk-button,
  #header .ct-button,
  .fluentform .ff-btn-submit,
  body.post-type-archive-ujumistund [data-block="archive:10750"] .uk-cta a,
  body.page-id-1035 .gspb_button_wrapper > a
) {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: var(--uk-button-min-height) !important;
  height: auto !important;
  max-width: 100%;
  padding: var(--uk-button-padding-block) var(--uk-button-padding-inline) !important;
  border: 0 !important;
  border-radius: var(--uk-button-radius) !important;
  box-shadow: none !important;
  font-family: var(--uk-font-main) !important;
  font-size: var(--uk-button-font-size) !important;
  font-weight: var(--uk-button-font-weight) !important;
  line-height: var(--uk-button-line-height) !important;
  color: var(--uk-color-white) !important;
  background: var(--uk-button-background, var(--uk-color-action)) !important;
  text-align: center;
  text-decoration: none !important;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

/* A role changes colour only, never the button's dimensions or typography. */
.uk-button--waitlist,
#uk-oota-modal .ff-btn-submit,
body.post-type-archive-ujumistund [data-block="archive:10750"] .uk-cta a[href="#oota"] {
  --uk-button-background: var(--uk-color-muted);
}

/* GreenShift text wrappers inherit the button contract instead of supplying
 * their own font size or weight. Text-link variants are deliberately excluded. */
body.page-id-1035 .gspb_button_wrapper > a :is(
  .gspb-buttonbox-textwrap, .gspb-buttonbox-text, .gspb-buttonbox-title
) {
  font: inherit !important;
  color: inherit !important;
}

:is(
  .uk-button,
  #header .ct-button,
  .fluentform .ff-btn-submit,
  body.post-type-archive-ujumistund [data-block="archive:10750"] .uk-cta a,
  body.page-id-1035 .gspb_button_wrapper > a
):focus-visible {
  outline: var(--uk-button-focus-width) solid var(--uk-color-primary);
  outline-offset: var(--uk-button-focus-offset);
}

:is(.uk-button, .fluentform .ff-btn-submit):disabled {
  cursor: not-allowed;
  opacity: 0.65;
}
