/* Shared button colours. Keep separate from the legacy Sass bundle. */
:root {
  --button-primary-text: #fff;
  --button-telegram-bg: #279ad1;
  --button-telegram-text: #fff;
  --button-telegram-hover: #238abd;
  --button-telegram-active: #1f7ba8;
}

/* WP-Recall also sets colours on the inner label and in generated CSS. */
body:not(.wp-admin) .rcl-bttn.rcl-bttn__type-primary,
body:not(.wp-admin) .rcl-bttn.rcl-bttn__type-primary .rcl-bttn__text,
body:not(.wp-admin) .rcl-bttn.rcl-bttn__type-primary .rcl-bttn__ico,
body .rusdtp-modal__btn--primary,
body .badges__button.--primary,
body .form-adv .acf-form-submit input[type="submit"],
body .article-content .wp-block-button__link {
  color: var(--button-primary-text) !important;
}

/* Registration and bot states must remain reachable on short phone screens. */
.panel_lk_recall.floatform {
  box-sizing: border-box;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Filled actions have no resting outline. Keyboard focus is defined separately. */
body .rcl-bttn.rcl-bttn__type-primary,
body .rusdtp-modal__btn--primary,
body .badges__button.--primary { border: 0; }
