/*
 * Site-wide CSS, loaded on every page for every user/theme via
 * custom/templates/custom/header.tmpl (served at /assets/css/global.css).
 *
 * Use this for tweaks that should apply regardless of which theme a user
 * has selected (e.g. hiding an element, adjusting layout). For a full
 * alternate color scheme, prefer the selectable theme-custom-*.css themes
 * instead.
 */


/*
 * Finish Review merge-box button (added by global.js). Next to the merge
 * button, let Forgejo's `.tw-flex` row wrap and space the two with a gap
 * (both horizontal and vertical), so on narrow screens the button drops
 * onto its own line instead of butting against the merge button. When
 * there's no merge button and it's appended straight into the merge box,
 * give it top margin so it doesn't stick to the status lines above.
 */
#pull-request-merge-form .tw-flex:has(> .js-finish-review-merge-btn) {
  flex-wrap: wrap;
  gap: 0.5rem;
}

#pull-request-merge-form .js-finish-review-merge-btn {
  margin: 0;
}

#pull-request-merge-form > .js-finish-review-merge-btn {
  margin-top: 0.75rem;
}
