/*
 * Uniwersalna nawigacja klienta.
 * Klasa .combajn-bottom-nav izoluje komponent od podglądu buildera admina
 * i od starszych globalnych reguł .bottom-nav w widokach usług.
 */
.bottom-nav.combajn-bottom-nav {
       --bottom-nav-accent: #ffc451;
    --bottom-nav-blue: #278cff;
    --bottom-nav-muted: #8b95a3;
    --bottom-nav-height: clamp(62px, 8dvh, 76px);
    position: fixed;
    right: 0;
    bottom: 0dvh;
    left: 0;
   /* z-index: 1;*/
    width: 98dvw !important;
    isolation: isolate;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    width: min(100%, 720px);
    height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    min-height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    margin-inline: auto;
    padding: 5px max(6px, env(safe-area-inset-right, 0px)) calc(5px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
    /* border: 1px solid rgba(145, 166, 191, 0.2); */
    /* border-bottom: 0; */
    /* border-radius: 22px 22px 0 0; */
    background: linear-gradient(180deg, rgb(16 16 15), rgba(3, 11, 20, 0.99)), #030d19;
    /* box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.06); */
    color: #fff;
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-tap-highlight-color: transparent;
}




.bottom-nav.combajn-bottom-nav::before {
  position: absolute;
  top: -1px;
  left: 50%;
  z-index: -1;
  width: min(44%, 260px);
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(39, 140, 255, 0.65), rgba(255, 196, 81, 0.75), transparent);
  content: "";
  transform: translateX(-50%);
}

.bottom-nav.combajn-bottom-nav .bottom-nav__item {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  padding: 6px 2px 3px;
  border: 0;
  border-radius: 14px;
  color: var(--bottom-nav-muted);
  background: transparent;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  transform: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.bottom-nav.combajn-bottom-nav .bottom-nav__item::after {
  position: absolute;
  right: 34%;
  bottom: 0;
  left: 34%;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  content: "";
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.bottom-nav.combajn-bottom-nav .bottom-nav__icon {
  display: block;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav.combajn-bottom-nav .bottom-nav__label {
  display: block;
  width: 100%;
  overflow: hidden;
  color: inherit;
  font: 600 clamp(9px, 1.25dvh, 12px)/1.1 "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav.combajn-bottom-nav .bottom-nav__item:is(.active, .is-active) {
  color: var(--bottom-nav-accent);
  background: linear-gradient(180deg, rgba(255, 196, 81, 0.08), transparent 82%);
}

.bottom-nav.combajn-bottom-nav .bottom-nav__item:is(.active, .is-active)::after {
  background: currentColor;
  box-shadow: 0 0 9px currentColor;
}

.bottom-nav.combajn-bottom-nav .bottom-nav__item--center {
  justify-content: flex-end;
  padding-top: 0;
  color: #a8b3c2;
}

.bottom-nav.combajn-bottom-nav .bottom-nav__center-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(44px, 6.3dvh, 56px);
  height: clamp(44px, 6.3dvh, 56px);
  margin-top: calc(clamp(10px, 1.5dvh, 14px) * -1);
  border: 1px solid rgba(103, 171, 255, 0.54);
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 35% 25%, rgba(83, 180, 255, 0.82), transparent 43%),
    linear-gradient(145deg, #147bec, #0750b8 70%, #063475);
  box-shadow: 0 7px 17px rgba(0, 86, 197, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.bottom-nav.combajn-bottom-nav[data-bottom-nav-mode="provider"] .bottom-nav__center-icon {
  border-color: rgba(255, 205, 103, 0.62);
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 226, 148, 0.88), transparent 42%),
    linear-gradient(145deg, #ffc451, #d48a08 72%, #744602);
  box-shadow: 0 7px 17px rgba(181, 112, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.bottom-nav.combajn-bottom-nav .bottom-nav__center-icon .bottom-nav__icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.9;
}

.bottom-nav.combajn-bottom-nav .bottom-nav__item--center:is(.active, .is-active) {
  color: #fff;
  background: transparent;
}

.bottom-nav.combajn-bottom-nav .bottom-nav__item--center:is(.active, .is-active)::after {
  color: var(--bottom-nav-blue);
}

.bottom-nav.combajn-bottom-nav[data-bottom-nav-mode="provider"] .bottom-nav__item--center:is(.active, .is-active)::after {
  color: var(--bottom-nav-accent);
}

@media (hover: hover) and (pointer: fine) {
  .bottom-nav.combajn-bottom-nav .bottom-nav__item:hover {
    color: #e8edf4;
    background-color: rgba(255, 255, 255, 0.045);
    transform: translateY(-2px);
  }

  .bottom-nav.combajn-bottom-nav .bottom-nav__item--center:hover {
    background-color: transparent;
  }
}

.bottom-nav.combajn-bottom-nav .bottom-nav__item:focus-visible {
  outline: 2px solid var(--bottom-nav-accent);
  outline-offset: -2px;
}

/* Stary panel wykonawcy ustawiał wspólny nav przez top:39dvh. */
.custom-container1 > .bottom-nav.combajn-bottom-nav {
  top: 37.5dvh;
}

html.combajn-native-webview .bottom-nav.combajn-bottom-nav {
  --bottom-nav-height: 8dvh;
  height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  min-height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 420px) {
  .bottom-nav.combajn-bottom-nav {
    border-radius: 18px 18px 0 0;
  }

  .bottom-nav.combajn-bottom-nav .bottom-nav__item {
    padding-inline: 1px;
  }

  .bottom-nav.combajn-bottom-nav .bottom-nav__label {
    font-size: clamp(8px, 2.35vw, 10px);
    letter-spacing: -0.01em;
  }
}

@media (max-width: 340px) {
  .bottom-nav.combajn-bottom-nav .bottom-nav__label {
    font-size: 8px;
  }

  .bottom-nav.combajn-bottom-nav .bottom-nav__icon {
    width: 20px;
    height: 20px;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .bottom-nav.combajn-bottom-nav {
    --bottom-nav-height: 56px;
  }

  .bottom-nav.combajn-bottom-nav .bottom-nav__item {
    min-height: 47px;
  }

  .bottom-nav.combajn-bottom-nav .bottom-nav__center-icon {
    width: 44px;
    height: 44px;
    margin-top: -8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bottom-nav.combajn-bottom-nav .bottom-nav__item,
  .bottom-nav.combajn-bottom-nav .bottom-nav__item::after {
    transition: none;
  }
}
