.ahangar-sticky-nav {
  direction: rtl;
  width: 100%;
  margin-inline: auto;
  z-index: 999;
}

.ahangar-sticky-nav *,
.ahangar-sticky-nav *::before,
.ahangar-sticky-nav *::after {
  box-sizing: border-box;
}

.ahangar-sticky-nav--fixed {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
}

.ahangar-sticky-nav--sticky {
  position: sticky;
  bottom: 0;
}

.ahangar-sticky-nav--safe-area {
  padding-bottom: env(safe-area-inset-bottom);
}

.ahangar-sticky-nav__bar {
  position: relative;
  width: 100%;
  min-height: 72px;
  overflow: visible;
}

.ahangar-sticky-nav__bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.ahangar-sticky-nav__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(
    var(--ahangar-sticky-nav-columns, 5),
    minmax(0, 1fr)
  );
  align-items: stretch;
  width: 100%;
  min-height: 72px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ahangar-sticky-nav__item {
  position: relative;
  min-width: 0;
}

.ahangar-sticky-nav__item--center {
  z-index: 2;
}

.ahangar-sticky-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding-inline: 4px;
  text-decoration: none;
  color: inherit;
  line-height: 1.35;
  -webkit-tap-highlight-color: transparent;
}

.ahangar-sticky-nav__link:hover,
.ahangar-sticky-nav__link:focus-visible {
  text-decoration: none;
}

.ahangar-sticky-nav__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -4px;
}

.ahangar-sticky-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  object-fit: contain;
  color: currentColor;
  line-height: 1;
}

.ahangar-sticky-nav__icon > *,
.ahangar-sticky-nav__icon i,
.ahangar-sticky-nav__icon svg,
.ahangar-sticky-nav__icon img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
}

.ahangar-sticky-nav__icon svg {
  fill: currentColor;
}

.ahangar-sticky-nav__icon img {
  object-fit: contain;
}

.ahangar-sticky-nav__text {
  display: block;
  max-width: 100%;
  min-width: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: color 160ms ease;
}

.ahangar-sticky-nav__link--center {
  position: absolute;
  top: 18px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  color: #ffffff;
  transform: translateX(-50%);
  transition: background-color 160ms ease;
}

.ahangar-sticky-nav__link--center:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: -8px;
}

.ahangar-sticky-nav__link--center .ahangar-sticky-nav__text {
  display: none;
}

@media (max-width: 767px) {
  .ahangar-sticky-nav__text {
    font-size: 14px;
  }

  .ahangar-sticky-nav__link {
    padding-inline: 2px;
  }
}
