#cheezy-toast-container {
    position: fixed;
    z-index: 9999;
    width: 100%;
    max-width: fit-content;
    box-sizing: border-box;

    &.topLeft {
        top: 10px;
        left: 10px;
    }

    &.topCenter {
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
    }

    &.topRight {
        top: 6rem;
        right: 1rem;
    }

    &.bottomLeft {
        bottom: 10px;
        left: 10px;
    }

    &.bottomCenter {
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
    }

    &.bottomRight {
        bottom: 10px;
        right: 10px;
    }
}

@media (max-width: 600px) {
    #cheezy-toast-container.topLeft {
        top: 10px;
        left: 0px;
    }

    /*
    #cheezy-toast-container.topCenter {
        top: 10px;
        left: 0px;
        right: 0px;
        transform: translateX(0);
        margin: 0 auto;
    }
    */

    #cheezy-toast-container.topCenter {
        top: auto;
        bottom: 10px;
        left: 0px;
        right: 0px;
        transform: translateX(0);
        margin: 0 auto;
    }

    #cheezy-toast-container.topRight {
        bottom: .5rem;
        right: 1rem;
        top: auto;
        left: 1rem;
        margin: 0 auto;
    }

    #cheezy-toast-container.bottomLeft {
        bottom: 10px;
        left: 0px;
    }

    #cheezy-toast-container.bottomCenter {
        bottom: 10px;
        left: 0px;
        right: 0px;
        transform: translateX(0);
    }

    #cheezy-toast-container.bottomRight {
        bottom: 10px;
        right: 0px;
    }
}

.cheezy-toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 25rem;
    width: fit-content;
    padding: 1rem 2rem 1rem 1rem;
    margin-left: auto;
    margin-bottom: .5rem;
    border-radius: .5rem;
    box-shadow: 0 5px 35px rgb(49 41 56 / 27%);
    opacity: 0;
    filter: blur(10px);
    transition: all 0.4s ease-in-out;
    position: relative;
    overflow: hidden;
    background: #fff;
    
    &.show {
        opacity: 1;
        filter: blur(0);
    }

    &.hide {
        opacity: 0;
        filter: blur(10px);
    }

    &.success {
        --color: #4caf50;
        --color-bg: #4caf5060;
    }

    &.error {
        --color: #ff5252;
        --color-bg: #ff525260;
    }

    &.info {
        --color: #2196f3;
        --color-bg: #2196f360;
    }

    &.warning {
        --color: #e9be00;
        --color-bg: #e9be0060;
    }
}

.cheezy-toast-icon {
    margin-right: 10px;
    color: var(--color);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
}

.cheezy-toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.cheezy-toast-close {
    background: none;
    border: none;
    color: var(--color);
    font-size: 16px;
    cursor: pointer;
    margin-left: 10px;
    opacity: 0.7;
    position: absolute;
    right: 10px;
    top: 0px;
    font-size: 18px;
    transition: .3s;

    &:hover {
        opacity: 1;
    }
}

.cheezy-progress-bar-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 88%;
    margin: 0 auto;
    border-radius: 15px;
}

.cheezy-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 15px;
    background-color: var(--color-bg);
    animation: progress linear;
}

.cheezy-toast-content-header {
    color: var(--color);
    font-weight: 500;
    font-size: 0.8rem;
    line-height: 0.8rem;
}

.cheezy-toast-content-message {
    color: #22203b;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 0.95rem;
    margin-top: .3rem;
    overflow-wrap: break-word;
    word-break: normal;
    text-wrap: balance;
}

@keyframes progress {
    from {
        width: 100%;
    }

    to {
        width: 0;
    }
}

@media (max-width: 600px) {
    .cheezy-toast {
        padding: .8rem 1.8rem .8rem .8rem;
        max-width: 100%;
        margin: 0 auto !important;
        margin-bottom: .5rem!important;
    }

    .cheezy-toast-close {
        font-size: 14px;
    }

    .cheezy-toast-content-header {
        font-size: 0.7rem;
        line-height: 0.7rem;
    }

    .cheezy-toast-content-message {
        font-size: 0.85rem;
        line-height: 0.9rem;
    }
}