/* 記事（sites/towel/pages/magazine/）の商品表の下に置く「いま注文できる商品と価格」の欄
   （sites/towel/agent/experiments/2026-12-01-magazine-prices.md）。1つの記事に複数ある。
   商品の <li> の価格と instock / outofstock は、ビルドが商品マスタから書き直す。
   古いテーマは本文の <p> の余白を !important で決め、ul を中央寄せの grid にし、リンクに
   下線を付けるので、打ち消している。 */

.entry-content .agent-mag-items {
  clear: both;
  margin: 12px 0 28px;
  padding: 12px;
  border: 1px solid #d5dbe6;
  border-top: 3px solid #0b1b4a;
  background: #f6f8fc;
  text-align: left;
}
/* 注文できる商品が1つも残っていなければ、欄ごと出さない */
.entry-content .agent-mag-items:not(:has(li.instock)) {
  display: none;
}
.entry-content .agent-mag-items p.agent-mag-items__title {
  margin: 0 0 8px !important;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: #0b1b4a;
}
.entry-content .agent-mag-items p.agent-mag-items__note {
  margin: 8px 0 0 !important;
  padding: 0;
  font-size: 11px;
  line-height: 1.6;
  color: #666;
}
.entry-content .agent-mag-items ul.agent-mag-items__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  justify-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 769px) {
  .entry-content .agent-mag-items ul.agent-mag-items__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.entry-content .agent-mag-items ul.agent-mag-items__list li.product {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.entry-content .agent-mag-items ul.agent-mag-items__list li.product::before {
  content: none;
}
.entry-content .agent-mag-items ul.agent-mag-items__list li.outofstock {
  display: none;
}
.entry-content .agent-mag-items a.agent-mag-items__link,
.entry-content .agent-mag-items a.agent-mag-items__link * {
  text-decoration: none !important;
}
.entry-content .agent-mag-items a.agent-mag-items__link {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  height: 100%;
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid #d5dbe6;
  border-radius: 4px;
  background: #fff;
  color: #222;
}
.entry-content .agent-mag-items a.agent-mag-items__link:hover,
.entry-content .agent-mag-items a.agent-mag-items__link:focus {
  border-color: #f48f09;
}
.entry-content .agent-mag-items a.agent-mag-items__link img {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  margin: 0;
  border: 1px solid #eee;
  background: #fff;
  object-fit: contain;
}
.entry-content .agent-mag-items .agent-mag-items__body {
  flex: 1 1 auto;
  min-width: 0;
}
.entry-content .agent-mag-items p.agent-mag-items__name {
  margin: 0 !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: #0b1b4a;
}
.entry-content .agent-mag-items p.agent-mag-items__price {
  margin: 4px 0 0 !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: #222;
}
.entry-content .agent-mag-items p.agent-mag-items__price small {
  font-size: 11px;
  font-weight: 400;
  color: #555;
  white-space: nowrap;
}
.entry-content .agent-mag-items .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;
}
.entry-content .agent-mag-items .discount-sale .discount-sale__price-wrap {
  display: inline;
}
.entry-content .agent-mag-items .discount-sale .discount-sale__price {
  font-size: 14px;
  font-weight: 700;
  color: #d6001c;
}
.entry-content .agent-mag-items .agent-mag-items__more {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #b85f00;
}
.entry-content .agent-mag-items .agent-mag-items__more::after {
  content: " ›";
}
