.modal-wrap {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background-color: rgba(2,2,2,0.6);
    justify-content: center;
    align-items: center;
}
.modal {
    position: relative;
    max-width: 500px;
    max-height: 78%;
    width: 100%;
    display: inline-flex;
}
.modal-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border-radius: var(--modal-radius);
}
.modal-content:not(:has(.modal-footer)) {
    padding-bottom: var(--modal-padding);
}
.modal-header {
    padding: var(--modal-padding);
    display: flex;
    justify-content: space-between;
    column-gap: 50px;
}
.modal-header h5 {
    font-size: 1.8rem;
    font-weight: 600;
}
.modal-header .close {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.modal-body {
    padding: 0 var(--modal-padding);
    font-size: 1.5rem;
    line-height: 1.4;
    height: 100%;
    overflow-y: auto;
}
.modal-footer {
    padding: var(--modal-padding);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-sm {
    max-width: 350px;
}
.modal-md {
    max-width: 650px;
}
.modal-lg {
    max-width: 800px;
}
.modal-xl {
    max-width: 1200px;
}
.modal-full {
    max-width: 100%;
    width: 100%;
}
@media (max-width: 1220px) {
    .modal-wrap:has(.modal-xl) {
        align-items: flex-end;
    }
    .modal-xl {
        max-width: none;
        max-height: 90%;
    }
}
@media (max-width: 991px) {
    .modal-header h5 {
        font-size: 1.6rem;
    }
}
@media (max-width: 767px) {
    .modal-wrap {
        align-items: flex-end;
    }
    .modal {
        max-width: none;
        max-height: 90%;
    }
    .modal-content {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
}

/* 비회원 로그인 */
#nonMemberLoginModal input.form-control:focus-visible {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--scMain) 30%, transparent);
}
#zed {
    color: var(--scGrey);
    text-decoration: underline;
    margin-top: 8px;
    text-underline-offset: 3px;
    font-size: 1.4rem;
}
@media (max-width: 991px) {
    #zed {
        font-size: 1.3rem;
    }
}

/* 메인 열리자마자 바로 보이는 팝업 */
#popupModal {
    background-color: rgba(0,0,0,0.6);
}
#popupModal .modal {
    width: auto;
}
.mainPopup {
    width: 350px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 10px 0 rgba(0,0,0,0.2);
}
.mainPopup-link {
    cursor: pointer;
}
.mainPopup img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}
.mainPopup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    background-color: #fff;
}
.mainPopup-footer button {
    font-size: 1.4rem;
    font-weight: 500;
    color: #888;
    padding: 15px 20px;
}
.mainPopup-pagination {
    position: absolute;
    bottom: 60px;
    right: 10px;
    z-index: 2;
    width: 55px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 10px;
    background-color: rgba(34, 34, 34, 0.3);
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}
.mainPopup-pagination .swiper-pagination-current {
    color: #fff;
}

@media (max-width: 767px) {
    #popupModal .modal {
        width: 100%;
    }
    .mainPopup {
        width: 100%;
        border-radius: 20px 20px 0 0;
    }
    .mainPopup-link {
        background-color: #fff;
    }
    .mainPopup img {
        max-width: 500px;
        height: auto;
    }
    .mainPopup-footer button {
        font-size: 1.3rem;
        color: var(--scBlack);
    }
}

/* 메인슬라이드 이벤트 배너 모아보기 */
#mainSlideAllModal.modal-wrap {
    overflow-y: auto;
    align-items: flex-start;
}
#mainSlideAllModal .modal {
    max-height: initial;
}
#mainSlideAllModal .modal-content {
    margin: 0 auto;
    background: transparent;
}
#mainSlideAllModal .modal-body {
    overflow-y: initial;
}
.mainSlide-eventBanner-List>li {
    position: relative;
}
.mainSlide-eventBanner-List img {
    width: 100%;
}
@media (min-width: 991.02px) {
    #mainSlideAllModal.modal-wrap {
        background-color: rgba(0,0,0,.7);
    }
    #mainSlideAllModal .modal-content {
        position: relative;
        max-width: 650px;
        padding-top: 25px;
    }
    #mainSlideAllModal .modal-close {
        background-image: url("/image/common/x_white.png");
        background-size: 14px;
        width: 32px;
        height: 32px;
    }
    #mainSlideAllModal .modal-header {
        position: absolute;
        top: 33px;
        right: calc(var(--modal-padding) + 8px);
        background: rgba(0,0,0,.55);
        border-radius: 50%;
        column-gap: 0;
        padding: 0;
        z-index: 1;
    }
    #mainSlideAllModal .modal-header h5 {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        text-indent: -999px;
    }
    .mainSlide-eventBanner-List {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
}
@media (max-width: 991px) {
    #mainSlideAllModal.modal-wrap {
        align-items: flex-end;
    }
    #mainSlideAllModal .modal {
        max-height: 90%;
    }
    #mainSlideAllModal .modal-content {
        background: #fff;
        height: 100%;
        border-radius: var(--modal-radius) var(--modal-radius) 0 0;
        padding-bottom: 0;
    }
    #mainSlideAllModal .modal-body {
        padding: 0;
        overflow-y: auto;
    }
}

