:host(:not(:is([hydrated], .hydrated))) {
  @apply not-hydrated;
}


mds-button {
  &:not(:is([hydrated], .hydrated)) {
    @apply not-hydrated;
  }
}


/**
 * @prop --mds-breadcrumb-arrow-depth-color: Sets the color of the arrow icon that separates buttons
 * @prop --mds-breadcrumb-button-background-disabled: Sets the background color of the back arrow button when it's disabled, on the first item
 * @prop --mds-breadcrumb-button-background-hover: Sets the background color of the button when the mouse is over it
 * @prop --mds-breadcrumb-button-background-selected: Sets the background color of the button of the selected item
 * @prop --mds-breadcrumb-button-background: Sets the background color of the button
 * @prop --mds-breadcrumb-button-color-current: Deprecated, use `--mds-breadcrumb-button-color-selected`; read only when that one is not set
 * @prop --mds-breadcrumb-button-color-hover: Sets the text color of the button when the mouse is over it
 * @prop --mds-breadcrumb-button-color-selected: Sets the text color of the button of the selected item
 * @prop --mds-breadcrumb-button-color: Sets the text color of the button
 * @prop --mds-breadcrumb-current-button-color: Deprecated, use `--mds-breadcrumb-button-color-selected`; read only when neither that one nor `--mds-breadcrumb-button-color-current` is set
 */

:host {
  --mds-breadcrumb-arrow-depth-color: rgb(var(--magma-text-subtle, var(--text-neutral-subtle, 99 99 99)));
  --mds-breadcrumb-button-background-disabled: transparent;
  --mds-breadcrumb-button-background-hover: rgb(var(--magma-wash-soft, var(--tone-neutral-10, 237 237 237)));
  --mds-breadcrumb-button-background-selected: rgb(var(--magma-wash-base, var(--tone-neutral-09, 225 225 225)));
  --mds-breadcrumb-button-background: transparent;
  --mds-breadcrumb-button-color-hover: rgb(var(--magma-text-default, var(--text-neutral-default, 5 5 5)));

  /* the two deprecated names of the selected colour are read only when an author sets them */
  --mds-breadcrumb-button-color-selected: var(
    --mds-breadcrumb-button-color-current,
    var(--mds-breadcrumb-current-button-color, rgb(var(--magma-text-default, var(--text-neutral-default, 5 5 5))))
  );
  --mds-breadcrumb-button-color: rgb(var(--magma-text-default, var(--text-neutral-default, 5 5 5)));

  @apply hide-scrollbar;

  align-items: center;
  display: flex;
  gap: 0;
  overflow: auto;
  padding: --spacing(200);
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  width: 100%;
}

.back[disabled] {
  --mds-button-background: var(--mds-breadcrumb-button-background-disabled, transparent);
}

:host::-webkit-scrollbar {
  display: none;
}
