/* Smartphone Italia — cart page qty pill (20260705-cart-qty-pill)
 * Matches listing/product SI pattern: horizontal [- qty +] in rounded pill.
 * Bootstrap TouchSpin markup unchanged — styling only. */

body#cart .cart-overview .bootstrap-touchspin.input-group,
body#cart .tvcart-incr-decr-price .bootstrap-touchspin.input-group,
body#checkout .cart-overview .bootstrap-touchspin.input-group,
body#checkout .tvcart-incr-decr-price .bootstrap-touchspin.input-group {
    display: inline-flex !important;
    flex-direction: row;
    align-items: stretch;
    width: auto;
    max-width: 100%;
    margin-top: 8px;
    border: 1px solid var(--si-line, rgba(0, 0, 0, 0.08));
    border-radius: var(--si-radius-pill, 980px);
    overflow: hidden;
    background: #fff;
    vertical-align: middle;
}

body#cart .cart-overview .bootstrap-touchspin .input-group-btn-vertical,
body#cart .tvcart-incr-decr-price .bootstrap-touchspin .input-group-btn-vertical,
body#checkout .cart-overview .bootstrap-touchspin .input-group-btn-vertical,
body#checkout .tvcart-incr-decr-price .bootstrap-touchspin .input-group-btn-vertical {
    display: contents !important;
    width: auto !important;
    white-space: normal !important;
    vertical-align: baseline !important;
}

body#cart .cart-overview .bootstrap-touchspin .btn-touchspin,
body#cart .tvcart-incr-decr-price .bootstrap-touchspin .btn-touchspin,
body#checkout .cart-overview .bootstrap-touchspin .btn-touchspin,
body#checkout .tvcart-incr-decr-price .bootstrap-touchspin .btn-touchspin {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    float: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 44px;
    min-height: 44px;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: var(--si-accent, #39b54a) !important;
    color: #fff !important;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease;
}

body#cart .cart-overview .bootstrap-touchspin .bootstrap-touchspin-down,
body#cart .tvcart-incr-decr-price .bootstrap-touchspin .bootstrap-touchspin-down,
body#checkout .cart-overview .bootstrap-touchspin .bootstrap-touchspin-down,
body#checkout .tvcart-incr-decr-price .bootstrap-touchspin .bootstrap-touchspin-down {
    order: 1;
}

body#cart .cart-overview .bootstrap-touchspin .js-cart-line-product-quantity,
body#cart .tvcart-incr-decr-price .bootstrap-touchspin .js-cart-line-product-quantity,
body#checkout .cart-overview .bootstrap-touchspin .js-cart-line-product-quantity,
body#checkout .tvcart-incr-decr-price .bootstrap-touchspin .js-cart-line-product-quantity {
    order: 2;
    flex: 0 0 auto;
    display: block !important;
    width: 48px !important;
    min-width: 48px;
    min-height: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 4px !important;
    border: none !important;
    border-left: 1px solid var(--si-line, rgba(0, 0, 0, 0.08)) !important;
    border-right: 1px solid var(--si-line, rgba(0, 0, 0, 0.08)) !important;
    border-radius: 0 !important;
    background: var(--si-bg-alt, #f5f5f7) !important;
    color: var(--si-text, #1d1d1f) !important;
    font-size: 0.9375rem;
    font-weight: 700;
    text-align: center;
    line-height: 44px;
    -moz-appearance: textfield;
}

body#cart .cart-overview .bootstrap-touchspin .js-cart-line-product-quantity::-webkit-outer-spin-button,
body#cart .cart-overview .bootstrap-touchspin .js-cart-line-product-quantity::-webkit-inner-spin-button,
body#cart .tvcart-incr-decr-price .bootstrap-touchspin .js-cart-line-product-quantity::-webkit-outer-spin-button,
body#cart .tvcart-incr-decr-price .bootstrap-touchspin .js-cart-line-product-quantity::-webkit-inner-spin-button,
body#checkout .cart-overview .bootstrap-touchspin .js-cart-line-product-quantity::-webkit-outer-spin-button,
body#checkout .cart-overview .bootstrap-touchspin .js-cart-line-product-quantity::-webkit-inner-spin-button,
body#checkout .tvcart-incr-decr-price .bootstrap-touchspin .js-cart-line-product-quantity::-webkit-outer-spin-button,
body#checkout .tvcart-incr-decr-price .bootstrap-touchspin .js-cart-line-product-quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

body#cart .cart-overview .bootstrap-touchspin .bootstrap-touchspin-up,
body#cart .tvcart-incr-decr-price .bootstrap-touchspin .bootstrap-touchspin-up,
body#checkout .cart-overview .bootstrap-touchspin .bootstrap-touchspin-up,
body#checkout .tvcart-incr-decr-price .bootstrap-touchspin .bootstrap-touchspin-up {
    order: 3;
}

body#cart .cart-overview .bootstrap-touchspin .btn-touchspin:hover,
body#cart .tvcart-incr-decr-price .bootstrap-touchspin .btn-touchspin:hover,
body#checkout .cart-overview .bootstrap-touchspin .btn-touchspin:hover,
body#checkout .tvcart-incr-decr-price .bootstrap-touchspin .btn-touchspin:hover {
    background: var(--si-accent-hover, #0d8224) !important;
    border-color: transparent !important;
}

