#stellar-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    /* Allow clicking through the container area */
}

.stellar-toast {
    min-width: 300px;
    max-width: 400px;
    padding: 16px 20px;
    background: #323232;
    color: #fff;
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    /* Re-enable pointer events for toasts */
    transform-origin: right bottom;
    animation: stellarToastSlideIn 0.3s ease-out forwards;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
}

.stellar-toast.success {
    background: #4caf50;
    color: white;
}

.stellar-toast.error {
    background: #f44336;
    color: white;
}

.stellar-toast.info {
    background: #2196f3;
    color: white;
}

.stellar-toast__icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stellar-toast__content {
    flex: 1;
}

.stellar-toast__content a {
    color: inherit;
    text-decoration: underline;
    font-size: inherit;
    font-family: inherit;
}

.stellar-toast__close {
    margin-left: auto;
    cursor: pointer;
    opacity: 0.7;
    font-size: 18px;
    background: none;
    border: none;
    color: inherit;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.stellar-toast__close:hover {
    opacity: 1;
}

@keyframes stellarToastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.stellar-toast.closing {
    animation: stellarToastSlideOut 0.3s ease-in forwards;
}

@keyframes stellarToastSlideOut {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 
   We will hide standard WooCommerce messages via JS after extracting content.
   See toasts.js processNotice()
*/

.stellar-toast-hidden-original {
    display: none !important;
}

.stellar-toast {
    position: relative;
    overflow: hidden;
}

.stellar-toast__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.7);
    /* Increased opacity */
    width: 100%;
    transform-origin: left;
    animation: stellarToastProgress linear forwards;
    z-index: 10;
    /* Ensure it's on top */
}

@keyframes stellarToastProgress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

.stellar-toast:hover .stellar-toast__progress {
    animation-play-state: paused;
}

@media (max-width: 600px) {
    #stellar-toast-container {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 95%;
        bottom: 20px;
        align-items: center;
    }

    .stellar-toast {
        width: 100%;
        max-width: none;
        min-width: 0;
    }
}