.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1300;
    animation: modal-fade-out 0.3s ease forwards;
}

.modal.is-active {
    display: block;
    animation: modal-fade-in 0.3s ease forwards;
}

.modal.is-active .modal__overlay{
    position: absolute;
    display: block;
    inset: 0;
    background:rgba(26, 26, 26, 0.80);
    z-index: 1000;
}
.modal__wrapper{
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1150;
    max-height: 95vh;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal__overlay{
    display: none;
}

.modal__close{
    width: 36px;
    height: 36px;
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 12px;
    background-color: rgba(255, 254, 248, 0.05);
    border-radius: 6px;
    z-index: 200;
}

.modal__close::before,
.modal__close::after{
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    background-color: var(--color-white);
    height: 1px;
    transform-origin: center;
    border-radius: 5px;
}

.modal__close::before{
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal__close::after{
    transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-success__wrapper {
    padding: 48px 72px;
    max-width: 494px;
    border-radius: 20px;
    background-color: #2B2627;
}

.modal-success__content{
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 33px;
}

.modal-success__content button{
    width: 100%;
}