.mo-js-warning {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 12px 16px;
  border-radius: 0;
  border: 1px solid #f4daa6;
  border-left: 4px solid #e09600;
  background: #fdf8ed;
  color: #734c00;
}

.mo-js-warning__close {
  margin-left: 16px;
  font-size: 22px;
  line-height: 1;
  color: inherit;
  text-decoration: none;
}

/* Drupal's admin navigation sidebar is fixed, so offset the banner like core
 * does for the main canvas. Falls back to 0 on pages without the sidebar. */
@media (min-width: 64rem) {
  .mo-js-warning {
    margin-inline-start: var(--admin-toolbar-sidebar-width, 0);
  }

  /* The Navigation top bar is fixed at the top, so move the banner below it.
   * Same visibility condition core uses for the top bar. The negative bottom
   * margin collapses with the main canvas' top-bar offset to avoid a gap. */
  body:has(.top-bar :is(.top-bar__tools, .top-bar__context, .top-bar__actions):not(:empty)) .mo-js-warning {
    margin-block: var(--admin-toolbar-top-bar-height) calc(-1 * var(--admin-toolbar-top-bar-height));
  }
}

/* Set by mo_js_warning.js from <head>, so JS users never see the banner. */
.mo-js .mo-js-warning {
  display: none;
}
