.toast-container {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 420px;
    width: 100%;
    padding: 1rem;
    pointer-events: none;
}

.toast-viewport {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    pointer-events: auto;
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    overflow: hidden;
    border-radius: 0.375rem;
    border: 1px solid hsl(0 0% 89.8%);
    background: hsl(0 0% 100%);
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    animation: slideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.removing {
    animation: slideOut 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(calc(100% + 1rem));
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(100% + 1rem));
    }
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.toast-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.toast-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(0 0% 3.9%);
    line-height: 1.25rem;
}

.toast-description {
    font-size: 0.875rem;
    color: hsl(0 0% 45.1%);
    line-height: 1.25rem;
}

.toast-close {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    padding: 0.25rem;
    color: hsl(0 0% 45.1%);
    opacity: 0.7;
    transition: opacity 0.15s;
    background: transparent;
    border: none;
    cursor: pointer;
    height: 1.5rem;
    width: 1.5rem;
}

.toast-close:hover {
    opacity: 1;
    background: hsl(0 0% 96.1%);
}

.toast-close svg {
    width: 1rem;
    height: 1rem;
}

.toast.destructive {
    border-color: hsl(0 84.2% 60.2%);
    background: hsl(0 84.2% 60.2%);
    color: hsl(0 0% 98%);
}

.toast.destructive .toast-title,
.toast.destructive .toast-description,
.toast.destructive .toast-close {
    color: hsl(0 0% 98%);
}

.toast.destructive .toast-close:hover {
    background: hsl(0 0% 100% / 0.1);
}

.toast.success .toast-icon {
    color: hsl(142.1 76.2% 36.3%);
}

.toast.success {
    border-color: hsl(142.1 76.2% 36.3% / 0.3);
}

.toast.warning .toast-icon {
    color: hsl(38 92% 50%);
}

.toast.warning {
    border-color: hsl(38 92% 50% / 0.3);
}

.toast.info .toast-icon {
    color: hsl(221.2 83.2% 53.3%);
}

.toast.info {
    border-color: hsl(221.2 83.2% 53.3% / 0.3);
}

@media (max-width: 640px) {
    .toast-container {
        left: 0;
        right: 0;
        max-width: 100%;
    }
}
.toast:not(.show) {
    display: block!important;
}