.toast_container{
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    width: 320px;
    z-index: 5;
    /*overflow: hidden;*/
    transition: var(--transition1);
}

.alert{
    position: relative;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 0px 20px;
    border-radius: 2px;
    margin-bottom: 16px;
    transition: var(--transition1);
    cursor: pointer;
    transition-timing-function: ease-in;
    animation-fill-mode: forwards;
    box-shadow: var(--dropshadow);
}

/*Succes toasts are autogone*/
.alert_autogone{
    animation-name: toast_c;
    animation-delay: 2s;
    animation-duration: 1.5s;
}

.alert.success, .alert.success .bg{
    background-color: #ebf1eb;
    border: 2px solid var(--green2);
}

.alert.success .bg use{
    fill: var(--green2);
}

.alert.error, .alert.error .bg{
    background-color: #f3dede;
    border: 2px solid var(--red2);
}

.alert.error .bg use{
    fill: var(--red2);
}

.alert.warning, .alert.warning .bg{
    background-color: #ffe7d5;
    border: 2px solid #f97e00;
}

.alert.warning .bg use{
    fill: #f97e00;
}

.alert.info, .alert.info .bg{
    background-color: #dee3ef;
    border: solid 2px var(--blue2);
}

.alert.info .bg use{
    fill: var(--blue2);
}

@keyframes toast_a{
   100%  {transform: translateX(120%);}
}

@keyframes toast_b{
    0%   {opacity: 0;}
    100% {height: 0; opacity: 0; border: unset; margin: 0; padding: 0;}
}

@keyframes toast_c{
   100% {opacity: 0;}
}

@keyframes toast_d{
    100% {border: unset; height: 0; margin: 0; padding: 0;}
}
 
.alert span, .alert pre{
    color: var(--black1);
    font-weight: 500;
    word-break: break-word;
    white-space: pre-line;
}

/*
.alert span{
    word-break: normal;
}
*/

.close_alert_box{
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    cursor: pointer;
}

.close_alert_box svg{
    width: 100%;
    height: 100%;
    display: flex;
}

.alert .bg{
    position: absolute;
    height: 24px;
    /* width: auto; */
    aspect-ratio: 1;
    top: 0;
    left: 0;
    transform: translateX(-50%) translateY(-50%);
    padding: 4px;
    border-radius: 100px;
    background-color: var(--white1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.alert .bg svg{
    width: 100%;
    height: 100%;
}