.bottom-rolling {
    font-family: 'Noto Sans KR', 'Noto Sans', sans-serif;
    width: 100%;
    max-width: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    background: linear-gradient(to left, rgb(107 255 0), rgb(0 193 48), rgb(0 224 180));
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
     box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
}

.bottom-rolling[hidden] {
    display: none !important;
}

.bottom-rolling__inner {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 800px;
    min-height: 76px;
    margin: 0 auto;
    padding: 10px 54px;
    box-sizing: border-box;
}

.bottom-rolling__viewport {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

/* PC: macOS/Windows 모두 동일한 기준선으로 중앙 정렬 */
@media (min-width: 769px) {
    .bottom-rolling__inner {
        justify-content: center;
    }

    .bottom-rolling__viewport {
        flex: 1 1 0;
    }

    .bottom-rolling__slide.is-active {
        width: 100%;
    }
}

.bottom-rolling__slide {
    --bottom-rolling-color: #5CA9FF;
    position: relative;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 56px;
    padding-left: 0;
}

.bottom-rolling__slide::before {
    display: none;
}

.bottom-rolling__slide.is-active {
    display: flex;
    animation: bottomRollingFade 0.28s ease both;
}

.bottom-rolling__copy {
    flex: 1 1 auto;
    min-width: 0;
}

.bottom-rolling__headline {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.bottom-rolling__badge-row {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.bottom-rolling__mobile-dots {
    display: none;
}

.bottom-rolling__badge {
    position: relative;
    isolation: isolate;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 3px 9px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    color: #111;
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    overflow: hidden;
}

.bottom-rolling__badge::before {
    display: none;
}

.bottom-rolling__title {
    overflow: hidden;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bottom-rolling__content {
    overflow: hidden;
    margin: 5px 0 0;
    color: #FFFFFF;
    /* color: rgba(255, 255, 255, 0.6); */
    font-size: 13px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bottom-rolling__cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    height: 44px;
    min-height: 44px;
    padding: 0 24px;
    box-sizing: border-box;
    border: 1px solid #fff;
    border-radius: 999px;
    background: transparent;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.bottom-rolling__cta:hover {
    background: rgba(255, 255, 255, 0.10);
    filter: none;
    transform: translateY(-1px);
}

.bottom-rolling__cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    line-height: 1;
    transform: translateY(-1px);
}

.bottom-rolling__nav,
.bottom-rolling__close,
.bottom-rolling__dot {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.bottom-rolling__nav {
    display: none;
    align-items: center;
    justify-content: center;
    width: 51px;
    height: 44px;
    padding: 0;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1;
}

/*
 * 문자 ‹ ›는 폰트 자체의 baseline 때문에 실제 중앙과 시각적 중앙이 달라질 수 있다.
 * 글자를 숨기고 CSS 선으로 화살표를 만들어 정확히 가운데 배치한다.
 */
.bottom-rolling__nav > span {
    display: block;
    width: 14px;
    height: 14px;
    box-sizing: border-box;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
    font-size: 0;
    line-height: 0;
    transform-origin: 50% 50%;
}

.bottom-rolling__next > span {
    transform: rotate(45deg);
}

.bottom-rolling__prev > span {
    transform: rotate(-135deg);
}

.bottom-rolling__prev {
    margin-right: 16px;
}

.bottom-rolling__controls {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 44px;
    gap: 8px;
    margin-left: 14px;
}

.bottom-rolling__dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.bottom-rolling__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

.bottom-rolling__dot.is-active {
    background: #fff !important;
}

.bottom-rolling__close {
    position: absolute;
    top: 50%;
    right: 18px;
    display: block;
    width: 44px;
    height: 44px;
    padding: 0;
    box-sizing: border-box;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0;
    line-height: 0;
}

/* 문자 × 대신 중앙 교차선으로 그려서 시각적 중심을 정확히 맞춤 */
.bottom-rolling__close::before,
.bottom-rolling__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform-origin: 50% 50%;
}

.bottom-rolling__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.bottom-rolling__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.bottom-rolling__close:hover,
.bottom-rolling__nav:hover {
    color: #fff;
}

@keyframes bottomRollingFade {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    /*
     * PC 스타일은 위 영역 그대로 유지하고,
     * 여기부터 모바일에서만 레이아웃을 재구성합니다.
     */
    .bottom-rolling__inner {
        min-height: 96px;
        padding: 10px 18px 9px;
        align-items: stretch;
    }

    /* PC용 이전/다음 화살표는 모바일에서 숨김 */
    .bottom-rolling__prev,
    .bottom-rolling__next {
        display: none;
    }

    .bottom-rolling__viewport {
        width: 100%;
        min-width: 0;
    }

    .bottom-rolling__slide,
    .bottom-rolling__slide.is-active {
        position: relative;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0;
        min-height: 76px;
        padding: 0;
    }

    .bottom-rolling__slide::before {
        display: none;
    }

    /*
     * 텍스트 영역은 약 85%.
     * 우측에는 닫기(X)와 하단 화살표 버튼이 들어갈 공간을 남깁니다.
     */
    .bottom-rolling__copy {
        flex: 0 1 85%;
        width: 85%;
        max-width: calc(100% - 48px);
        min-width: 0;
        padding-right: 8px;
    }

    .bottom-rolling__headline {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        min-width: 0;
    }

    /* 모바일: 뱃지 바로 옆에 현재 페이지 dot */
    .bottom-rolling__badge-row {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        min-width: 0;
        width: auto;
    }

    .bottom-rolling__mobile-dots {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        margin-left: 1px;
    }

    .bottom-rolling__mobile-dot {
        display: block;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.45);
    }

    .bottom-rolling__mobile-dot.is-active {
        background: #fff;
    }

    /* 모바일 순서: [뱃지 + dot] → 타이틀 → 내용 */
    .bottom-rolling__badge-row {
        order: 1;
    }

    .bottom-rolling__badge {
        order: 0;
    }

    .bottom-rolling__mobile-dots {
        order: 1;
    }

    .bottom-rolling__title {
        order: 2;
    }

    .bottom-rolling__badge {
        min-height: 20px;
        padding: 3px 8px;
        border-radius: 7px;
        font-size: 10px;
        font-weight: 700;
        line-height: 1;
        letter-spacing: -0.02em;
    }

    /* 기존 13px보다 크게 */
    .bottom-rolling__title {
        width: 100%;
        font-size: 19px;
        line-height: 1.4;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* 기존 10px보다 크게 */
    .bottom-rolling__content {
        width: 100%;
        margin-top: 4px;
        font-size: 16px;
        line-height: 1.4;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /*
     * 모바일 CTA:
     * 문구는 숨기고 우측 하단에 흰색 보더 + 화살표만 표시.
     */
    .bottom-rolling__cta {
        position: absolute;
        right: 0;
        bottom: 8px;
        width: 36px;
        height: 36px;
        min-height: 36px;
        margin: 0;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.95);
        border-radius: 50%;
        background: transparent;
        gap: 0;
    }

    .bottom-rolling__cta > span:first-child {
        display: none;
    }

    .bottom-rolling__cta-arrow {
        position: relative;
        display: block;
        width: 18px;
        height: 12px;
        font-size: 0;
        line-height: 0;
        transform: none;
    }

    /* iOS/Safari에서도 모양이 깨지지 않도록 문자 → 대신 CSS로 화살표를 그림 */
    .bottom-rolling__cta-arrow::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        width: 16px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transform: translateY(-50%);
    }

    .bottom-rolling__cta-arrow::after {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        width: 7px;
        height: 7px;
        box-sizing: border-box;
        border-top: 2px solid currentColor;
        border-right: 2px solid currentColor;
        transform: translateY(-50%) rotate(45deg);
        transform-origin: center;
    }

    /*
     * 페이지 dot은 좌측 하단으로 이동.
     * controls 안의 next 버튼은 위에서 숨겼기 때문에 dots만 남습니다.
     */
    .bottom-rolling__controls {
        display: none;
    }

    .bottom-rolling__dots {
        display: flex;
        align-items: center;
        gap: 7px;
    }

    .bottom-rolling__dot {
        width: 6px;
        height: 6px;
    }

    /* X는 기존 모바일 위치/크기 유지 */
    .bottom-rolling__close {
        top: 7px;
        right: 8px;
        width: 45px;
        height: 45px;
        transform: none;
        font-size: 0;
    }
}

@media (max-width: 390px) {
    .bottom-rolling__inner {
        min-height: 92px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .bottom-rolling__copy {
        flex-basis: 84%;
        width: 84%;
        max-width: calc(100% - 48px);
    }

    .bottom-rolling__title {
        font-size: 18px;
    }

    .bottom-rolling__content {
        font-size: 14px;
    }

    .bottom-rolling__cta {
        width: 34px;
        height: 34px;
        min-height: 34px;
        bottom: 7px;
    }
}

/* 닫기(X) 버튼은 PC/모바일 모두 사용하지 않음 */
.bottom-rolling__close {
    display: none !important;
}