.gin-sticky-form-actions {
  display: flex;
  gap: var(--gin-spacing-xs);
}

.gin-sticky-form-actions > * {
  margin: 0 !important;
}

.gin-sticky-form-actions [data-drupal-selector=edit-status]:empty {
  display: none;
}

.gin-sticky-form-actions--preprocessed ~ .layout-container form.gin--has-sticky-form-actions .gin-sticky-form-actions {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  height: 1px;
  width: 1px;
  word-wrap: normal;
  position: fixed !important;
  inset-block-start: 0;
}

.edit-post-header .gin-sticky-form-actions {
  margin-block-start: 0;
}

@keyframes gin-pseudo-throbber {
  0% {
    background-size: 8px 8px;
    background-position: 16px 18px;
  }

  50% {
    background-size: 32px 32px;
    background-position: 4px 14px;
  }

  100% {
    background-size: 8px 8px;
    background-position: 16px 18px;
  }
}

[data-drupal-selector=gin-sticky-edit-save],
[data-drupal-selector=gin-sticky-edit-preview],
[data-drupal-selector=gin-sticky-edit-delete] {
  background-repeat: no-repeat;
  background-position: var(--gin-spacing-xs) center;
}

body:has([data-drupal-selector=edit-save] + .ajax-progress) :where([data-drupal-selector=gin-sticky-edit-save]),
body:has([data-drupal-selector=edit-preview] + .ajax-progress) :where([data-drupal-selector=gin-sticky-edit-preview]),
body:has([data-drupal-selector=edit-delete] + .ajax-progress) :where([data-drupal-selector=gin-sticky-edit-delete]) {
  background-image: url("../../media/sprite.svg#loader-view");
  animation: gin-pseudo-throbber 1s linear infinite;
}

[dir="ltr"] body:has([data-drupal-selector=edit-save] + .ajax-progress) :where([data-drupal-selector=gin-sticky-edit-save]),
[dir="ltr"] body:has([data-drupal-selector=edit-preview] + .ajax-progress) :where([data-drupal-selector=gin-sticky-edit-preview]),
[dir="ltr"] body:has([data-drupal-selector=edit-delete] + .ajax-progress) :where([data-drupal-selector=gin-sticky-edit-delete]) {
  padding-inline-start: var(--gin-spacing-xl);
}

[dir="rtl"] body:has([data-drupal-selector=edit-save] + .ajax-progress) :where([data-drupal-selector=gin-sticky-edit-save]),
[dir="rtl"] body:has([data-drupal-selector=edit-preview] + .ajax-progress) :where([data-drupal-selector=gin-sticky-edit-preview]),
[dir="rtl"] body:has([data-drupal-selector=edit-delete] + .ajax-progress) :where([data-drupal-selector=gin-sticky-edit-delete]) {
  padding-inline-end: var(--gin-spacing-xl);
}

