.modal-overlay {
    z-index: 999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    background-color: rgba(0, 0, 0, .7);
}

.modal-thank {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 57.2rem;
    background: #fff;
}

.modal-thank__close {
    display: flex;
    position: absolute;
    right: 1.6rem;
    top: 1.6rem;
    cursor: pointer;
}

.modal-thank__title {
    padding: 2.4rem;
    font-weight: 700;
    font-size: 2rem;
    line-height: 2.4rem;
    text-align: center;
    border-bottom: 1px solid var(--gray);
}

.modal-thank__text {
    font-weight: 500;
    font-size: 1.3rem;
    line-height: 2rem;
    color: #2F2F2F;
    padding: 2.1rem;
    text-align: center;
    border-bottom: 1px solid var(--gray);
}

.modal-thank__footer {
    padding: 2.4rem;
    font-size: 1.3rem;
    line-height: 2rem;
    transition: 0.3s;
    cursor: pointer;
    text-align: center;
}

.modal-thank__footer:hover {
    color: var(--primary);
}

@media (max-width: 767px) {
    .modal-thank {
        width: 32rem;
    }

    .modal-thank__close {
        right: 0.8rem;
        top: 0.8rem;
    }
}