/* =========================================
   Sotoclub Cart / Estimate Widget 専用CSS
   2025-11 最終安定版
========================================= */

/* -----------------------------------------
   リアルタイム見積りウィジェット
------------------------------------------ */

.sotoclub-estimate-widget-box {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 20px;
  margin-top: 30px;
  margin-bottom: 50px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin-left: auto;
  margin-right: 0;
  display: block;
  box-sizing: border-box;
}

.sotoclub-estimate-widget {
  width: 100%;
  text-align: left;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.sotoclub-estimate-widget .widget-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
}

.sotoclub-estimate-widget .estimate-row,
.sotoclub-estimate-widget .estimate-total {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dotted #ccc;
}

.sotoclub-estimate-widget .estimate-total {
  font-weight: bold;
  border-bottom: none;
  margin-top: 10px;
}

.sotoclub-estimate-widget .value.total {
  color: #c0392b;
  font-size: 17px;
  font-weight: bold;
}

.sotoclub-estimate-widget .estimate-note {
  font-size: 13px;
  color: #666;
  margin-top: 10px;
  line-height: 1.4;
}

.estimate-note-sub {
  font-size: 12px !important;
  color: #999 !important;
  margin-top: 4px;
  line-height: 1.4;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .sotoclub-estimate-widget-box {
    width: 100% !important;
    margin: 20px auto !important;
  }
  .sotoclub-estimate-widget {
    padding: 15px;
    font-size: 14px;
  }
  .sotoclub-estimate-widget .widget-title {
    font-size: 16px;
  }
  .sotoclub-estimate-widget .value.total {
    font-size: 16px;
    font-weight: bold;
  }
}

/* -----------------------------------------
   カート画面用：数量入力の非表示（PC/スマホ）
------------------------------------------ */
.woocommerce-cart-form .product-quantity .qty {
  display: none !important;
}

/* アイコンボタン類（TCDテーマの ± ）を完全削除 */
.woocommerce .quantity a.plus,
.woocommerce .quantity a.minus {
  display: none !important;
}

/* 自動で数量1固定にしたい場合の見た目調整（任意） */
.woocommerce .product-quantity {
  opacity: 0.7;
  pointer-events: none;
}

/* -----------------------------------------
   カートテーブルの削除ボタンを非表示にする（任意）
------------------------------------------ */
/* 必要であれば解除できるように分けておく */

.woocommerce-cart-form .product-remove a.remove {
  display: none !important;
}

/* -----------------------------------------
   カートページの微調整
------------------------------------------ */
.woocommerce-cart table.cart td,
.woocommerce-cart table.cart th {
  padding: 12px !important;
}

.woocommerce-cart .cart_totals {
  margin-top: 20px;
}

/* Woo Blocks の SALE/割引バッジを完全非表示 */
.wc-block-components-product-badge,
.wc-block-components-discount-badge {
  display: none !important;
}

/* Blocks カート専用：数量の＋−ボタン非表示 */
.wc-block-components-quantity-selector__button {
    display: none !important;
}

.wc-block-components-quantity-selector__input {
    pointer-events: none !important;
    opacity: 0.6 !important;
}

/* Blocks カート：値引きバッジ非表示 */
.wc-block-components-sale-badge,
.wc-block-components-product-badge {
    display: none !important;
}

/* ¥150 の取り消し線を完全に消す */
.wc-block-components-product-price__regular {
    display: none !important;
}

/* 数量の入力枠を完全にラベル化する */
.wc-block-components-quantity-selector__input {
    pointer-events: none !important;
    border: none !important;
    background: transparent !important;
    width: 20px !important;
    text-align: center !important;
    -moz-appearance: textfield !important;
    appearance: none !important;
}

/* iPhone/Safari の数字UIも消す */
.wc-block-components-quantity-selector__input::-webkit-outer-spin-button,
.wc-block-components-quantity-selector__input::-webkit-inner-spin-button {
    display: none !important;
}

/* ＋− ボタンは消す */
.wc-block-components-quantity-selector__button {
    display: none !important;
}

/* 数量入力を完全ラベル化 */
.wc-block-components-quantity-selector__input {
    border: none !important;
    background: transparent !important;
    pointer-events: none !important;
    width: auto !important;
    text-align: center !important;
    padding: 0 !important;
    font-size: 14px;
    appearance: none !important;
}

/* ±ボタンも完全消滅 */
.wc-block-components-quantity-selector__button {
    display: none !important;
}

/* カート画面の「価格」自体を完全に非表示 */
.wc-block-cart-item__prices {
    display: none !important;
}