/* 마이페이지 파일 미리보기 */
.filePreview-img {
    max-width: 350px;
    margin: 0 auto 15px;
}
.filePreview-img:has(iframe) {
    height: 470px;
}
.filePreview-img img {
    aspect-ratio: 1/1;
    object-fit: contain;
}
#filePreviewModal textarea {
    height: 100px;
}
#filePreviewModal .modal-body {
    padding-top: 25px;
    border-top: 1px solid var(--scLine);
}

/* 마이페이지 시안 미리보기 */
#draftPreviewModal .modal-body,
#filePreviewModal .modal-body {
    padding-top: 25px;
    border-top: 1px solid var(--scLine);
}
#draftPreviewModal iframe,
#filePreviewModal iframe {
    height: 100%;
}
#draftPreviewModal .no-preview,
#filePreviewModal .no-preview {
    text-align: center;
    font-weight: 500;
    height: 30vh;
    line-height: 30vh;
}

/* 마케팅 동의 모달 */
.marketingAgree-tit {
    font-size: 1.1em;
    text-align: center;
}
.marketingAgree-tit b {
    color: var(--scPoint);
}
.marketingAgree-txt {
    background: #efefef;
    padding: 15px;
    margin-top: 15px;
}
.marketingAgree-txt>div:first-child {
    font-weight: 550;
    text-align: center;
    margin-bottom: 15px;
}
.marketingAgree-txt>div:nth-of-type(2) {
    font-size: .95em;
}

/* 1:1문의 모달 */
.qnaTypes {
    width: 100%;
    display: flex;
    gap: 8px;
}
.qnaTypes>select {
    flex: 1;
}
.qnaProductSelect {
    display: none;
    justify-content: center;
    position: relative;
}
.qnaModal-guideTxt {
    display: inline-block;
    margin-top: 12px;
    font-size: 1.4rem;
}
#ftQnaModal input {
    font-size: 1.4rem;
}

/* 1:1문의 상품선택 */
#productModalContent .modal-header {
    align-items: center;
    padding-left: 15px;
}
#productModalContent .pageBack-btn {
    width: 22px;
    height: 22px;
}
#productModalContent .modal-body {
    padding: 0;
}
.qnaProducts {
    font-size: 1.4rem;
    padding: 0 var(--gutter-x);
}
.qnaProducts+.qnaProducts {
    border-top: 10px solid #f7f7f7;
    margin-top: 20px;
    padding-top: 15px;
}
.qnaProducts-DATECODE {
    margin-bottom: 8px;
}
.qnaProducts-DATECODE>span:nth-child(2) {
    color: #767676;
}
.qnaProduct {
    display: flex;
}
.qnaProduct+.qnaProduct {
    border-top: 1px solid var(--scLine);
    margin-top: 15px;
    padding-top: 15px;
}
.qnaProduct>label {
    align-self: start;
}
.qnaProduct>label input {
    width: 16px;
    height: 16px;
}
.qnaProduct-thumb {
    display: block;
    width: 52px;
    height: 52px;
}
.qnaProduct-thumb img {
    height: 100%;
}
.qnaProduct-info {
    margin-left: 15px;
}
.qnaProduct-name {
    font-weight: 600;
}
.qnaProduct-num {
    font-weight: 400;
    color: #686868;
}
.qnaProduct-option {
    display: flex;
    align-items: end;
    color: #686868;
}
.qnaProduct-option>span:nth-child(2),
.qnaProducts-DATECODE>span:nth-child(2) {
    position: relative;
    margin-left: 8px;
    padding-left: 8px;
    font-size: .95em;
}
.qnaProduct-option>span:nth-child(2)::before,
.qnaProducts-DATECODE>span:nth-child(2)::before {
    content: '';
    display: inline-block;
    background: var(--scLine);
    width: 1px;
    height: 12px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}
@media (max-width: 991px) {
    #productModalContent .pageBack-btn {
        position: initial;
    }
}

/* 렌탈상담신청 모달 */
.rentalConsent_check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
}
.rentalConsent_check i {
    font-style: normal;
    cursor: pointer;
    font-size: 11px;
}
.rentalConsentTxt {
    display: none;
    max-height: 320px;
    overflow-y: auto;
}