body#cart .cart-overview .bootstrap-touchspin .btn-touchspin i,
body#cart .tvcart-incr-decr-price .bootstrap-touchspin .btn-touchspin i,
body#checkout .cart-overview .bootstrap-touchspin .btn-touchspin i,
body#checkout .tvcart-incr-decr-price .bootstrap-touchspin .btn-touchspin i,
body#cart .cart-overview .bootstrap-touchspin .btn-touchspin .material-icons,
body#cart .tvcart-incr-decr-price .bootstrap-touchspin .btn-touchspin .material-icons,
body#checkout .cart-overview .bootstrap-touchspin .btn-touchspin .material-icons,
body#checkout .tvcart-incr-decr-price .bootstrap-touchspin .btn-touchspin .material-icons {
    position: static !important;
    top: auto !important;
    left: auto !important;
    font-size: 20px !important;
    line-height: 1 !important;
    color: #fff !important;
}

/* Row layout: price above pill on narrow columns */
body#cart .tvcart-incr-decr-price,
body#checkout .tvcart-incr-decr-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

body#cart .tvcart-incr-decr-price .product-price,
body#checkout .tvcart-incr-decr-price .product-price {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    body#cart .cart-overview .bootstrap-touchspin .btn-touchspin,
    body#cart .tvcart-incr-decr-price .bootstrap-touchspin .btn-touchspin,
    body#checkout .cart-overview .bootstrap-touchspin .btn-touchspin,
    body#checkout .tvcart-incr-decr-price .bootstrap-touchspin .btn-touchspin {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Cart drawer — same pill as cart page (20260705-cart-drawer-qty) */
.ttvcmscart-show-dropdown-right .bootstrap-touchspin.input-group,
.ttvcmscart-show-dropdown-right .tvcart-incr-decr-price .bootstrap-touchspin.input-group {
    display: inline-flex !important;
    flex-direction: row;
    align-items: stretch;
    width: auto;
    max-width: 100%;
    margin-top: 0;
    border: 1px solid var(--si-line, rgba(0, 0, 0, 0.08));
    border-radius: var(--si-radius-pill, 980px);
    overflow: hidden;
    background: #fff;
    vertical-align: middle;
}

.ttvcmscart-show-dropdown-right .bootstrap-touchspin .input-group-btn-vertical,
.ttvcmscart-show-dropdown-right .tvcart-incr-decr-price .bootstrap-touchspin .input-group-btn-vertical {
    display: contents !important;
    width: auto !important;
    white-space: normal !important;
    vertical-align: baseline !important;
}

.ttvcmscart-show-dropdown-right .bootstrap-touchspin .btn-touchspin,
.ttvcmscart-show-dropdown-right .tvcart-incr-decr-price .bootstrap-touchspin .btn-touchspin {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    float: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 44px;
    min-height: 44px;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: var(--si-accent, #39b54a) !important;
    color: #fff !important;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease;
}

.ttvcmscart-show-dropdown-right .bootstrap-touchspin .bootstrap-touchspin-down,
.ttvcmscart-show-dropdown-right .tvcart-incr-decr-price .bootstrap-touchspin .bootstrap-touchspin-down {
    order: 1;
}

.ttvcmscart-show-dropdown-right .bootstrap-touchspin .js-cart-line-product-quantity,
.ttvcmscart-show-dropdown-right .tvcart-incr-decr-price .bootstrap-touchspin .js-cart-line-product-quantity {
    order: 2;
    flex: 0 0 auto;
    display: block !important;
    width: 48px !important;
    min-width: 48px;
    min-height: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 4px !important;
    border: none !important;
    border-left: 1px solid var(--si-line, rgba(0, 0, 0, 0.08)) !important;
    border-right: 1px solid var(--si-line, rgba(0, 0, 0, 0.08)) !important;
    border-radius: 0 !important;
    background: var(--si-bg-alt, #f5f5f7) !important;
    color: var(--si-text, #1d1d1f) !important;
    font-size: 0.9375rem;
    font-weight: 700;
    text-align: center;
    line-height: 44px;
    -moz-appearance: textfield;
}

.ttvcmscart-show-dropdown-right .bootstrap-touchspin .js-cart-line-product-quantity::-webkit-outer-spin-button,
.ttvcmscart-show-dropdown-right .bootstrap-touchspin .js-cart-line-product-quantity::-webkit-inner-spin-button,
.ttvcmscart-show-dropdown-right .tvcart-incr-decr-price .bootstrap-touchspin .js-cart-line-product-quantity::-webkit-outer-spin-button,
.ttvcmscart-show-dropdown-right .tvcart-incr-decr-price .bootstrap-touchspin .js-cart-line-product-quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ttvcmscart-show-dropdown-right .bootstrap-touchspin .bootstrap-touchspin-up,
.ttvcmscart-show-dropdown-right .tvcart-incr-decr-price .bootstrap-touchspin .bootstrap-touchspin-up {
    order: 3;
}

.ttvcmscart-show-dropdown-right .bootstrap-touchspin .btn-touchspin:hover,
.ttvcmscart-show-dropdown-right .tvcart-incr-decr-price .bootstrap-touchspin .btn-touchspin:hover {
    background: var(--si-accent-hover, #0d8224) !important;
    border-color: transparent !important;
}

.ttvcmscart-show-dropdown-right .bootstrap-touchspin .btn-touchspin i,
.ttvcmscart-show-dropdown-right .tvcart-incr-decr-price .bootstrap-touchspin .btn-touchspin i,
.ttvcmscart-show-dropdown-right .bootstrap-touchspin .btn-touchspin .material-icons,
.ttvcmscart-show-dropdown-right .tvcart-incr-decr-price .bootstrap-touchspin .btn-touchspin .material-icons {
    position: static !important;
    top: auto !important;
    left: auto !important;
    font-size: 20px !important;
    line-height: 1 !important;
    color: #fff !important;
}
