#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 360px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10000;
}


/* Toast base */

.toast {
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px 16px 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(.4, 0, .2, 1), opacity 0.3s ease;
    will-change: transform;
    position: relative;
}


/* Visible */

.toast.show {
    transform: translateX(0);
    opacity: 1;
}


/* Leaving */

.toast.hide {
    transform: translateX(120%);
    opacity: 0;
}


/* Typography */

.toast h4 {
    margin: 0 0 4px;
    font-size: 15px;
}

.toast p {
    margin: 0;
    font-size: 14px;
    opacity: 0.85;
}


/* Close */

.toast button {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.6;
}

.toast button:hover {
    opacity: 1;
}


/* Variants */

.toast.success {
    border-left: 4px solid #22c55e;
}

.toast.warning {
    border-left: 4px solid #f59e0b;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

@media (max-width: 640px) {
    #toast-container {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100% - 32px);
        top: auto;
        bottom: 20px;
    }
}