@charset "utf-8";

/* ==========================================================================
   sub_popup.css — 서브페이지 공통 팝업 (sub_popup.php 에서 자동 로드)
   - PC : 팝업을 위에서부터 세로로 배치, 위 팝업을 닫으면 아래 팝업이 올라옴
   - 768px 이하 : 같은 자리에 겹쳐 쌓음, 첫번째 팝업이 맨 앞
   ========================================================================== */
.pop_wrap{position:absolute;top:0;left:10px;width:auto;height:auto;background:transparent;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:60px;z-index:100;}
.pop_wrap .pop_item{width:550px;height:635px;background:#fff;flex:0 0 auto;}
.pop_wrap .pop_item img{width:100%;display:block;}
.pop_wrap .sub_footer{padding:0;background:#000;color:#fff;text-align:left;position:relative;font-size:13px;}
.pop_wrap .sub_footer button{padding:10px;border:0;color:#fff;cursor:pointer;}
.pop_wrap .sub_footer .pop_reject{background:#000;text-align:left;}
.pop_wrap .sub_footer .pop_close{background:#393939;position:absolute;top:0;right:0;}

@media (max-width:768px){
  .pop_wrap{display:grid;left:0;right:0;align-items:start;justify-items:center;}
  .pop_wrap .pop_item{grid-area:1 / 1;width:95%;height:auto;margin:0 auto;}
}
