/*
 * account.css — 인증 카드(로그인·가입·비밀번호) + 마이페이지. mu-plugin 의 .ssb-* 스타일을 테마로 이관(U1).
 * 실행계획서: docs/plans/ssabari/user-account-ui-plan.md
 */
/* 서체는 body(style.css) 스택을 그대로 상속 — 여기서 'Pretendard'(정적) 를 앞에 두면 로컬에 정적 Pretendard 가 깔린 PC 에서 마이페이지 본문(Variable)과 다른 글꼴로 보인다(2026-09-05 실측). */
.ssb-auth { margin: 0 auto; padding: 8px 0 48px; color: var(--ssb-fg, #191F28); }
.ssb-auth--single { max-width: 560px; }
.ssb-auth--two { max-width: 980px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.ssb-card { background: #fff; border: 1px solid var(--ssb-line, #E5E8EB); border-radius: 16px; padding: 32px; box-shadow: 0 6px 24px rgba(25,31,40,.05); }
.ssb-auth h1 { font-size: 26px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.02em; }
.ssb-auth .ssb-sub { color: #8B95A1; font-size: 14.5px; margin: 0 0 22px; line-height: 1.6; }
.ssb-auth label.ssb-field { display: block; margin: 0 0 16px; }
.ssb-auth label.ssb-field > span { display: block; font-size: 13px; font-weight: 700; color: #4E5968; margin: 0 0 6px; }
.ssb-auth input[type=text], .ssb-auth input[type=email], .ssb-auth input[type=password], .ssb-auth input[type=tel] {
  width: 100%; box-sizing: border-box; background: #F4F6F8; border: 1px solid #E5E8EB; border-radius: 10px;
  padding: 12px 14px; font-size: 15px; font-family: inherit; color: #191F28; }
.ssb-auth input:focus { outline: none; border-color: #191F28; background: #fff; }
.ssb-auth input[type=file] { font-size: 13px; }
.ssb-btn { display: block; width: 100%; box-sizing: border-box; background: #191F28; color: #fff !important; border: 0; border-radius: 10px;
  padding: 14px 16px; font-size: 15.5px; font-weight: 700; font-family: inherit; cursor: pointer; text-align: center; text-decoration: none; margin-top: 4px; }
.ssb-btn:hover { background: #333D4B; }
.ssb-btn--ghost { background: #fff; color: #191F28 !important; border: 1px solid #E5E8EB; margin-top: 10px; }
.ssb-btn--ghost:hover { background: #F4F6F8; }
.ssb-alt { margin: 18px 0 0; text-align: center; font-size: 14px; color: #8B95A1; }
.ssb-alt a { color: #191F28; font-weight: 700; text-decoration: underline; }
.ssb-check { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 18px; font-size: 13.5px; color: #4E5968; line-height: 1.5; }
.ssb-check input { margin-top: 3px; }
.ssb-check--agree { background: #FAFBFC; border: 1px solid #E5E8EB; border-radius: 10px; padding: 12px 14px; }
.ssb-check--agree a { color: #191F28; font-weight: 700; text-decoration: underline; }
.ssb-check--agree em { font-style: normal; color: #E03131; font-weight: 700; }
.ssb-types { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 0 0 16px; }
.ssb-type { position: relative; display: block; border: 1.5px solid #E5E8EB; border-radius: 12px; padding: 14px 12px; cursor: pointer; text-align: center; transition: .15s; }
.ssb-type input { position: absolute; opacity: 0; pointer-events: none; }
.ssb-type b { display: block; font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.ssb-type em { display: block; font-style: normal; font-size: 12px; color: #8B95A1; line-height: 1.4; }
.ssb-type:has(input:checked) { border-color: #191F28; background: #F4F6F8; box-shadow: inset 0 0 0 1px #191F28; }
.ssb-notice { background: #FFF8E6; border: 1px solid #FFE9B0; border-radius: 10px; padding: 13px 15px; font-size: 13.5px; line-height: 1.65; color: #7A5C00; margin: 0 0 22px; }
.ssb-auth .box-registration-fields { border: 1px solid #E5E8EB; background: #FAFBFC; border-radius: 12px; padding: 18px; margin: 0 0 18px; }
.ssb-auth .box-registration-fields h3 { color: #191F28; font-size: 16px; margin: 0 0 4px; }
.ssb-auth .box-registration-fields__lede { color: #8B95A1; font-size: 13px; margin: 0 0 14px; line-height: 1.5; }
.ssb-auth .box-registration-fields .required { color: #E03131; font-style: normal; }
.ssb-auth .box-registration-fields small { display: block; color: #8B95A1; font-size: 12px; margin-top: 4px; }
.ssb-auth .woocommerce-error, .ssb-auth .woocommerce-message, .ssb-auth .woocommerce-info { margin: 0 0 18px; border-radius: 10px; font-size: 14px; }
.ssb-aside { background: linear-gradient(180deg, #EAF1FE, #F6F8FB); border: 1px solid #DCE7FB; border-radius: 16px; padding: 26px 24px; }
.ssb-aside h2 { font-size: 17px; font-weight: 800; margin: 0 0 14px; color: #1B64DA; }
.ssb-aside ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; font-size: 13.5px; color: #4E5968; line-height: 1.55; }
.ssb-aside li::before { content: '✓'; color: #1B64DA; font-weight: 800; margin-right: 8px; }
.ssb-aside__note { font-size: 12.5px; color: #8B95A1; margin: 0 0 12px; }
.ssb-aside .ssb-btn--ghost { margin-top: 0; }
@media (max-width: 820px) { .ssb-auth--two { grid-template-columns: 1fr; } .ssb-aside { order: 2; } }
@media (max-width: 520px) { .ssb-types { grid-template-columns: 1fr; } .ssb-card { padding: 22px 18px; } }

/* 비밀번호 찾기·재설정 (WC myaccount/form-lost-password · form-reset-password 오버라이드) */
.ssb-auth .woocommerce-ResetPassword .form-row { margin: 0 0 16px; }
.ssb-auth .woocommerce-ResetPassword label { display: block; font-size: 13px; font-weight: 700; color: #4E5968; margin: 0 0 6px; }
.ssb-auth .woocommerce-ResetPassword .required { color: #E03131; }

/* ─── 마이페이지 레이아웃 (U2) ─────────────────────────────────────── */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 28px; align-items: start; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper,
.woocommerce-account .woocommerce > .woocommerce-message,
.woocommerce-account .woocommerce > .woocommerce-error,
.woocommerce-account .woocommerce > .woocommerce-info { grid-column: 1 / -1; margin: 0; }
/* WC woocommerce-layout.css 가 nav/content 에 float + width 30%/68% 를 준다 — grid 안에서 열이 뒤바뀌고 폭이 줄어든다(운영 실측). 명시 배치로 덮는다. */
.woocommerce-account .woocommerce-MyAccount-navigation { float: none !important; width: auto !important; grid-column: 1; }
.woocommerce-account .woocommerce-MyAccount-content { float: none !important; width: auto !important; grid-column: 2; }
.ssb-nav-side { position: sticky; top: 92px; background: #fff; border: 1px solid #E5E8EB; border-radius: 16px; padding: 18px 14px; }
.ssb-nav-side__who { padding: 4px 8px 14px; border-bottom: 1px solid #F1F3F5; margin-bottom: 12px; display: grid; gap: 4px; }
.ssb-nav-side__who strong { font-size: 16px; }
.ssb-nav-side__who small { color: #8B95A1; font-size: 12.5px; word-break: break-all; }
.ssb-nav-side__who .ssb-account__badge { justify-self: start; margin-top: 4px; }
.ssb-nav-side__new { margin: 0 0 10px; padding: 11px 12px; font-size: 14px; }
.ssb-nav-side ul { list-style: none; margin: 0; padding: 0; }
.ssb-nav-side li a { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: #4E5968; text-decoration: none; }
.ssb-nav-side li a:hover { background: #F4F6F8; color: #191F28; }
.ssb-nav-side li.is-active a, .ssb-nav-side li a[aria-current] { background: #EAF1FE; color: #1B64DA; font-weight: 800; }
.ssb-nav-side__cnt { font-size: 11.5px; font-weight: 800; background: #1B64DA; color: #fff; border-radius: 999px; padding: 1px 7px; }
.ssb-nav-side li.ssb-nav-side__ops { margin-top: 10px; border-top: 1px solid #F1F3F5; padding-top: 8px; }
.ssb-nav-side li.ssb-nav-side__ops a { color: #8B95A1; font-size: 13px; }
.woocommerce-MyAccount-content { min-width: 0; }
.woocommerce-MyAccount-content > h2, .ssb-dash h1 { font-weight: 800; letter-spacing: -.02em; }

.ssb-dash__hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.ssb-dash__hello h1 { font-size: 26px; margin: 0 0 4px; }
.ssb-dash__hello p { margin: 0; color: #8B95A1; font-size: 14px; }
.ssb-dash__cta { width: auto; margin: 0; padding: 12px 18px; font-size: 14.5px; }
.ssb-dash__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 28px; }
.ssb-qcard { display: grid; gap: 4px; background: #fff; border: 1px solid #E5E8EB; border-radius: 14px; padding: 16px 18px; text-decoration: none; color: #191F28; }
.ssb-qcard:hover { border-color: #191F28; }
.ssb-qcard__k { font-size: 12.5px; font-weight: 700; color: #8B95A1; }
.ssb-qcard strong { font-size: 28px; font-weight: 800; line-height: 1.1; }
.ssb-qcard small { font-size: 12.5px; color: #4E5968; }
.ssb-qcard--hot { border-color: #1B64DA; background: #F6F9FF; }
.ssb-qcard--hot small b { color: #1B64DA; }
.ssb-dash__sec { margin: 0 0 26px; }
.ssb-dash__head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 10px; }
.ssb-dash__head h2 { font-size: 17px; font-weight: 800; margin: 0; }
.ssb-dash__head a { font-size: 13px; color: #4E5968; }
.ssb-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #E5E8EB; border-radius: 12px; overflow: hidden; font-size: 14px; }
.ssb-table th, .ssb-table td { padding: 11px 12px; border-bottom: 1px solid #F1F3F5; text-align: left; vertical-align: top; }
.ssb-table th { font-size: 12px; color: #8B95A1; font-weight: 700; background: #FAFBFC; }
.ssb-table tr:last-child td { border-bottom: 0; }
.ssb-table .muted { color: #8B95A1; }
.ssb-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.ssb-empty { background: #FAFBFC; border: 1px dashed #E5E8EB; border-radius: 12px; padding: 18px; color: #4E5968; font-size: 14px; margin: 0; }
.box-member-status { margin: 0 0 18px !important; }
@media (max-width: 900px) {
  .woocommerce-account .woocommerce { grid-template-columns: 1fr; }
  .ssb-nav-side { position: static; }
  .ssb-nav-side ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .ssb-dash__cards { grid-template-columns: repeat(2, 1fr); }
  .ssb-dash__hello { flex-direction: column; align-items: flex-start; }
}

/* ─── 마이페이지 내역·정보 (U3) ────────────────────────────────────── */
.ssb-acc__title { font-size: 24px; margin: 0; }
.ssb-acc__lede { color: #8B95A1; font-size: 14px; margin: 4px 0 18px; }
.ssb-acc .ssb-card--tight { padding: 20px 22px; margin: 0 0 14px; }
.ssb-acc .ssb-card h2 { font-size: 16px; font-weight: 800; margin: 0 0 10px; }
.ssb-card--notice { background: #FFF8E6; border-color: #FFE9B0; }
.ssb-kv { margin: 0 0 8px; font-size: 14px; line-height: 1.6; }
.ssb-kv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ssb-kv-table th { text-align: left; width: 150px; padding: 9px 10px; background: #FAFBFC; border: 1px solid #F1F3F5; color: #4E5968; font-weight: 700; white-space: nowrap; }
.ssb-kv-table td { padding: 9px 10px; border: 1px solid #F1F3F5; }
.ssb-notes { margin: 0; padding: 0 0 0 18px; font-size: 13.5px; }
.ssb-notes li { margin: 0 0 6px; }
.ssb-notes time { display: block; color: #8B95A1; font-size: 12px; }
.ssb-notes p { margin: 0; }
.ssb-btn--sm { display: inline-block; width: auto; padding: 7px 12px; font-size: 13px; margin: 0; }
.ssb-btn--danger { color: #c0392b !important; border-color: #f1c2bd; }
.ssb-table td.acts { text-align: right; white-space: nowrap; }
.ssb-pager { display: flex; gap: 12px; justify-content: center; margin: 14px 0; font-size: 14px; }
.ssb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.ssb-fieldset { border: 1px solid #E5E8EB; border-radius: 12px; padding: 14px 16px 2px; margin: 4px 0 18px; }
.ssb-fieldset legend { font-size: 13.5px; font-weight: 700; color: #4E5968; padding: 0 6px; }
.ssb-fieldset legend small { font-weight: 500; color: #8B95A1; }
.ssb-auth textarea { width: 100%; box-sizing: border-box; background: #F4F6F8; border: 1px solid #E5E8EB; border-radius: 10px; padding: 12px 14px; font-size: 14.5px; font-family: inherit; color: #191F28; }
.ssb-auth textarea:focus { outline: none; border-color: #191F28; background: #fff; }
.ssb-auth .ssb-field small { display: block; color: #8B95A1; font-size: 12px; margin-top: 4px; }
.ssb-withdraw summary { cursor: pointer; font-size: 13.5px; color: #8B95A1; font-weight: 600; }
.ssb-withdraw .ssb-btn { width: auto; display: inline-block; padding: 9px 14px; font-size: 13.5px; }
.ssb-order-details .woocommerce-order-details__title, .ssb-order-details .woocommerce-column__title { font-size: 16px; font-weight: 800; margin: 18px 0 8px; }
.ssb-order-details table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #E5E8EB; border-radius: 12px; font-size: 14px; }
.ssb-order-details th, .ssb-order-details td { padding: 10px 12px; border-bottom: 1px solid #F1F3F5; text-align: left; }
.ssb-order-details tfoot th { background: #FAFBFC; }
.ssb-order-details .wc-item-meta { list-style: none; margin: 4px 0 0; padding: 0; font-size: 12.5px; color: #4E5968; }
.ssb-order-details address { font-style: normal; font-size: 14px; line-height: 1.6; }
@media (max-width: 600px) { .ssb-grid2 { grid-template-columns: 1fr; } .ssb-kv-table th { width: 100px; } }

/* 문서 링크 (box-documents) */
.ssb-doc-link { display: inline-block; margin: 0 10px 6px 0; padding: 6px 10px; border: 1px solid #E5E8EB; border-radius: 8px; font-size: 13px; color: #191F28; text-decoration: none; background: #fff; }
.ssb-doc-link:hover { border-color: #191F28; }
