@charset "utf-8";
/* ==========================================================================
   스타빌 허브 v3 - 레이어 팝업 통일 (2026-10-19)

   기존 팝업 화면(.pop_bg 남색 머리글, 큰 원형 버튼, 고정폭 표)을 v3 레이어(LayerPopup.openFrame)와 같은 모양으로 맞춘다.
   - 1부: 어느 화면에서나 쓰는 팝업 머리글(.pop_bg) - 레이어 fragment(이용약관 등)와 팝업 페이지 공통
   - 2부: 레이어 fragment(#layer-popup-root .modal-overlay) 바깥 상자
   - 3부: 팝업 페이지 본문(html.sb-popdoc) - include/v3PopupAssets.jsp 를 넣은 팝업 JSP 에만 적용
   - 마이페이지 subModal 바깥 상자는 css/subModal_notop.css, 일반 레이어는 css/layerPopup.css 에 있다.
   되돌리기: 이 파일 연결(include/v3Assets.jsp, include/v3PopupAssets.jsp)을 빼면 기존 모양으로 돌아간다.
   ========================================================================== */

:root {
	--pp-brand: #1a5fb4;
	--pp-brand-700: #144a8f;
	--pp-brand-50: #edf3fb;
	--pp-ink: #18212e;
	--pp-text: #333d4b;
	--pp-sub: #5b6676;
	--pp-line: #e3e7ed;
	--pp-line-soft: #eef1f5;
	--pp-head: #f6f8fb;
	--pp-input: #cfd6df;
	--pp-focus: var(--pp-brand);
	--pp-font: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Malgun Gothic", "맑은 고딕", "NanumGothic", sans-serif;
}

/* -------------------------------------------------------------------------
   1. 팝업 머리글: 흰 바탕 + 제목 + 닫기(×)
   ------------------------------------------------------------------------- */
