/* ===================
   FluxHub 데모 안내 바 — 데모 상점(fluxhub_demo_bar_paths) 전용
   =================== */
.fhb-demobar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 150;
    background: var(--fs-dark, #111111);
    color: var(--fs-dark-ink, #ffffff);
}

.fhb-demobar__inner {
    max-width: var(--fs-maxw, 1200px);
    margin: 0 auto;
    padding: 10px var(--fs-gutter, 24px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    text-align: center;
}

.fhb-demobar__msg {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--fs-dark-ink-2, #9298a6);
}

.fhb-demobar__cta {
    flex: none;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--fs-r-full, 999px);
    background: var(--fs-accent, #047857);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease;
}

.fhb-demobar__cta:hover {
    background: var(--fs-accent-ink, #0c5c40);
}

.fhb-demobar__cta:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ---------- 360px~ ---------- */
@media (max-width: 480px) {
    .fhb-demobar__inner {
        padding: 8px 16px;
        gap: 8px;
    }
    .fhb-demobar__msg {
        width: 100%;
        font-size: 12px;
    }
    .fhb-demobar__cta {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- 헤더·본문 밀어내기 ----------
   --fhb-demobar-h 는 assets/js/demo-bar.js 가 실측해 넣는다.
   JS 가 아직 안 돌았을 때를 대비해 기본값(44px/60px)을 폴백으로 둔다 — 헤더와 겹치는 순간을 없앤다. */
body.fhb-has-demobar .fs-hd {
    top: calc(16px + var(--fhb-demobar-h, 44px));
}

body.fhb-has-demobar.fs-site .fs-main-content {
    padding-top: calc(var(--fs-header-h, 64px) + 16px + var(--fhb-demobar-h, 44px));
}

@media (max-width: 768px) {
    body.fhb-has-demobar .fs-hd {
        top: calc(10px + var(--fhb-demobar-h, 60px));
    }
    body.fhb-has-demobar.fs-site .fs-main-content {
        padding-top: calc(78px + var(--fhb-demobar-h, 60px));
    }
}
