components/toast/Toast.module.scss
.wrapper {
    max-width: 300px;
    width: 100%;
    background-color: transparent;
    overflow: hidden;
    height: fit-content;
    position: fixed;
    z-index: 99999;
}

.top {
    top: 15%;
}

.center {
    left: 50%;
    transform: translateX(-50%);
}

.bottom {
    bottom: 5%;
}

.left {
    left: 0%;
}

.right {
    right: 0%;
}

@keyframes fadeDown {
    0% {
        left: -80px;
        opacity: 0;
    }
    100% {
        top: 0;
        opacity: 1;
    }
}

@keyframes toast {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.toast-box {
    border: var(solid-border);
    display: flex;
    align-items: center;
    background-color: var(--white);
    color: var(--black-low);
    text-align: start;
    padding: 16px;
    padding-left: 8px;
    animation: fadeDown 0.2s ease-in-out;
    margin-bottom: 12px;
    z-index: 10;
    font-size: 1.4rem;
    font-family: var(--font-family);
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: relative;

    .content {
        margin: 0px 8px;
        padding-right: 12px;
        color: var(--black-low);
    }
}

.toast-box:last-child {
    margin-bottom: 0;
}

.icon {
    margin-right: 8px;
    font-size: 2.4rem;
    min-width: 25px;
}

.info {
    color: rgb(79, 198, 249);
}

.error {
    color: rgb(247, 32, 32);
}
.warning {
    color: rgb(244, 216, 8);
}

.success {
    color: rgb(60, 249, 60);
}

// close btn

.close-btn {
    position: absolute;
    top: 50%;
    right: 4px;
    top: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    .close-icon {
        font-size: 1.8rem;
        margin: 4px;
    }
    &:hover {
        .close-icon {
            opacity: 0.5;
        }
    }
}
