.toast-stack {
    position: fixed;
    right: 14px;
    bottom: 10px;
    z-index: 999999;
    display: grid;
    gap: 10px;
    width: min(380px, calc(100vw - 28px));
    pointer-events: none;
}

.toast {
    position: relative;
    overflow: hidden;
    min-height: auto;
    padding: 17px;
    border-radius: 10px;
    background: #fff;
    border: 3px solid #525763;
    color: #000000;
    backdrop-filter: blur(16px);
    pointer-events: auto;
    animation: toastIn 0.25s ease both;
}

.toast-close {
    position: absolute;
    top: 7px;
    right: 7px;
    height: 25px;
    border: none;
    background: transparent;
    color: #808080;
    font-size: 22px;
    cursor: pointer;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.18);
}

.toast strong {
    display: block;
    margin: 0 0 5px;
    color: #000000;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    font-family: "Days One", sans-serif;
    text-transform: uppercase;
}

.toast span {
    display: block;
    color: rgb(0 0 0);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.38;
}

.toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 5px;
    width: 100%;
    background: linear-gradient(90deg, #ff3495, #ffffff, #a7fc00);
    transform-origin: left center;
    animation: toastProgress var(--toast-duration, 4000ms) linear forwards;
}

.toast-success .toast-progress {
    background: #00A776;
}

.toast-error .toast-progress {
    background: #f75858;
}

.toast-warning .toast-progress {
    background: #ffa700;
}

.toast.is-hiding {
    animation: toastOut 0.22s ease both;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translate(18px, 12px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translate(18px, 10px) scale(0.96);
    }
}

@keyframes toastProgress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

@media (max-width: 560px) {
    .toast-stack {
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
    }

    .toast {
        border-radius: 10px;
        padding: 13px 44px 15px 14px;
    }
}