/* Custom code goes here - paste your css code below in line 3 */

/* Hide temporary Firefox ALT-text flash on uncached product images.
   Keeps SEO/accessibility ALT attributes intact, but prevents black text
   from appearing inside thumbnails before the real image finishes loading. */
.product-miniature .thumbnail-container img {
  font-size: 0 !important;
  color: transparent !important;
  text-indent: -9999px;
  overflow: hidden;
}


/* ------------------------------------------------------------
   TouchSpin quantity box stabilizer
   Purpose: Reduce cart/checkout quantity box movement during load
   Scope: Cart + Checkout only
------------------------------------------------------------ */

/* Raw input before TouchSpin initializes */
body#cart input[name="product-quantity-spin"],
body#checkout input[name="product-quantity-spin"],
body#cart input.js-cart-line-product-quantity,
body#checkout input.js-cart-line-product-quantity {
  width: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  box-sizing: border-box !important;
  text-align: center;
  vertical-align: middle !important;
  margin: 0 !important;
}

/* TouchSpin wrapper */
body#cart .bootstrap-touchspin,
body#checkout .bootstrap-touchspin {
  width: 88px !important;
  min-width: 88px !important;
  max-width: 88px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  position: relative !important;
  display: inline-block !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Quantity input after TouchSpin initializes */
body#cart .bootstrap-touchspin input[name="product-quantity-spin"],
body#checkout .bootstrap-touchspin input[name="product-quantity-spin"],
body#cart .bootstrap-touchspin input.js-cart-line-product-quantity,
body#checkout .bootstrap-touchspin input.js-cart-line-product-quantity {
  width: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
  text-align: center !important;
  padding: 0 4px !important;
  margin: 0 !important;
  line-height: 40px !important;
}

/* Arrow column */
body#cart .bootstrap-touchspin .input-group-btn-vertical,
body#checkout .bootstrap-touchspin .input-group-btn-vertical {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Arrow buttons */
body#cart .bootstrap-touchspin .btn-touchspin,
body#checkout .bootstrap-touchspin .btn-touchspin {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  display: block !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 20px !important;
  position: relative !important;
}

/* Arrow icons */
body#cart .bootstrap-touchspin .btn-touchspin i,
body#checkout .bootstrap-touchspin .btn-touchspin i,
body#cart .bootstrap-touchspin .btn-touchspin .material-icons,
body#checkout .bootstrap-touchspin .btn-touchspin .material-icons {
  font-size: 16px !important;
  line-height: 20px !important;
  height: 20px !important;
  display: block !important;
  position: relative !important;
  top: -1px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* Prevent visual jumps */
body#cart .bootstrap-touchspin,
body#cart .bootstrap-touchspin *,
body#checkout .bootstrap-touchspin,
body#checkout .bootstrap-touchspin * {
  transition: none !important;
  animation: none !important;
  transform: none !important;
}

/* Reserve stable space in cart/checkout line containers */
body#cart .cart-line-product-quantity,
body#checkout .cart-line-product-quantity,
body#cart .product-line-grid-right,
body#checkout .product-line-grid-right {
  min-width: 88px !important;
}

/* ------------------------------------------------------------
   END TouchSpin quantity box stabilizer
------------------------------------------------------------ */