/* 헤더 띠배너 */
#hd_top_banner_wrap {
    display: none;
    position: relative;
    width: 100%;
    height: 40px;
    z-index: 999;
}
#headerBanner {
    width: 100%;
    height: 40px;
    overflow: hidden;
}
#headerBanner .swiper-slide {
    height: 40px;
}
#headerBanner .swiper-slide a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: -0.3px;
    color: inherit;
    padding: 0 40px;
    box-sizing: border-box;
}
#hd_top_banner_close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(0,0,0,0.7);
    font-size: 14px;
    cursor: pointer;
    padding: 5px 8px;
    z-index: 10;
    line-height: 1;
    transition: color 0.2s;
}
#hd_top_banner_close:hover {
    color: #fff;
}

/* 헤더 고정 (PC: #hd_wrapper / 모바일: #hd_wr) */
#hd_wrapper.hd_fixed,
#hd_wr.hd_fixed {
    position: fixed !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: 430px;
    z-index: 998;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #fff;
}

/* 헤더 fixed 전환 시 점프방지용 placeholder — body 배경이 비쳐 검은 띠처럼 보이는 문제 해결 */
#hd_wrapper_placeholder {
    background: #fff;
}

@media (max-width: 768px) {
    #hd_top_banner_wrap {
        height: 36px;
    }
    #headerBanner,
    #headerBanner .swiper-slide {
        height: 36px;
    }
    #headerBanner .swiper-slide a {
        font-size: 12px;
        padding: 0 35px;
    }
    #hd_top_banner_close {
        right: 8px;
        font-size: 12px;
    }
}
