﻿/* ── item wrapper ────────────────────────────────────────────────── */
.ticker-v4-item {
    flex-shrink: 0;
    width: max-content;
    margin-right: 16px;
    user-select: none;
    -webkit-user-select: none;
    border-radius: 5px;
    contain: content;
}

/* ── marquee reveal transition ───────────────────────────────────── */

/* Real marquee starts invisible; .ticker-marquee-visible is added once to trigger the CSS fade-in. */
.ticker-marquee-reveal {
    opacity: 0;
    transition: opacity 300ms ease-out;
    will-change: opacity;
}

.ticker-marquee-reveal.ticker-marquee-visible {
    opacity: 1;
}

/* ── item box styles ─────────────────────────────────────────────── */
.ticker-item-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 130px;
    width: max-content;
    padding: 0 15px;
    height: 43px;
    border-radius: 5px;
    background-color: #202124;
    user-select: none;
    -webkit-user-select: none;
}

.ticker-item-no-shadow-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 130px;
    width: max-content;
    padding: 0 15px;
    height: 43px;
    border-radius: 5px;
    background-color: #202124;
    user-select: none;
    -webkit-user-select: none;
}

/* ── icon container ──────────────────────────────────────────────── */
.ticker-icon-container-v2 {
    position: relative;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    contain: layout size style;
}

.ticker-icon-v2 {
    width: 24px;
    height: 24px;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    image-rendering: crisp-edges;
    position: absolute;
    top: 0;
    left: 0;
    will-change: opacity;
    transform: translateZ(0);
}

.ticker-icon-fallback-v2 {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
}

/* ── text details ────────────────────────────────────────────────── */
.ticker-details-v2 {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.ticker-price-v2 {
    font-size: 1rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-symbol-v2 {
    font-size: 0.75rem;
    color: #b4b3b3;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


