.tn-loading {
  display: inline-block;
  flex: none;
  width: var(--tn-loading-width, 104px);
  max-width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--tn-loading-track, #83786d59);
  vertical-align: middle;
}

.tn-loading::before {
  display: block;
  width: 56%;
  height: 100%;
  border-radius: inherit;
  background: var(--tn-loading-segment, #ffc980);
  content: "";
  animation: tn-loading-slide 1.5s ease-in-out infinite alternate;
}

.tn-loading--compact { --tn-loading-width: 34px; }

.tn-loading-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

@keyframes tn-loading-slide {
  to { transform: translateX(79%); }
}

@media (prefers-reduced-motion: reduce) {
  .tn-loading::before { animation: none; transform: translateX(39%); }
}
