.cheezy-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #17182878;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99;
    backdrop-filter: blur(5px);
    transform: translate3d(0, 0, 0);
}

.cheezy-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.cheezy-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;

    &.modal-small {
        width: 350px;
        max-width: 500px;
    }

    &.modal-medium {
        width: 500px;
        max-width: 650px;
    }

    &.modal-large {
        width: 700px;
        max-width: 850px;
    }
}

.cheezy-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.cheezy-modal.closing {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    visibility: visible;
}

@media (max-width: 800px) {
    .cheezy-modal.modal-large {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 600px) {
    .cheezy-modal.modal-large {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 450px) {
    .cheezy-modal.modal-large {
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 570px) {
    .cheezy-modal.modal-medium {
        width: 100%;
        max-width: 450px;
    }
}

@media (max-width: 470px) {
    .cheezy-modal.modal-medium {
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 420px) {
    .cheezy-modal.modal-small {
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 300px) {
    .cheezy-modal.modal-small {
        width: 100%;
        max-width: 230px;
    }

    .cheezy-modal.modal-large {
        width: 100%;
        max-width: 230px;
    }
}