/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */

.extension-controlled-message-bar,
.reenable-extensions-message-bar {
  margin-block-end: var(--space-large);
}

/* Re-show an otherwise-hidden control when it carries a message bar.
   `!important` to beat the global `[hidden] { display: none !important }` rule. */
setting-control[hidden]:has(> moz-message-bar):not([slot="nested"], :last-child) {
  display: block !important;
  margin-block-start: calc(-1 * var(--space-large));
}
