.sw-toast-container {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
    max-width: calc(100% - 2rem);
}

.sw-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    width: 330px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    animation: sw-toast-fade-in 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    max-width: 100%;
}

    .sw-toast.sw-toast-long {
        width: 380px;
    }

    /* Custom Theme Gradients based on screenshot */
    .sw-toast.sw-toast-success {
        background: linear-gradient(135deg, #1b5e20 0%, #43a047 100%);
        color: #ffffff;
    }

    .sw-toast.sw-toast-error {
        background: linear-gradient(135deg, #cb2d3e 0%, #ef473a 100%);
        color: #ffffff;
    }

    .sw-toast.sw-toast-warning {
        background: linear-gradient(135deg, #f12711 0%, #f5af19 100%);
        color: #ffffff;
    }

    .sw-toast.sw-toast-info {
        background: linear-gradient(135deg, #27477b 0%, #0ac3cc 100%);
        color: #ffffff;
    }

.sw-toast-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 14px;
    flex-shrink: 0;
}

    .sw-toast-icon-wrap svg {
        width: 36px;
        height: 36px;
        fill: currentColor;
    }

.sw-toast-content {
    flex-grow: 1;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sw-toast-title {
    font-weight: 600;
    font-size: 0.98rem;
    margin-bottom: 4px;
    line-height: 1.4;
    flex-shrink: 0;
}

.sw-toast-message {
    font-size: 0.86rem;
    opacity: 0.9;
    line-height: 1.4;
    max-height: 80px;
    overflow-y: auto;
    padding-right: 4px;
}

    .sw-toast-message::-webkit-scrollbar {
        width: 4px;
    }

    .sw-toast-message::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.35);
        border-radius: 4px;
    }

.sw-toast-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.sw-toast-btn {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: all 0.2s ease;
    border-radius: 4px;
}

    .sw-toast-btn:hover {
        opacity: 1;
        background-color: rgba(255, 255, 255, 0.15);
    }

    .sw-toast-btn svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
    }

/* Timeline style */
.sw-toast-timeline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
}

.sw-toast-timeline-progress {
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    transform-origin: left;
}

/* Outward animations */
.sw-toast.sw-toast-dismissed {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
}

@keyframes sw-toast-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
