/* Modal alert prompt
 * -------------------------------------------------------------------------- */

.alert--active {
  overflow: hidden;
  z-index: 11;

  .alert-backdrop {
    -webkit-filter: blur(10px);
    -moz-filter: blur(10px);
    -ms-filter: blur(10px);
    filter: blur(10px);
  }

  .alert-dialog {
    animation: slide-in-from-bottom 0.5s 0.5s both;
    display: flex;
    justify-content: center;
  }
}

.alert-dialog {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.alert-dialog--top {
  top: -5.5rem;
  bottom: auto;
}

.alert-dialog__content {
  background: var(--color-bg--sheet);
  box-shadow: 0 0 3rem var(--color-shadow);
  padding: 3rem;
  border-radius: 2rem;
  width: 50rem;
  overflow: hidden;
  margin: auto 1rem;
}

.alert-dialog__sticky-note {
  transform: rotate(-1deg);
  background: var(--color-bg--warning);
  padding: 3rem;
  border-radius: 0.2rem;
  width: 50rem;
  overflow: hidden;
  margin: auto 1rem;
  box-shadow: 5px 5px 7px var(--color-shadow);

  [data-color-scheme="dark"] & {
    background: var(--color-bg--note);
    color: var(--color-txt--reversed);
  }
}

.alert-dialog__content--upgraded {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-tertiary) 100%);
}
