@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

#snackbar-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1000;
}

.snackbar {
    padding: 1rem 1.5rem;
    min-width: 250px;
    border-radius: 6px;
    box-shadow: 4px 2px 16px rgba(0, 0, 0, 0.15);
    font-family: "Roboto", sans-serif;
    color: #FFF;
    animation: snackbar-in-height 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards, snackbar-in 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
    transform: translateY(0);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    opacity: 0;
}

.snackbar-action > a {
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.snackbar.sb-primary { background-color: #333; }
.snackbar.sb-error { background-color: #D32F2F; }

.snackbar.sb-error > .snackbar-action > a { color: #FFF; }
.snackbar.sb-primary > .snackbar-action > a { color: #FFF; }

/*.snackbar + .snackbar { margin-top: 1rem; }*/

@keyframes snackbar-in-height {
  from {
    margin-top: 0;
    line-height: 0;
    padding: 0 1.5rem;
  }
  to {
    margin-top: 1rem;
    line-height: 1;
    padding: 1rem 1.5rem;
  }
}

@keyframes snackbar-in {
    from {
        opacity: 0;
        transform: translateY(25%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.snackbar.sb-out {
    margin-top: 1rem;
    line-height: 1;
    animation: snackbar-out-opacity 180ms cubic-bezier(0.4, 0, 0.2, 1) forwards, snackbar-out-translate 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards, snackbar-out-height 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
}

@keyframes snackbar-out-height {
  from {
    margin-top: 1rem;
    line-height: 1;
    padding: 1rem 1.5rem;
  }
  to {
    margin-top: 0;
    line-height: 0;
    padding: 0 1.5rem;
  }
}

@keyframes snackbar-out-opacity {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes snackbar-out-translate {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(25%);
  }
}

@media (max-width: 992px) {
    #snackbar-container {
        left: 1rem;
        right: 1rem;
    }

    .snackbar-text {
        font-size: 0.95em;
    }
}