﻿.cs-toast {
    display: none;
    padding: 1.5rem;
    color: #fff;
    z-index: 999;
    position: absolute;
    max-width: 95%; /* Limit the width but allow smaller widths */
    width: 25rem;
    top: 2rem;
    border-radius: 1rem;
    right: 2rem;
}

.cs-toast-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 1rem;
    font-size: 2.5rem;
}

.cs-toast-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-left: 1rem;
}

    .cs-toast-body p {
        margin-bottom: 0;
    }

.cs-toast-visible {
    display: flex;
    flex-direction: row;
    animation: fadein 1.5s;
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
    .cs-toast {
        width: calc(100% - 4rem); /* Adjust width based on screen size */
        right: 2rem; /* Ensure consistent padding from right */
        left: 2rem; /* Add left padding to prevent cutting off */
    }
}
