/* ==========================================================================
   푸터 — 단체복 쇼핑몰(noeul.shop) 푸터와 같은 모양.
   쇼핑몰 includes/nds.css의 푸터 규칙(.nf*)과 includes/footer.php의 입금계좌 팝업 스타일을 옮겨 왔다.
   쇼핑몰은 디자인 값(--nds-*)을 :root에 두지만, 여기서는 사이트 다른 곳에 영향이 없도록 .nf 안에만 둔다.
   ========================================================================== */

.nf,
.footer-account-overlay {
  --nds-ink: #15181d;
  --nds-line: #e3e5e9;
  --nds-dark: #17191d;
  --nds-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  --nds-fs-sm: 0.875rem;
  --nds-fs-xs: 0.8125rem;
  --nds-container: 1520px;
  --nds-side: 40px;
}
@media (min-width: 1900px) { .nf { --nds-container: min(calc(100vw - 160px), 1680px); } }
@media (max-width: 1280px) { .nf { --nds-side: 32px; } }
@media (max-width: 1024px) { .nf { --nds-side: 24px; } }
@media (max-width: 768px)  { .nf { --nds-side: 20px; } }

.nf .nds-container { width: 100%; max-width: calc(var(--nds-container) + var(--nds-side) * 2); margin: 0 auto; padding-left: var(--nds-side); padding-right: var(--nds-side); box-sizing: border-box; }

