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

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

.gin-sticky-form-actions > input + input {
  -webkit-margin-start: var(--gin-spacing-xxs) !important;
          margin-inline-start: var(--gin-spacing-xxs) !important;
}

.gin-sticky-form-actions [data-drupal-selector=edit-gin-actions]:empty,
.gin-sticky-form-actions .gin-more-actions:has(> .gin-more-actions__menu:empty) {
  display: none;
}

.gin-sticky-form-actions .gin-more-actions {
  position: relative;
}

.gin-sticky-form-actions .gin-more-actions__menu.form-actions {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: var(--gin-spacing-xs);
  background-color: var(--gin-bg-layer3);
  border-radius: var(--gin-border-l);
  box-sizing: border-box;
  box-shadow: var(--gin-shadow-l2);
  transition: opacity var(--gin-transition-fast);
}

[dir="ltr"] .gin-sticky-form-actions .gin-more-actions__menu.form-actions {
  right: 0;
}

[dir="rtl"] .gin-sticky-form-actions .gin-more-actions__menu.form-actions {
  left: 0;
}

.gin-sticky-form-actions .gin-more-actions__menu.form-actions .action-link.action-link,
.gin-sticky-form-actions .gin-more-actions__menu.form-actions a:not(.button--danger):not(.action-link--danger),
.gin-sticky-form-actions .gin-more-actions__menu.form-actions .button.button {
  font-size: var(--gin-font-size-s);
  font-weight: var(--gin-font-weight-semibold);
  line-height: 1;
  text-decoration: none;
  width: 100%;
  max-width: 320px;
  padding: var(--gin-spacing-s) var(--gin-spacing-m);
  margin: 0 !important;
  border: 0 !important;
  border-radius: var(--gin-border-s);
  box-shadow: none;
  box-sizing: border-box;
}

[dir="ltr"] .gin-sticky-form-actions .gin-more-actions__menu.form-actions .action-link.action-link,
[dir="ltr"] .gin-sticky-form-actions .gin-more-actions__menu.form-actions a:not(.button--danger):not(.action-link--danger),
[dir="ltr"] .gin-sticky-form-actions .gin-more-actions__menu.form-actions .button.button {
  text-align: left;
}

[dir="rtl"] .gin-sticky-form-actions .gin-more-actions__menu.form-actions .action-link.action-link,
[dir="rtl"] .gin-sticky-form-actions .gin-more-actions__menu.form-actions a:not(.button--danger):not(.action-link--danger),
[dir="rtl"] .gin-sticky-form-actions .gin-more-actions__menu.form-actions .button.button {
  text-align: right;
}

.gin-sticky-form-actions .gin-more-actions__menu.form-actions a:not(.button--danger):not(.action-link--danger):hover, .gin-sticky-form-actions .gin-more-actions__menu.form-actions a:not(.button--danger):not(.action-link--danger):active,
.gin-sticky-form-actions .gin-more-actions__menu.form-actions .action-link:not(.action-link--danger):hover,
.gin-sticky-form-actions .gin-more-actions__menu.form-actions .action-link:not(.action-link--danger):active {
  color: var(--gin-color-button-text);
  background-color: var(--gin-color-primary);
}

.gin-sticky-form-actions .gin-more-actions__menu.form-actions a:not(.button--danger):not(.action-link--danger):hover::before, .gin-sticky-form-actions .gin-more-actions__menu.form-actions a:not(.button--danger):not(.action-link--danger):active::before,
.gin-sticky-form-actions .gin-more-actions__menu.form-actions .action-link:not(.action-link--danger):hover::before,
.gin-sticky-form-actions .gin-more-actions__menu.form-actions .action-link:not(.action-link--danger):active::before {
  background-color: var(--gin-bg-layer) !important;
}

.gin-sticky-form-actions .gin-more-actions__menu.form-actions > * + .ajax-progress--throbber {
  display: none;
}

.gin-sticky-form-actions .gin-more-actions__trigger {
  cursor: pointer;
  background: transparent;
  display: block;
  height: 32px;
  width: 32px;
  border-radius: var(--gin-border-m);
  transition: background var(--gin-transition-fast);
}

.gin-sticky-form-actions .gin-more-actions__trigger::before {
  display: inline-block;
  width: 100%;
  height: 100%;
  content: "";
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center center;
          mask-position: center center;
  background-color: var(--gin-icon-color);
  -webkit-mask-image: url("../../media/sprite.svg#more-view");
          mask-image: url("../../media/sprite.svg#more-view");
  -webkit-mask-size: var(--gin-icon-size-toolbar-secondary) var(--gin-icon-size-toolbar-secondary);
          mask-size: var(--gin-icon-size-toolbar-secondary) var(--gin-icon-size-toolbar-secondary);
  border-radius: 50%;
}

.gin-sticky-form-actions .gin-more-actions__trigger:hover, .gin-sticky-form-actions .gin-more-actions__trigger:focus {
  background-color: var(--gin-color-primary-light);
}

.gin-sticky-form-actions .gin-more-actions__trigger:hover::before, .gin-sticky-form-actions .gin-more-actions__trigger:focus::before {
  background-color: var(--gin-color-primary);
}

.gin-sticky-form-actions .gin-more-actions__trigger.is-active {
  background-color: var(--gin-color-primary-light-hover);
}

.gin-sticky-form-actions .gin-more-actions__trigger.is-active::before {
  background-color: var(--gin-color-primary-active);
}

.gin-sticky-form-actions .gin-more-actions__trigger[aria-expanded=true] ~ .gin-more-actions__menu {
  visibility: visible;
  opacity: 1;
}

.gin-sticky-form-actions .gin-more-actions__trigger[aria-expanded=true] ~ .gin-tooltip {
  visibility: hidden;
  opacity: 0;
  transition: none !important;
}

.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;
}

.ui-dialog-content .gin-more-actions__trigger {
  display: none;
}

