/* pc */
.modal_cont {
    visibility: hidden;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 500;
}

.modal_cont.active {
    visibility: visible;
}

.modal_cont.active .modal_center {
    bottom: 0;
}

.modal_cont.active .dim {
    opacity: 1;
}

.modal_cont .dim {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    /* Safari 대응 */
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: all 300ms;
}

.modal_cont .modal_center {
    position: absolute;
    background-color: #fff;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 16px 16px 0 0;
    transition: all 300ms;
}

.modal_size_mobile {
    width: 100%;
    max-width: 600px;
}

.modal_cont .modal_head {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal_cont .modal_head h2 {
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.modal_cont .modal_content {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

.modal_cont .modal_close {
    background-color: transparent;
    display: block;
    width: 100%;
    border-top: 1px solid #ECECEC;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 400;
    color: #5E5E5E;
}

/* 주소 검색 */
#edk_modal_addr>div {
    width: 100% !important;
}

.modal_addr .now_addr_set {
    background-color: transparent;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 400;
    color: #5E5E5E;
}

.modal_addr .now_addr_set::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background: url(/static/app_www/base/img/icon_sniping.png) no-repeat center/contain;
}


/* 쿠폰 모달 */
.modal_coupon .modal_content {
    padding: 0 16px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal_coupon .modal_content .title_wrap .title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
    text-align: center;
}

.modal_coupon .modal_content .title_wrap .dttm {
    font-size: 12px;
    font-weight: 400;
    color: var(--main-color);
    text-align: center;
}

.modal_coupon .alert_list {
    padding: 10px 0;
}

.modal_coupon .alert_list>li {
    font-size: 12px;
    font-weight: 400;
    color: #5E5E5E;
}

.modal_coupon input {
    width: 100%;
    text-align: center;
    padding: 13px 0;
    background-color: #F8F8F8;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 400;
    color: #222;
}

.modal_coupon input::placeholder {
    color: #9E9E9E;
}

.modal_coupon .btn_default {
    padding: 13px 0;
    font-size: 16px;
    font-weight: 400;
}

.modal_review_delete .modal_content {
    padding: 12px 24px 20px;
}

.modal_review_delete .delete_btn {
    font-size: 16px;
    font-weight: 400;
    padding: 12px 0;
}

/* 이미지 미리보기 (슬라이드형) */
.popup_container.popup_preview .dim {
    opacity: 1;
}

.popup_container.popup_preview .btn_close {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 38px;
    color: #fff;
    z-index: 999;
}

.popup_container.popup_preview .popup_center {
    max-width: 1200px;
    height: calc(100dvh - 100px);
    background-color: transparent;
}

.popup_preview .swiper {
    height: 100%;
}

.popup_preview .swiper-slide {
    display: flex;
}

.popup_preview .swiper-slide img {
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.popup_preview .swiper-button-next,
.popup_preview .swiper-button-prev {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.popup_preview .swiper-button-next:after,
.popup_preview .swiper-button-prev:after {
    transform: scale(0.3);
}

.popup_preview .swiper-button-next,
.popup_preview .swiper-rtl .swiper-button-prev {
    right: 0;
}

.popup_preview .swiper-button-prev,
.popup_preview .swiper-rtl .swiper-button-next {
    left: 0;
}

.modal_group_reserve .modal_content {
    padding: 0 16px 20px;
}

.modal_group_reserve .reserve_wrap {
    padding: 0 8px;
}

.modal_group_reserve .edk_input_wrap {
    padding: 16px 0;
}

.modal_group_reserve .edk_input.input_border {
    border-radius: 6px;
}

.modal_group_reserve .btn_default {
    padding: 13px 0;
    margin-top: 20px;
    font-size: 16px;
    font-weight: 400;
}

.modal_group_reserve .reserve_alert {
    padding: 11px 0;
    background-color: #F3F3F3;
    font-size: 12px;
    font-weight: 400;
    color: #5E5E5E;
    border-radius: 6px;
    text-align: center;
    margin-top: 12px;
}

/* 단체예약 커스텀 캘린더 */
.modal_group_reserve .gr_calendar {
    padding: 16px 0;
}

.modal_group_reserve .gr_cal_head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.modal_group_reserve .gr_cal_title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
}

.modal_group_reserve .gr_cal_nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: transparent;
    color: #222;
    font-size: 18px;
}

.modal_group_reserve .gr_cal_nav.disabled {
    color: #BBB;
    pointer-events: none;
}

.modal_group_reserve .gr_cal_weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 5px 0;
}

.modal_group_reserve .gr_cal_weekdays>span {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #5E5E5E;
    line-height: 1.5;
    letter-spacing: -0.132px;
}

.modal_group_reserve .gr_cal_body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.modal_group_reserve .gr_cal_cell {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    cursor: pointer;
}

.modal_group_reserve .gr_cal_cell .day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 400;
    color: #5E5E5E;
    line-height: 1.5;
    letter-spacing: -0.132px;
}

.modal_group_reserve .gr_cal_cell.muted,
.modal_group_reserve .gr_cal_cell.disabled {
    cursor: default;
}

.modal_group_reserve .gr_cal_cell.muted .day,
.modal_group_reserve .gr_cal_cell.disabled .day {
    color: #BBB;
}

.modal_group_reserve .gr_cal_cell.today .day {
    /* color: var(--main-color); */
    /* font-weight: 600; */
}

.modal_group_reserve .gr_cal_cell.selected .day {
    background: linear-gradient(88.42deg, #7463D4 4.56%, #9488E2 97.33%);
    color: #fff;
    font-weight: 500;
}

/* 예약취소 모달 */
.modal_cancel .modal_content {
    padding: 0 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal_cancel .cancel_msg {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.modal_cancel .cancel_title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.modal_cancel .cancel_title .text_error {
    color: #FF5757;
}

.modal_cancel .cancel_desc {
    font-size: 13px;
    font-weight: 400;
    color: #5E5E5E;
    line-height: 1.5;
}

.modal_cancel .cancel_notice {
    background-color: #FFF3F3;
    border-radius: 6px;
    padding: 12px;
}

.modal_cancel .cancel_notice ul {
    padding-left: 18px;
    list-style: disc;
}

.modal_cancel .cancel_notice li {
    font-size: 12px;
    font-weight: 400;
    color: #5E5E5E;
    line-height: 1.5;
    letter-spacing: -0.24px;
}

.modal_cancel .cancel_notice .text_error {
    color: #FF5757;
}

.modal_cancel .cancel_submit_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
}

.modal_cancel .cancel_submit_btn.btn_error {
    background-color: #FF5757;
    color: #fff;
    border: none;
}

/* 캘린더 */
#dateCalendar .fc-customPrev-button,
#dateCalendar .fc-customNext-button {
    background-color: transparent;
    width: 18px;
    aspect-ratio: 1/1;
    background: url("/static/app_www/base/img/icon_calendar_arrow.png") center / cover no-repeat;
    border: none;
}

#dateCalendar .fc-customPrev-button {
    transform: rotate(180deg);
}

#dateCalendar .fc-toolbar {
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

#dateCalendar .fc-toolbar-title {
    font-size: 14px;
    font-weight: 600;
}

#dateCalendar td,
#dateCalendar th {
    position: relative;
}