/* =========================================================================
   カートと購入（⑲ カート・⑳ 購入手続き・㉑ お支払い内容のご確認・㉒ ご購入ありがとうございました）。
   UI案: docs/ui_proposal_20261030/project/{Cart,Checkout,CheckoutConfirm,Thanks}.dc.html
   共通部品（ui.css）に足りないものだけをここに書く。
   ========================================================================= */

/* ---------- 見出し帯（ステッパーは左寄せ・小さめ） ---------- */
.u-cart-head .u-pagehead-inner { padding-bottom: 26px; }
.u-cart-head .u-stepper { justify-content: flex-start; margin-bottom: 12px; }
.u-cart-head .u-step-n { width: 22px; height: 22px; font-size: 11px; }
.u-cart-head .u-step-sep { width: 24px; background: #C8D8D1; }
/* 済んだ段階は番号だけ緑にし、文字は今の段階より控えめにする */
.u-cart-head .u-step.is-done { font-weight: 500; color: var(--u-muted); }

/* ---------- 本文 ---------- */
.u-cart-body { max-width: 1120px; margin: 0 auto; padding: 28px 24px 56px; box-sizing: content-box; }

/* 表（ui.css の table.u-table に、UI案の余白と合計の行を足す） */
table.u-cart-table td { padding: 16px; }
table.u-cart-table tbody tr:last-child td { border-bottom: 1px solid var(--u-line); }
table.u-cart-table tfoot td { border-bottom: 0; }
.u-cart-price { font-weight: 700; }
.u-cart-total-label { font-weight: 700; }
table.u-cart-table td.u-cart-total { font-size: 20px; font-weight: 700; }

/* 商品名（左にシリーズ色の線、上にシリーズ名） */
.u-cart-item { display: flex; gap: 12px; align-items: center; }
.u-cart-item-bar { flex: 0 0 6px; align-self: stretch; min-height: 34px; border-radius: 3px; background: var(--s, var(--u-accent)); }
.u-cart-item-series { font-size: 12px; font-weight: 700; color: var(--s, var(--u-accent)); }
.u-cart-item-name { font-weight: 700; line-height: 1.5; }
.u .u-cart-item-name a { color: var(--u-ink); text-decoration: none; }
.u .u-cart-item-name a:hover { color: var(--s, var(--u-accent)); text-decoration: underline; }

/* 削除（文字だけのボタン） */
.u-cart-table form { display: inline; margin: 0; }
body.site button.u-cart-remove {
  background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--u-muted);
  text-decoration: underline; cursor: pointer;
}
body.site button.u-cart-remove:hover { color: var(--u-accent); }

/* 下のリンクとボタン */
.u-cart-actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-top: 22px; font-size: 14px; }
.u-cart-actions-right { display: flex; flex-wrap: wrap; gap: 12px; }
.u-btn.u-cart-go, a.u-btn.u-cart-go { padding: 13.5px 36px; }
.u-cart-empty { font-size: 15px; color: var(--u-muted); }

/* ---------- ⑳ 購入手続き（左に注文内容、右にお支払い） ---------- */
.u-checkout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.u-checkout-main { flex: 999 1 560px; min-width: 0; }
.u-checkout-side { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; font-size: 14px; }
.u-checkout-main .u-checkout-h2 { margin-bottom: 14px; }
.u .u-checkout-h2 { font-size: 20px; }
.u-checkout-testmode { flex: 1 1 100%; }
.u-checkout-box { border: 1px solid var(--u-line); border-radius: 12px; padding: 20px 22px; background: #fff; font-size: 16px; }
.u-checkout-box-title { font-weight: 700; margin-bottom: 6px; }
.u-checkout-box-title--gap { margin-bottom: 12px; }
.u .u-checkout-box-text { font-size: 14px; color: var(--u-muted); margin-bottom: 14px; }
.u-checkout-box form { margin: 0; }
body.site input.u-btn--block { width: 100%; height: 50px; padding: 0 20px; }
.u-checkout-save { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.7; margin-bottom: 14px; }
body.site .u-checkout-save input[type="checkbox"] { width: 16px; height: 16px; margin: 3px 0 0; flex: 0 0 auto; accent-color: var(--u-accent); }
.u .u-checkout-note { font-size: 12px; color: var(--u-muted); line-height: 1.7; }

/* PAY.JP Checkout が差し込むボタンを、UI案の白地に緑の枠のボタンに寄せる（中身・動きは PAY.JP のまま） */
.u-checkout-payjp #payjp_checkout_box input[type="button"],
.u-checkout-payjp #payjp_checkout_box button {
  width: 100%; height: 50px; box-sizing: border-box; border: 1.5px solid var(--u-accent); border-radius: 999px;
  background: #fff; color: var(--u-accent); font-family: var(--u-font); font-size: 16px; font-weight: 700;
  cursor: pointer; box-shadow: none; text-shadow: none; background-image: none;
}
.u-checkout-payjp #payjp_checkout_box input[type="button"]:hover,
.u-checkout-payjp #payjp_checkout_box button:hover { background: var(--u-hero); }

/* ---------- ㉑ お支払い内容のご確認（中央の白いカード） ---------- */
.u-confirm-rows { margin: 0; border-top: 1px solid var(--u-line); font-size: 15px; line-height: 1.5; }
.u-confirm-rows > div { display: flex; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--u-line); }
.u-confirm-rows dt { flex: 0 0 120px; color: var(--u-muted); font-weight: 400; }
.u-confirm-rows dd { margin: 0; font-weight: 500; min-width: 0; word-break: break-word; }
.u-confirm-total { font-size: 18px; }
.u-confirm-form { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 0; }
@media (max-width: 420px) { .u-confirm-rows dt { flex-basis: 96px; } }

/* ---------- ㉒ ご購入ありがとうございました ---------- */
.u .u-thanks-lead { margin-bottom: 18px; font-size: 15px; line-height: 1.9; }
table.u-thanks-table th { padding: 10px 14px; }
table.u-thanks-table td { padding: 14px; border-bottom: 1px solid var(--u-line); }
.u-thanks-name { font-weight: 700; }
table.u-thanks-table td.u-thanks-id { font-size: 12px; color: var(--u-muted); }
.u-thanks-go { margin-top: 24px; }
