/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.flash-message {
  position: fixed;
  z-index: 1100;
  top: 1rem;
  right: 1rem;
  max-width: min(24rem, calc(100% - 2rem));
  padding: 0.9rem 1.1rem;
  border-radius: 0.8rem;
  box-shadow: 0 0.9rem 2rem rgb(34 14 40 / 18%);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  transition: opacity 220ms ease, transform 220ms ease;
}

.flash-message--leaving {
  opacity: 0;
  transform: translateY(-0.75rem);
}

.flash-message--notice {
  background: #4d8f5d;
}

.flash-message--alert {
  background: #b64158;
}
