/* ==========================================================================
   oppadu-top-banner v1.0.0
   ========================================================================== */

.oppadu-top-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: var(--z-sticky, 200);
    display: none;
}

.oppadu-top-banner--visible {
    display: block;
}

.oppadu-top-banner--hidden {
    display: none;
}

/* 슬라이드 트랙 (세로 이동) */
.oppadu-top-banner__track {
    display: flex;
    flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 개별 슬라이드 */
.oppadu-top-banner__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
    flex-shrink: 0;
}

.oppadu-top-banner__slide:hover {
    opacity: 0.92;
    text-decoration: none;
}

.oppadu-top-banner__slide:focus {
    outline: none;
    text-decoration: none;
}

/* 아이콘 + 텍스트 래퍼 */
.oppadu-top-banner__content {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm, 8px);
    max-width: var(--max-w, 1200px);
    padding: 0 50px 0 var(--px, 30px);
}

/* 아이콘 */
.oppadu-top-banner__icon {
    width: var(--font-2xl);
    height: var(--font-2xl);
    object-fit: contain;
    flex-shrink: 0;
}

/* 텍스트 */
.oppadu-top-banner__text {
    font-size: var(--font-2sm);
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 닫기 버튼 */
.oppadu-top-banner__close {
    position: absolute;
    top: 50%;
    right: var(--space-md, 16px);
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    z-index: 1;
    transition: opacity var(--transition-fast, 0.15s ease);
}

.oppadu-top-banner__close:hover {
    color: rgba(255, 255, 255, 1);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .oppadu-top-banner__text {
        font-size: var(--font-xs, 0.75rem);
    }

    .oppadu-top-banner__icon {
        width: 16px;
        height: 16px;
    }

    .oppadu-top-banner__content {
        padding: 0 40px 0 var(--space-md, 16px);
    }

    .oppadu-top-banner__close {
        right: var(--space-sm, 8px);
        font-size: 18px;
    }
}
