.kc-bottom-nav-space {
  height: calc(86px + env(safe-area-inset-bottom, 0px));
}

.kc-bottom-nav {
  --dock-ink: #173d53;
  position: fixed;
  z-index: 920;
  inset: auto 0 calc(10px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(340px, calc(100% - 24px));
  margin-inline: auto;
  padding: 4px;
  box-sizing: border-box;
  border: 1px solid rgba(23, 61, 83, .12);
  border-radius: 22px;
  background: #fffdf8;
  box-shadow: 0 10px 38px rgba(23, 61, 83, .18), 0 2px 8px rgba(23, 61, 83, .06);
  color: var(--dock-ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.kc-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 52px;
  padding: 2px 4px;
  border-radius: 17px;
  box-sizing: border-box;
  color: var(--dock-ink);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease;
}

.kc-bottom-nav__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 27px;
  border-radius: 11px;
  transition: background-color 160ms ease, transform 160ms ease;
}

.kc-bottom-nav__icon svg {
  width: 20px;
  height: 20px;
}

.kc-bottom-nav__label {
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}

.kc-bottom-nav__icon--home { background: #fff0c0; }
.kc-bottom-nav__icon--stylists { background: #dff5f3; }
.kc-bottom-nav__icon--account { background: #eee6fa; }
.kc-bottom-nav__item.is-active { background: #fff3ce; }
.kc-bottom-nav__item.is-active .kc-bottom-nav__icon { background: #ffda65; }
.kc-bottom-nav__item:focus-visible { outline: 3px solid #178a99; outline-offset: -3px; }
.kc-bottom-nav__item:active .kc-bottom-nav__icon { transform: scale(.94); }

.kc-bottom-nav__avatar {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fffdf8;
  box-shadow: 0 0 0 1px rgba(23, 61, 83, .16);
}
.kc-bottom-nav__avatar[hidden] { display: none; }
.kc-bottom-nav__icon--account.has-avatar svg { display: none; }
.kc-bottom-nav__item .kc-bottom-nav__icon--account.has-avatar {
  height: 30px;
  background: transparent;
}

.kc-bottom-nav__item.is-nudging {
  animation: kc-account-shake 3s ease-in-out;
  transform-origin: center 65%;
}

@keyframes kc-account-shake {
  0%, 100% { transform: translateX(0) rotate(0); }
  10%, 30%, 50%, 70% { transform: translateX(-3px) rotate(-2deg); }
  20%, 40%, 60%, 80% { transform: translateX(3px) rotate(2deg); }
  90% { transform: translateX(-1px) rotate(-.5deg); }
}

/* Keep consent and the expanded navigation in control of the viewport. */
body:has(#kcCookieBanner) .kc-bottom-nav,
body:has(#kcNavMenu.is-open) .kc-bottom-nav {
  visibility: hidden;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .kc-bottom-nav {
    left: 20px;
    right: auto;
    margin-inline: 0;
  }
}

@media (hover: hover) {
  .kc-bottom-nav__item:not(.is-active):hover { background: #f3f2eb; }
}

@media (prefers-reduced-motion: reduce) {
  .kc-bottom-nav__item,
  .kc-bottom-nav__icon { transition: none; }
  .kc-bottom-nav__item.is-nudging { animation: none; }
}
