/**************************** 공통 모달 ****************************/
/* 전체 페이지 :: 공통 모달 프레임 */
.common-modal { display: none; justify-content: center; align-items: center; position: fixed; left: 0; top: 0; z-index: 99999; width: 100dvw; height: 100dvh; }
.common-modal.is-open { display: flex; }
.common-modal__container { position: relative; z-index: 100; max-width: 500px; width: calc(100dvw - 32px); padding: 20px; border-radius: 8px; border: 1px solid var(--gray-2); background: #FFF; box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.10); }
.common-modal__header { flex: none; }
.common-modal__header > h2 { font-size: 20px; font-weight: 600; line-height: 150%; }
.common-modal__body { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.common-modal__body-inner { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.common-modal__footer { flex: none; background: #fff; }
.common-modal__header:has(> .common-modal__title) { margin-bottom: 16px; padding-top: 30px; text-align: center; }
.modal-mobile--fullscreen .common-modal__container { display: flex; flex-direction: column; overflow: hidden; }
.modal-mobile--fullscreen .common-modal__header { text-align: center; }
.modal-mobile--fullscreen .common-modal__body { flex: 1; }
.modal-mobile--fullscreen .common-modal__header:has(> .common-modal__title) { margin-bottom: 30px; }
.modal-mobile--bottom-sheet .common-modal__header { padding: 40px 60px 22px; text-align: center; }
.common-modal__close { position: absolute; right: 20px; top: 20px; }
.common-modal__desc { text-align: center; font-size: 16px; font-weight: 400; line-height: 150%; }
.common-modal__buttons { display: flex; gap: 16px; margin-top: 40px; }
.common-modal__buttons .btnSubmit,
.common-modal__buttons .btnNormal { flex: 1; }
.common-modal .dim { z-index: 20; }


.modal__title-wrap {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.modal__title-wrap .inquiry-write-modal__label {
    padding-bottom: 0;
}
.modal__title-description {
    font-size: 12px;
    font-weight: 400;
    line-height: 150%;
    color: var(--gray-5);
}

/* 위시리스트 추가 완료 모달 */
.wishlist-added-modal__container { max-width: 420px; }
.wishlist-added-modal .common-modal__buttons { margin-top: 24px; }
.wishlist-added-modal .common-modal__buttons > * { width: 100%; }

/* 전체 페이지 :: 모바일 바텀시트 애니메이션 */
@media screen and (max-width: 768px) {
 body.modal-open,
 body.product-purchase-sheet-open { height: 100dvh; overflow: hidden; }
 .common-modal:not(.modal-mobile--fullscreen) .common-modal__header:has(> .common-modal__title) > h2 { font-size: 16px; }
 .common-modal__desc { font-size: 14px; }
 .common-modal__close { right: 16px; top: 16px; }
 .mobile-bottom-sheet .dim { animation: mobile-bottom-sheet-dim-in .3s ease both; }
 .mobile-bottom-sheet > .common-modal__container { animation: mobile-bottom-sheet-up .3s cubic-bezier(.22, 1, .36, 1) both; will-change: transform; }
 .mobile-bottom-sheet.is-closing .dim { animation: mobile-bottom-sheet-dim-out .3s ease both; }
 .mobile-bottom-sheet.is-closing > .common-modal__container { animation: mobile-bottom-sheet-down .3s cubic-bezier(.4, 0, 1, 1) both; }

 .bottom-sheet__footer,
 .common-modal__buttons,
 .order-summary-mobile-bar__buttons {
    gap: 10px;
 }
 .bottom-sheet__footer > *,
 .order-summary-mobile-bar__buttons .btnNormal,
 .order-summary-mobile-bar__buttons .btnSubmit,
 .common-modal__buttons .btnSubmit,
 .common-modal__buttons .btnNormal,
 .delivery-datetime-modal__footer button {
    padding: 10px 24px;
    font-size: 14px;
 }

 
   .modal__title-wrap {
    flex-direction: column;
    align-items: start;
      gap: 4px;
   }
}

@keyframes mobile-bottom-sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes mobile-bottom-sheet-down { from { transform: translateY(0); } to { transform: translateY(100%); } }
@keyframes mobile-bottom-sheet-dim-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes mobile-bottom-sheet-dim-out { from { opacity: 1; } to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
 .mobile-bottom-sheet .dim,
 .mobile-bottom-sheet > .common-modal__container,
 .mobile-bottom-sheet.is-closing .dim,
 .mobile-bottom-sheet.is-closing > .common-modal__container { animation-duration: 0s; }
}

/* 공통 페이지 :: 이용약관·개인정보처리방침 모달 */
.common-modal__container.legal-modal__container { display: flex; flex-direction: column; width: calc(100% - 32px); max-width: 720px; max-height: 80vh; max-height: 80dvh; padding: 0; overflow: hidden; }
.legal-modal__header,
.quick-delivery-fee-modal__header { padding: 24px 64px 20px 24px; border-bottom: 1px solid var(--gray-2); }
.legal-modal__body-wrap { display: flex; min-height: 0; margin: 24px; padding: 25px; border-radius: 8px; background: var(--gray-1); }
.legal-modal__body { min-height: 0; }
.legal-modal__body h3 { margin: 24px 0 8px; font-size: 16px; font-weight: 600; line-height: 150%; color: var(--gray-black); }
.legal-modal__body h3:first-child { margin-top: 0; }
.legal-modal__body p { line-height: 170%; }

.legal-modal .table-wrap {
    width: 100%;
    overflow-x: auto;
    padding: 20px 0;
}
.legal-modal .table-wrap table {
    min-width: 400px;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background-color: #fff;
}
.legal-modal .table-wrap th,
.legal-modal .table-wrap td {
    padding: 12px 16px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
}
.legal-modal .table-wrap th {
    background: #f5f5f5;
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    .common-modal__body {
        font-size: 14px;
    }
}

/**************************** 메인 페이지 모달 ****************************/
/* 메인 페이지 :: 매장 픽업·퀵배달 모달 */
.store-pickup__options { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.store-pickup__item { display: flex; flex-direction: column; justify-content: center; align-items: center; flex: 1 0 0; gap: 10px;  padding: 20px 0; border-radius: 4px; border: 1px solid var(--gray-3); white-space: unset; text-align: center; background: #FFF; }
#store-pickup-modal .store-pickup__item { min-height: 150px; }
.store-pickup__desc { display: block; max-width: 144px; margin-top: 2px; text-align: center; }
.store-pickup__notice,
.store-pickup__notice a { font-size: 14px; font-style: normal; font-weight: 400; line-height: 150%; }
.store-pickup__notice { padding: 8px; gap: 10px; border-radius: 4px; background: var(--gray-1); }
.store-pickup__notice a { text-decoration-line: underline; text-decoration-style: solid; text-decoration-skip-ink: auto; text-decoration-thickness: auto; text-underline-offset: auto; text-underline-position: from-font; }
.quick-delivery-modal .store-pickup__icon img { width: 32px; height: 32px; }

@media screen and (max-width: 768px) {
 #store-pickup-modal .common-modal__container { width: 100dvw; max-width: 100dvw; height: 100dvh; border-radius: 0; }
 .store-pickup__options { flex-direction: column; gap: 10px; }
 .store-pickup__options a { width: 100%; }
 .store-pickup__item { padding: 18px 0; }
 #store-pickup-modal .store-pickup__item { min-height: 130px; }
 .store-pickup__notice { padding: 16px; text-align: center; }
}

/* 메인 페이지 :: 퀵배송비 조회 모달 */
.common-modal__container.quick-delivery-fee-modal__container { display: flex; flex-direction: column; width: calc(100% - 32px); max-width: 720px; max-height: 80vh; max-height: 80dvh; padding: 0; overflow: hidden; }
.quick-delivery-fee-modal__header p { margin-top: 4px; font-size: 14px; line-height: 150%; color: var(--red); }
.quick-delivery-fee-modal__body { min-height: 0; padding: 24px; }
.quick-delivery-fee-form { display: grid; gap: 20px; }
.quick-delivery-fee-form__field > label { display: block; padding: 0 0 8px; }
.quick-delivery-fee-form__field > input { width: 100%; cursor: default; background: var(--gray-1); }
.quick-delivery-fee-form__schedule { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(100px, .7fr) 88px; gap: 8px; }
.quick-delivery-fee-form__select,
.quick-delivery-fee-form__select .custom-select__trigger { width: 100%; }
.quick-delivery-fee-results { margin-top: 30px; }
.quick-delivery-fee-result { padding: 16px; border: 1px solid var(--gray-2); border-radius: 8px; background: #fff; }
.quick-delivery-fee-result > strong { display: block; margin-bottom: 12px; font-size: 14px; font-weight: 600; line-height: 150%; }
.quick-delivery-fee-result p { display: flex; align-items: baseline; padding: 10px 12px; border-radius: 4px; background: var(--gray-1); }
.quick-delivery-fee-result p span { margin-right: auto; font-size: 14px; color: var(--gray-6); }
.quick-delivery-fee-result p em { font-size: 20px; font-weight: 600; color: var(--main-color); }
.quick-delivery-fee-result p b { margin-left: 2px; font-size: 20px; font-weight: 500; }
.quick-delivery-fee-guide { margin-top: 30px; }
.quick-delivery-fee-guide > h3 { margin-bottom: 10px; font-size: 16px; font-weight: 600; color: var(--red); }
.quick-delivery-fee-guide__list { padding: 16px; border-radius: 8px; background: var(--gray-1); }
.quick-delivery-fee-guide__list dl + dl { margin-top: 14px; }
.quick-delivery-fee-guide__list dt { margin-bottom: 6px; font-size: 16px; font-weight: 600; color: var(--main-color); }
.quick-delivery-fee-guide__list dd { font-size: 16px; line-height: 150%; color: var(--gray-6); }

@media screen and (max-width: 600px) {
 .quick-delivery-fee-modal__body { padding: 20px 16px; }
 .quick-delivery-fee-form__schedule { grid-template-columns: 1fr 1fr; }
 .quick-delivery-fee-form__schedule .btnSubmit { grid-column: 1 / -1; }
}

/**************************** 상품 페이지 모달 ****************************/
/* 상품 목록·마이페이지 문의 관리 :: 문의 작성 모달 */
.common-modal__container.inquiry-write-modal__container { display: flex; flex-direction: column; width: calc(100% - 32px); max-width: 800px; max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; }
.inquiry-write-modal__header { padding: 40px 60px 30px; }
.inquiry-write-modal__form { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.inquiry-write-modal__body { flex: 1; min-height: 0; padding: 0 20px; }
.inquiry-write-modal__visibility { display: flex; gap: 30px; margin-bottom: 20px; }
.inquiry-write-modal__visibility label { display: flex; align-items: center; gap: 10px; padding: 0; cursor: pointer; }
.inquiry-write-modal__field + .inquiry-write-modal__field { margin-top: 20px; }

.inquiry-write-modal__field > label:not(.inquiry-write-modal__upload-button),
.inquiry-write-modal__label { display: inline-block; position: relative; padding: 0 4px 8px; font-size: 14px; font-weight: 500; line-height: 150%; }
.inquiry-write-modal__field > label em { position: absolute; right: -1px; top: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--red); }
.inquiry-write-modal__select,
.inquiry-write-modal__select .custom-select__trigger,
.inquiry-write-modal__field > input[type="text"] { width: 100%; }
.inquiry-write-modal__field textarea { display: block; width: 100%; min-height: 191px; padding: 12px 14px; resize: vertical; border: 1px solid var(--gray-3); border-radius: 4px; outline: none; font: 400 14px/150% Pretendard, sans-serif; color: var(--gray-black); background: #fff; word-break: break-all; transition: border-color .3s; }
.inquiry-write-modal__field textarea::placeholder { color: var(--gray-5); }
.inquiry-write-modal__field textarea:hover { border-color: var(--gray-5); }
.inquiry-write-modal__field textarea:focus { border-color: var(--gray-8); }
.inquiry-write-modal__upload-button { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; padding: 12px 24px; border: 1px solid var(--gray-3); border-radius: 4px; font-size: 16px; font-weight: 600; line-height: 150%; cursor: pointer; }
.inquiry-write-modal__upload-button img { width: 20px; height: 20px; }
.inquiry-write-modal__previews { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; cursor: grab; user-select: none; touch-action: pan-x; scrollbar-width: none; -ms-overflow-style: none; }
.inquiry-write-modal__previews::-webkit-scrollbar { display: none; }
.inquiry-write-modal__previews.is-dragging { cursor: grabbing; }
.inquiry-write-modal__preview { position: relative; flex: none; width: 80px; height: 80px; overflow: hidden; border: 1px solid var(--gray-2); border-radius: 4px; }
.inquiry-write-modal__preview > img { width: 100%; height: 100%; object-fit: cover; }
.inquiry-write-modal__preview button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; color: #fff; background: rgba(33, 33, 33, .65); }
.inquiry-write-modal__footer { padding: 40px 20px 20px; }
.inquiry-write-modal__footer button { width: 100%; }
.inquiry-complete-modal__container { width: calc(100% - 32px); max-width: 500px; padding: 50px 20px 20px; text-align: center; }
.inquiry-complete-modal__container h2 { margin-bottom: 54px; font-size: 20px; font-weight: 600; line-height: 150%; }
.inquiry-complete-modal__container button { width: 100%; }

@media screen and (max-width: 768px) {
 .inquiry-write-modal__body { padding: 0 16px; }
 .inquiry-write-modal__field textarea { min-height: 160px; }

 .inquiry-write-modal__visibility label {
   font-size: 14px;
 }
 .inquiry-write-modal__field > label:not(.inquiry-write-modal__upload-button), .inquiry-write-modal__label {
   padding: 0 2px 4px;
 }
 .inquiry-write-modal__upload-button {
   padding: 10px 24px;
   font-size: 14px;
   font-weight: 700;
   line-height: 1;
 }
 .inquiry-complete-modal__container h2 { margin-bottom: 40px; font-size: 18px; font-weight: 700; }
 .inquiry-complete-modal__container button {
   padding: 10px 24px;
   font-size: 14px;
 }
}

/* 주문 상품 선택 페이지 :: 상품 상세 모달 */
.order-product-modal { overflow: hidden; padding: 0; }
.order-product-modal__container { overflow: hidden; display: flex; flex-direction: column; max-width: 700px; max-height: 80dvh; padding: 0; }
.common-modal__title-wrap { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 10; width: 100%; padding: 20px; background: #fff; }
.common-modal__title-wrap > h2 { font-size: 16px; font-weight: 600; line-height: 150%; }
.order-product-modal__container .common-modal__close { position: static; }
.order-product-modal__content { min-height: 0; }
.order-product-modal__content > .common-modal__body-inner { padding-bottom: 36px; scrollbar-width: none; -ms-overflow-style: none; }
.order-product-modal__content > .common-modal__body-inner::-webkit-scrollbar { display: none; }
.order-product-modal__sticky { flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; padding: 16px 20px 40px; border-top: 1px solid var(--gray-2); background: #fff; }
.order-product-modal__total { align-items: center; }
.order-product-modal__sticky .btnSubmit { width: 100%; }
.order-product-modal .product-detail-purchase__total { display: none; }
.order-product-modal__handle { display: none; }
.order-product-modal .product-detail-content__tabs-wrap { position: sticky; top: 0; z-index: 9; }
#order-product-modal .product-detail__top,
#order-product-modal .product-detail-purchase,
#order-product-modal .product-detail-content__container { padding: 0 20px; }
#order-product-modal .product-detail-purchase { padding-top: 20px; }
#order-product-modal .product-detail__top { gap: 20px; }
#order-product-modal .product-detail-info__name { font-size: 20px; }
#order-product-modal .product-detail-info__description { font-size: 14px; }
#order-product-modal .product-detail-info__price { display: block; margin-top: 10px; }
#order-product-modal .swiper.product-detail__thumb-swiper { display: none; }
#order-product-modal .product-detail-content__layout { display: block; }
#order-product-modal .product-detail-content__tabs button { font-size: 16px; }
#order-product-modal .product-detail-section__title,
#order-product-modal .product-detail-reviews__photos h4,
#order-product-modal .product-detail-reviews__list-head h4,
#order-product-modal .product-detail-qna__list-head h4 { font-size: 16px; }
#order-product-modal .product-detail-reviews__average strong { font-size: 30px; }

/* 시간 선택, 상품 선택 하단 버튼 시트 */
.order-summary-mobile-bar { display: none; }

@media screen and (max-width: 1024px) {
 .order-product-modal__content .product-detail-purchase__option { flex-direction: row; }
 #order-product-modal .product-detail-purchase,
 #order-product-modal .product-detail-content__container { padding: 0 16px; }
 .order-product-modal__content .product-detail__right,
 .order-product-modal__content .product-detail-content__sections-buy,
 .order-product-modal__content .product-detail-content__sections-qna { padding: 0; }
 #order-product-modal .product-detail-purchase { padding-bottom: 36px; }
}

@media screen and (max-width: 768px) {
 .order-product-modal { align-items: flex-end; }
 .order-product-modal .dim { transition: opacity .3s ease; }
 .order-product-modal__container { width: 100%; max-width: none; max-height: calc(100dvh - 40px); border: 0; border-radius: 20px 20px 0 0; box-shadow: none; animation: order-product-sheet-up .3s ease both; }
 .order-product-modal.is-closing .dim { opacity: 0; }
 .order-product-modal.is-closing .order-product-modal__container { animation: order-product-sheet-down .3s ease both; }
 .order-product-modal__handle { display: flex; }
 .order-product-modal__container .common-modal__close { display: none; }
 .order-product-modal__container .common-modal__title-wrap { justify-content: center; padding: 0 20px 10px; }
 #order-product-modal .product-detail__top { display: block; padding: 0; }
}

@keyframes order-product-sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes order-product-sheet-down { from { transform: translateY(0); } to { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
 .order-product-modal__container,
 .order-product-modal.is-closing .order-product-modal__container { animation-duration: 0s; }
}

/* 상품 상세 페이지 :: 구매 옵션 바텀시트 */
.product-purchase-sheet { display: none; }
@media screen and (max-width: 768px) {
 .product-purchase-sheet { display: block; position: fixed; z-index: 1200; inset: 0; visibility: hidden; pointer-events: none; transition: visibility 0s linear .3s; }
 .product-purchase-sheet.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
 .product-purchase-sheet__dim { position: absolute; inset: 0; opacity: 0; width: 100%; background: rgba(0, 0, 0, .5); transition: opacity .3s ease; }
 .product-purchase-sheet.is-open .product-purchase-sheet__dim { opacity: 1; }
 .product-purchase-sheet__container { display: flex; flex-direction: column; position: absolute; right: 0; bottom: var(--product-purchase-mobile-bar-height, 79px); left: 0; max-height: calc(100dvh - 40px - var(--product-purchase-mobile-bar-height, 79px)); overflow: hidden; border-radius: 20px 20px 0 0; background: #fff; transform: translateY(100%); transition: transform .3s ease, bottom .3s ease, max-height .3s ease; }
 .product-purchase-sheet.is-open .product-purchase-sheet__container { transform: translateY(0); }
 .product-purchase-sheet__handle-wrap { display: flex; flex: none; justify-content: center; width: 100%; padding: 16px 0 20px; }
 .product-purchase-sheet__handle { width: 40px; height: 4px; border-radius: 999px; background: var(--gray-3); }
 .product-purchase-sheet__content { overflow-y: auto; }
 .product-purchase-sheet .product-detail-purchase { padding: 0 16px 20px; }
 .product-purchase-sheet .product-detail-purchase__actions { display: none; }
}

/* 상품 상세 페이지 :: 포토리뷰 전체보기·상세보기 모달 */
.photo-review-list-modal__container { display: flex; flex-direction: column; width: calc(100dvw - 32px); max-width: 1000px; height: 80dvh; max-height: 80dvh; padding: 0; overflow: hidden; }
.photo-review-list-modal__header { display: flex; justify-content: space-between; align-items: center; padding: 33px 30px; }
.photo-review-list-modal__header h2 { font-weight: 700; }
.photo-review-list-modal__header h2 span { color: var(--gray-4); }
.photo-review-list-modal__header .common-modal__close { position: static; }
.photo-review-list-modal__content { flex: 1; min-height: 0; }
.photo-review-list-modal__content > .common-modal__body-inner { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: max-content; gap: 20px; padding: 0 30px 30px; }
.photo-review-list-modal__item { overflow: hidden; aspect-ratio: 1 / 1; border-radius: 12px; }
.photo-review-list-modal__item img { width: 100%; height: 100%; object-fit: cover; }
.photo-review-detail-modal__container { width: calc(100dvw - 32px); max-width: 940px; padding: 70px 20px 20px; overflow: hidden; }
.photo-review-detail-modal__viewer { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 20px; align-items: center; padding: 0 20px 20px; }
.photo-review-detail-modal__image { justify-self: center; width: min(100%, 760px); max-height: min(70dvh, 720px); object-fit: contain; }
.photo-review-detail-modal__arrow { display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; border: 1px solid var(--gray-2); border-radius: 50%; }
.photo-review-detail-modal__arrow.next { justify-self: end; }
.photo-review-detail-modal__info { display: grid; position: relative; gap: 16px; padding: 20px 10px 0; border-top: 1px solid var(--gray-2); }
.photo-review-detail-modal__stars { display: flex; gap: 2px; }
.photo-review-detail-modal__stars img { width: 16px; height: 16px; }
.photo-review-detail-modal__info > strong { font-size: 18px; font-weight: 600; }
.photo-review-detail-modal__info > p { color: var(--gray-6); }
.photo-review-detail-modal__meta { display: flex; flex-direction: column; gap: 4px; position: absolute; top: 20px; right: 10px; text-align: right; font-size: 14px; font-weight: 500; line-height: 150%; color: var(--gray-4); }


@media screen and (max-width: 1024px) {
 .photo-review-list-modal__content > .common-modal__body-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
}

@media screen and (max-width: 768px) {
 .photo-review-list-modal__header { padding: 16px; }
 .photo-review-list-modal__header h2 { font-size: 18px; }
 .photo-review-list-modal__content > .common-modal__body-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 16px 16px; }
 .photo-review-detail-modal__container { padding: 64px 16px 16px; }
 .photo-review-detail-modal__viewer { display: block; position: relative; }
 .photo-review-detail-modal__arrow { position: absolute; top: 50%; transform: translateY(-50%); background-color: #fff; }
 .photo-review-detail-modal__image { object-fit: contain; width: 100%; height: 100%; }
 .photo-review-detail-modal__arrow.prev { left: 0; }
 .photo-review-detail-modal__arrow.next { right: 0; }
 .photo-review-detail-modal__info { gap: 8px; padding: 16px 0 0; }
 .photo-review-detail-modal__info > strong { font-size: 18px; }
 .photo-review-detail-modal__info > p { font-size: 14px; }
 .photo-review-detail-modal__meta { align-items: start; position: static; margin-top: 10px; }
}

/**************************** 주문 페이지 모달·바텀시트 ****************************/
/* 주문 단계 페이지 :: 공통 주문내역·년월 선택 바텀시트 */
.bottom-sheet { display: none; }
@media screen and (max-width: 1024px) {
 body.order-sheet-open { height: 100dvh; overflow: hidden; }
 .bottom-sheet { display: block; position: fixed; z-index: 1100; inset: 0; }
 .bottom-sheet[hidden] { display: none; }
 .bottom-sheet__dim { position: absolute; inset: 0; opacity: 0; background: rgba(0, 0, 0, .5); transition: opacity .3s ease; }
 .bottom-sheet__container { display: flex; flex-direction: column; position: absolute; right: 0; bottom: 0; left: 0; padding: 0 16px 16px; border-radius: 20px 20px 0 0; background: #fff; transform: translateY(100%); transition: transform .3s ease, bottom .3s ease; will-change: transform; }
 .bottom-sheet.is-open .bottom-sheet__dim { opacity: 1; }
 .bottom-sheet.is-open .bottom-sheet__container { max-height: 95dvh; transform: translateY(0); }
 .bottom-sheet__handle-wrap { display: flex; flex: none; justify-content: center; width: 100%; padding: 16px 0; }
 .bottom-sheet__handle { display: block; width: 40px; height: 4px; border-radius: 999px; background: var(--gray-3); }
 .bottom-sheet__header { display: flex; justify-content: center; align-items: center; position: relative; padding: 20px 0 24px; }
 .bottom-sheet__title { font-size: 16px; font-weight: 600; line-height: 150%; }
 .bottom-sheet__close { position: absolute; top: 50%; right: 0; width: 40px; height: 40px; transform: translateY(-50%); }
 .bottom-sheet__content { min-height: 0; overflow-y: auto; }
 .bottom-sheet__footer { display: flex; flex: none; gap: 10px; padding-top: 20px; }
 .bottom-sheet__footer > * { flex: 1; }
 .month-select-sheet { --month-item-height: 40px; --month-item-gap: 4px; }
 .month-select-sheet .bottom-sheet__content { flex: none; height: calc((var(--month-item-height) * 5) + (var(--month-item-gap) * 4)); overflow: hidden; }
 .month-select__list { display: flex; flex-direction: column; gap: var(--month-item-gap); height: 100%; padding: calc((var(--month-item-height) + var(--month-item-gap)) * 2) 0; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; scrollbar-width: none; touch-action: pan-y; cursor: grab; }
 .month-select__list::-webkit-scrollbar { display: none; }
 .month-select__list.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
 .month-select__item { flex: 0 0 var(--month-item-height); height: var(--month-item-height); padding: 8px 16px; border-radius: 4px; scroll-snap-align: center; font-size: 16px; font-weight: 500; line-height: 150%; color: var(--gray-5); }
 .month-select__item.is-selected { font-size: 18px; font-weight: 700; color: var(--gray-black); background: var(--gray-1); }
 .order-summary-sheet .bottom-sheet__container { padding: 0; overflow: hidden; }
 .order-summary-sheet .bottom-sheet__handle-wrap { flex: none; }
 .order-summary-sheet .bottom-sheet__header { flex: none; padding: 2px 0 10px; }
 .order-summary-sheet .bottom-sheet__content { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
 .order-summary-sheet .order-summary__info { gap: 8px; margin: 0; padding: 10px 16px; border-bottom: 6px solid var(--gray-1); }
 .order-summary-sheet .order-summary__info dl { display: flex; justify-content: space-between; align-items: center; }
 .order-summary-sheet .order-summary__info dt { font-size: 14px; font-weight: 600; }
 .order-summary-sheet .order-summary__info dd { font-size: 14px; color: var(--gray-black); }
 .order-summary-sheet .order-summary__products-wrap { overflow-y: auto; display: block; flex: 1; min-height: 0; }
 .bottom-sheet .order-summary__products.has-products {
    overflow-y: unset;
    max-height: unset;
    padding: 10px 16px 34px 16px;
 }
 .order-summary-sheet .order-summary__products { min-height: 240px; padding: 10px 16px; }
 .order-summary-sheet .order-summary__empty { color: var(--gray-5); text-align: center; }
 .order-summary-sheet .order-summary__total { flex: none; margin: 0; padding: 10px 16px; border-top: 1px solid var(--gray-2); }
 .order-summary-sheet .bottom-sheet__footer { padding: 10px 16px 40px; }

 .order-summary-mobile-bar { display: block; position: fixed; z-index: 500; right: 0; bottom: 0; left: 0; padding: 0 16px 40px 16px; border-top: 1px solid var(--gray-2); background: #fff; transition: bottom .3s ease; }
 .order-summary-mobile-bar__toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 6px 0; color: var(--gray-5); }
 .order-summary-mobile-bar__toggle span {
    font-size: 14px;
 }
 .order-summary-mobile-bar__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
 .order-summary-mobile-bar__buttons .btnNormal,
 .order-summary-mobile-bar__buttons .btnSubmit { width: 100%; }

 #order-summary-sheet .product-detail-purchase__total strong { font-size: 20px; font-weight: 600; line-height: 150%; }
 #order-summary-sheet .product-detail-purchase__total span { font-size: 16px; font-weight: 500; color: var(--gray-7); line-height: 150%; }
}

@media screen and (max-width: 1024px) and (prefers-reduced-motion: reduce) {
 .bottom-sheet__dim,
 .bottom-sheet__container { transition: none; }
}

/* 장바구니·주문내역 페이지 :: 옵션 변경 모달 */
.option-change-modal__container { width: calc(100% - 32px); max-width: 500px; max-height: calc(100dvh - 32px); padding: 0; }
.option-change-modal__header { padding: 50px 20px 30px; border-bottom: 1px solid var(--gray-2); }
.option-change-modal__form { display: flex; flex: 1; flex-direction: column; min-height: 0; padding: 0 20px 20px; }
.option-change-modal__product { display: flex; align-items: center; gap: 10px; padding: 16px 10px; border-bottom: 1px solid var(--gray-2); }
.option-change-modal__product > img { width: 70px; height: 70px; border-radius: 4px; object-fit: cover; }
.option-change-modal__product-info p { display: flex; align-items: center; font-size: 14px; line-height: 150%; }
.option-change-modal__product-info p > span { width: 1px; height: 14px; margin: 0 8px; background: var(--gray-3); }
.option-change-modal__product-info p strong { font-weight: 500; }
.option-change-modal__product-info small { display: block; margin-top: 4px; font-size: 12px; color: var(--gray-5); line-height: 150%; }
.option-change-modal__product-info em { color: var(--gray-7); }
.option-change-modal__fields { display: grid; gap: 16px; padding-top: 20px; }
.option-change-modal__field { display: grid; }
.option-change-modal__label { display: inline-flex; position: relative; justify-self: start; font-size: 14px; font-weight: 500; }
.option-change-modal__label em { width: 4px; height: 4px; margin: 1px 0 0 2px; border-radius: 50%; background: var(--red); }
.option-change-modal__select,
.option-change-modal__select .custom-select__trigger { width: 100%; }
.option-change-modal__select .custom-select__value em { font-weight: 600; color: var(--gray-black); }
.option-change-modal__total { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding: 14px 16px; border-radius: 4px; background: var(--gray-1); }
.option-change-modal__total strong { font-size: 20px; font-weight: 600; }
.option-change-modal__buttons { display: flex; gap: 16px; margin-top: 30px; }
.option-change-modal__buttons button { flex: 1; }
.option-change-modal__select > button > img { transition: all .3s; }
.option-change-modal__select.is-open > button > img { transform: rotate(180deg); }

/* 마이페이지 주문내역 :: 주문 취소 신청 모달 */
.common-modal__container.order-cancel-request-modal__container { display: flex; flex-direction: column; width: calc(100% - 32px); max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; }
.order-cancel-request-modal__header { padding: 50px 0 30px; }
.order-cancel-request-modal__form { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.order-cancel-request-modal__body { flex: 1; padding: 0 20px 30px; }
.order-cancel-request-modal__notice li::marker { font-size: 9px; }
.order-cancel-request-modal__product { display: flex; align-items: flex-start; gap: 10px; align-self: stretch; padding: 16px 10px; border-top: 1px solid var(--gray-2); border-bottom: 1px solid var(--gray-2); }
.order-cancel-request-modal__product-image { overflow: hidden; flex: none; width: 70px; height: 70px; border-radius: 4px; }
.order-cancel-request-modal__product-image img { width: 100%; height: 100%; object-fit: cover; }
.order-cancel-request-modal__product-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.order-cancel-request-modal__product-name { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 150%; }
.order-cancel-request-modal__product-name strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-overflow: ellipsis; font-size: 14px; font-weight: 500; line-height: 150%; }
.order-cancel-request-modal__product-name span,
.order-cancel-request-modal__product-price { font-weight: 400; line-height: 150%; color: var(--gray-5); }
.order-cancel-request-modal__product-name span { font-size: 14px; }
.order-cancel-request-modal__product-price { font-size: 12px; }
.order-cancel-request-modal__reason { padding-top: 20px; }
.order-cancel-request-modal__reason-label { display: inline-block; position: relative; font-size: 14px; font-weight: 500; line-height: 150%; }
.order-cancel-request-modal__reason-label em { display: block; position: absolute; right: -2px; top: 2px; width: 4px; height: 4px; border-radius: 100%; background: var(--red); }
.order-cancel-request-modal__select,
.order-cancel-request-modal__select .custom-select__trigger { width: 100%; }
.order-cancel-request-modal__reason textarea { box-sizing: border-box; display: block; width: 100%; height: 230px; margin-top: 12px; padding: 14px; border: 1px solid var(--gray-3); border-radius: 4px; font-size: 14px; line-height: 150%; resize: none; }
.order-cancel-request-modal__notice { margin-top: 20px; padding-left: 16px; list-style: disc; font-size: 12px; line-height: 150%; color: var(--gray-6); }
.order-cancel-request-modal__footer { display: flex; gap: 16px; padding: 0 20px 20px; }
.order-cancel-request-modal__footer button { flex: 1; }

@media screen and (max-width: 768px) {
    .order-cancel-request-modal__reason {
        padding-top: 30px;
    }
    .order-cancel-request-modal__body { padding-right: 16px; padding-left: 16px; }
    .order-cancel-request-modal__footer { gap: 10px; }
    .order-cancel-request-modal__notice {
        font-weight: 500;
    }
}


/**************************** 결제 페이지 모달·바텀시트 ****************************/
/* 결제 페이지 :: 쿠폰 목록 모달 */
.common-modal__container.payment-coupon-modal__container { display: flex; flex-direction: column; width: calc(100% - 32px); max-height: 700px; padding: 0; overflow: hidden; }
.payment-coupon-modal__body { flex: 1; padding: 0 20px 6px; max-height: 530px; min-height: 0; }
.payment-coupon-modal__list { display: flex; flex-direction: column; gap: 10px; }
.payment-coupon-modal__item { display: flex; align-items: flex-start; gap: 10px; padding: 13px 9px; border: 1px solid var(--gray-2); border-radius: 4px; cursor: pointer; }
.payment-coupon-modal__item input { flex: none; margin-top: 1px; }
.payment-coupon-modal__info { display: flex; flex-direction: column; min-width: 0; }
.payment-coupon-modal__info strong { margin-bottom: 2px; font-size: 20px; font-weight: 700; line-height: 150%; color: var(--main-color); }
.payment-coupon-modal__name { margin-bottom: 8px; font-size: 14px; font-weight: 500; line-height: 150%; }
.payment-coupon-modal__meta { margin-bottom: 5px; font-size: 14px; line-height: 150%; color: var(--gray-5); }
.payment-coupon-modal__meta em { margin-left: 6px; color: var(--red); }
.payment-coupon-modal__period { font-size: 13px; line-height: 150%; color: var(--gray-4); }
.payment-coupon-modal__item.is-disabled { color: var(--gray-4); background: var(--gray-1); cursor: default; }
.payment-coupon-modal__item.is-disabled strong,
.payment-coupon-modal__item.is-disabled .payment-coupon-modal__meta em { color: var(--gray-4); }
.payment-coupon-modal__footer { margin-top: 6px; padding: 10px 20px 20px; border-top: 1px solid var(--gray-2); }
.payment-coupon-modal__footer button { width: 100%; }

/* 결제 페이지 :: 배송 날짜·시간 선택 모달 */
.common-modal__container.delivery-datetime-modal__container { padding: 40px 0 0; }
.order-calendar-wrap.delivery-datetime-modal__picker { flex-direction: column; gap: 0; padding: 16px 30px; }
.delivery-datetime-modal__header { margin-bottom: 20px; text-align: center; }
.common-modal__container.delivery-datetime-modal__container .order-calendar { margin-bottom: 20px; padding-right: 0; padding-bottom: 20px; border-bottom: 1px solid #E6E6E6; border-right: 0; }
.delivery-datetime-modal__body { margin-bottom: 30px; padding: 0 20px; }
.delivery-datetime-modal__footer { display: flex; align-items: flex-start; gap: 10px; padding: 10px 20px 20px; border-top: 1px solid var(--gray-2); }
.delivery-datetime-modal__footer button { flex: 1; }
.common-modal__container.delivery-datetime-modal__container .order-time { padding-left: 0; }
.delivery-datetime-modal__handle { display: none; }
.delivery-datetime-modal .order-calendar__weekdays--mobile { display: none; }

/* 결제 페이지 :: 배송지 추가 모달 */
.common-modal__container.delivery-address-modal__container { display: flex; flex-direction: column; width: calc(100% - 32px); max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; }
.delivery-address-modal__body { flex: 1; min-height: 0; padding: 0 20px 30px; }
.delivery-address-modal__field label { display: inline-flex; align-items: center; gap: 5px; }
.delivery-address-modal__field + .delivery-address-modal__field { margin-top: 23px; }
.delivery-address-modal__field > input,
.delivery-address-modal__address > input,
.delivery-address-modal__select,
.delivery-address-modal__select .custom-select__trigger { width: 100%; }
.delivery-address-modal__address { gap: 10px; }
.delivery-address-modal__address-row { display: grid; grid-template-columns: minmax(0, 1fr) 100px; gap: 10px; }
.delivery-address-modal__address-row input { width: 100%; }
.delivery-address-modal__entrance { margin-top: 23px; }
.delivery-address-modal__entrance legend { display: flex; align-items: flex-start; gap: 2px; margin-bottom: 16px; padding: 0 4px; font-size: 14px; font-weight: 500; line-height: 150%; }
.delivery-address-modal__entrance-option { display: flex; align-items: center; gap: 8px; padding: 0; }
.delivery-address-modal__entrance-option + .delivery-address-modal__entrance-option { margin-top: 14px; }
.delivery-address-modal__entrance-option--code input[type="text"] { flex: 1; width: 100%; }
.delivery-address-modal__entrance-option--code input[type="text"]:disabled { color: var(--gray-5); background: var(--gray-1); }
.delivery-address-modal__notice { margin-top: 23px; font-size: 14px; font-weight: 400; line-height: 150%; color: var(--gray-5); }
.delivery-address-modal__footer { display: flex; gap: 10px; padding: 10px 20px 20px; border-top: 1px solid var(--gray-2); }
.delivery-address-modal__footer button { flex: 1; }

/* 결제 페이지 :: 배송지 변경 모달 */
.common-modal__container.delivery-address-change-modal__container { display: flex; flex-direction: column; width: calc(100% - 32px); max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; }
.delivery-address-change-modal__header { padding-bottom: 30px; }
.delivery-address-change-modal__body { flex: 1; min-height: 0; padding: 0 20px 30px; }
.delivery-address-change-modal__add { width: 100%; font-weight: 700; }
.delivery-address-change-modal__list { overflow-y: auto; display: flex; flex-direction: column; gap: 28px; max-height: 440px; margin-top: 22px; scrollbar-width: thin; scrollbar-color: #ccc transparent; }
.delivery-address-change-modal__list::-webkit-scrollbar { width: 4px; }
.delivery-address-change-modal__list::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 99px; }
.delivery-address-change-modal__list::-webkit-scrollbar-track { background: transparent; }
.delivery-address-change-modal__item { display: flex; align-items: flex-start; gap: 10px; }
.delivery-address-change-modal__item > input[type="radio"] { flex: none; margin-top: 1px; }
.delivery-address-change-modal__item-content { flex: 1; min-width: 0; }
.delivery-address-change-modal__name { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 0; cursor: pointer; }
.delivery-address-change-modal__name strong { font-size: 18px; font-weight: 700; line-height: 150%; }
.delivery-address-change-modal__name span { justify-content: center; align-items: center; padding: 2px 4px; border-radius: 2px; font-size: 12px; line-height: 150%; color: var(--gray-8); background: var(--gray-2); }
.delivery-address-change-modal__recipient { font-size: 14px; font-weight: 400; line-height: 150%; }
.delivery-address-change-modal__recipient strong { display: block; margin-bottom: 6px; font-size: 16px; font-weight: 600; line-height: 150%; }
.delivery-address-change-modal__recipient p + p { margin-top: 2px; }
.delivery-address-change-modal__item-actions { display: flex; gap: 10px; margin-top: 10px; }
.delivery-address-change-modal__footer { padding: 10px 20px 20px; border-top: 1px solid var(--gray-2); }
.delivery-address-change-modal__footer button { width: 100%; }

@media screen and (max-width: 768px) {
    /* 풀스크린 모달 공통 */
    .common-modal.modal-mobile--fullscreen .common-modal__container {
        max-width: 100dvw;
        width: 100dvw;
        max-height: 100dvh;
        height: 100dvh;
        border-radius: 0;
        border: none;
        box-shadow: 0 0 0;
     }
    .common-modal.modal-mobile--fullscreen .common-modal__header { padding: 23px 0 30px; }
    .common-modal.modal-mobile--fullscreen .common-modal__header:has(> .common-modal__title) { margin-bottom: 22px; }
    .common-modal.modal-mobile--fullscreen .common-modal__header > h2 { font-size: 18px; }
    .common-modal.modal-mobile--fullscreen .common-modal__close { top: 20px; }

 #delivery-datetime-modal { align-items: flex-end; }
 .common-modal__container.delivery-datetime-modal__container { display: flex; flex-direction: column; width: 100%; max-width: none; max-height: calc(100dvh - 40px); padding: 0; overflow: hidden; border: 0; border-radius: 20px 20px 0 0; box-shadow: none; }
 .delivery-datetime-modal__handle { display: flex; flex: none; justify-content: center; width: 100%; padding: 16px 0 10px; }
 .delivery-datetime-modal__header .common-modal__close { display: none; }
 .delivery-datetime-modal__header { margin-bottom: 0; padding: 0 16px 10px; }
 .delivery-datetime-modal__header > h2 { font-size: 16px; }
 .delivery-datetime-modal__body { min-height: 0; margin: 0; padding: 0; }
 .order-calendar-wrap.delivery-datetime-modal__picker { padding: 0; border: 0; }
 .common-modal__container.delivery-datetime-modal__container .order-calendar { width: 100%; margin: 0; padding: 20px 16px; border: 0; border-bottom: 8px solid var(--gray-2); }
 .delivery-datetime-modal .order-calendar__header { margin-bottom: 16px; }
 .delivery-datetime-modal .order-calendar__month { display: inline-flex; align-items: center; gap: 2px; }
 .delivery-datetime-modal .order-calendar__month img { display: block; width: 24px; height: 24px; }
 .delivery-datetime-modal .order-calendar__strip { width: 100%; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; touch-action: pan-x; }
 .delivery-datetime-modal .order-calendar__strip::-webkit-scrollbar { display: none; }
 .delivery-datetime-modal .order-calendar__weekdays--desktop { display: none; }
 .delivery-datetime-modal .order-calendar__weekdays--mobile,
 .delivery-datetime-modal .order-calendar__days { display: flex; gap: 0; width: max-content; max-width: none; overflow: visible; }
 .delivery-datetime-modal .order-calendar__weekdays span,
 .delivery-datetime-modal .order-calendar__day { flex: 0 0 40px; width: 40px; height: 40px; font-size: 16px; }
 .delivery-datetime-modal .order-calendar__weekdays span { color: var(--gray-6); }
 .common-modal__container.delivery-datetime-modal__container .order-time { gap: 20px; width: 100%; padding: 20px 16px; }
 .delivery-datetime-modal .order-time__title { margin-bottom: 8px; font-size: 14px; }
 .delivery-datetime-modal .order-time__list { gap: 10px; }
 .delivery-datetime-modal .order-time__item { padding: 10px 8px; }
 body:has(.order-payment) #month-select-sheet { z-index: 100001; }

 .modal-mobile--bottom-sheet { align-items: flex-end; }
 .modal-mobile--bottom-sheet .common-modal__container { justify-content: end; max-width: 100%; width: 100%; max-height: 95dvh; height: 95dvh; border-radius: 20px 20px 0 0; border: none; }
 .modal-mobile--bottom-sheet .common-modal__header { padding: 20px 0 24px; }
 .modal-mobile--bottom-sheet .common-modal__header > h2 { font-size: 16px; }
 .delivery-address-change-modal__list { max-height: unset; }
 .delivery-address-modal__body,
 .delivery-address-change-modal__body { padding-right: 16px; padding-left: 16px; }
 .delivery-address-modal__address-row { grid-template-columns: minmax(0, 1fr) 92px; }
 .delivery-address-modal__address-row .btnNormal { padding: 8px 14px; font-size: 14px; }
}

/**************************** 마이페이지 모달 ****************************/
/* 마이페이지 위시리스트 :: 삭제 확인 모달 */
.wishlist-delete-modal__container { max-width: 420px; }

/* 마이페이지 리뷰 관리 :: 리뷰 작성·수정 모달 */
.common-modal__container.review-write-modal__container { display: flex; flex-direction: column; width: calc(100% - 32px); max-width: 800px; max-height: 80dvh; padding: 0; overflow: hidden; }
.review-write-modal__header { padding: 40px 60px; }
.review-write-modal__header p { margin-top: 20px; font-size: 14px; font-weight: 500; line-height: 150%; color: var(--gray-7); }
.review-write-modal__content {
    margin-top: 20px;
}
.review-write-modal__body { flex: 1 1 auto; min-height: 0; padding: 0 20px; }
.review-write-modal__product { display: flex; align-items: center; gap: 10px; padding: 20px 10px; border-top: 1px solid var(--gray-2); border-bottom: 1px solid var(--gray-2); }
.review-write-modal__product img { width: 50px; height: 50px; border-radius: 4px; object-fit: cover; }
.review-write-modal__product strong { font-size: 14px; font-weight: 700; color: var(--gray-6); }
.review-write-modal__rating { margin-top: 20px; }
.review-write-modal__rating legend { margin-bottom: 10px; font-size: 16px; font-weight: 500; line-height: 150%; }
.review-write-modal__stars { display: flex; gap: 4px; }
.review-write-modal__stars button { display: flex; width: 40px; height: 40px; padding: 0; }
.review-write-modal__stars img { width: 100%; height: 100%; }
.review-write-modal__upload { margin-top: 30px; }
.review-write-modal__label { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.review-write-modal__label span { color: var(--gray-5); }
.review-write-modal__upload-button { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; padding: 10px 24px; border: 1px solid var(--gray-3); border-radius: 4px; font-size: 16px; font-weight: 600; cursor: pointer; }
.review-write-modal__upload-button:disabled { color: var(--gray-5); background: var(--gray-2); cursor: default; }
.review-write-modal__previews { display: flex; gap: 10px; margin: 10px 0; overflow-x: auto; cursor: grab; user-select: none; touch-action: pan-x; scrollbar-width: none; -ms-overflow-style: none; }
.review-write-modal__previews::-webkit-scrollbar { display: none; }
.review-write-modal__previews.is-dragging { cursor: grabbing; }
.review-write-modal__preview { display: flex; justify-content: center; align-items: center; flex: none; position: relative; width: 120px; height: 120px; margin-bottom: 10px; overflow: hidden; border-radius: 4px; background-color: var(--gray-2); }
.review-write-modal__preview-delete { position: absolute; right: 8px; top: 8px; display: flex; justify-content: center; align-items: center; width: 24px; height: 24px; border-radius: 4px; background: rgba(33, 33, 33, 0.40); }
.review-write-modal__preview-image { width: auto; height: auto; max-width: 120px; max-height: 120px; object-fit: contain; }
.review-write-modal__content-label,
.review-write-modal__field label { display: inline-block; position: relative; font-size: 14px; font-weight: 500; line-height: 150%; }
.review-write-modal__content-label em { display: block; position: absolute; right: -2px; top: 2px; width: 4px; height: 4px; border-radius: 100%; background: var(--red); }
.review-write-modal__field input[type="text"] {
    width: 100%;
}
.review-write-modal__content textarea { width: 100%; min-height: 204px; padding: 14px; resize: vertical; border: 1px solid var(--gray-3); border-radius: 4px; font: inherit; }
.review-write-modal__content textarea::placeholder { color: var(--gray-5); }
.review-write-modal__footer { padding: 20px; }
.review-write-modal__footer button { width: 100%; }

@media screen and (max-width: 768px) {
   .review-write-modal__product {
      padding: 16px 10px;
   }
   .review-write-modal__header p {
      margin-top: 16px;
   }
   .review-write-modal__label {
      gap: 8px;
   }
   .review-write-modal__upload-button {
      padding: 10px 24px;
      font-size: 14px;
      font-weight: 700;
      line-height: 1;
   }
}

/* 마이페이지 내 정보 수정 :: 회원탈퇴 모달 */
.common-modal__container.withdraw-modal__container { width: calc(100% - 32px); max-width: 500px; padding: 20px; }
.withdraw-modal__header { padding: 30px 0; text-align: center; }
#withdraw-modal .common-modal__body-inner h3 { margin-bottom: 8px; font-size: 16px; font-weight: 400; line-height: 150%; }
.withdraw-modal__notice { padding: 14px 40px; border-radius: 4px; font-size: 14px; font-weight: 400; line-height: 150%; background: var(--gray-1); }
.withdraw-modal__notice ul { padding-left: 20px; list-style: disc; }
.withdraw-modal__notice ul li::marker { font-size: 10px; }
.withdraw-modal__notice li + li { margin-top: 3px; }
.withdraw-modal__agree { display: flex; align-items: center; gap: 6px; margin-top: 30px; padding: 0; font-size: 16px; font-weight: 400; line-height: 150%; cursor: pointer; }
.withdraw-modal__agree input { flex: none; }
.withdraw-modal__buttons { display: flex; gap: 16px; margin-top: 38px; }
.withdraw-modal__buttons button { flex: 1; }



@media screen and (max-width: 768px) {
 .withdraw-modal__header { padding-bottom: 38px; }
 .withdraw-modal__notice { padding: 14px; }
 .withdraw-modal__buttons { gap: 10px; }

 .payment-coupon-modal__body {
    max-height: unset;
 }
 .common-modal__header > h2 {
   font-size: 16px;
 }
 #withdraw-modal .common-modal__body-inner h3 {
   margin-top: 0px;
   font-size: 12px;
 }
 .withdraw-modal__notice {
   padding: 10px 8px;
 }
 .withdraw-modal__notice {
    font-size: 12px;
 }
 .withdraw-modal__agree {
   gap: 9px;
   margin-top: 20px;
   font-size: 12px;
 }
 .withdraw-modal__buttons {
   margin-top: 30px;
 }
 .withdraw-modal__buttons button {
   padding: 10px 24px;
   font-size: 14px;
 }
}

/* 모바일 공통 모달 푸터 */
@media screen and (max-width: 768px) {
 .common-modal__footer { padding: 10px 16px 40px; border-top: 1px solid var(--gray-2); }
 .option-change-modal__form { padding: 0; }
 .option-change-modal__form > .common-modal__body { padding: 0 16px 20px; }
 .option-change-modal__buttons { margin-top: 0; }
}

/**************************** 레이아웃 연동 ****************************/
/* 모바일 :: 모달·바텀시트가 존재하는 페이지의 헤더·하단 메뉴 처리 */
@media screen and (max-width: 1024px) {
 body:has(.bottom-sheet, .order-product-modal, .product-purchase-sheet) .mobile-sub-header__home,
 body:has(.bottom-sheet, .order-product-modal, .product-purchase-sheet) .mobile-sub-header__cart { display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; }
 body:has(.bottom-sheet, .order-product-modal, .product-purchase-sheet) .m-menu-bar { display: none !important; }
}
@media screen and (max-width: 768px) {
 body:has(.bottom-sheet, .order-product-modal, .product-purchase-sheet) { padding-bottom: 0; }
}
