.bcsg-flight-board {
  --flight-board-bg: #16021c;
  --flight-board-line: rgba(255, 255, 255, 0.14);
  align-items: stretch;
  background:
    radial-gradient(circle at 14% 0%, rgba(122, 29, 133, 0.42), transparent 32rem),
    var(--flight-board-bg);
  border-block: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 80px;
  overflow: hidden;
  position: relative;
}

.bcsg-flight-board__label,
.bcsg-flight-board__action {
  align-items: center;
  color: #fff;
  display: flex;
  position: relative;
  text-decoration: none;
  z-index: 2;
}

.bcsg-flight-board__label {
  background: linear-gradient(135deg, #ffbf00, #f2a900);
  box-shadow: 16px 0 34px rgba(0, 0, 0, 0.24);
  color: #210025;
  gap: 0.65rem;
  min-width: 245px;
  padding: 0.85rem clamp(1rem, 2.3vw, 2.4rem);
}

.bcsg-flight-board__label-icon {
  height: 28px;
  width: 28px;
}

.bcsg-flight-board__label span {
  display: grid;
  line-height: 1.15;
}

.bcsg-flight-board__label strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.bcsg-flight-board__label small {
  font-size: 0.69rem;
  font-weight: 700;
  margin-top: 0.25rem;
  opacity: 0.72;
  text-transform: uppercase;
}

.bcsg-flight-board__viewport {
  align-items: center;
  display: flex;
  min-width: 0;
  overflow: hidden;
}

.bcsg-flight-board__track {
  animation: bcsg-flight-board-scroll 50s linear infinite;
  display: flex;
  flex: none;
  min-width: max-content;
  will-change: transform;
}

.bcsg-flight-board:hover .bcsg-flight-board__track,
.bcsg-flight-board:focus-within .bcsg-flight-board__track {
  animation-play-state: paused;
}

.bcsg-flight-board__group {
  align-items: center;
  display: flex;
  flex: none;
  padding-right: 2rem;
}

.bcsg-flight-board__item {
  align-items: center;
  border-right: 1px solid var(--flight-board-line);
  display: inline-flex;
  flex: none;
  gap: 0.58rem;
  margin-right: 1.15rem;
  padding-right: 1.15rem;
  white-space: nowrap;
}

.bcsg-flight-board__direction {
  background: rgba(255, 191, 0, 0.14);
  border: 1px solid rgba(255, 191, 0, 0.38);
  border-radius: 999px;
  color: #ffca2d;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.23rem 0.42rem;
}

.bcsg-flight-board__item strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.bcsg-flight-board__route,
.bcsg-flight-board__item time {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.79rem;
  font-weight: 650;
}

.bcsg-flight-board__route span {
  color: #ffbf00;
}

.bcsg-flight-board__status {
  color: #75e6a6;
  font-size: 0.72rem;
  font-weight: 750;
}

.bcsg-flight-board__item[data-status*="cancel"] .bcsg-flight-board__status,
.bcsg-flight-board__item[data-status*="divert"] .bcsg-flight-board__status {
  color: #ff808a;
}

.bcsg-flight-board__item[data-status*="delay"] .bcsg-flight-board__status {
  color: #ffd166;
}

.bcsg-flight-board__item[data-status="pending"] .bcsg-flight-board__status {
  color: rgba(255, 255, 255, 0.58);
}

.bcsg-flight-board__action {
  background: #25052d;
  border-left: 1px solid var(--flight-board-line);
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.45rem;
  justify-content: center;
  min-width: 160px;
  padding: 0.75rem 1.1rem;
  white-space: nowrap;
}

.bcsg-flight-board__action:hover,
.bcsg-flight-board__action:focus-visible {
  background: #3a0a46;
  color: #ffca2d;
}

.bcsg-flight-board__action svg {
  height: 18px;
  width: 18px;
}

@keyframes bcsg-flight-board-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 760px) {
  .bcsg-flight-board {
    grid-template-columns: 1fr auto;
    min-height: 0;
  }

  .bcsg-flight-board__label {
    grid-column: 1 / -1;
    min-width: 0;
    padding: 0.62rem 1rem;
  }

  .bcsg-flight-board__label-icon {
    height: 22px;
    width: 22px;
  }

  .bcsg-flight-board__viewport {
    min-height: 58px;
  }

  .bcsg-flight-board__action {
    font-size: 0;
    min-width: 54px;
    padding-inline: 0.8rem;
  }

  .bcsg-flight-board__action svg {
    height: 22px;
    width: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bcsg-flight-board__viewport {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .bcsg-flight-board__track {
    animation: none;
  }

  .bcsg-flight-board__group[aria-hidden="true"] {
    display: none;
  }
}
