:root {
  --self-nav-height: 70px;
  --shop-width: 560px;
}

body.has-self-navigation {
  padding-bottom: calc(var(--self-nav-height) + env(safe-area-inset-bottom) + 16px) !important;
}

.self-bottom-navigation {
  position: fixed;
  z-index: 4500;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: var(--shop-width);
  height: calc(var(--self-nav-height) + env(safe-area-inset-bottom));
  min-height: var(--self-nav-height);
  margin: 0 auto;
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  border: 1px solid #e6e8ec;
  border-bottom: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 -2px 12px rgba(38, 42, 48, .04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.self-bottom-navigation > :is(a, button) {
  display: flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  border-radius: 12px;
  color: #757b84;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  border: 0;
  padding: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.self-bottom-navigation > :is(a, button):active {
  background: #f7f8fa;
}

.self-bottom-navigation a[aria-current="page"] {
  background: #fff4f4;
  color: #ef3038;
}

.self-bottom-navigation svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.self-bottom-navigation, .self-bottom-navigation * { box-sizing: border-box; }
.self-bottom-navigation > :is(a, button):focus-visible { outline:2px solid #ef3038; outline-offset:-2px; }
.self-bottom-navigation a[aria-disabled="true"] { opacity: .45; cursor: default; }
@media(max-width:560px) { .self-bottom-navigation { border-right:0; border-left:0; } }
