#toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2147483647;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 28rem;
    width: calc(100% - 2rem);
    pointer-events: none;
}

#toast-container .site-toast {
    pointer-events: auto;
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 1fr;
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0;
    padding: 1rem;
    border: 1px solid;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

#toast-container .site-toast__icon {
    grid-column: 1;
    grid-row: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
}

#toast-container .site-toast__icon svg {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
}

#toast-container .site-toast__body {
    grid-column: 2;
    grid-row: 1;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

#toast-container .site-toast__message {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
}

#toast-container .site-toast__close {
    grid-column: 3;
    grid-row: 1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 1.25rem;
    height: 1.25rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.site-toast__close:hover {
    color: #4b5563;
}

.site-toast__close svg {
    width: 1.25rem;
    height: 1.25rem;
}

.site-toast--success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.site-toast--success .site-toast__icon {
    color: #16a34a;
}

.site-toast--error {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.site-toast--error .site-toast__icon {
    color: #dc2626;
}

.site-toast--warning {
    background-color: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.site-toast--warning .site-toast__icon {
    color: #d97706;
}

.site-toast--info {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.site-toast--info .site-toast__icon {
    color: #2563eb;
}

.site-toast.animate-slide-in-right {
    animation: site-toast-slide-in-right 0.3s ease-out;
}

.site-toast.animate-slide-out-right {
    animation: site-toast-slide-out-right 0.3s ease-out;
}

@keyframes site-toast-slide-in-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes site-toast-slide-out-right {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@media (max-width: 575.98px) {
    #toast-container {
        left: 1rem;
        right: 1rem;
        width: auto;
        max-width: none;
    }
}