/* 배송지 등록 모달 */
.find-address {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.find-address>div {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 카카오 주소 모달 */
[id^="__daum__layer"] {
    max-width: 100%;
}

/* 댓글이벤트 페이지 링크공유하기 모달 */
#linkCopyModal .modal {
    width: 370px;
    border-radius: 15px;
}
#linkCopyModal .commonModal-close i {
    width: 17px;
    height: 17px;
}
#linkCopyModal h4 {
    font-weight: 500;
    font-size: 1.6rem;
}
#linkCopyModal ul {
    display: flex;
    justify-content: space-between;
    padding: 20px 0 10px;
}
#linkCopyModal ul li a {
    font-size: 12px;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#linkCopyModal ul li img {
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* idx 상품 공유하기 팝 */
.snsShare-pop {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 320px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--scLine);
    box-shadow: 4px 8px 12px 0 rgba(0, 0, 0, .04);
    z-index: 1;
}
.snsShare-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.snsShare-header h5 {
    font-weight: 500;
}
.snsShare-header>button {
    width: 16px;
    height: 15px;
}
.snsShare-List {
    display: flex;
    justify-content: center;
    column-gap: 10px;
}
.snsShare-List>a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
}
.kakao-share {
    background: #fee500;
}
.snsShare-List img {
    width: 45%;
    height: 45%;
}
.linkCopy {
    border: 1px solid var(--scLine);
    height: 40px;
    display: flex;
    justify-content: space-between;
    border-radius: 7px;
    margin-top: 15px;;
    overflow: hidden;
}
.linkCopy input {
    flex-grow: 1;
    padding-left: 10px;
    color: var(--scGrey);
    font-size: 12px;
}
.linkCopy>a {
    height: 100%;
    align-content: center;
    padding: 0 10px;
    font-size: 1.3rem;
    font-weight: 500;
    border-left: 1px solid var(--scLine);
}
@media (max-width: 991px) {
    .snsShare-header h5 {
        font-size: 1.3rem;
    }
    .linkCopy>a {
        font-size: 1.2rem;
    }
}

/* idx 쿠폰받기 모달 */
#idxCouponsModal {
    .each-coupon {
        border: 1px solid var(--scLine);
        border-radius: var(--card-radius);
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }
    .each-coupon + .each-coupon {
        margin-top: 10px;
    }
    .each-coupon .content {
        padding: 15px 20px;
    }
    .coupon-discountPrice {
        font-size: 2.4rem;
        font-weight: 600;
        color: var(--scMain);
    }
    .coupon-tit {
        font-size: 1.6rem;
        font-weight: 500;
    }
    .coupon-period {
        font-size: 1.4rem;
        color: #666;
        margin-top: 10px;
    }
    .coupon-download {
        width: 90px;
        flex-shrink: 0;
        border-left: 1px solid var(--scLine);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .coupon-download i {
        font-style: normal;
        font-size: 3rem;
    }
    .coupon-guide {
        margin-top: 25px;
        font-size: 1.4rem;
    }
}

