/**
 * カート・決済画面のサブスク表示（No.105）。
 * inc/subscription-cart.php とセット。カートと決済の両方で読む。
 */

/* --- 二重価格。打ち消しはグレー、実額は既存の色のまま --- */

.mm-sub-was {
  color: #8a8078;
  font-weight: 400;
  margin-right: 2px;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

/* --- 初回特典（デバイス無料）。名前の下に画像つきで --- */

.mm-sub-bonus {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 2px;
  padding: 6px 10px;
  background: #f2f8f2;
  border: 1px solid #d7e9d7;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  max-width: 340px;
}

.mm-sub-bonus__thumb {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e5e5;
}

.mm-sub-bonus__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mm-sub-bonus__text {
  flex: 1 1 auto;
  min-width: 0;
  color: #1a5c1a;
  font-weight: 700;
}

.mm-sub-bonus__free {
  flex: none;
  background: #34a853;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
}

/* --- 合計欄の整理 ---
   「小計 $50.00 / 1ヶ月」の行は、最終行の「2回目以降のお支払い $50.00 / 1ヶ月」と
   完全に重複しているので出さない。 */

tr.recurring-total.cart-subtotal,
.recurring-total.cart-subtotal {
  display: none;
}

/* --- カート合計欄の「2回目以降のお支払い」（cart-totals.php が自前で出す） --- */

.cart_totals .mm-recurring-total {
  border-top: 1px solid #e5e5e5;
  padding-top: 12px;
  margin-top: 4px;
}

.cart_totals .mm-recurring-total .first-payment-date {
  margin-top: 2px;
  color: #6b6360;
}
