/* Fixes bs5 */
.table>:not(:first-child) {
    border-top: none !important;
}

.toast button.close {
    right: 5px;
    position: absolute;
    display: block;
    background: transparent;
    border: none;
}

.toast.alert-success button.close {
    color: var(--success);
}

.toast.alert-danger button.close {
    color: var(--red-04);
}

.toast.alert-warning button.close {
    color: var(--warning);
}

.toast button.close:hover {
    color: var(--primary);
}

/* Component */
.toast.alert {
    display: flex;
    align-items: center;
    position: fixed;
    right: 7px;
    top: 77px;
    bottom: initial;
    border-radius: var(--radius-base);
    min-height: 60px;
    min-width: 560px;
    padding: 16px;
    z-index: 999999;
    transition: opacity .3s linear;
    font-size: 16px;
    box-shadow: var(--box-shadow);
}

.toast.alert a:not(.btn) {
    display: contents   ;
}

.toast.alert button.close {
    top: 16px;
    z-index: 2;
}

.toast.alert i.icon-close {
    font-size: 22px;
    margin-right: 0;
}

.toast.alert.alert-dismissible.fade.show:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0.05;
    height: 100%;
    width: 100%;
    background-color: black;
    z-index: 1;
    animation: toastTransition 5s 1;
}

@keyframes toastTransition {
    from {left: 0;}
    to {left: 560px;}
  }

@media(max-width: 576px) {
    .toast.alert {
        min-width: initial;
        width: 100%;
        margin: 0;
        right: 0;
        padding: 16px 40px 16px 16px;
        border-radius: 0;
        top: 60px;
    }
    .toast.alert button.close{
        width: 40px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.alert.fix [class*=icon-]:not(.icon-close):first-child {
    font-size: 32px;
    margin-right: 10px;
}

.alert.fix .icon-close {
    font-size: 32px;
}

.alert {
    padding: 16px;
}

.alert:not(:last-child) {
    margin-bottom: 16px;
}

.alert .alert-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--time-01);
}
.alert .alert-close:hover { background-color: rgba(0,0,0,.1); }

.alert .wdk-text,
.alert .alert-close {
    font-weight: 600;
    color: inherit;
}

/* .alert [class*=icon-] {
    font-size: 34px;
} */

/* .alert [class*=icon-]:not(:last-child) {
    margin-right: 16px;
} */

@media (max-width: 576px) {
    .alert.alert-primary {
        align-items: baseline;
    }
}

/*--------------------------------------------------------
Fixes
---------------------------------------------------------*/

.toast.alert-warning button.close {
	color: var(--primary);
}
.toast.alert-warning button.close:hover {
	color: var(--tertiary);
}