/* Sticky buy bar — desktop + tablet + mobile */

.mobile-sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  display: block;
  padding: 7px 20px;
  border-top: 1px solid #dce3eb;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 -6px 22px rgba(5, 31, 56, .12);

  transform: translateY(110%);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;

  transition:
    transform .22s ease,
    opacity .22s ease,
    visibility .22s ease;
}

.mobile-sticky-buy.is-visible {
  transform: translateY(0);
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mobile-sticky-buy__inner {
  width: 100%;
  max-width: 1260px;
  min-height: 48px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mobile-sticky-buy__price {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}

.mobile-sticky-buy__price strong {
  color: #e60000;
  font-size: 25px;
  line-height: 1;
  font-weight: 700;
}

.mobile-sticky-buy__price del {
  color: #9aa8b5;
  font-size: 15px;
  line-height: 1;
  font-weight: 300;
}

.mobile-sticky-buy__button {
  width: 250px;
  height: 48px;
  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 0 14px;
  border: 0;
  background: #009ad9;
  color: #fff;

  font-family: 'Museo Sans Cyrl', sans-serif;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;

  cursor: pointer;
}

.mobile-sticky-buy__plus {
  position: relative;
  top: -1px;
  font-size: 26px;
  line-height: 1;
  font-weight: 300;
}

/* Чтобы нижняя панель не перекрывала контент в самом низу страницы */
body.has-mobile-sticky-buy {
  padding-bottom: 62px;
}

/* Tablet + mobile */
@media (max-width: 991px) {
  .mobile-sticky-buy {
    padding:
      6px
      10px
      calc(6px + env(safe-area-inset-bottom));
  }

  .mobile-sticky-buy__inner {
    max-width: 720px;
    min-height: 48px;
    gap: 10px;
  }

  .mobile-sticky-buy__price {
    gap: 5px;
  }

  .mobile-sticky-buy__price strong {
    font-size: 23px;
  }

  .mobile-sticky-buy__price del {
    font-size: 14px;
  }

  .mobile-sticky-buy__button {
    width: min(250px, 55vw);
    height: 48px;
    padding: 0 12px;
    font-size: 15px;
  }

  body.has-mobile-sticky-buy {
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 420px) {
  .mobile-sticky-buy {
    padding:
      5px
      8px
      calc(5px + env(safe-area-inset-bottom));
  }

  .mobile-sticky-buy__inner {
    min-height: 46px;
    gap: 7px;
  }

  .mobile-sticky-buy__price {
    gap: 4px;
  }

  .mobile-sticky-buy__price strong {
    font-size: 21px;
  }

  .mobile-sticky-buy__price del {
    font-size: 13px;
  }

  .mobile-sticky-buy__button {
    width: 55vw;
    height: 46px;
    gap: 6px;
    padding: 0 8px;
    font-size: 14px;
  }

  .mobile-sticky-buy__plus {
    font-size: 24px;
  }

  body.has-mobile-sticky-buy {
    padding-bottom: calc(58px + env(safe-area-inset-bottom));
  }
}
