.landing-page--with-promo-ribbon,
.story-form-v2-page--with-promo-ribbon {
    --promo-ribbon-height: 42px;
    --page-header-offset: calc(var(--navbar-height) + var(--promo-ribbon-height));
}

.promo-ribbon {
    --promo-ribbon-segment-width: 0px;
    --promo-ribbon-duration: 14s;
    min-height: var(--promo-ribbon-height, 42px);
    background: linear-gradient(90deg, #fff7eb 0%, #fff3df 100%);
    border-top: 1px solid rgba(17, 24, 39, 0.06);
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.promo-ribbon__link {
    display: block;
    width: 100%;
    min-height: inherit;
    color: #432818;
    text-decoration: none;
    text-transform: uppercase;
}

.promo-ribbon__viewport {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: inherit;
    overflow: hidden;
}

.promo-ribbon__track {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: max-content;
    min-width: 100%;
    transform: translate3d(0, 0, 0);
}

.promo-ribbon--animated .promo-ribbon__track {
    animation: promo-ribbon-scroll var(--promo-ribbon-duration) linear infinite;
    will-change: transform;
}

.promo-ribbon__segment {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    min-width: max-content;
    padding: 0 1.25rem;
}

.promo-ribbon__label {
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.promo-ribbon__label--campaign {
    color: #111827;
    font-weight: 900;
}

.promo-ribbon__label--offer {
    color: #7c2d12;
}

.promo-ribbon__label--detail {
    color: #6b7280;
}

.promo-ribbon__label--cta {
    color: var(--primary, #bd3d75);
}

.promo-ribbon__separator {
    margin: 0 1rem;
    color: rgba(17, 24, 39, 0.28);
    font-size: 0.82rem;
}

@keyframes promo-ribbon-scroll {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(calc(-1 * var(--promo-ribbon-segment-width)), 0, 0);
    }
}

@media (max-width: 768px) {
    .landing-page--with-promo-ribbon,
    .story-form-v2-page--with-promo-ribbon {
        --promo-ribbon-height: 36px;
    }

    .promo-ribbon__segment {
        padding: 0 0.9rem;
    }

    .promo-ribbon__marquee {
        gap: 1rem;
    }

    .promo-ribbon__label {
        font-size: 0.64rem;
        letter-spacing: 0.12em;
    }

    .promo-ribbon__separator {
        margin: 0 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .promo-ribbon__track {
        width: 100%;
        transform: none;
    }

    .promo-ribbon__segment {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 0.25rem;
    }
}
