.tn-ticker-tape {
  --tn-ticker-speed: 28s;
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
  color: #ffffff;
  background: #e9252a;
  font-family: inherit;
}

.tn-ticker-tape__track {
  width: max-content;
  display: flex;
  align-items: center;
  animation: tn-ticker-tape-scroll var(--tn-ticker-speed) linear infinite;
  white-space: nowrap;
}

.tn-ticker-tape--pause:hover .tn-ticker-tape__track,
.tn-ticker-tape--pause:focus-within .tn-ticker-tape__track {
  animation-play-state: paused;
}

.tn-ticker-tape__group,
.tn-ticker-tape__item {
  display: inline-flex;
  align-items: center;
}

.tn-ticker-tape__message {
  appearance: none;
  border: 0;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: currentColor;
  text-decoration: none;
  text-transform: uppercase;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
  cursor: default;
}

a.tn-ticker-tape__message,
button.tn-ticker-tape__message {
  cursor: pointer;
}

.tn-ticker-tape__message:hover,
.tn-ticker-tape__message:focus {
  color: currentColor;
  text-decoration: underline;
}

.tn-ticker-tape__divider {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #00a0cc;
}

@keyframes tn-ticker-tape-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tn-ticker-tape__modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  padding: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 41, .62);
  color: #182033;
}

.tn-ticker-tape__modal[aria-hidden="false"] {
  display: flex;
}

.tn-ticker-tape__modal-card {
  position: relative;
  width: min(100%, 520px);
  max-height: min(80vh, 640px);
  overflow: auto;
  padding: 26px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 41, .28);
}

.tn-ticker-tape__modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #182033;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.tn-ticker-tape__modal h3 {
  margin: 0 34px 12px 0;
  color: #182033;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
}

.tn-ticker-tape__modal-content {
  color: #334155;
  font-size: 16px;
  line-height: 1.55;
}

.tn-ticker-tape-empty {
  padding: 12px;
  color: #64748b;
  background: #f8fafc;
  font-size: 14px;
}

@media (max-width: 767px) {
  .tn-ticker-tape__message {
    padding: 0 10px;
    font-size: 11px;
  }

  .tn-ticker-tape__modal-card {
    padding: 22px;
  }
}
