/* 0.9.85 CF-02 · CF-06 — 위치별 배너 · 팝업 · 미리보기(쇼핑몰). 이미지는 비율 유지(늘리기 · 압축 · 자동 자르기 없음). */
.rxg-bn { position: relative; background: #fff; }
.rxg-bn__track { display: flex; align-items: center; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; background: #F7F7F5; }
.rxg-bn__track::-webkit-scrollbar { display: none; }
.rxg-bn__track:focus-visible { outline: 2px solid #073124; outline-offset: -2px; }
.rxg-bn__slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.rxg-bn__link { display: block; }
.rxg-bn__pic, .rxg-bn__pic img { display: block; width: 100%; height: auto; }
/* 모바일 이미지만 있는 배너를 PC 에서: 전체 이미지 보존(contain) · 최대 높이 제한 */
@media (min-width: 768px) {
	.rxg-bn__pic.is-mo-only img { width: auto; max-width: 100%; max-height: 640px; margin: 0 auto; }
}
.rxg-bn__dots { display: flex; justify-content: center; gap: 4px; padding: 12px 0 4px; background: #fff; }
.rxg-bn__dot { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.rxg-bn__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 999px; background: #C9CCC9; transition: width .2s, margin .2s; }
.rxg-bn__dot[aria-current="true"]::before { width: 18px; margin-left: -9px; background: #073124; }
.rxg-bn__dot:focus-visible { outline: 2px solid #073124; outline-offset: 2px; border-radius: 4px; }
.rxg-bn--brand_top, .rxg-bn--brand_bottom { margin: 16px 0; }
.rxg-bn--top .rxg-bn__track { background: transparent; }

/* 팝업 — 화면 안 닫기 · 내부 스크롤 · 한 번에 하나 */
.rxg-pop[hidden] { display: none !important; }
.rxg-pop { position: fixed; inset: 0; z-index: 99998; display: flex; align-items: center; justify-content: center; padding: 16px; }
.rxg-pop__dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.rxg-pop__sheet { position: relative; display: flex; flex-direction: column; width: min(480px, 100%); max-height: min(85vh, calc(100dvh - 32px)); border-radius: 8px; background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); overflow: hidden; }
.rxg-pop__sheet:focus { outline: none; }
.rxg-pop__x { position: absolute; top: 8px; right: 8px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 24px; line-height: 1; cursor: pointer; }
.rxg-pop__body { overflow: auto; -webkit-overflow-scrolling: touch; }
.rxg-pop__body img { display: block; width: 100%; height: auto; }
.rxg-pop__title { margin: 16px 20px 0; font-size: 18px; line-height: 1.4; }
.rxg-pop__text { margin: 8px 20px 16px; font-size: 14px; line-height: 1.6; color: #333; }
.rxg-pop__more { margin: 0 20px 16px; }
.rxg-pop__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid #E6E8E6; }
.rxg-pop__foot button { min-height: 48px; padding: 0 18px; border: 0; background: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.rxg-pop__close { font-weight: 700; }
html.rxg-pop-open { overflow: hidden; }

/* 미리보기(관리자 본인만) */
.rxg-pvbar { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 100000; display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 10px 14px; border-radius: 8px; background: #1C1C1C; color: #fff; font-size: 13px; line-height: 1.4; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.rxg-pvbar .ok { color: #8FE3B5; } .rxg-pvbar .no { color: #FFB4A8; }
[data-rxg-pv-target] { outline: 3px dashed #E0592A; outline-offset: -3px; }
.rxg-bn-pvnote { margin: 12px 16px; padding: 14px; border-radius: 6px; background: #FFF4EF; color: #8A2E10; font-size: 13px; text-align: center; }
