.counter {
  position: relative;
  display: grid;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  background-color: transparent;
  grid-template-columns: 46px auto 46px; }
  @media (max-width: 1099px) {
    .counter {
      gap: 4px;
      grid-template-columns: 34px auto 34px; } }
  .counter.preloader {
    pointer-events: none; }
    .counter.preloader:before {
      top: calc(50% - 15px);
      left: calc(50% - 15px);
      width: 30px;
      height: 30px;
      border: 3px solid #eee;
      border-top-color: var(--theme-base-color); }
    .counter.preloader > * {
      filter: none; }
    @media (max-width: 1099px) {
      .counter.preloader:before {
        top: calc(50% - 10px);
        left: calc(50% - 10px);
        width: 20px;
        height: 20px;
        border-width: 1px; } }

.counter-input {
  position: relative;
  width: auto;
  min-width: 46px;
  height: 46px;
  display: flex;
  box-sizing: border-box;
  padding: 0 10px;
  text-align: center;
  color: #333333;
  border: 1px solid #DEDFE8;
  border-radius: 8px;
  outline: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1; }
  @media (max-width: 1099px) {
    .counter-input {
      height: 34px;
      padding: 0 8px;
      font-size: 14px; } }
  .counter-input:focus {
    border: 1px solid var(--theme-accent-color-dark); }

.counter-btn {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
  transition: all .3s ease;
  color: #fff;
  border: 1px solid #DEDFE8;
  border-radius: 8px;
  background: #fff;
  font-size: 0; }
  @media (max-width: 1099px) {
    .counter-btn {
      width: 34px;
      height: 34px; } }
  .counter-btn:before, .counter-btn:after {
    position: absolute;
    top: calc(50% - 1px);
    left: calc(50% - 7px);
    width: 14px;
    height: 2px;
    display: block;
    content: '';
    background: var(--theme-accent-color); }
  .counter-btn:before {
    transform: rotate(-90deg); }
  @media (min-width: 1100px) {
    .counter-btn:hover:before, .counter-btn:hover:after {
      background: var(--theme-accent-color-light); } }
  .counter-btn:active:before, .counter-btn:active:after {
    background: var(--theme-accent-color-dark); }
  .counter-btn[disabled], .counter-btn.disabled {
    cursor: default;
    pointer-events: none; }
    .counter-btn[disabled]:before, .counter-btn[disabled]:after, .counter-btn.disabled:before, .counter-btn.disabled:after {
      background: #9A9CA1; }

.counter-minus {
  order: -1; }
  .counter-minus:before {
    display: none; }

.counter-plus[disabled] ~ .disabled-text, .counter-plus.disabled ~ .disabled-text {
  display: flex; }

.disabled-text {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  display: none;
  white-space: nowrap;
  color: #333333;
  font-size: 10px;
  line-height: 1; }
  @media (max-width: 575px) {
    .disabled-text {
      font-size: 9px; } }
  .disabled-text.red {
    color: #F3403B; }
  .disabled-text.active {
    display: block; }

.basketData-msg-wrap {
  display: inline-flex;
  gap: 2px; }
  .basketData-msg-wrap.red {
    color: #F3403B; }
  @media (max-width: 575px) {
    .basketData-msg-wrap {
      font-size: 9px; } }

.counter--small {
  grid-template-columns: 34px auto 34px; }
  .counter--small .counter-input {
    max-width: 34px;
    height: 34px;
    padding: 0 8px; }
    .counter--small .counter-input.preloader:before {
      top: calc(50% - 7px);
      left: calc(50% - 7px);
      width: 14px;
      height: 14px;
      border-width: 1px; }
  .counter--small .counter-btn {
    width: 34px;
    height: 34px; }
