.t706 .t-inputpromocode__btn {
  background-color: #181818 !important;
}

.t706 .t-inputpromocode__btn,
.t706 .t-inputpromocode__btn .t-btnflex__text {
  font-family: 'Mont', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.5px !important;
  color: #ffffff !important;
}

@media screen and (max-width: 640px) {
  /* Текст корзины и оформления заказа */
  .t706 :is(.t706__cartpage, .t706__cartwin, .t706__sidebar),
  .t706 :is(.t706__cartpage, .t706__cartwin, .t706__sidebar) :not(svg, svg *),
  .t706 :is(input, textarea)::placeholder {
    font-size: 16px !important;
  }

  .t706 .t706__cartpage .t-text_xs {
    line-height: 1.13 !important;
  }

  /* Шапка как на левом скрине */
  body .t706 .t706__cartpage .t706__cartpage-top {
    display: grid !important;
    grid-template-columns: 24px max-content minmax(0, 1fr) 24px !important;
    align-items: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: auto !important;
    min-height: 56px !important;
    padding: 8px 10px !important;
  }

  body .t706 .t706__cartpage-top > .t706__cartpage-heading.t-name,
  body .t706 .t706__cartpage-top > .nlm_removeallCartPage {
    margin: 0 !important;
    white-space: nowrap !important;
    font-size: 16px !important;
    line-height: 1.15 !important;
  }

  body .t706 .t706__cartpage-top > .t706__cartpage-heading.t-name {
    grid-area: 1 / 2 !important;
    width: auto !important;
    padding: 0 !important;
  }

  body .t706 .t706__cartpage-top > .nlm_removeallCartPage {
    grid-area: 1 / 3 !important;
    justify-self: end !important;
    position: static !important;
    width: max-content !important;
    min-width: 0 !important;
    padding: 7px 8px !important;
  }

  body .t706 .t706__cartpage-top > :is(.t706__cartpage-back, .t706__cartpage-close) {
    grid-row: 1 !important;
    position: static !important;
    transform: none !important;
    display: grid !important;
    place-items: center !important;
    width: 24px !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body .t706 .t706__cartpage-top > .t706__cartpage-back {
    grid-column: 1 !important;
  }

  body .t706 .t706__cartpage-top > .t706__cartpage-close {
    grid-column: 4 !important;
  }

  body .t706 .t706__cartpage-back > svg.t706__cartpage-back-icon {
    width: 24px !important;
    height: 24px !important;
  }

  body .t706 .t706__cartpage-close > svg.t706__cartpage-close-icon {
    width: 16px !important;
    height: 16px !important;
  }
}


/* Список карточек на всю ширину контейнера */
#allrecords .t-store__grid-cont .t-store__card-list {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Убираем служебные элементы из flex-сетки */
#allrecords .t-store__card-list::before,
#allrecords .t-store__card-list::after {
  display: none !important;
}

/* Центрирование одиночной карточки */
#allrecords .t-store__card-list > .t-store__card:only-child {
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  left: auto !important;
  right: auto !important;
}
</style>