/* 모달 기본 */
.modal_wrap {position: fixed; width: 100%; height: 100vh; top: 0; left: 0; background-color: rgba(0, 0, 0, .3); z-index: 101;}
.modal_container {position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);}
.modal_box {border-radius: 15px; width: 90vw; overflow: hidden;}
.modal_text {background-color: #fff; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 25px; margin-bottom: -1px;}
.modal_text .title {font-size: 18px; font-weight: 500; text-align: center; line-height: 1.4;}
.modal_text .con {font-size: 15px; line-height: 1.3; word-break: keep-all; text-align: center; color: #444;}
.md_btn {display: flex; align-items: center; width: 100%; padding-top: 12px; gap: 10px;}
.md_btn button {width: 50%;}
.modal_wrap.alert2 .md_btn button {width: 100%;}


/* 셀렉트 */
.modal_wrap .slt_list {border-radius: 10px; box-shadow: 0 0 10px 10px rgba(0, 0, 0, .05); background-color: #fff; padding: 10px 0; width: 90vw;}
.modal_wrap .slt_list ul {display: flex; flex-direction: column;}
.modal_wrap .slt_list li {width: 100%; text-align: center; font-size: 15px; font-weight: 400; padding: 15px; border-bottom: 1px solid #eee;}
.modal_wrap .slt_list li:last-child {border-bottom: none;}


.modal_wrap.bottom .modal_container {top: initial; bottom: 0; left: 0; transform: initial;}
.modal_wrap.bottom .modal_box {width: 100vw; background-color: #fff; padding: 1.2em; border-radius: 15px 15px 0 0;}
.modal_wrap.bottom .btn_box {gap: 8px;}
.modal_wrap.bottom .btn_box button {padding: 15px 0;}
.modal_wrap.bottom .md_tit {position: relative; width: 100%; padding: 15px; margin-bottom: 20px;}
.modal_wrap.bottom .md_tit span {position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 16px;}
.modal_wrap.bottom .md_tit i {display: block; width: 20px; height: 20px; background: url(../img/delete.png) no-repeat center/contain; position: absolute; right: 0; top: 50%; transform: translateY(-50%);}


/* 토스트바 */
.toast {position: fixed; bottom: 120px; left: 50%; transform: translateX(-50%); width: max-content; padding: 10px 25px; border-radius: 20px; background-color: #00000070; font-size: 14px; color: #fff; text-align: center; font-weight: 500; backdrop-filter: blur(4px); transition: all .5s linear; opacity: 0; z-index: -1;}
.toast.on {animation: toast 2s ease-out;}
@keyframes toast {
    0% {opacity: 0; bottom: 120px; z-index: 0;}
    50% {opacity: 1; bottom: 150px; z-index: 2;}
    85% {opacity: 1; bottom: 150px; z-index: 2;}
    100% {opacity: 0; z-index: -1; bottom: 150px;}
}


/* 바텀시트 */
.sheet_box {width: 100%; position: absolute; left: 0; bottom: 0; background-color: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 0 6px #00000010; padding: 12px 0 40px;}
.sheet_box ul {display: flex; flex-direction: column;}
.sheet_box li {padding: 12px 20px; border-bottom: 1px solid #eee; font-size: 15px; text-align: center;}
.sheet_box li:last-child {border-bottom: none;}

/* 바텀시트 - 공동구매 참여 */
.sheet_box.group {padding: 12px 1.2em 40px; display: flex; flex-direction: column; gap: 20px;}
.sheet_box .sheet_tit {width: 100%; display: flex; justify-content: center; flex-direction: column; align-items: center; gap: 20px;}
.sheet_tit .handle {width: 60px; height: 5px; border-radius: 5px; background-color: #ddd;}
.sheet_tit .tit {font-size: 18px; font-weight: 500; text-align: center;}
.option_list {width: 100%; display: flex; flex-direction: column; gap: 10px;}
.opt_con {display: flex; flex-direction: column; width: 100%; padding: 12px; border-radius: 5px; background-color: #f7f7f7; gap: 15px;}
.opt_con .opt_tit {width: 100%; display: flex; align-items: center; justify-content: space-between;}
.opt_con .opt_tit span {font-size: 14px; font-weight: 500; color: #555;}
.opt_con .opt_tit i {display: block; width: 14px; height: 14px; background: url(../img/option_delete.png) no-repeat center/contain;}
.opt_con .opt_amount {display: flex; align-items: center; justify-content: space-between; width: 100%;}
.opt_con .opt_amount .ctr_amount {display: flex; align-items: center; gap: 10px;}
.opt_amount .ctr_amount .minus {display: block; width: 18px; height: 18px; background: url(../img/amount_minus.png) no-repeat center/contain;}
.opt_amount .ctr_amount .plus {display: block; width: 18px; height: 18px; background: url(../img/amount_plus.png) no-repeat center/contain;}
.opt_amount .ctr_amount span {font-size: 14px; font-weight: 500; text-align: right;}
.group_price {width: 100%; display: flex; align-items: center; justify-content: space-between; padding-top: 15px; border-top: 1px solid #eee;}
.group_price dt {font-size: 16px; font-weight: 500;}
.group_price dd {color: #5834E8; font-size: 16px; font-weight: 600;}

.time_box {display: flex; align-items: center; gap: 15px;}
.time_box input, .time_box div {width: 50%;}


/* 리뷰보기 */
.modal_wrap.review {background-color: rgba(0, 0, 0, .6);}
.modal_wrap.review .close_rv {position: fixed; top: 20px; right: 20px; display: block; width: 30px; aspect-ratio: 1; background: url(../img/close_rv.png) no-repeat center/contain;}
.rv_img {width: 100%; position: relative;}
.rv_img .rvSwiper {height: 60vh;}
.rv_img .rvSwiper .swiper-slide {height: 100%; width: 100%;}
.rvSwiper .swiper-slide img {width: 100%; height: 100%; object-fit: contain;}
.rv_img .swiper-pagination {bottom: -20px !important;}
.rv_img .swiper-pagination-bullet {background-color: #ffffff50; opacity: 1;}
.rv_img .swiper-pagination-bullet-active {background-color: #fff;}
.rv_box {display: flex; flex-direction: column; gap: 35px; margin-top: 80px;}
.rv_summary {display: flex; flex-direction: column; align-items: flex-end; gap: 10px; width: 100%; padding: 0 1.2em;}
.rv_summary p {font-size: 15px; color: #fff; line-height: 1.5; font-weight: 300; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;}
.rv_summary span {font-size: 13px; text-decoration: underline; color: #aaa;}


.rv_img .photoSwiper {height: 75vh;}
.rv_img .photoSwiper .swiper-slide {height: 100%; width: 100%;}
.photoSwiper .swiper-slide img {width: 100%; height: 100%; object-fit: contain;}
.rv_img .swiper-pagination {bottom: -20px !important;}
.rv_img .swiper-pagination-bullet {background-color: #ffffff50; opacity: 1;}
.rv_img .swiper-pagination-bullet-active {background-color: #fff;}