/* 見積もり商品のページ（sites/towel/pages/products/ の type: estimate-product）が読み込む。
   見積もりのボタンの下の「最低枚数に届かない方は、1枚から作れる商品で」のブロック。
   商品の <li> はビルドが価格と instock / outofstock を書き直す（src/lib/products.mjs の card）。 */

.agent-smalllot {
  clear: both;
  margin: 20px 0 8px;
  padding: 14px 12px 10px;
  border: 1px solid #d5dbe6;
  border-top: 3px solid #0b1b4a;
  background: #f6f8fc;
  text-align: left;
}
.agent-smalllot .agent-smalllot__title {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  color: #0b1b4a;
}
.agent-smalllot .agent-smalllot__lead {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.7;
  color: #333;
}
.agent-smalllot .agent-smalllot__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.agent-smalllot .agent-smalllot__list li.product {
  float: none;
  width: auto;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  text-align: left;
}
.agent-smalllot .agent-smalllot__link {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px;
  border: 1px solid #d5dbe6;
  border-radius: 4px;
  background: #fff;
  color: #222;
  text-decoration: none;
}
.agent-smalllot .agent-smalllot__link:hover,
.agent-smalllot .agent-smalllot__link:focus {
  border-color: #f48f09;
}
.agent-smalllot .agent-smalllot__link img {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  margin: 0;
  border: 1px solid #eee;
  background: #fff;
  object-fit: contain;
}
.agent-smalllot .agent-smalllot__body {
  flex: 1 1 auto;
  min-width: 0;
}
.agent-smalllot .agent-smalllot__name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: #0b1b4a;
}
.agent-smalllot .agent-smalllot__spec {
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #666;
}
.agent-smalllot .agent-smalllot__price {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #222;
}
.agent-smalllot .agent-smalllot__price small {
  font-size: 11px;
  font-weight: 400;
  color: #555;
  white-space: nowrap;
}
.agent-smalllot .discount-sale {
  display: block;
  width: auto;
  margin: 2px 0 0;
  padding: 0;
  background: none;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
  color: #d6001c;
}
.agent-smalllot .discount-sale .discount-sale__price-wrap {
  display: inline;
}
.agent-smalllot .discount-sale .discount-sale__price {
  font-size: 14px;
  font-weight: 700;
  color: #d6001c;
}
.agent-smalllot .agent-smalllot__more {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #b85f00;
}
.agent-smalllot .agent-smalllot__more::after {
  content: " ›";
}
.agent-smalllot .agent-smalllot__note {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: #666;
}

/* 注文できなくなった商品は出さない。1件も残らなければブロックごと出さない。 */
.agent-smalllot .agent-smalllot__list li.outofstock {
  display: none;
}
.agent-smalllot:not(:has(li.instock)) {
  display: none;
}

/* ---- 注文できない商品のページ（2026-12-01-unavailable-alternatives）----
   同じ見た目のブロックを、購入ボタンの場所の「在庫切れです。」の下にも置いている
   （class="agent-smalllot agent-alt"）。「在庫切れです。」が出ているときだけ出す。
   出し分けは public/orilab/site.js が [data-orilab-unavailable] の hidden で行う。 */
.agent-smalllot.agent-alt {
  display: none;
}
.summary:has([data-orilab-unavailable]:not([hidden])) .agent-smalllot.agent-alt:has(li.instock) {
  display: block;
}
