/* ==================================================================== */
/* 레이어팝업 공통 스타일                                                  */
/* ==================================================================== */

:root {
    /* 색상 토큰화(스타일 불변) */
    --c-black-900: #18181D;
    --c-gray-900: #2e2e33;
    --c-gray-700: #767676;
    --c-gray-600: #666;
    --c-gray-500: #0d0d0d;
    --c-gray-300: #ddd;
    --c-gray-200: #E4E4E7;
    --c-bg-th-1: #f3f1ed;
    --c-bg-th-2: #f2f1eb;
    --c-bg-cell-1: #F4F4F6;
    --c-white: #fff;
    --c-point: #EA1917;
}

/* ---------------------------------- */
/* Overlay                            */
/* ---------------------------------- */
#popupWrap {
    display: none;
    position: fixed;
    z-index: 99;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}
#popupWrap.active { display: block; }

/* ---------------------------------- */
/* Base popup                         */
/* ---------------------------------- */
.popup { background-color: var(--c-white); z-index: 9; }
.popup h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--c-black-900);
    letter-spacing: -0.02em;
}

/* subtitle */
.popup .pop-sub-title{
    font-size: 22px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.04rem;
    color: var(--c-gray-900);
    margin-top: 8px;
}

/* list */
.popup ul { margin-top: 16px; }
.popup ul li{
    position: relative;
    padding-left: 20px;
    font-size: 20px;
    line-height: 1.2;
    color: var(--c-gray-700);
}
.popup ul li:nth-child(1)::before{
    content: "·";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 20px;
    color: var(--c-gray-700);
    line-height: 20px;
}

/* close (product popup) */
.ui_modal_wrap .popup-wrap .btn-close {
    position: absolute;
    top: 30px;
    right: 40px;
    width: 50px;
    height: 50px;
}
.ui_modal_wrap .popup-wrap .btn-close::before{
    content: ' ';
    position: absolute;
    top: -4px;
    left: -6px;
    padding: 30px;
    width: 28px;
    height: 28px;
    background: url('/kr/event/common/component/images/icon-popup-close.png') no-repeat;
    background-size: 28px;
    background-position: center;
}

/* ---------------------------------- */
/* Popup specific (efficiency-01)     */
/* ---------------------------------- */
#popup-efficiency-01{
    max-width: 704px;
    min-height: auto !important;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    font-family: 'Pretendard';
}

/* ---------------------------------- */
/* Popup wrap common header/close     */
/* ---------------------------------- */
.popup-wrap .c-popup-desc-title{
    font-size: 32px;
    font-weight: 700;
    color: #18181d;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}
.popup-wrap .c-popup-desc-title span{ color: var(--c-point); }

.popup-wrap .pop-conts{ padding: 64px 32px; }

.popup table{ font-family: 'Pretendard'; }

/* ---------------------------------- */
/* Product popup table (popup-prd)    */
/* ---------------------------------- */
.popup-wrap.popup-prd{
    max-width: 1200px;
    min-height: auto !important;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    font-family: 'Pretendard';
}


/* product popup table structure */
.popup-wrap.popup-prd table{
    border-collapse: collapse;
    text-align: left;
    width: 100%;
    border: 1px solid var(--c-gray-300);
}

/* ---------------------------------- */
/* Responsive                         */
/* ---------------------------------- */
.mo_br{ display: none; }

@media screen and (max-width: 767px){

    .mo_br{ display: block; }

    /* popup base responsive */
    .popup{
        padding: calc(64 / 720 * 100vw) 0;
    }
    .popup h3{ font-size: calc(32 / 720 * 100vw); }
    .popup .pop-sub-title{
        font-size: calc(28 / 720 * 100vw);
        margin-top: calc(8 / 720 * 100vw);
    }
    .popup ul{ margin-top: calc(16 / 720 * 100vw); }
    .popup ul li{
        padding-left: calc(20 / 720 * 100vw);
        font-size: calc(26 / 720 * 100vw);
    }
    .popup ul li:nth-child(1)::before{
        font-size: calc(26 / 720 * 100vw);
        line-height: calc(26 / 720 * 100vw);
    }
    .popup .modal-close{
        top: calc(30 / 720 * 100vw);
        right: calc(30 / 720 * 100vw);
        width: calc(36 / 720 * 100vw);
        height: calc(36 / 720 * 100vw);
    }

    /* popup-wrap common responsive */
    .popup-wrap .pop-conts{ padding: 0 calc(32 / 720 * 100vw); }
    .popup-wrap .c-popup-desc-title{
        font-size: calc(32 / 720 * 100vw);
        margin-bottom: calc(24 / 720 * 100vw);
    }

    .ui_modal_wrap .popup-wrap .btn-close {
        position: absolute;
        top: calc(21 / 720 * 100vw);
        right: calc(30 / 720 * 100vw);
        width: calc(50 / 720 * 100vw);
        height: calc(50 / 720 * 100vw);
    }
    .ui_modal_wrap .popup-wrap .btn-close::before{
        content: ' ';
        position: absolute;
        top: calc(-5 / 720 * 100vw);
        left: calc(-7 / 720 * 100vw);
        padding: calc(30 / 720 * 100vw);
        width: calc(36 / 720 * 100vw);
        height: calc(36 / 720 * 100vw);
        background: url('/kr/event/common/component/images/icon-popup-close.png') no-repeat;
        background-size: calc(36 / 720 * 100vw);
        background-position: center;
    }
}
