* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.caaps-crypto-ticker-container {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    height: 46px;
    justify-content: flex-start;
    line-height: 0;
}

.caaps-crypto-ticker {
    display: flex;
    white-space: nowrap;
    animation: caaps-ticker-scroll linear infinite;
    flex-grow: 1;
    font-weight: bold;
    height: 100%;
    align-items: center;
    gap: 10px;
}

/* Theme styles */
.caaps-crypto-ticker.dark {
    background-color: #1a1a1a;
    color: #fff;
    padding: 0 10px;
}

.caaps-crypto-ticker.light {
    background-color: #fff;
    color: #000;
    padding: 0 10px;
}

.caaps-crypto-ticker.transparent {
    background-color: transparent;
    color: inherit;
}

.caaps-crypto-ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    line-height: 0;
    vertical-align: middle;
}

.caaps-crypto-separator {
    content: '|';
    color: rgba(128, 128, 128, 0.9);
    font-size: 18px;
    margin-left: 8px;
    align-self: stretch;
}

.caaps-crypto-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.caaps-crypto-name, .caaps-crypto-price {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    line-height: 0;
    white-space: nowrap;
}

.caaps-crypto-change-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.caaps-crypto-change {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    white-space: nowrap;
    color: inherit;
    min-width: 8px;
    height: 24px;
}

.caaps-crypto-change-arrow {
    display: inline-block;
    margin-right: 4px;
    font-size: 14px;
    line-height: 1;
    vertical-align: middle;
}

.caaps-crypto-change-value {
    display: inline-block;
    font-size: inherit;
    vertical-align: middle;
    line-height: 1;
}

.caaps-crypto-change.green {
    color: #16c784;
    background-color: rgba(22, 199, 132, 0.1);
}

.caaps-crypto-change.red {
    color: #ea3943;
    background-color: rgba(234, 57, 67, 0.1);
}

.caaps-coingecko-logo {
    position: absolute;
    bottom: 4px;
    right: 8px;
    font-size: 9px;
    color: inherit;
    z-index: 2;
}

.caaps-coingecko-logo a {
    text-decoration: none;
    color: rgba(128, 128, 128, 0.9);
}

@keyframes caaps-ticker-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.caaps-crypto-ticker:hover {
    animation-play-state: paused;
}