/* Quantity stepper that replaces the "В корзину" button on product cards once the item is
   in the basket — compact version of the detail-page price__counter widget
   (astro/src/components/priceWidget/PriceWidget.scss). Plain CSS (this template dir has no
   sass build for local/ files), colors match .btn.__brown-dark (#6c523f / white). */
.card-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 2.5rem;
    padding: 0 .75rem;
    gap: .5rem;
    background-color: #6c523f;
    border-radius: .75rem;
    color: #fff;
}

@media (max-width: 1919.98px) {
    .card-stepper { height: 2.125rem; }
}

.card-stepper__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 1.125rem;
    line-height: 1;
    cursor: pointer;
}

.card-stepper__btn:active {
    opacity: .6;
}

.card-stepper.is-busy {
    opacity: .6;
    pointer-events: none;
}

.card-stepper__qty {
    flex: 1 1 auto;
    text-align: center;
    font-size: .875rem;
    font-weight: 500;
    line-height: 120%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 767.98px) {
    .card-stepper__qty { font-size: .8125rem; }
}
