.tddt-banner {
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    background: var(--tddt-bg-color);
    color: var(--tddt-text-color);
    padding: var(--tddt-padding) 0;
    position: relative;
    z-index: 9999;
    line-height: 1.3;
}

.tddt-track {
    display: flex;
    width: max-content;
    min-width: 200%;
    animation: tddt-scroll var(--tddt-speed) linear infinite;
    will-change: transform;
}

.tddt-item {
    flex: 0 0 50%;
    width: 50%;
    box-sizing: border-box;
    padding: 0 5vw;
    text-align: center;
    white-space: nowrap;
    font-size: var(--tddt-font-size);
    font-weight: 600;
}

@keyframes tddt-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.tddt-position-bottom {
    position: fixed;
    left: 0;
    bottom: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    .tddt-track {
        animation: none;
        width: 100%;
        min-width: 100%;
    }

    .tddt-item {
        flex: 0 0 100%;
        width: 100%;
    }

    .tddt-item:nth-child(2) {
        display: none;
    }
}

@media (max-width: 600px) {
    .tddt-item {
        font-size: max(14px, var(--tddt-font-size));
        padding-left: 15px;
        padding-right: 15px;
    }
}
