/** Floating footer elements */

.bds-tray {
  position: fixed;
  bottom: calc(1em - var(--spacing-1));
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: var(--transition);
}

.bds-tray > * {
  margin-bottom: var(--spacing-1);
}

.bds-tray #fixed-button {
  order: 1;
}

.bds-tray #a11y-toolbar {
  order: 5;
}

.bds-tray #back-to-top {
  order: 10;
}

.bds-tray.at-bottom {
  transform: translateY(-1.5em);
}

#bds-tray-left {
  left: 1em;
}

#bds-tray-right {
  right: 1em;
  align-items: flex-end;
}

body.mm-wrapper--opened.mm-wrapper--position-left #bds-tray-left,
body.mm-wrapper--opened.mm-wrapper--position-right #bds-tray-right {
  z-index: 0;
}
