.notifications-banner {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  background: transparent;
}

.notifications-ticker {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
  background: transparent;
}

.notifications-content {
  display: flex;
  flex-wrap: nowrap;
  animation: scroll-horizontal 30s linear infinite;
  gap: 0;
}

.notification-item {
  flex: 0 0 auto;
  white-space: nowrap;
}

.notification-item .fr-notice {
  margin: 0;
  border-radius: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
}

.notification-item .fr-notice__title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* Animation keyframes - Fixed to prevent page shifting */
@keyframes scroll-horizontal {
  0% {
    transform: translateX(100vw);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .notification-item {
    min-width: 300px;
    max-width: 400px;
  }

  .notifications-content {
    animation-duration: 25s;
  }
}

/* Ensure smooth scrolling and prevent page overflow */
.notifications-content {
  will-change: transform;
  backface-visibility: hidden;
}

/* Fix page layout issues */
.notifications-banner,
.notifications-ticker,
.notifications-content {
  max-width: 100vw;
  box-sizing: border-box;
}

/* Ensure the container doesn't affect page layout */
.notifications-ticker {
  position: relative;
  contain: layout style paint;
}
