/* 앱 다운로드 안내 (2026-11-29) - /WEB-INF/common/appBanner.jsp
   .app-side = PC 오른쪽 카드: 메인 배너(최대 1333px, 가운데) 오른쪽 끝선에서 5px 띄워 붙임 (2026-11-29)
               카드 폭 116px + 5px이 배너 밖 여백에 들어가는 1600px 이상에서만
   .app-bar  = 휴대폰(Android 브라우저) 헤더 위 띠 */

/* ---------- PC 오른쪽 카드 ---------- */
.app-side { display: none; }
@media (min-width: 1600px) {
  .app-side {
    position: fixed; left: calc(50% + 666.5px + 5px); top: 50%; transform: translateY(-50%); z-index: 40;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    width: 116px; padding: 18px 8px 12px; box-sizing: border-box;
    background: #fff; border: 1px solid #e5e9f2; border-radius: 16px;
    box-shadow: 0 10px 30px rgba(17, 38, 80, .12); text-align: center;
  }
}
html.app-side-off .app-side, html.in-app .app-side { display: none; }
.app-side-close {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; padding: 0;
  border: 0; background: none; color: #9aa3b2; font-size: 18px; line-height: 1; cursor: pointer; border-radius: 6px;
}
.app-side-close:hover { color: #1f2937; background: #f3f5f9; }
.app-side-icon { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.app-side-title { margin: 2px 0 0; font-size: 14.5px; font-weight: 800; color: #1a2340; line-height: 1.3; word-break: keep-all; }
.app-side-desc { margin: 0 0 4px; font-size: 12px; color: #6b7280; line-height: 1.45; word-break: keep-all; }

.app-store-btn {
  display: flex; align-items: center; gap: 5px; width: 100%; height: 40px; padding: 0 6px; box-sizing: border-box;
  border-radius: 9px; background: #111827; color: #fff; text-decoration: none; text-align: left;
  transition: background .15s;
}
.app-store-btn:hover { background: #1166f0; }
.app-store-btn svg { flex-shrink: 0; }
.app-store-btn span { display: flex; flex-direction: column; font-size: 12.5px; font-weight: 700; line-height: 1.1; white-space: nowrap; letter-spacing: -.2px; }
.app-store-btn small { font-size: 9.5px; font-weight: 500; opacity: .8; }
.app-store-btn.is-soon { background: #eef1f6; color: #8a94a6; cursor: default; }
.app-store-btn.is-soon:hover { background: #eef1f6; }
.app-store-btn:focus-visible, .app-side-close:focus-visible, .app-bar-go:focus-visible, .app-bar-close:focus-visible { outline: 2px solid #1166f0; outline-offset: 2px; }

/* ---------- 휴대폰 헤더 위 띠 ---------- */
.app-bar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; background: #eef4ff; border-bottom: 1px solid #dbe6fb; }
.app-bar[hidden] { display: none; }
.app-bar-icon { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.app-bar-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.app-bar-text strong { font-size: 14px; font-weight: 800; color: #1a2340; }
.app-bar-text span { font-size: 12px; color: #4b5563; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-bar-go {
  flex-shrink: 0; height: 34px; padding: 0 14px; display: inline-flex; align-items: center;
  border-radius: 999px; background: #1166f0; color: #fff; font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.app-bar-close { flex-shrink: 0; width: 32px; height: 32px; padding: 0; border: 0; background: none; color: #6b7280; font-size: 22px; line-height: 1; cursor: pointer; }

/* ---------- 하단(footer) 앱 링크 ---------- */
.footer-app { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0 0 12px; font-size: 13.5px; }
.footer-app b { color: var(--text, #1f2937); font-weight: 700; }
.footer-app a { color: var(--blue, #1166f0); font-weight: 600; }
.footer-app a:hover { text-decoration: underline; }
.footer-app span { color: #9aa3b2; }
