/* The viewer's own page: only the notice. The phone around the app is the
   component library's <govuk-prototype-frame>, which fills the window.

   In a cascade layer, so none of this reaches inside <govuk-app>. */

@layer viewer {
  /* Says what the prototype can't do, such as open a link out of it, or why
     it can't be shown. Over the bottom of the window, above the frame. */
  .viewer-notice {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    padding: 12px 16px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.2);
    color: #0b0c0c;
    font: 16px / 24px system-ui, -apple-system, sans-serif;
    overflow-wrap: anywhere;
  }

  .viewer-notice[hidden] {
    display: none;
  }

  .viewer-notice__error {
    display: block;
    margin-top: 8px;
    font-size: 14px;
  }

  @media (prefers-color-scheme: dark) {
    .viewer-notice {
      background: #2b2d2f;
      color: #ffffff;
    }
  }
}
