.breadcrumbs {
  padding: var(--Spacing-x4) 0 var(--Spacing-x3);
  margin: 0 auto;
  width: 100%;
}

.breadcrumbs.transparent {
  background-color: transparent;
}
.breadcrumbs.surfaceSecondaryDefault {
  background-color: var(--Surface-Secondary-Default);
}
.breadcrumbs.surfacePrimaryOnSurfaceDefault {
  background-color: var(--Surface-Primary-On-Surface-Default);
}

.breadcrumbs .list {
  display: flex;
  gap: var(--Spacing-x-quarter);
  padding-inline-start: 0;
  margin: 0 auto;
}

.breadcrumbs.contentWidth .list {
  max-width: var(--max-width-content);
}
.breadcrumbs.headerWidth .list {
  max-width: min(var(--max-width-page), calc(100% - var(--max-width-spacing)));
}
.breadcrumbs.pageWidth .list {
  max-width: var(--max-width-page);
}

.list .listItem:last-of-type {
  flex: 1;
  max-width: 100%;
  min-width: 0;
}

.listItem {
  align-items: center;
  display: flex;
  gap: var(--Spacing-x-quarter);
  flex-shrink: 0;
  flex-grow: 0;
}

.listItem > a {
  display: flex;
}

.listItem > svg {
  flex-shrink: 0;
}

.button {
  border: none;
  background: transparent;
  height: 100%;

  /* this increases the width of the button for tapping */
  padding: 0 5px;
  margin: 0 -5px;
  color: var(--Base-Text-High-contrast);
}

.link {
  color: var(--Text-Interactive-Secondary);
}

.link:hover,
.button:hover {
  color: var(--Text-Interactive-Secondary-Hover);
}

.dialog {
  background-color: var(--Base-Surface-Primary-light-Normal);
  padding: var(--Spacing-x1);
  display: flex;
  flex-direction: column;
  gap: var(--Spacing-x-half);
  border-radius: var(--Corner-radius-md);
  min-width: 169px;
  outline: none;
  box-shadow: 0 0 4px 2px rgb(0 0 0 / 10%);
}

.dialogLink {
  display: block;
  border-radius: var(--Corner-radius-md);
  padding: var(--Spacing-x1);
  color: var(--Text-Default);
}

.dialogLink:focus,
.dialogLink:hover {
  background-color: var(--Base-Surface-Primary-light-Hover);
}

.tooltipTrigger {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.tooltip {
  background-color: var(--Surface-UI-Fill-Intense);
  padding: var(--Spacing-x-half) var(--Spacing-x1);
  border-radius: var(--Corner-radius-sm);
  color: var(--Text-Inverted);
  outline: none;
}

@media screen and (width <= 767px) {
  .desktop {
    display: none;
  }
}

@media screen and (width >= 768px) {
  .mobile {
    display: none;
  }
  .desktop {
    display: flex;
  }
}
