#toaster {
    z-index: 1000;
    position: fixed;
    opacity: 0;
    top: -20vh;
    /* left: 50%; */
    /* translate: -50% 0; */
    margin-inline: auto;
    font-size: 1.4rem;
    border-radius: 0.5rem;
    padding: 0.7rem 2rem 0.7rem 1rem;
    background-color: white;
    color: black;
    font-weight: bold;
    display: none;
    gap: 0.5rem;
    transition: opacity 0.3s, top 0.6s;
    /*     align-items: center; */
    --color-success: #61d345;
    --color-error: #ff4b4b;
    --color-progress: #ffb700;
}

#toaster .icon {
    height: 2rem;
    width: 2rem;
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: default;
    opacity: 1;
    height: auto;
    border: solid 1px rgba(var(--color-success));
    margin-right: 0.5rem;
    animation: icon-container 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 100ms;
}

#toaster .icon svg {
    stroke: white;
}

#toaster .icon svg path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: svg-animate 0.5s linear forwards;
    animation-delay: 0.7s;
}

#toaster .icon.success {
    background-color: var(--color-success);
}

#toaster .icon.error {
    background-color: var(--color-error);
}

#toaster:not(:has(~ .login-container)) {
    translate: calc(100vw/2 - 50%) 0;
}

/* Styles if :has() isn't supported (in addition to the fallback) */
@supports not (selector(:has(*))) {
    #toaster {
        translate: calc(100vw/2 - 50%) 0;
    }
}

#toaster.success {
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05), 1px -1px 10px var(--color-success);
}


#toaster.error {
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05), 1px -1px 10px var(--color-error);
}

@supports (color: color-mix(in srgb, #000 10%, #fff 10%)) {
    #toaster.success {
        box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05), 1px -1px 10px color-mix(in srgb, var(--color-success) 100%, transparent 70%);
    }


    #toaster.error {
        box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05), 1px -1px 10px color-mix(in srgb, var(--color-error) 100%, transparent 70%);
    }
}

#toaster.success .error {
    display: none;
}

#toaster.error .success {
    display: none;
}

#toaster.show {
    opacity: 1;
    top: 5rem;
    display: flex;
}

@keyframes icon-container {
    from {
        transform: scale(0) rotate(45deg);
        opacity: 0;
    }

    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes svg-animate {
    to {
        stroke-dashoffset: 0;
    }
}


.full-toaster {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    height: 100vh;
    width: 100vw;
    background-color: #00000092;
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

@media (max-width:500px) {
    .full-toaster {
        align-items: end;
    }
}

.full-toaster .toaster-container {
    background-color: white;
    display: flex;
    flex-direction: column;
    border-radius: 0.8rem;
}

@media (max-width: 500px) {
    .full-toaster .toaster-container {
        /* flex-direction: column; */
        width: 100%;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }
}

.full-toaster .toaster-container .content {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
}

@media (max-width: 500px) {
    .full-toaster .toaster-container .content {
        flex-direction: column;
        padding: 1.6rem;
    }
}

.full-toaster .toaster-container .content .checkmark {
    background-color: var(--color-accent);
    border-radius: 1000px;
    padding: 1.6rem;
    border: solid 1rem var(--color-mix-accent-30-white-30);
}

@supports (color: color-mix(in srgb, #000 10%, #fff 10%)) {
    .full-toaster .toaster-container .content .checkmark {
        border: solid 1rem color-mix(in srgb, var(--color-accent) 70%, white 100%);
    }
}


.full-toaster .toaster-container .content .checkmark svg {
    stroke: white;
}

.full-toaster .toaster-content {
    display: flex;
    flex-direction: column;
    max-width: 35rem;
}

.full-toaster .toaster-content h3 {
    font-size: 2.4rem;
    font-weight: 600;
    color: #0D1917;
}

.full-toaster .toaster-content p {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #5F5F5F;
}

.full-toaster .toaster-content button {
    align-self: flex-end;
}

@media (max-width: 500px) {
    .full-toaster .toaster-content {
        align-items: center;
        max-width: unset;
    }

    .full-toaster .toaster-content h3 {
        font-size: 2rem;
    }

    .full-toaster .toaster-content p {
        font-size: 1.3rem;
    }

    .full-toaster .toaster-content button {
        align-self: stretch;
    }
}

.full-toaster .toaster-footer {
    padding: 1.6rem;
    background-color: color-mix(in srgb, var(--color-accent) 10%, transparent 100%);
}

.full-toaster .toaster-footer button {
    justify-self: flex-end;
    margin-left: auto; /* For safari */
}

@media (max-width: 500px) {
    .full-toaster .toaster-footer button {
        justify-self: stretch;
        width: 100%; /* For safari */
    }
}

.full-toaster.show {
    display: flex;
}