/* It takes its own height where it is, the end of the page, so that it covers nothing there. */
.part--bottom-bar {
  --bottom-bar-height: calc(58px + env(safe-area-inset-bottom, 0px));
  min-height: var(--bottom-bar-height);
  color: var(--color-text);
  font-family: var(--font-body);
}
.part--bottom-bar .bottom-bar__list {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 54;
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 0;
  height: var(--bottom-bar-height);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid var(--color-border);
  background: var(--sc-ground, var(--color-background));
  box-shadow: 0 -8px 24px -16px color-mix(in srgb, var(--color-dark) 40%, transparent);
  transition: transform 0.3s ease;
}
.part--bottom-bar.is-hiding.is-away:not(:focus-within) .bottom-bar__list {
  transform: translateY(101%);
}
@media (min-width: 768px) {
  .part--bottom-bar:not(.is-shown) {
    display: none;
  }

  /* In the editor, as wide as a phone while it is selected. */
  .part--bottom-bar.is-shown {
    min-height: 0;
  }
  .part--bottom-bar.is-shown .bottom-bar__list {
    right: auto;
    left: calc(50% - 195px);
    width: 390px;
    border: 1px solid var(--color-border);
    border-bottom: 0;
  }
}
/* Where nothing is run, as in the panel it is added from: as wide as a phone, in its own place. */
@media (scripting: none) and (min-width: 768px) {
  .part--bottom-bar:not(.is-shown) {
    display: block;
    padding: 24px 0;
  }
  .part--bottom-bar:not(.is-shown) .bottom-bar__list {
    position: relative;
    width: 390px;
    margin: 0 auto;
    border: 1px solid var(--color-border);
  }
}
@media (prefers-reduced-motion: reduce) {
  .part--bottom-bar .bottom-bar__list {
    transition: none;
  }
}
