/* Osmo Supply — Expanding Bottom Navigation. Vendor resource, kept verbatim.
   Do not tokenize/refactor — this is intentionally isolated from the theme's
   token layer so the animation + styling stay exactly as designed. */

[data-bottom-nav-init] {
  --closed-width: min(90vw, 15em);
  --open-width: min(90vw, 25em);
  --bar-height: 4em;
}

.bottom-nav {
  z-index: 100;
  position: fixed;
  bottom: 2em;
  left: 50%;
  transform: translate(-50%);
}

.bottom-nav__inner {
  will-change: width, height;
  width: var(--closed-width);
  height: var(--bar-height);
  background-color: #fafafa;
  border: 1px solid #0003;
  border-radius: .5em;
  flex-flow: column-reverse;
  justify-content: flex-start;
  align-items: center;
  display: flex;
  position: relative;
  overflow: hidden;
}

.bottom-nav__bar {
  width: 100%;
  height: var(--bar-height);
  flex: none;
  justify-content: space-between;
  align-items: center;
  padding: .5em .5em .5em 1em;
  display: flex;
  position: relative;
}

.bottom-nav__logo {
  color: #201d1d;
  justify-content: center;
  align-items: center;
  width: 4em;
  display: flex;
}

.bottom-nav__toggle {
  grid-column-gap: .25em;
  grid-row-gap: .25em;
  color: #fff;
  background-color: #1e6fec;
  border-radius: .3125em;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width: 2.5em;
  height: 2.5em;
  padding: 0;
  display: flex;
}

.bottom-nav__toggle-bar {
  background-color: currentColor;
  flex: none;
  width: 1.25em;
  height: .1em;
  padding: 0;
  display: block;
}

.bottom-nav__panel {
  grid-column-gap: 1.5em;
  grid-row-gap: 1.5em;
  scrollbar-width: none;
  overscroll-behavior: contain;
  max-height: calc(100svh - 7em);
  width: var(--open-width);
  flex-flow: column;
  flex: none;
  padding: 1.25em 1em 1em;
  display: flex;
  overflow-y: auto;
}

.bottom-nav__list {
  flex-flow: column;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
}

.bottom-nav__list-item {
  display: block;
}

.bottom-nav__link {
  letter-spacing: -.05em;
  color: inherit;
  padding-top: .2em;
  padding-bottom: .2em;
  font-size: 1.3em;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  display: block;
}

.bottom-nav__link.is--cta {
  color: #1e6fec;
}

.bottom-nav__divider {
  background-color: #0003;
  width: 100%;
  height: 1px;
}

.bottom-nav__secondary {
  grid-column-gap: 3em;
  grid-row-gap: 3em;
  flex-flow: row;
  justify-content: flex-start;
  align-items: flex-start;
  display: flex;
}

.bottom-nav__col {
  grid-column-gap: .75em;
  grid-row-gap: .75em;
  flex-flow: column;
  justify-content: flex-start;
  align-items: flex-start;
  display: flex;
}

.bottom-nav__label {
  color: #201d1da6;
  text-transform: uppercase;
  font-family: Haffer Mono, Arial, sans-serif;
  font-size: .75em;
  line-height: 1;
}

.bottom-nav__sublink {
  letter-spacing: -.02em;
  color: inherit;
  padding-top: .25em;
  padding-bottom: .25em;
  font-size: 1em;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  display: block;
}
