@import url("/assets/web/components/buttons-7a3d32e1.css");

/* Flash notice
 * -------------------------------------------------------------------------- */

.flash-notice {
  position: fixed;
  top: 6.5rem;
  left: 0;
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  z-index: 9;

  [data-turbo-preview] & { display: none; }

  &.flash-notice--undoable {
    a {
      background-color: transparent;
      border: none;
      cursor: pointer;
    }

    button {
      background-color: transparent;
      border: none;
      cursor: pointer;
    }

    .flash-notice__btn {
      margin-right: -0.4em;
      position: relative;
      padding-right: 1.4em;
      padding-left: 2em;

      &::before { left: 0.6em; }

      kbd {
        opacity: 0.5;
        font-size: 0.75em;
        padding: 0;
        position: absolute;
        top: 0.4em;
        right: 0.7em;
      }
    }
  }
}

.flash-notice__content {
  animation: appear-then-fade 4s 300ms both;
  background: var(--color-bg--flash-notice);
  color: var(--color-txt--reversed);
  border-radius: 4rem;
  padding: 0.5rem 1.6rem;
  -webkit-backdrop-filter: blur(8px) contrast(0.8);
  backdrop-filter: blur(8px) contrast(0.8);
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 4rem;

  [data-color-scheme="dark"] & {
    box-shadow: 0 3px 6px var(--color-shadow--dark);
  }

  .flash-notice--undoable & {
    animation-name: appear-then-fade-extended;
    animation-duration: 12s;
  }
}
