#snackbar {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--layer-toast);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
    width: min(600px, 95%);
}

.snackbar {
    background-color: var(--on-background);
    color: var(--layer-background);
    border-radius: var(--radius-small);
    padding: 16px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    pointer-events: auto;
    
    /* Animation properties */
    opacity: 0;
    transform: translateY(20px);
    animation: snackbar-enter 0.3s ease-out forwards;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    
    svg {
        color: var(--layer-background);
    }
    
    button {
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.snackbar.hiding {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

/* Keyframe animations */
@keyframes snackbar-enter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes snackbar-exit {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}
@media (min-width: 48em) {
    #snackbar {
        bottom: 16px;
    }
}

.snackbar__content {
    display: inline-block;
}
.banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    min-height: 3rem;
    border-radius: var(--radius-small);
    background: rgb(var(--layer-background));
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.banner--success {
    background: rgb(var(--success-container));
    color: rgb(var(--on-success-container));
}

.banner--error {
    background: rgb(var(--error-container));
    color: rgb(var(--on-error-container));
}

.banner__content {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.banner__action {
    margin-left: 1rem;
}