.nf { background: var(--nds-dark); color: #a7adb6; font-family: var(--nds-font); font-size: var(--nds-fs-xs); line-height: 1.8; padding: 0; margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.nf a { color: inherit; text-decoration: none; }
.nf a:hover { color: #fff; }
.nf-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 44px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.nf-logo img { display: block; height: 40px; width: auto; opacity: .95; }
.nf-links { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: var(--nds-fs-sm); }
.nf .nf-links a { color: #d7dbe0; font-weight: 600; }
.nf .nf-links a.is-strong { color: #fff; font-weight: 800; }
.nf-branches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.nf-branch b { display: block; margin-bottom: 4px; color: #fff; font-size: var(--nds-fs-sm); font-weight: 700; }
.nf-branch span { display: block; }
.nf-info { padding-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: start; }
.nf-info__lines { display: flex; flex-wrap: wrap; gap: 0 18px; }
.nf-info__lines > span { white-space: nowrap; }
.nf-cs { text-align: right; }
.nf .nf-cs__label { display: block; color: #fff; font-size: var(--nds-fs-sm); font-weight: 800; letter-spacing: .02em; }
.nf .nf-cs__phone { display: block; margin-top: 2px; color: #fff; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.nf-cs__hours { display: block; margin-top: 4px; }
.nf-certs { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 28px; padding-bottom: 28px; }
.nf-certs img { height: 26px; width: auto; object-fit: contain; opacity: .72; }
.nf-bottom { padding-top: 18px; padding-bottom: 40px; border-top: 1px solid rgba(255,255,255,.1); color: #7d838c; }
.nf .footer-account-trigger { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: #fff; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
@media (max-width: 1024px) { .nf-branches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 768px) {
  .nf { line-height: 1.6; }
  .nf-top { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 24px; padding-bottom: 12px; }
  .nf-logo { display: flex; align-items: flex-end; min-height: 44px; margin-top: -12px; }
  .nf-logo img { height: 32px; }
  .nf-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
  .nf .nf-links a { display: inline-flex; align-items: center; min-height: 44px; margin: 0 -9px; padding: 0 9px; }
  .nf-branches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 16px; padding-bottom: 16px; }
  .nf-branch { display: grid; grid-template-rows: auto auto 1fr; }
  .nf-branch b { margin-bottom: 0; }
  .nf-branch span { word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
  .nf-branch a { display: inline-flex; align-items: center; align-self: end; justify-self: start; min-height: 44px; margin: -6px 0; }
  .nf-info { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; }
  .nf-cs { order: -1; text-align: left; }
  .nf .nf-cs__phone { position: relative; display: flex; align-items: center; width: fit-content; min-height: 44px; margin: -7px 0; font-size: 24px; line-height: 1.25; }
  .nf-cs__hours { margin-top: 0; }
  .nf-info__lines { display: flex; flex-wrap: wrap; gap: 0 16px; }
  .nf-info__lines > span { white-space: normal; }
  .nf-info__lines::before { content: ""; order: 1; flex: 0 0 100%; }
  .nf-info__lines > span:has(> a, > button) { order: 1; display: flex; flex: 0 0 100%; align-items: center; gap: 4px; min-height: 44px; margin-top: 8px; white-space: nowrap; }
  .nf-info__lines > span:not(:has(> a, > button)) + span:has(> a, > button) { margin-top: 0; }
  .nf-info__lines > span:has(> button) { align-items: baseline; }
  .nf-info__lines a, .nf-info__lines button { display: inline-flex; align-items: center; min-height: 44px; }
  .nf-info__lines .footer-account-trigger { flex: 0 1 auto; min-width: 0; white-space: normal; text-align: left; }
  .nf-certs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; align-items: center; justify-items: start; padding-top: 16px; padding-bottom: 16px; }
  .nf-certs img { height: 24px; max-width: 100%; opacity: .8; }
  .nf-bottom { padding-top: 12px; padding-bottom: 24px; color: #a7adb6; font-size: 12px; line-height: 1.5; }
}
@media (max-width: 599px) {
  .nf-top { padding-bottom: 8px; }
  .nf-links { display: grid; grid-template-columns: repeat(3, max-content); gap: 8px 28px; }
  .nf-branches { padding-top: 12px; padding-bottom: 12px; }
  .nf-info { padding-top: 12px; }
  .nf-certs { padding-top: 12px; padding-bottom: 12px; }
}
@media (max-width: 359px) {
  .nf-branches { gap: 12px 16px; }
  .nf-info { gap: 8px; }
  .nf-certs { gap: 8px 12px; }
}
@media (min-width: 600px) and (max-width: 768px) {
  .nf-branches { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nf-info__lines { align-items: baseline; }
  .nf-info__lines > span:has(> a, > button), .nf-info__lines > span:not(:has(> a, > button)) + span:has(> a, > button) { flex: 0 0 auto; margin-top: 8px; }
  .nf-info__lines > span:has(> button) { flex: 1 1 0; max-width: max-content; }
}
@media (min-width: 744px) and (max-width: 768px) {
  .nf-certs { display: flex; flex-wrap: wrap; gap: 16px 24px; }
}

/* ── 입금계좌 통장 사본 팝업 ── */
.footer-account-overlay { display: none; position: fixed; inset: 0; z-index: 12000; align-items: center; justify-content: center; padding: 1rem; background: rgba(17,17,17,.52); backdrop-filter: blur(3px); font-family: var(--nds-font); }
.footer-account-overlay.open { display: flex; }
.footer-account-modal { position: relative; width: min(28rem, 100%); max-height: 90vh; overflow-y: auto; border-radius: 8px; background: #fff; border-top: 3px solid #FF0019; box-shadow: 0 1.75rem 5rem rgba(0,0,0,.28); }
.footer-account-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid #eee; background: #fff; }
.footer-account-title { margin: 0; font-size: 1.0625rem; font-weight: 700; color: #111; }
.footer-account-close { display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; flex-shrink: 0; border: 1px solid transparent; border-radius: 50%; background: none; color: #555; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.footer-account-close:hover { border-color: #ddd; background: #f7f7f7; color: #111; }
.footer-account-body { padding: 1.5rem; }
.footer-account-body img { display: block; width: 100%; border-radius: 6px; }
@media (max-width: 768px) {
  .footer-account-overlay { padding: 0 20px; background: rgba(21,24,29,.8); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .footer-account-modal { width: 100%; max-width: 350px; max-height: calc(100svh - 48px); overscroll-behavior: contain; }
  .footer-account-head { height: 56px; padding: 0 6px 0 16px; border-bottom-color: var(--nds-line); }
  .footer-account-title { font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--nds-ink); }
  .footer-account-close { width: 44px; height: 44px; border-radius: 4px; color: var(--nds-ink); }
  .footer-account-body { padding: 16px; }
}
