/*
    3.0 전체메뉴 개선 모달 전용 Css
 */



/* 모달 최상위 컨테이너 */
.menu_modal_container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
}


/* 반투명 배경 */
.menu_modal_container .modal_backdrop {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
}

/* 실제 모달 내용(가운데 정렬) */
.menu_modal_container .modal_container {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 638px;
    height: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,.3);
    border-radius: 24px;
    z-index: 5;
    padding: 22px;
    font-family: Pretendard, sans-serif;
}


/* 헤더/타이틀 영역 */
.menu_modal_container .modal_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 컨텐츠 영역 */
.menu_modal_container .modal_contents {
    height: 310px;
    overflow: auto;
    background-color: #F7F8FA;
    border-radius: 12px;
    font-size: 0.925rem
}

/* 컨텐츠 리스트 영역 */
.menu_modal_container .menu_list {
    min-height: 30px;
}

/* 자주 사용하는 메뉴 리스트 */
.modal_fav_contents > .menu_list p{
    font-weight: 600;
}

/* 전체메뉴 체크박스 커스텀 */
.main_custom_checkbox {
    display: flex;
    align-items: center;
    position: relative;
    cursor: default;
    font-size: 0.925rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: 100%;
    font-weight: 500;
}
.main_custom_checkbox input {
    position: absolute;
    cursor: pointer;
    height: 0;
    width: 0;
    opacity: 0;
}

.main_circle_checkmark {
    height: 20px;
    min-width: 20px;
    border: 1px solid #B2B3B9;
    border-radius: 100%;
}

/* 체크가 되면 배경색 or 테두리색 바꾸기 */
.main_custom_checkbox input:checked ~ .main_circle_checkmark {
    background-color: #5C74D8;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px;
}


.main_custom_checkbox input:checked ~ .main_circle_checkmark::after {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: no-repeat url(../../img/svg/check.svg);
    background-size: contain;
}

.main_circle_checkmark::after {
    content: '';
}

.modal_footer {
    text-align: center;
    padding-top: 15px;
}

/* 저장/취소 버튼 */
.modal_footer > button {
    border: none;
    font-family: Pretendard, sans-serif;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    letter-spacing: -0.32px;
    padding: 7px 22px;
    border-radius: 8px;
    cursor: pointer;
}

.modal_save_btn {
    background-color: #5C74D8;
    color: #fff;
}

.modal_cancel_btn {
    background-color: #E0E2E7;
    color: #3F4150;
}


#setFavUserMenuList li {
    cursor: pointer;
}

/* 클릭해서 선택 표시용 – 필요하면 색상만 조정 */
#setFavUserMenuList li.selected {
    background-color: #e7e7e7;
}

#setFavUserMenuList li:hover {
    background-color: #e7e7e7;
}

.modal_contents::-webkit-scrollbar {
    display: none;
}

.all-menu-list {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 25px;
}
.sub-text {
    font-size: 0.9rem;
    color: #3F4150;
    padding: 5px 0 5px 5px;
    font-weight: 400;
}
.sub-text p {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}
.sub-text p:before {
    content: "";
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: #3F4150;
    flex-shrink: 0;
}

.option-title {
    padding: 0 0 10px 5px;
    font-weight: 500;
}

.modal_contents .menu_list > li {
    padding: 10px 15px;
}

.btn-option-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 20px;
}