ema-flash-message {
  position: fixed;
  z-index: 31000;
  top: 0;
  left: 50%;
  transition: opacity 0.7s;
  display: none;
  align-items: center;
  justify-content: center;

  .flash-container {
    background-color: #000;
    border-radius: var(--ema-border-radius, $border-radius);
    display: block;
    min-height: 56px;
    min-width: 360px;
    max-width: 480px;
    color: var(--ema-light, $ema-light);
    margin: 0 auto 0 -50%;
    padding: $padding/2;
    text-align: center;
  }

  .show {
    display: block;
    opacity: 1;
  }

  .hide {
    display: none;
    opacity: 0;
  }

  .dismiss {
    cursor: pointer;
    position: absolute;
    min-width: 360px;
    bottom: $padding/3;
    margin: 0 auto;
    font-size: 0.7em;
    opacity: 0.5;
    text-align: center;
  }

  .primary {
    background-color: var(--ema-primary, $ema-primary);
  }

  .secondary, .success {
    background-color: var(--ema-success, $ema-success);
  }

  .danger {
    background-color: var(--ema-danger, $ema-danger);
  }

  .light {
    background-color: var(--ema-background-primary, $background-primary);
  }

  .dark {
    background-color: var(--ema-background-diap, $background-diap);
  }

}

