/* HL PDP qty stepper — body#product only */

body#product .product__quantity.quantity-button,
body#product .product-actions__quantity.quantity-button {
  flex: 0 0 auto !important;
  align-self: stretch !important;
}

body#product .quantity-button__group.input-group,
body#product .quantity-button__group {
  display: inline-flex !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
  height: 42px !important;
  min-height: 42px !important;
  min-width: 124px !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #b8bfc9 !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9) !important;
}

/* Kill Bootstrap input-group child borders that made 3 separate boxes */
body#product .quantity-button__group > *,
body#product .quantity-button__group > .btn,
body#product .quantity-button__group > .form-control,
body#product .quantity-button__group > .js-quantity-wanted {
  border-radius: 0 !important;
  box-shadow: none !important;
}

body#product .quantity-button__group > .btn,
body#product .quantity-button__group > .js-decrement-button,
body#product .quantity-button__group > .js-increment-button {
  flex: 0 0 38px !important;
  width: 38px !important;
  min-width: 38px !important;
  height: auto !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: #eef1f5 !important;
  color: #1f2430 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  z-index: 1 !important;
}

body#product .quantity-button__group > .btn:hover,
body#product .quantity-button__group > .js-decrement-button:hover,
body#product .quantity-button__group > .js-increment-button:hover {
  background: #e2e7ee !important;
  color: #000 !important;
}

body#product .quantity-button__group > .btn:focus,
body#product .quantity-button__group > .btn:focus-visible,
body#product .quantity-button__group > .js-decrement-button:focus,
body#product .quantity-button__group > .js-increment-button:focus {
  outline: none !important;
  box-shadow: none !important;
  background: #e2e7ee !important;
}

body#product .quantity-button__group > .btn .material-icons,
body#product .quantity-button__group > .js-decrement-button .material-icons,
body#product .quantity-button__group > .js-increment-button .material-icons {
  font-size: 20px !important;
  line-height: 1 !important;
  width: 20px !important;
  height: 20px !important;
  opacity: .9;
}

body#product .quantity-button__group .confirmation,
body#product .quantity-button__group .spinner-border {
  display: none !important;
}

body#product .quantity-button__group #quantity_wanted,
body#product .quantity-button__group .js-quantity-wanted {
  flex: 1 1 48px !important;
  width: 48px !important;
  min-width: 44px !important;
  max-width: 64px !important;
  height: auto !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 6px !important;
  border: 0 !important;
  border-left: 1px solid #c5ccd6 !important;
  border-right: 1px solid #c5ccd6 !important;
  background: #fff !important;
  text-align: center !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #111827 !important;
  line-height: 40px !important;
  -moz-appearance: textfield;
  z-index: 0 !important;
}

body#product .quantity-button__group #quantity_wanted:focus,
body#product .quantity-button__group .js-quantity-wanted:focus {
  outline: none !important;
  box-shadow: none !important;
  background: #fff !important;
}

body#product .quantity-button__group #quantity_wanted::-webkit-outer-spin-button,
body#product .quantity-button__group #quantity_wanted::-webkit-inner-spin-button,
body#product .quantity-button__group .js-quantity-wanted::-webkit-outer-spin-button,
body#product .quantity-button__group .js-quantity-wanted::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

@media (max-width: 767.98px) {
  /* Keep qty + ATC on one line */
  body#product .product-add-to-cart .product__actions-qty-add,
  body#product .product__actions-qty-add,
  body#product .product-add-to-cart .product-quantity {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
  }
  body#product .quantity-button__group.input-group,
  body#product .quantity-button__group {
    height: 44px !important;
    min-height: 44px !important;
    min-width: 112px !important;
    max-width: 132px !important;
    width: auto !important;
  }
  body#product .quantity-button__group > .btn,
  body#product .quantity-button__group > .js-decrement-button,
  body#product .quantity-button__group > .js-increment-button {
    flex-basis: 36px !important;
    width: 36px !important;
    min-width: 36px !important;
  }
  body#product .quantity-button__group #quantity_wanted,
  body#product .quantity-button__group .js-quantity-wanted {
    line-height: 42px !important;
    max-width: 48px !important;
  }
}

body#product .hl-pdp-qty-msg {
  color: #c62828;
  font-size: 0.875rem;
  line-height: 1.35;
  margin: 0.5rem 0 0;
  padding: 0;
}
body#product .hl-pdp-qty-msg[hidden] {
  display: none !important;
}
