@charset "utf-8";
/* 전체 팝업(슬라이드) — popup_opener addon, 2026-09-03 */

body.xsp-open { overflow: hidden; }

#xe_slide_popup_wrap {
    position: fixed; inset: 0; z-index: 100000000;
    display: flex; align-items: center; justify-content: center;
    padding: 8px; box-sizing: border-box;
}
#xe_slide_popup_wrap.xsp-dim { background: rgba(0,0,0,.55); }
#xe_slide_popup_wrap.xsp-pc { padding: 24px; }
/* 전체 팝업 정렬 (관리자 설정, 개별 팝업 정렬보다 우선) */
#xe_slide_popup_wrap.xsp-align-left { justify-content: flex-start; }
#xe_slide_popup_wrap.xsp-align-center { justify-content: center; }
#xe_slide_popup_wrap.xsp-align-right { justify-content: flex-end; }
#xe_slide_popup_wrap.xsp-pc.xsp-align-left { padding-left: 40px; }
#xe_slide_popup_wrap.xsp-pc.xsp-align-right { padding-right: 40px; }

#xe_slide_popup_wrap .xsp-box {
    position: relative; background: #fff; border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
    max-width: 100%; box-sizing: border-box; overflow: hidden;
    display: flex; flex-direction: column;
}
#xe_slide_popup_wrap .xsp-box.xsp-anim { transition: width .3s ease; }

/* 헤더 */
#xe_slide_popup_wrap .xsp-head {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; background: #222; color: #fff; font-size: 13px; line-height: 1.4;
}
#xe_slide_popup_wrap .xsp-counter { font-weight: 700; white-space: nowrap; }
#xe_slide_popup_wrap .xsp-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85; }
#xe_slide_popup_wrap .xsp-close-x {
    background: none; border: 0; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 0 2px;
}

/* 슬라이드 */
#xe_slide_popup_wrap .xsp-viewport { position: relative; overflow: hidden; transition: height .3s ease; }
#xe_slide_popup_wrap .xsp-track { display: flex; transition: transform .35s ease; will-change: transform; }
#xe_slide_popup_wrap .xsp-slide { flex: 0 0 auto; }
#xe_slide_popup_wrap .xsp-slide-inner { box-sizing: border-box; }
#xe_slide_popup_wrap .xsp-slide-inner.xsp-linked { cursor: pointer; }
#xe_slide_popup_wrap .xsp-slide-inner img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
#xe_slide_popup_wrap .xsp-slide-inner p { margin: 0; }
#xe_slide_popup_wrap .xsp-slide-inner iframe { display: block; border: 0; }

/* 좌우 화살표 */
#xe_slide_popup_wrap .xsp-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border: 0; border-radius: 50%;
    background: rgba(0,0,0,.45); color: #fff; font-size: 26px; line-height: 36px;
    cursor: pointer; padding: 0; z-index: 2;
}
#xe_slide_popup_wrap .xsp-prev { left: 8px; }
#xe_slide_popup_wrap .xsp-next { right: 8px; }
#xe_slide_popup_wrap .xsp-nav:hover { background: rgba(0,0,0,.7); }
#xe_slide_popup_wrap.xsp-mobile .xsp-nav { width: 30px; height: 30px; line-height: 30px; font-size: 22px; }

/* 도트 */
#xe_slide_popup_wrap .xsp-dots { display: flex; justify-content: center; gap: 6px; padding: 8px 0 4px; }
#xe_slide_popup_wrap .xsp-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: #ccc; padding: 0; cursor: pointer; }
#xe_slide_popup_wrap .xsp-dot.on { background: #222; }

/* 아코디언 (팝업 갯수 / 목록) */
#xe_slide_popup_wrap .xsp-acc { border-top: 1px solid #eee; }
#xe_slide_popup_wrap .xsp-acc-toggle {
    width: 100%; text-align: left; background: #f7f7f7; border: 0; padding: 8px 12px;
    font-size: 13px; color: #333; cursor: pointer; display: flex; align-items: center; gap: 6px;
}
#xe_slide_popup_wrap .xsp-acc-toggle b { color: #d33; }
#xe_slide_popup_wrap .xsp-arrow {
    margin-left: auto; width: 7px; height: 7px; border-right: 2px solid #666; border-bottom: 2px solid #666;
    transform: rotate(45deg); transition: transform .2s;
}
#xe_slide_popup_wrap .xsp-acc.open .xsp-arrow { transform: rotate(-135deg); }
#xe_slide_popup_wrap .xsp-acc-list { display: none; list-style: none; margin: 0; padding: 4px 0; max-height: 140px; overflow-y: auto; background: #fff; }
#xe_slide_popup_wrap .xsp-acc.open .xsp-acc-list { display: block; }
#xe_slide_popup_wrap .xsp-acc-list button {
    width: 100%; text-align: left; background: none; border: 0; padding: 6px 14px;
    font-size: 13px; color: #444; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#xe_slide_popup_wrap .xsp-acc-list button:hover { background: #f2f2f2; }
