﻿.c-cart__small {
  display: flex;
  position: relative;
}

.c-cart__small--icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-cart__small--list {
  display: block;
  font-size: var(--text-md);
  line-height: 1.2;
  font-weight: 500;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
}

@media (max-width: 400px) {
  .c-cart__small--list .c-cart__small--price {
    font-size: var(--text-xxs);
  }
}

.cart-list {
  display: flex;
  flex-direction: column;
}

.c-cart__small--text {
  display: flex;
  padding: 0;
  background: none;
  color: inherit;
  font-size: var(--text-sm);
  opacity: 0.4;
  margin: 0 0 0.2rem;
  font-size: 1.3rem;
}

/* Стили для десктопной корзины (независимо от мобильной) */
.header__cart .c-cart__small--text {
  display: flex;
  padding: 0;
  background: none;
  font-size: var(--text-sm);
  opacity: 0.8;
  margin: 0 0 0.2rem;
  color: var(--top-text-color);
}

/* Стили для мобильной корзины (независимо от десктопной) */
.m-header-menu .c-cart__small--text,
.m-header-menu__links .c-cart__small--text {
  display: flex;
  padding: 0;
  background: none;
  font-size: var(--text-sm);
  opacity: 0.8;
  margin: 0 0 0.2rem;
  color: var(--color-text);
}

.cart__count,
.countsht {
  position: absolute;
  top: -9px;
  right: 0;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #e9011a;
  color: var(--color-text-inverse);
  font-size: var(--text-xs);
  line-height: 18px;
  text-align: center;
  padding: 0 4px;
}


