/* ===========================
   공통 팝업 기반 클래스
   =========================== */

/* 공용 차단 레이어 - 팝업이 하나라도 떠 있을 때만 출력된다.
   뒤쪽 콘텐츠/버튼 클릭을 막는 역할은 이 한 장이 전담한다 */
#popupBackdrop {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9990;
    /* 기존 팝업이 딤 없이 떠 있었으므로 투명 유지. 어둡게 하려면 rgba(0,0,0,0.4) */
    background: none;
}
/* 오버레이 배경 */
.popup-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: none;
    /* 오버레이는 화면 전체를 덮는 투명 div 라서, 그냥 두면 위에 깔린 오버레이가
       아래 팝업과 본문의 클릭을 전부 가로챈다. 클릭은 .popup-box 만 받게 한다 */
    pointer-events: none;
}
/* 콘텐츠 박스 */
.popup-box {
    position: relative;
    pointer-events: auto;
    box-sizing: border-box;
    width: 350px;
    background-color: #fff;
    border: 1px solid rgb(86, 119, 198);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
/* 공통 닫기 버튼 (우상단 X) */
.popup-close {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    overflow: hidden;
    text-indent: -9999px;
    background: url(../img/close_btn.png) center center no-repeat;
    background-size: contain;
    z-index: 1;
}
/* 공통 다시 보지 않기 */
.popup-noshow {
    padding: 8px 10px;
    display: flex;
    justify-content: flex-end;
    font-size: 13px;
    color: #666;
}
.popup-noshow label {
    cursor: pointer;
}

/* ===========================
   유틸리티
   =========================== */
.pos_a { position: absolute; }
.over_hd { overflow: hidden; }
.cursor { cursor: pointer; }
.mt10 { margin-top: 10px; }

/* ===========================
   .btn_02
   =========================== */
.btn_02,
.btn_02 * {
    display: inline-block;
    overflow: visible;
    margin: 0;
    padding: 0 0 0 2px;
    border: 0;
    background: url(../img/btn_02.gif) no-repeat;
    font-size: 12px;
    color: #333;
    text-decoration: none !important;
    vertical-align: top;
    white-space: nowrap;
}
.btn_02 { margin-top: 2px; margin-left: 4px; }
.btn_02 * { left: 4px; cursor: pointer; }
.btn_02.medium,
.btn_02.medium * { height: 21px; line-height: 21px; }
.btn_02.medium { background-position: left 0; }
.btn_02.medium * { padding: 0 10px 0 6px; background-position: right top; font-size: 12px; }
.btn_02 *:hover,
.btn_02 *:active,
.btn_02 *:focus { color: #636363; }
.btn_s01 {
    display: inline-block;
    padding: 0 8px;
    border: 1px solid #d1d1d1;
    background-color: #fff;
    height: 16px;
    line-height: 19px;
    font-size: 11px;
    color: #636363;
    font-weight: normal;
}

/* ===========================
   파일노리 — #uploaderLayer (이미지형)
   =========================== */
#uploaderLayer .popup-box {
    width: 400px;
    height: 437px;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    overflow: visible;
    line-height: 0;
}
.uploader-close {
    top: 8px;
    right: 47px;
    width: 26px;
    height: 26px;
}
.uploader-confirm {
    width: 86px;
    height: 34px;
    bottom: 103px;
    left: 110px;
    border-radius: 5px;
    text-indent: -100px;
}
.uploader-cancel {
    width: 86px;
    height: 34px;
    bottom: 103px;
    right: 112px;
    border-radius: 5px;
    text-indent: -100px;
}

/* ===========================
   파일노리 — #eventUploaderLayer (텍스트형)
   =========================== */
#eventUploaderLayer .popup-box {
    border-color: #3188FF;
}
.ev-uploader-header {
    width: 100%;
    height: 28px;
    background-color: #1a2a4a;
    color: #fff;
    line-height: 28px;
    font-size: 13px;
    font-weight: bold;
    padding: 0 12px;
    box-sizing: border-box;
}
.ev-uploader-title {
    padding: 18px 20px 10px;
    font-size: 17px;
    font-weight: bold;
    color: #3188FF;
    text-align: center;
}
.ev-uploader-body {
    display: block;
    padding: 14px 15px;
    line-height: 19px;
    border-top: 1px solid #DBDBDB;
    border-bottom: 1px solid #DBDBDB;
    background: #f3f4f6;
    margin: 10px;
    font-size: 13px;
    color: #555;
}
.ev-uploader-footer {
    width: 100%;
    padding: 12px 0;
    background-color: #fff;
    text-align: center;
    box-sizing: border-box;
}
.ev-uploader-btn {
    background-color: #3188FF;
    color: #fff;
    border: none;
    padding: 8px 36px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}
.ev-uploader-btn:hover {
    background-color: #1476ff;
}

/* ===========================
   파일노리 — #event290Layer (이미지형)
   =========================== */
#event290Layer .popup-box {
    width: 446px;
    height: 427px;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: url(/cdn/img/layerpop.gif) no-repeat;
    overflow: visible;
}
.ev290-close {
    top: -12px;
    right: -12px;
    width: 26px;
    height: 26px;
}
.ev290-join {
    position: absolute;
    bottom: 35px;
    left: 50%;
    margin-left: -86px;
    cursor: pointer;
}
/* ===========================
   파일노리 — #eventPayLayer (결제 이벤트 이미지형)
   =========================== */
#eventPayLayer {
    display: block;
    z-index: 9996;
}
#eventPayLayer .popup-box {
    position: absolute;
    right: 20%;
    bottom: 10%;
    width: 340px;
    height: 340px;
    padding: 0;
    border: none;
    border-radius: 12px;
    box-shadow: none;
    background: transparent;
    overflow: visible;
    line-height: 0;
}
.evpay-img {
    display: block;
    width: 340px;
    height: 340px;
    border: none;
    outline: none;
    box-shadow: none;
    border-radius: 12px;
    cursor: pointer;
}

/* ===========================
   파일노리 — #eventCounselLayer (이용후기 이벤트 이미지형)
   결제 이벤트 레이어(#eventPayLayer) 바로 위에 붙인다
   =========================== */
#eventCounselLayer {
    display: block;
    z-index: 9997;
}
#eventCounselLayer .popup-box {
    position: absolute;
    right: 20%;
    /* #eventPayLayer 의 bottom(10%) + 높이(340px) + 간격(10px) */
    bottom: calc(17% + 350px);
    width: 340px;
    height: 340px;
    padding: 0;
    border: none;
    border-radius: 12px;
    box-shadow: none;
    background: transparent;
    overflow: visible;
    line-height: 0;
}
.evcounsel-img {
    display: block;
    width: 350px;
    height: 400px;
    border: none;
    outline: none;
    box-shadow: none;
    border-radius: 12px;
    cursor: pointer;
}

/* 불법촬영물 안내 레이어는 결제 이벤트 레이어 뒤로 */
#eventUploaderLayer {
    z-index: 9998;
}