/* idx 상품옵션 모달 */
#subordinateModal .modal-content {
    min-height: 350px;
}
.subordinate-list_modal {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.subordinate_modal {
    border: 1px solid var(--scLine);
    border-radius: 5px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    gap: 25px;
    cursor: pointer;
}
.subordinate-list_modal b ~ b {
    margin-top: 10px;
}
.subordinate-name {
    font-weight: 500;
}
.subordinate-price-group {
    flex-shrink: 0;
    font-size: 1.4rem;
    text-align: right;
}
.subordinate-price-group del {
    color: var(--scGrey);
}
@media (max-width: 991px) {
    .subordinate-list_modal {
        font-size: 1.4rem;
        gap: 8px;
    }
    .subordinate_modal {
        padding: 10px 8px;
    }
}

/* corr-idx 업체 사진 더보기 모달 */
.corr-album-List {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.corr-album-List>li {
    cursor: pointer;
}
.corr-album-List img {
    border-radius: 5px;
}
.corr-albumToggle-btn {
    border: 1px solid var(--scLine);
    border-radius: 35px;
    color: var(--scMain);
    font-size: 1.5rem;
    font-weight: 700;
    padding: 5px 15px;
}
.corr-album-swiper img {
    max-height: 700px;
}
.corr-album-swiper .corr-item-prev,
.corr-album-swiper .corr-item-next {
    width: 42px;
    height: 42px;
}
@media (max-width: 991px) {
    .corr-album-List {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .corr-album-List {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* idx - 상품 예약하기 */
#calendar {
    box-shadow: rgba(149, 157, 165, 0.2) 0 8px 24px;
    padding: 15px 10px 5px;
    max-width: 300px;
    margin: 0 auto 5px;
}
.reservation-modal-content {
    margin-top: 15px;
}
.reservation-modal-content h3 {
    font-weight: 600;
}
.reservation-modal-content h3 ~ h3 {
    margin-top: 25px;
}
.reservation-modal-guide {
    font-size: 12px;
    color: var(--scGrey);
    text-align: center;
}
.reservation-option {
    margin-top: 5px;
    padding-left: 15px;
    font-size: 1.4rem;
}
.reservation-option-txt {
    font-weight: 500;
    margin-bottom: 5px;
}
.reservation-option-txt ~.reservation-option-txt  {
    margin-top: 15px;
}
.usage-time {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 5px;
}
.usage-time-btn {
    border: 1px solid #ebebeb;
    padding: 3px 12px;
    font-size: 1.3rem;
    background: var(--card-bg-color);
    cursor: pointer;
}
.usage-time-btn.on {
    border-color: #333;
}
.usage-time-btn input[type="radio"] {
    display: none;
}
.count-control {
    display: inline-flex;
    height: 25px;
    border: 1px solid #ebebeb;
}
.selectPeople-btn {
    background-color: var(--card-bg-color);
    width: 25px;
    height: 100%;
}
.count-control input {
    text-align: center;
    max-width: 35px;
    font-size: 12px;
    border-left: 1px solid #ebebeb;
    border-right: 1px solid #ebebeb;
}
#reservation-modal .modal-footer {
    justify-content: end;
}
.reserve-btn {
    border: 1px solid #ebebeb;
    background: var(--card-bg-color);
    padding: 7px 20px;
    font-size: 1.4rem;
    font-weight: 500;
}
.reserve-btn::after {
    content: "";
    clear: both;
}
/* 배송지 목록 */
.addrList {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.addrList-ele {
    border: 1px solid var(--scLine);
    padding: 15px;
    border-radius: 10px;
}
.addrList-ele>div:not(.addr-title) {
    font-size: 1.4rem;
}
.addr-title {
    display: flex;
    justify-content: space-between;
}
.addr-title h2 {
    font-weight: 600;
}
.addr-title.default h2 {
    color: var(--scMain);
}
.addr-btn-group {
    display: flex;
    gap: 5px;
}

.addr-recipient {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}
.addr-memo {
    color: var(--scGrey);
    margin-top: 12px;
}
@media (max-width: 991px) {
    #addrListModal .modal-body:has(.addrList) {
        padding: 0;
    }
    .addrList {
        gap: 0;
    }
    .addrList-ele {
        border: none;
        border-bottom: 8px solid #f7f7f7;
        border-radius: 0;
    }
    .addr-title {
        font-size: 1.4rem;
    }
    .addr-recipient {
        gap: 6px;
    }
    .addr-memo {
        margin-top: 8px;
    }

}

/* Shared postcode geometry: one viewport-bound frame, no outer nested scroll. */
.shop-address-modal { box-sizing: border-box; padding: var(--modal-padding); align-items: center; }
.shop-address-modal > .modal { block-size: min(650px, calc(100dvh - 2 * var(--modal-padding))); max-block-size: none; }
.shop-address-modal .modal-content { min-block-size: 0; padding-block-end: 0; border-radius: var(--modal-radius); overflow: hidden; }
.shop-address-modal .modal-header { flex: 0 0 auto; }
.shop-address-modal .modal-body { flex: 1 1 auto; min-block-size: 0; block-size: auto; padding: 0; overflow: hidden; }
.shop-address-modal #embedDiv { inline-size: 100%; block-size: 100%; }
dialog.shop-address-dialog { overflow: hidden; inline-size: min(650px, calc(100vw - 2 * var(--modal-padding))); block-size: min(650px, calc(100dvh - 2 * var(--modal-padding))); max-block-size: none; margin: auto; inset: 0; }
dialog.shop-address-dialog[open] { display: flex; flex-direction: column; }
.shop-address-dialog .product-detail-write-head { flex: 0 0 auto; }
.shop-address-dialog .product-detail-write-body { flex: 1 1 auto; min-block-size: 0; padding: 0; overflow: hidden; }
.shop-address-dialog #memberAddressSearch { inline-size: 100%; }

/* Shared address picker follows the checkout's compact hierarchy. */
#addrListModal .modal-header h5{font-size:15px;font-weight:600;line-height:1.5}
#addrListModal .addrList{gap:0}
#addrListModal .addrList-ele{padding:14px 16px;border:0;border-bottom:1px solid var(--color-border-default,#e4eaf2);border-radius:0;background:var(--color-surface-base,#fff)}
#addrListModal .addr-title{align-items:center;gap:8px}
#addrListModal .addr-title h2{font-size:13px;font-weight:600;line-height:1.5}
#addrListModal .addrList-ele>div:not(.addr-title){font-size:13px;line-height:1.5}
#addrListModal .addrList-ele .addr-memo{font-size:12px;line-height:1.5;margin-top:6px;color:var(--color-text-secondary)}
#addrListModal .addr-btn-group{flex:none;align-items:center;gap:6px}
#addrListModal .modal-footer{gap:8px}