#xe_slide_popup_wrap .xsp-acc-list button.on { color: #d33; font-weight: 700; }

/* 하단 */
#xe_slide_popup_wrap .xsp-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; background: #222; color: #fff; font-size: 13px;
}
#xe_slide_popup_wrap .xsp-foot-left { display: flex; align-items: center; gap: 6px; }
#xe_slide_popup_wrap .xsp-foot input { margin: 0; width: 14px; height: 14px; cursor: pointer; }
#xe_slide_popup_wrap .xsp-foot label { cursor: pointer; color: #fff; margin: 0; }
#xe_slide_popup_wrap .xsp-close {
    background: #fff; color: #222; border: 0; border-radius: 4px; padding: 5px 14px; font-size: 13px; cursor: pointer;
}

/* ===== 표시 방식(2026-09-08): 목록형 / 하단탭 / 우측탭 ===== */
#xe_slide_popup_wrap .xsp-body { display: flex; align-items: stretch; }
#xe_slide_popup_wrap .xsp-main { position: relative; flex: 0 0 auto; }
#xe_slide_popup_wrap .xsp-main .xsp-nav { top: 50%; }

/* 하단탭 — 전체 폭을 팝업 갯수(최대 4)로 균등 분할, 마지막 줄 남는 항목은 폭을 늘려 채움 (5개 → 4 + 1개 전체폭) */
#xe_slide_popup_wrap.xsp-style-bottom .xsp-tabs {
    display: flex; flex-wrap: wrap; border-top: 1px solid #ddd; background: #fff;
}
#xe_slide_popup_wrap.xsp-style-bottom .xsp-tab {
    flex: 1 1 25%; min-width: 25%; box-sizing: border-box;
    border: 0; border-right: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; background: #fff;
    padding: 11px 6px; font-size: 13px; color: #333; cursor: pointer;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#xe_slide_popup_wrap.xsp-style-bottom .xsp-tab:nth-child(4n), #xe_slide_popup_wrap.xsp-style-bottom .xsp-tab:last-child { border-right: 0; }
#xe_slide_popup_wrap.xsp-style-bottom .xsp-tab:hover { background: #f4f4f4; }
#xe_slide_popup_wrap.xsp-style-bottom .xsp-tab.on { background: #222; color: #fff; }
#xe_slide_popup_wrap.xsp-mobile.xsp-style-bottom .xsp-tab { flex-basis: 50%; min-width: 50%; }
#xe_slide_popup_wrap.xsp-mobile.xsp-style-bottom .xsp-tab:nth-child(4n) { border-right: 1px solid #e5e5e5; }
#xe_slide_popup_wrap.xsp-mobile.xsp-style-bottom .xsp-tab:nth-child(2n), #xe_slide_popup_wrap.xsp-mobile.xsp-style-bottom .xsp-tab:last-child { border-right: 0; }

/* 우측탭 — 내용 오른쪽에 세로 목록 패널 */
#xe_slide_popup_wrap.xsp-style-right .xsp-side {
    flex: 0 0 230px; width: 230px; background: #f8f8f8; border-left: 1px solid #e5e5e5;
    display: flex; flex-direction: column; overflow: hidden;
}
#xe_slide_popup_wrap.xsp-style-right .xsp-side-title {
    background: #6b5b95; color: #fff; font-weight: 700; font-size: 14px; padding: 14px 18px; line-height: 1.4;
}
#xe_slide_popup_wrap.xsp-style-right .xsp-tabs { flex: 1; overflow-y: auto; }
#xe_slide_popup_wrap.xsp-style-right .xsp-tab {
    display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #e5e5e5; background: none;
    padding: 14px 18px; font-size: 13px; color: #444; cursor: pointer; line-height: 1.4;
}
#xe_slide_popup_wrap.xsp-style-right .xsp-tab:hover { background: #eee; }
#xe_slide_popup_wrap.xsp-style-right .xsp-tab.on { background: #fff; color: #222; font-weight: 700; }
#xe_slide_popup_wrap.xsp-style-right .xsp-head .xsp-title { display: none; }
