/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a edit file per style scope.
 *


 */

 .flash {
    position: fixed;
    top: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
    max-height: 5rem;
    overflow-x: scroll;
    width: max-content;
    padding: 0 1rem;
    z-index: 1000;
}
.flash__message {
    padding: 0.25rem 1rem;
    background-color: #dcfce7;
    animation: appear-then-fade 4s both;
    border-radius: 999px;
}

@keyframes appear-then-fade {
    0%, 100% {
        opacity: 0;
   }
    5%, 60% {
        opacity: 1;
   }
}

.line-item-added {
  animation: flicker 1s both;
}

.flickering {
    animation: flicker 1.5s both;
}

@keyframes flicker {
    0%, 100% {
        background-color: #fff;
    }
    30%, 70% {
        background-color: #dcfce7;
    }
}
