.spcb-banner {
    position: relative;
    z-index: 9998;
    background: var(--spcb-bg, #f4df22);
    color: var(--spcb-text, #111111);
    min-height: var(--spcb-height, 52px);
    width: 100%;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

.spcb-banner--sticky {
    position: sticky;
    top: 0;
}

body.admin-bar .spcb-banner--sticky {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .spcb-banner--sticky {
        top: 46px;
    }
}

.spcb-banner__viewport {
    overflow: hidden;
    width: 100%;
    min-height: var(--spcb-height, 52px);
    display: flex;
    align-items: center;
}

.spcb-banner__track {
    display: flex;
    width: max-content;
    min-width: 200%;
    animation: spcb-marquee var(--spcb-speed, 24s) linear infinite;
    will-change: transform;
}

.spcb-banner:hover .spcb-banner__track {
    animation-play-state: paused;
}

.spcb-banner__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    white-space: nowrap;
    padding: 8px 48px;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    box-sizing: border-box;
}

.spcb-banner__message {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.15;
}

.spcb-banner__subtext {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--spcb-accent, #111111);
}

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

@media (max-width: 767px) {
    .spcb-banner--hide-mobile {
        display: none;
    }

    .spcb-banner {
        min-height: auto;
    }

    .spcb-banner__viewport {
        min-height: auto;
    }

    .spcb-banner__message {
        display: block;
        width: 100%;
        font-size: 14px;
        line-height: 1.2;
    }

    .spcb-banner__subtext {
        display: block;
        width: 100%;
        font-size: 12px;
        line-height: 1.25;
    }

    .spcb-banner__item {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 8px 24px;
        white-space: normal;
        text-align: center;
        overflow-wrap: anywhere;
        flex: 0 0 auto;
        width: auto;
        max-width: none;
    }
}