.pop_bg {
	float: none !important; width: 100% !important; height: 56px !important;
	background: #fff !important; border-bottom: 1px solid var(--pp-line); box-sizing: border-box;
}
.pop_bg [class^="pop_headerArea"] {
	float: none; display: flex; align-items: center; gap: 8px;
	width: auto; height: 55px; padding: 0 10px 0 22px; box-sizing: border-box;
}
.pop_bg [class^="pop_headerArea"] .tit,
.pop_bg [class^="pop_headerArea"] [class^="tit"] {
	float: none; flex: 1 1 auto; min-width: 0; width: auto; height: auto;
	color: var(--pp-ink); font-family: var(--pp-font); font-size: 17px; font-weight: 700; line-height: 1.3;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pop_bg [class^="pop_headerArea"] .close { float: none; flex: 0 0 auto; width: auto; height: auto; }
.pop_bg [class^="pop_headerArea"] .close .img { display: block; width: auto; height: auto; }
.pop_bg [class^="pop_headerArea"] .close a {
	display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px;
	color: var(--pp-sub); font-size: 0; text-decoration: none; cursor: pointer;
}
.pop_bg [class^="pop_headerArea"] .close a img { display: none; }
.pop_bg [class^="pop_headerArea"] .close a::before { content: "\00d7"; font-family: Arial, sans-serif; font-size: 28px; line-height: 1; }
.pop_bg [class^="pop_headerArea"] .close a:hover { background: #f1f3f6; color: var(--pp-ink); }

/* -------------------------------------------------------------------------
   2. 레이어 fragment(이용약관·개인정보 등) 바깥 상자
   ------------------------------------------------------------------------- */
#layer-popup-root .modal-overlay { background: rgba(12, 18, 28, .58); align-items: center; padding-top: 0; }
#layer-popup-root .modal-overlay > div:first-child:not(.modal-panel) {
	margin-top: 0 !important; background: #fff !important; border-radius: 14px !important;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .3); overflow-x: hidden !important;
}
#layer-popup-root .modal-overlay .pop_bg { position: sticky !important; top: 0; z-index: 2; }
#layer-popup-root .modal-overlay .policy { padding: 20px 26px 26px !important; font-family: var(--pp-font); color: var(--pp-text); line-height: 1.7; }

/* -------------------------------------------------------------------------
   3. 팝업 페이지 본문 (html.sb-popdoc)
   ------------------------------------------------------------------------- */
html.sb-popdoc, html.sb-popdoc body { background: #fff; }
html.sb-popdoc body { margin: 0; color: var(--pp-text); font-family: var(--pp-font); font-size: 14px; }
html.sb-popdoc body, html.sb-popdoc input, html.sb-popdoc select, html.sb-popdoc textarea, html.sb-popdoc table, html.sb-popdoc td, html.sb-popdoc th { font-family: var(--pp-font); }
html.sb-popdoc #wrap { width: auto !important; min-width: 0 !important; }
html.sb-popdoc .pop_bg { position: fixed !important; top: 0; left: 0; right: 0; z-index: 99; }

/* 본문 상자: 고정폭(800/975/1000px) → 팝업 폭에 맞춤 */
html.sb-popdoc [class^="container"], html.sb-popdoc .deposit_container {
	float: none !important; width: auto !important; min-height: 0 !important;
	margin: 76px 24px 0 !important; padding: 0 !important; box-sizing: border-box;
}
/* 페이지 레이어(LayerPopup.openFrame) 안에서는 바깥 머리글에 제목·닫기가 있으므로 안쪽 머리글을 숨긴다 */
html.sb-in-lpframe .pop_bg { display: none !important; }
html.sb-in-lpframe [class^="container"], html.sb-in-lpframe .deposit_container { margin-top: 22px !important; }

html.sb-popdoc [class^="mg"] { float: none; width: auto; }
html.sb-popdoc .subject, html.sb-popdoc .main_tit, html.sb-popdoc .deposit_subject {
	float: none; width: auto; color: var(--pp-ink); font-family: var(--pp-font); font-weight: 700;
}
html.sb-popdoc .deposit_subject { font-size: 22px; margin: 4px 0 16px; }
html.sb-popdoc .deposit_subject2, html.sb-popdoc .deposit_subject3, html.sb-popdoc .deposit_subject4,
html.sb-popdoc .notice1, html.sb-popdoc .notice2, html.sb-popdoc .notice3, html.sb-popdoc .txt1 {
	float: none; width: auto; font-family: var(--pp-font); color: var(--pp-text);
}
html.sb-popdoc .notice1, html.sb-popdoc .notice3 { font-size: 18px; color: var(--pp-ink); }
html.sb-popdoc .notice2 { font-size: 15px; }

/* 표 */
html.sb-popdoc table[class^="tb_"], html.sb-popdoc table[class^="tb-"] {
	width: 100% !important; border-collapse: collapse; border-spacing: 0; margin-bottom: 20px;
	border-top: 2px solid var(--pp-ink);
}
html.sb-popdoc table[class^="tb_"] tr.topline { border-top: 0; }
html.sb-popdoc table[class^="tb_"] th,
html.sb-popdoc table[class^="tb_"] td {
	height: auto; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--pp-line);
	font-size: 14px; line-height: 1.6; color: var(--pp-text); background: #fff;
}
html.sb-popdoc table[class^="tb_"] th,
html.sb-popdoc table[class^="tb_"] td.title,
html.sb-popdoc table[class^="tb_"] td.tit,
html.sb-popdoc table[class^="tb_"] td.tit1 {
	background: var(--pp-head) !important; color: var(--pp-ink); font-weight: 600; font-size: 14px; white-space: nowrap;
}
html.sb-popdoc table[class^="tb_"] td.important { background: var(--pp-brand-50); }
html.sb-popdoc table[class^="tb_"] td .sty1, html.sb-popdoc .sty11 { background: transparent; margin-left: 0; }

/* 입력칸 */
html.sb-popdoc input[type="text"], html.sb-popdoc input[type="password"], html.sb-popdoc input[type="tel"],
html.sb-popdoc input[type="number"], html.sb-popdoc input[type="email"], html.sb-popdoc select, html.sb-popdoc textarea {
	box-sizing: border-box; height: 36px; max-width: 100%; padding: 0 10px; border: 1px solid var(--pp-input); border-radius: 8px;
	background: #fff; color: var(--pp-ink); font-size: 14px; vertical-align: middle;
}
html.sb-popdoc textarea { height: auto; min-height: 80px; padding: 8px 10px; line-height: 1.5; }
html.sb-popdoc input[type="text"]:focus, html.sb-popdoc input[type="password"]:focus, html.sb-popdoc select:focus, html.sb-popdoc textarea:focus {
	outline: 0; border-color: var(--pp-brand); box-shadow: 0 0 0 3px rgba(26, 95, 180, .15);
}
html.sb-popdoc input[readonly] { background: #f4f6f9; color: var(--pp-sub); }
html.sb-popdoc input[type="file"] { font-size: 13px; }
html.sb-popdoc .input_box1p { border: 0; }

/* 버튼 영역·버튼: 큰 원형(80px) → 일반 크기 */
html.sb-popdoc [class^="btnArea"] {
	float: none !important; width: auto !important; height: auto !important;
	display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0 0 !important; padding: 8px 0 24px;
}
html.sb-popdoc [class^="btnArea"] a, html.sb-popdoc [class^="btnArea"] button, html.sb-popdoc [class^="btnArea"] input[type="button"] { margin: 0 !important; }
html.sb-popdoc .btn_apply, html.sb-popdoc .btn_apply1, html.sb-popdoc .btn_regi, html.sb-popdoc .btn_regi1,
html.sb-popdoc .btn_order2, html.sb-popdoc .btn_print, html.sb-popdoc .btn_calculation,
html.sb-popdoc .btn_close, html.sb-popdoc .btn_close1, html.sb-popdoc .btn_close2 {
	display: inline-flex !important; align-items: center; justify-content: center;
	width: auto !important; min-width: 120px; height: 44px !important; padding: 0 22px; box-sizing: border-box;
	border: 1px solid var(--pp-brand); border-radius: 10px !important; background: var(--pp-brand) !important; color: #fff !important;
	font-family: var(--pp-font); font-size: 15px !important; font-weight: 700; line-height: 1 !important; text-decoration: none;
}
html.sb-popdoc .btn_apply:hover, html.sb-popdoc .btn_apply1:hover, html.sb-popdoc .btn_regi:hover, html.sb-popdoc .btn_regi1:hover,
html.sb-popdoc .btn_order2:hover, html.sb-popdoc .btn_print:hover, html.sb-popdoc .btn_calculation:hover {
	background: var(--pp-brand-700) !important; border-color: var(--pp-brand-700);
}
html.sb-popdoc .btn_close, html.sb-popdoc .btn_close1, html.sb-popdoc .btn_close2 {
	background: #fff !important; border-color: var(--pp-input); color: var(--pp-text) !important;
}
html.sb-popdoc .btn_close:hover, html.sb-popdoc .btn_close1:hover, html.sb-popdoc .btn_close2:hover { background: #f4f6f9 !important; color: var(--pp-ink) !important; }
/* 작은 버튼(표 안) */
html.sb-popdoc .btn_charge, html.sb-popdoc .btn_choice, html.sb-popdoc .btn_cate, html.sb-popdoc .btn_order1, html.sb-popdoc .btn_search {
	display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 56px; height: 30px; padding: 0 12px;
	border-radius: 6px; background: var(--pp-brand); color: #fff; font-size: 13px; font-weight: 600; line-height: 1; text-decoration: none;
}
html.sb-popdoc .btn_charge:hover, html.sb-popdoc .btn_choice:hover, html.sb-popdoc .btn_cate:hover, html.sb-popdoc .btn_order1:hover, html.sb-popdoc .btn_search:hover { background: var(--pp-brand-700); color: #fff; }

/* 카테고리 탭(초록) → 파랑 */
html.sb-popdoc .tab_area { float: none; width: auto; height: auto; display: flex; border: 0; border-bottom: 1px solid var(--pp-line); margin-bottom: 18px; }
html.sb-popdoc .tab4A_On, html.sb-popdoc .tab4A_Off {
	width: auto; height: 42px; line-height: 42px; padding: 0 18px; border: 0; border-bottom: 2px solid transparent;
	background: transparent; font-size: 15px; color: var(--pp-sub);
}
html.sb-popdoc .tab4A_On { color: var(--pp-brand); border-bottom-color: var(--pp-brand); font-weight: 700; }
html.sb-popdoc .tab4A_Off:hover { height: 42px; color: var(--pp-ink); border-bottom: 2px solid var(--pp-line); }
html.sb-popdoc .tb_cate { float: none; width: auto; }

/* 전화번호 등 짧은 칸(3~4자리): 35px 고정폭이라 숫자 1~2개만 보이던 것 → 최소 4자리 보이게(2026-10-19) */
html.sb-popdoc .input_box3_ss,
html.sb-popdoc input[type="text"][maxlength="3"],
html.sb-popdoc input[type="text"][maxlength="4"] { width: 64px !important; min-width: 64px; padding: 0 6px; text-align: center; }
html.sb-popdoc td:has(> .input_box3_ss), html.sb-popdoc td:has(> input[maxlength="4"]) { white-space: nowrap; }

/* 본문 상자 안의 고정폭 float 블록(제목 775/975px 등): 상자가 좁아지면 옆 글이 한 글자씩 밀려 줄바꿈되므로 float 해제(2026-10-19) */
html.sb-popdoc [class^="container"] > div, html.sb-popdoc .deposit_container > div { float: none !important; width: auto !important; max-width: 100%; }
html.sb-popdoc [class^="tit775"], html.sb-popdoc [class^="tit975"] { height: auto !important; padding: 0 0 8px !important; background: none !important; font-size: 17px !important; font-weight: 700; color: var(--pp-ink) !important; }
html.sb-popdoc [class^="con775"], html.sb-popdoc [class^="con975"] { margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; background: #f6f8fb; color: var(--pp-text) !important; font-size: 14px !important; line-height: 1.7 !important; }
html.sb-popdoc [class^="con775"] > br, html.sb-popdoc [class^="con975"] > br { display: none; }

/* 키보드 포커스 링(2026-10-21): starbill-v3.css 와 같은 규칙을 팝업 문서에도 적용 */
html.sb-popdoc a:focus-visible, html.sb-popdoc button:focus-visible, html.sb-popdoc [role="button"]:focus-visible, html.sb-popdoc [role="tab"]:focus-visible,
html.sb-popdoc [tabindex]:not([tabindex="-1"]):focus-visible, html.sb-popdoc summary:focus-visible,
html.sb-popdoc input[type="checkbox"]:focus-visible, html.sb-popdoc input[type="radio"]:focus-visible,
html.sb-popdoc input[type="button"]:focus-visible, html.sb-popdoc input[type="submit"]:focus-visible, html.sb-popdoc input[type="image"]:focus-visible {
	outline: 2px solid var(--pp-focus) !important; outline-offset: 2px;
}
