/* Custom Scrolling Banner - front styles */

.csb-banner {
  width: 100%;
  background: var(--bg-color, #111);
  height: var(--height, 60px);
  position: relative;
  overflow: hidden;
}

.csb-banner .csb-viewport {
  width: 100%;
  height: 100%;
  white-space: nowrap;
  display: flex;
  align-items: center;
  line-height: var(--height, 60px);
  transform: translateY(var(--parallax-y, 0));
  will-change: transform;
}

.csb-banner .csb-track {
  display: inline-flex;
  align-items: center;
  will-change: transform;
}

.csb-banner .csb-text {
  display: inline-block;
  padding-right: 2.5rem;
  font-size: var(--font-size, 20px);
  color: var(--text-color, #fff);
  font-family: var(--font-family, Arial, sans-serif);
  white-space: nowrap;
}

/* Mobile overrides */
@media (max-width: 768px) {
  .csb-banner {
    background: var(--m-bg-color, var(--bg-color, #111));
    height: var(--m-height, var(--height, 56px));
  }
  .csb-banner .csb-viewport {
    line-height: var(--m-height, var(--height, 56px));
  }
  .csb-banner .csb-text {
    font-size: var(--m-font-size, var(--font-size, 18px));
    color: var(--m-text-color, var(--text-color, #fff));
    font-family: var(--m-font-family, var(--font-family, Arial, sans-serif));
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .csb-banner .csb-track {
    transform: none !important;
  }
}

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

/* Full-bleed option to escape theme containers */
.csb-banner.csb-fullwidth {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
html.csb-nooverflow, body.csb-nooverflow { overflow-x: hidden; }
