/* =========================================================
   FLOAT BOTTOM MENU — APP STYLE DARK WITH LABELS
========================================================= */

.my-float-bottom {
  position: fixed;
  left: 50%;
  bottom: 12px;
  width: calc(100% - 24px);
  max-width: 520px;
  padding: 0;
  background: transparent;
  z-index: 9999;
  transform: translateX(-50%);
  animation: appTabFadeUp 0.55s ease-out forwards;
}

@keyframes appTabFadeUp {
  from {
    transform: translate(-50%, 36px);
    opacity: 0;
  }

  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.my-float-bottom ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;

  width: 100%;
  margin: 0;
  padding: 8px;

  list-style: none;

  background: rgba(38, 38, 38, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;

  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.38);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.my-float-bottom li {
  flex: 1;
  margin: 0;
  padding: 0;
  text-align: center;
  list-style: none;
}

.my-float-bottom a {
  position: relative;

  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;

  width: 62px;
  height: 54px;

  font-size: 18px;
  line-height: 1;

  color: #fff !important;
  text-decoration: none !important;

  background: transparent;
  border-radius: 18px;

  outline: none !important;
  -webkit-tap-highlight-color: transparent;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.my-float-bottom a i {
  display: block;
  font-size: 18px;
  line-height: 1;
  color: inherit !important;
}

.my-float-bottom a span {
  display: block;
  max-width: 58px;

  font-size: 10px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.01em;

  color: inherit !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Наведение / нажатие / активный пункт */
.my-float-bottom a:hover,
.my-float-bottom a:focus,
.my-float-bottom a:active,
.my-float-bottom a.is-active {
  color: #fff !important;
  background: linear-gradient(135deg, #f10808, #d21212) !important;
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(241, 8, 8, 0.35);
}

.my-float-bottom a:hover i,
.my-float-bottom a:focus i,
.my-float-bottom a:active i,
.my-float-bottom a.is-active i {
  color: #fff !important;
}


/* =========================================================
   TOOLTIP — ONLY DESKTOP
========================================================= */

.my-float-bottom a::after {
  content: attr(title);

  position: absolute;
  bottom: 64px;
  left: 50%;
  z-index: 2;

  padding: 6px 10px;

  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;

  color: #fff;
  background: rgba(0, 0, 0, 0.85);

  border-radius: 8px;

  opacity: 0;
  pointer-events: none;

  transform: translateX(-50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.my-float-bottom a:hover::after,
.my-float-bottom a:focus::after {
  opacity: 1;
  transform: translate(-50%, -5px);
}


/* =========================================================
   FONT AWESOME FIX
========================================================= */

.my-float-bottom i.fa,
.my-float-bottom .fa,
.my-float-bottom .fa-solid,
.my-float-bottom .fa-brands,
.my-float-bottom .fa-regular,
.my-float-bottom .fab,
.my-float-bottom .fas {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-style: normal !important;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* =========================================================
   SCROLL TOP BUTTON
========================================================= */

.my-float-bottom a.scroll-top-btn {
  opacity: 0;
  pointer-events: none;
}

.my-float-bottom a.scroll-top-btn[style*="opacity: 1"] {
  opacity: 1 !important;
  pointer-events: auto !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {
  body {
    padding-bottom: 92px;
  }

  .my-float-bottom {
    width: calc(100% - 16px);
    max-width: none;
    bottom: 8px;
  }

  .my-float-bottom ul {
    gap: 2px;
    padding: 7px;
    border-radius: 22px;
  }

  .my-float-bottom a {
    width: 52px;
    height: 52px;
    font-size: 17px;
    border-radius: 16px;
  }

  .my-float-bottom a i {
    font-size: 17px;
  }

  .my-float-bottom a span {
    max-width: 48px;
    font-size: 9px;
  }

  .my-float-bottom a::after {
    display: none;
  }
}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 390px) {
  .my-float-bottom {
    width: calc(100% - 10px);
    bottom: 6px;
  }

  .my-float-bottom ul {
    padding: 6px 5px;
  }

  .my-float-bottom a {
    width: 48px;
    height: 50px;
  }

  .my-float-bottom a span {
    font-size: 8.5px;
  }
}