/* =========================================================
   商品詳細・ショッピングカート：数量変更
========================================================= */

.quantity-stepper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  vertical-align: middle;
  background: #fff;
  border: 1px solid #f2c8a2;
  border-radius: 12px;
  box-sizing: border-box;
}

.quantity-stepper-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 54px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff5e9;
  color: #9b5100;
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.quantity-stepper-button:hover {
  background: #ff6f88;
  color: #fff;
}

.quantity-stepper-input {
  width: 65px !important;
  height: 54px !important;
  margin: 0 !important;
  padding: 0 5px !important;
  border: 0 !important;
  border-right: 1px solid #f2c8a2 !important;
  border-left: 1px solid #f2c8a2 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #333 !important;
  font-size: 22px !important;
  font-weight: bold;
  line-height: 54px !important;
  text-align: center !important;
  box-shadow: none !important;
  box-sizing: border-box;
  appearance: textfield;
  -moz-appearance: textfield;
}

.quantity-stepper-input::-webkit-inner-spin-button,
.quantity-stepper-input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.quantity-stepper-button:focus-visible,
.quantity-stepper-input:focus-visible {
  position: relative;
  z-index: 2;
  outline: 3px solid rgba(255, 111, 136, 0.35);
  outline-offset: -3px;
}

/* =========================================================
   カートページでは少し小さく表示
========================================================= */

#shoppingCartDefault .quantity-stepper {
  border-radius: 8px;
}

#shoppingCartDefault .quantity-stepper-button {
  width: 34px;
  height: 46px;
  font-size: 22px;
}

#shoppingCartDefault .quantity-stepper-input {
  width: 46px !important;
  height: 46px !important;
  padding: 0 3px !important;
  font-size: 18px !important;
  line-height: 46px !important;
}

/* スマートフォン */
@media screen and (max-width: 600px) {

  .quantity-stepper-button {
    width: 40px;
    height: 48px;
    font-size: 24px;
  }

  .quantity-stepper-input {
    width: 55px !important;
    height: 48px !important;
    font-size: 19px !important;
    line-height: 48px !important;
  }

  #shoppingCartDefault .quantity-stepper-button {
    width: 32px;
    height: 42px;
    font-size: 20px;
  }

  #shoppingCartDefault .quantity-stepper-input {
    width: 42px !important;
    height: 42px !important;
    font-size: 17px !important;
    line-height: 42px !important;
  }
}

/* カートの更新ボタンを非表示 */
#shoppingCartDefault td.cartQuantityUpdate input[type="image"] {
  display: none !important;
}

/* 更新ボタン用セルの余白も削除 */
#shoppingCartDefault td.cartQuantityUpdate {
  width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}