.cobalt-tabs {
  @apply c-bg-secondary;
  position: relative;
}

.cobalt-tabs__labels {
  position: relative;

  display: flex;
  width: 100%;
  overflow-y: auto;

  background: none;
}

.cobalt-tabs__label {
  @apply c-text-section-heading c-p-md c-bg-secondary c-state-interactive c-transition-interactive;
  position: relative;

  display: flex;
  justify-content: center;
  flex: 1 0 auto;
  align-items: center;
  border: 0;

  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  font-size: 1rem;
  line-height: 1;

  outline: none;
  cursor: pointer;

  &[data-selected] {
    @apply c-text-base;
  }
}

.cobalt-tabs__indicator {
  @apply c-bg-accent;
  top: calc(100% - 3px);

  width: var(--width);
  height: 3px;
  --transition-duration: 0.15s;
  --transition-timing-function: ease-in-out;
}

.cobalt-tabs__labels--subLevel {
  .cobalt-tabs__label {
    flex: 0 0 auto;

    text-transform: none;
  }

  .cobalt-tabs__indicator {
    @apply c-bg-transparent;
  }
}
