.counter {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: transparent;
  padding: .6rem 1.2rem;
  border: 1px solid #E4E4E4; }
  @media (max-width: 1023px) {
    .counter {
      padding: 5px 10px; } }
  .counter.preloader {
    pointer-events: none; }
    .counter.preloader:before {
      width: 30px;
      height: 30px;
      inset: 0;
      margin: auto; }
    .counter.preloader > * {
      filter: none; }

.disabled-text {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  display: none;
  width: 100%;
  color: #121219;
  font-size: 10px;
  line-height: 1;
  text-align: center; }
  @media (max-width: 424px) {
    .disabled-text {
      font-size: 9px; } }
  .disabled-text.red {
    color: #D90A2C; }

.counter-input {
  position: relative;
  display: flex;
  box-sizing: border-box;
  width: auto;
  min-width: 6rem;
  max-width: 4rem;
  height: 2rem;
  padding: 2px 4px;
  text-align: center;
  color: #121219;
  outline: none;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  margin: 0px 4px; }
  @media (max-width: 1023px) {
    .counter-input {
      max-width: 66px;
      height: 20px;
      font-size: 14px; } }

.counter-btn {
  position: relative;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  cursor: pointer;
  color: transparent;
  background: transparent;
  font-size: 0;
  transition: all .3s ease; }
  @media (max-width: 1023px) {
    .counter-btn {
      width: 20px;
      height: 20px; } }
  .counter-btn:before, .counter-btn:after {
    position: absolute;
    top: calc(50% - .1rem);
    left: calc(50% - .5rem);
    display: block;
    width: 1.2rem;
    height: .2rem;
    content: "";
    background: #121219;
    transition: all ease .3s; }
    @media (max-width: 1023px) {
      .counter-btn:before, .counter-btn:after {
        width: 10px;
        height: 1px; } }
  .counter-btn:before {
    transform: rotate(-90deg); }
  @media (min-width: 1024px) {
    .counter-btn:hover:before, .counter-btn:hover:after {
      background: #FFF0B8; } }
  .counter-btn:active:before, .counter-btn:active:after {
    background: #FFC422; }
  .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: #C4C4C4; }

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

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

.disabled-text.active {
  display: block; }

@media (max-width: 1199px) {
  .fixed-card-body-wrap .disabled-text {
    bottom: 89%;
    width: 183px;
    font-size: 10px; } }
