/* STEP58-13E-G5A-MYPAGE-V1 (+V2) : 마이페이지 휴대폰 정리 (색·카드 틀은 그대로, 글꼴·줄바꿈·배치만) */
@font-face{font-family:'MaruBuri';src:url('/static/fonts/MaruBuri-Regular.subset.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'MaruBuri';src:url('/static/fonts/MaruBuri-SemiBold.subset.woff2') format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:'MaruBuri';src:url('/static/fonts/MaruBuri-Bold.subset.woff2') format('woff2');font-weight:700;font-display:swap}
html body, html body *{font-family:'MaruBuri','Noto Serif KR',serif !important}
.page-shell, .page-shell *{word-break:keep-all !important;overflow-wrap:break-word}
.g5w{white-space:nowrap;display:inline !important;margin:0 !important;padding:0 !important}

/* 겹치는 안내 숨김: 평소 안내 띠, 이용 안내(아래 「이용권·결제」 칸이 대신함), 옛 이용 전환 칸 */
#statusBanner.status-info, #statusBanner.status-warning, #statusBanner.status-success{display:none !important}
#mypageHubSection, #mypageConversionSection{display:none !important}

/* 사용자 정보: 연락처·현재 상태 숨김, 3칸을 2줄로 */
.g5-hide-item{display:none !important}
.g5-userinfo .info-grid{display:grid !important;grid-template-columns:1fr 1fr !important;gap:10px !important}
.g5-userinfo .info-item{padding:12px 14px !important;margin:0 !important}
.g5-userinfo .info-item.g5-wide{grid-column:1 / -1}
.g5-userinfo .info-item strong{font-size:18px !important;line-height:1.4}

/* 이용권·결제 칸 */
#g5PlanSection .g5-lead{font-size:18px;font-weight:700;line-height:1.55;margin:0 0 6px}
#g5PlanSection .g5-sub{font-size:15px;line-height:1.65;margin:0 0 12px;color:#475569}
#g5PlanSection ol.g5-steps{margin:4px 0 14px;padding-left:22px;font-size:15px;line-height:1.75;color:#334155}
#g5PlanSection .g5-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:6px 0 10px}
#g5PlanSection .g5-btns button{min-height:50px;font-size:17px;font-weight:700;width:100%}
#g5PlanSection .g5-note{font-size:14px;line-height:1.65;color:#64748b;margin:6px 0 0}
#g5PlanSection .g5-rows{margin:4px 0 8px}
#g5PlanSection .g5-row{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid rgba(148,163,184,.25);font-size:15.5px}
#g5PlanSection .g5-row strong{text-align:right}

/* 입금 안내 칸 보강 */
.g5-paytip{margin:0 0 12px;padding:12px 14px;border-radius:12px;background:rgba(227,184,91,.14);font-size:15px;line-height:1.65;font-weight:600}
.g5-copy{margin:8px 0 2px;min-height:40px;padding:6px 14px;font-size:15px}

/* 건넨 초대장 안내 접기 */
details.g5-fold{margin:12px 0 0}
details.g5-fold > summary{cursor:pointer;font-size:15px;padding:8px 0;color:#475569}

/* 맨 아래 링크 한 줄 */
.legal-footer{display:flex !important;flex-wrap:wrap !important;justify-content:center !important;align-items:center !important;column-gap:6px}
.legal-footer > a, .legal-footer > details{display:inline-block !important;width:auto !important;margin-top:0 !important}
.legal-footer > details[open]{flex-basis:100%}
.legal-footer > .legal-footer-logout{flex-basis:100%}
/* 입금자코드 상자: 글이 한 단어씩 세로로 쌓이지 않게 */
#depositCodeRevealBox:not(.hidden){display:block !important}
#depositCodeRevealBox > span, #depositCodeRevealBox > strong, #depositCodeRevealBox > p{display:block !important;width:auto !important}

/* V2: 좁은 칸에서 글이 쪼개지거나 넘치지 않게 */
.payment-row{justify-content:start !important}
.payment-row > span{white-space:nowrap}
.g5-code-row strong{font-size:24px !important;letter-spacing:.06em;color:#78350f !important}
.section-header > div{flex:1 1 auto;min-width:0;width:100%}
.g4-item{flex-wrap:nowrap}
.g4-item .g4-date{flex:0 0 auto;white-space:nowrap}
.g4-item .g4-state{flex:0 1 auto;text-align:right}
.notice-strong{font-size:15px !important}

/* V2: 마이페이지 항목 접기·펼치기 */
.g5-acc > .section-header, .g5-acc > h2{cursor:pointer;position:relative;padding-right:34px;margin-bottom:0 !important}
.g5-acc > .section-header::after, .g5-acc > h2::after{content:"";position:absolute;right:6px;top:50%;width:10px;height:10px;border-right:2.5px solid #64748b;border-bottom:2.5px solid #64748b;transform:translateY(-70%) rotate(45deg);transition:transform .2s}
.g5-acc.g5-open > .section-header::after, .g5-acc.g5-open > h2::after{transform:translateY(-30%) rotate(-135deg)}
.g5-acc > .g5-acc-body{display:none;margin-top:16px}
.g5-acc.g5-open > .g5-acc-body{display:block}
.g5-acc .section-desc.g5-acc-hint{margin:4px 0 0 !important}
