.velugi-quantity {
    display: inline-flex;
    align-items: stretch;
    box-sizing: border-box;
    height: 34px;
    vertical-align: middle;
    border: 1px solid #78836b;
    border-radius: 7px;
    background: #fff;
    color: #30352f;
}
.cart.table-wrapper .velugi-quantity label { display: flex; align-items: center; margin: 0; }
body.retail-storefront.checkout-cart-index .cart.table-wrapper .col.qty .velugi-quantity input.input-text,
body.retail-storefront.catalog-product-view .product-info-main .velugi-quantity input.input-text.qty {
    width: 3ch;
    min-width: 27px;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    text-align: center;
    appearance: textfield;
}
.velugi-quantity input::-webkit-inner-spin-button,
.velugi-quantity input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
:is(.cart.table-wrapper .col.qty, .catalog-product-view .product-info-main) .velugi-quantity button {
    display: inline-grid;
    place-items: center;
    width: 26px;
    min-width: 26px;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
    color: #4f6354;
    font: 500 17px/1 system-ui, sans-serif;
    cursor: pointer;
}
:is(.cart.table-wrapper .col.qty, .catalog-product-view .product-info-main) .velugi-quantity button:hover { background: #f4f1e8; }
.velugi-quantity :is(button,input):focus-visible {
    outline: 2px solid #4f6354;
    outline-offset: -2px;
}
@media (pointer: coarse) {
    .velugi-quantity { height: 42px; }
    :is(.cart.table-wrapper .col.qty, .catalog-product-view .product-info-main) .velugi-quantity button { width: 36px; }
}

/* Keep the product selector centred on the adjacent 52px purchase button. */
body.retail-storefront.catalog-product-view .product-info-main .box-tocart .field.qty:has(.velugi-quantity) {
    flex-basis: auto;
}
body.retail-storefront.catalog-product-view .product-info-main .box-tocart .field.qty .control:has(.velugi-quantity) {
    display: flex;
    align-items: center;
    min-height: 52px;
}
