.trust-strip {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    background-color: #f8f3ec;
    border-radius: 1rem;
    height: 60px;
    margin: var(--wp--preset--spacing--50) 0;
    padding: 0 2rem;
}

.trust-strip__slide {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 0 0 auto;
}

.trust-strip__item {
    flex: 0 0 auto;
    font-family: 'Source Sans 3', source-sans-3, sans-serif;
    font-weight: 900;
    font-size: 1.3333rem;
    color: #1e103d;
    opacity: 0.75;
    text-transform: uppercase;
}

.trust-strip__logo {
    flex: 0 0 auto;
    filter: grayscale(100%) brightness(80%);
    height: 41px;
    width: auto;
}

/* Carousel keyframe: slide in from right, stay, slide out to left, stay hidden until next cycle. */
@keyframes trust-carousel {
    0%    { opacity: 0; transform: translateX(16px); }
    3%    { opacity: 1; transform: translateX(0); }
    30%   { opacity: 1; transform: translateX(0); }
    33%   { opacity: 0; transform: translateX(-16px); }
    100%  { opacity: 0; transform: translateX(-16px); }
}

@media (max-width: 1023px) {
    .trust-strip {
        position: relative;
        overflow: hidden;
        height: 72px;
        padding: 0;
        justify-content: flex-start;
    }

    .trust-strip__slide {
        position: absolute;
        inset: 0;
        padding: 0 1.2rem;
        opacity: 0;
        animation: trust-carousel 15s infinite;
        animation-fill-mode: backwards;
        display: flex;
        align-items: center;
        gap: 2rem;
        justify-content: center;
    }

    /* Negative delay starts slide 1 at the fully-visible point in its keyframe immediately. */
    .trust-strip__slide:nth-child(1) { animation-delay: -0.45s; }
    .trust-strip__slide:nth-child(2) { animation-delay: 4.55s; }
    .trust-strip__slide:nth-child(3) { animation-delay: 9.55s; }

    .trust-strip__item {
        font-size: 1.5rem;
        white-space: normal;
        text-align: left;
        line-height: 1.2;
        max-width: 40rem;
        text-align: center;
    }

    .trust-strip__logo {
        height: auto;
        max-width: 75px;
        max-height: 40px;
        flex-shrink: 0;
    }
}

@media (max-width: 600px) {
    .trust-strip__item {
        max-width: 20rem;
    }
}
