.rbp-banner-stack {
    width: 100%;
    position: relative;
    z-index: 1000;
}

.rbp-banner {
    width: 100%;
    text-align: center;
    overflow: hidden;
    font-size: 0.95rem;
    line-height: 1.4;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.rbp-banner-track {
    display: inline-flex;
    align-items: center;
    gap: 48px;
    white-space: nowrap;
    transform: translateX(0);
}

.rbp-banner[data-scroll-direction="none"] .rbp-banner-track {
    gap: 8px;
}

.rbp-banner-text {
    display: inline-block;
    white-space: nowrap;
}

.rbp-banner-track.rbp-marquee-left {
    animation: rbp-marquee-left linear infinite;
    animation-duration: var(--rbp-duration, 24s);
}

.rbp-banner-track.rbp-marquee-right {
    animation: rbp-marquee-right linear infinite;
    animation-duration: var(--rbp-duration, 24s);
}

@keyframes rbp-marquee-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes rbp-marquee-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Popups */
#rbp-popup-root {
    position: relative;
    z-index: 1100;
}

.rbp-popup-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1101;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.rbp-popup-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.rbp-popup {
    position: relative;
    width: 100%;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    box-sizing: border-box;
}

.rbp-popup-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rbp-popup-media img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.rbp-popup-content h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.6rem;
}

.rbp-popup-content p {
    margin-bottom: 0.75em;
}

.rbp-popup-actions {
    margin-top: 16px;
}

.rbp-popup-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    line-height: 1.2;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rbp-popup-button:hover,
.rbp-popup-button:focus {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.rbp-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

@media (min-width: 768px) {
    .rbp-popup-inner {
        flex-direction: row;
    }

    .rbp-popup-media,
    .rbp-popup-content {
        flex: 1;
    }
}
