.tos_modal_container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tos_modal_container.close_modal {
    display : none;
}

.btn_wrap {
    background: inherit;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    overflow: visible;
    cursor: pointer;
    display : flex;
    justify-content: flex-end;
}
.modal_img { width: 100%; height: auto; display: block; }

/* PC: 정사각형 이미지(1080px 원본)를 화면 안에 맞춘다. 버튼 줄 높이만큼 세로 여유를 둔다 (2026-10-15) */
.tos_modal_container > div {
    width: min(560px, 90vw, calc(100vh - 100px));
}

@media (max-width: 768px) {
    .btn_wrap { justify-content: space-between; }

    .tos_modal_container > div {
        width: 330px;
    }
}

.btn_wrap:first-child {
    margin-right: 2.25rem;
}

.modal_btn {
    background: none;
    border: none;
    box-shadow: none;
}

.modal_btn img {
    width: 1.25rem;
    height: 1.25rem;
    vertical-align: middle;
}

#today_not_show_btn span,
#close_modal_btn span {
    color: #ffffff;
    font-size: 1rem;
    line-height: 0;
    font-weight: 500;
    vertical-align: middle;
}
