/* ============================================================
   cart-v2-cro.css — カート/注文フォームの注文されやすくする改修
   ============================================================
   既存の cart-v2.css の**後ろ**に読み込む。元ファイルは触らない。
   対象: /orderform_v2/cart.php, /orderform_v2/checkout.php
   2026 Renewal: chrome v14 を cart.php/checkout.php に直接埋め込むため、
   ここで定義していた .cv2-slim-topbar は廃止。
   トークンは 2026 (tokens-2026.css) と共通化する (ダスティピンク系)。
   更新: 2026-04-20
   ============================================================ */

/* ----- トークン — 2026 と同じ値にそろえる ----- */
:root {
  --cv2c-pink: #c78b8b;          /* 2026 --c-primary ダスティピンク */
  --cv2c-pink-ink: #8b5656;      /* 2026 --c-primary-ink */
  --cv2c-pink-soft: #f4e2e2;     /* 2026 --c-primary-soft */
  --cv2c-pink-veil: #fbeeee;     /* 2026 --c-primary-veil */
  --cv2c-accent: #b8927c;        /* 2026 --c-accent ベージュ */
  --cv2c-success: #3c6e4a;       /* 2026 --c-success */
  --cv2c-text: #1a1a20;          /* 2026 --c-text */
  --cv2c-text-muted: #6a6a72;    /* 2026 --c-text-muted */
  --cv2c-border: #e6e3dc;        /* 2026 --c-line */
  --cv2c-surface-soft: #faf8f5;  /* 2026 --c-bg-alt */
  --cv2c-shadow: 0 4px 14px rgba(139, 86, 86, 0.08);
}

/* カート/チェックアウト画面で現行サイトの旧ヘッダ断片を隠す (念のため) */
.cv2-page #top_logo_box,
.cv2-page header > .container-fluid:first-child { display: none; }
.cv2-page .global-menu,
.cv2-page .saide_menu,
.cv2-page .drawer,
.cv2-page [id="gmenu"] { display: none; }

/* ============================================================
   2. 進捗バーを強調 (既存 .cv2-steps の上書き)
   ============================================================ */
.cv2-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 720px;
  margin: 28px auto 36px;
  padding: 0 10px;
  position: relative;
}
.cv2-steps::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--cv2c-border);
  z-index: 0;
}
.cv2-step {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.cv2-step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--cv2c-border);
  color: var(--cv2c-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s ease;
}
.cv2-step.active .cv2-step-circle {
  background: var(--cv2c-pink);
  border-color: var(--cv2c-pink);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(215, 116, 144, 0.15);
}
.cv2-step.done .cv2-step-circle {
  background: var(--cv2c-success);
  border-color: var(--cv2c-success);
  color: #fff;
}
.cv2-step-label {
  font-size: 13px;
  color: var(--cv2c-text-muted);
  font-weight: 500;
}
.cv2-step.active .cv2-step-label,
.cv2-step.done .cv2-step-label {
  color: var(--cv2c-text);
  font-weight: 600;
}

/* ============================================================
   3. 送料無料までのゲージ (cart.php の summary 内に挿入する .cv2-shipping-gauge)
   ============================================================ */
.cv2-shipping-gauge {
  background: var(--cv2c-pink-soft);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 10px 0 16px;
  font-size: 12.5px;
  color: var(--cv2c-pink-ink);
}
.cv2-shipping-gauge__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 600;
}
.cv2-shipping-gauge__head strong {
  color: var(--cv2c-pink-ink);
  font-size: 14px;
}
.cv2-shipping-gauge__bar {
  height: 8px;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}
.cv2-shipping-gauge__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cv2c-pink) 0%, var(--cv2c-pink-ink) 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.cv2-shipping-gauge__note {
  font-size: 11px;
  color: var(--cv2c-text-muted);
  text-align: right;
  margin: 0;
}
.cv2-shipping-gauge.is-free {
  background: #eaf5ea;
  color: var(--cv2c-success);
}
.cv2-shipping-gauge.is-free .cv2-shipping-gauge__head strong { color: var(--cv2c-success); }

/* ============================================================
   4. トラストバッジを拡張 (既存 .cv2-trust-badges の強化版)
   ============================================================ */
.cv2-trust-badges--expanded {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--cv2c-border);
  border-radius: 8px;
  margin-top: 16px;
}
.cv2-trust-item--expanded {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 8px;
}
.cv2-trust-item--expanded i {
  font-size: 20px;
  color: var(--cv2c-pink);
  margin-bottom: 2px;
}
.cv2-trust-item--expanded strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--cv2c-text);
}
.cv2-trust-item--expanded small {
  font-size: 10.5px;
  color: var(--cv2c-text-muted);
  line-height: 1.4;
}

/* ============================================================
   5. 送信ボタン (MailFormPro gif → テキストボタン差し替え)
   ============================================================ */
.cv2-submit-text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  min-height: 56px;
  background: linear-gradient(135deg, var(--cv2c-pink) 0%, var(--cv2c-pink-ink) 100%);
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  box-shadow: var(--cv2c-shadow);
}
.cv2-submit-text-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(179, 72, 96, 0.2);
}
.cv2-submit-text-btn i { font-size: 18px; }
.cv2-submit-text-btn small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.9;
  margin-top: 2px;
}
/* MailFormPro の gif ボタンは隠し、テキストボタンを使う場合のクラス */
.cv2-hide-gif-btn #button_mfp_goconfirm { display: none !important; }

/* ============================================================
   6. SP 画面で下部固定 CTA
   ============================================================ */
.cv2-sp-sticky {
  display: none;
}
@media (max-width: 860px) {
  .cv2-sp-sticky {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--cv2c-border);
    padding: 10px 14px;
    gap: 10px;
    z-index: 50;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.08);
    align-items: center;
    justify-content: space-between;
  }
  .cv2-sp-sticky__total {
    font-size: 12px;
    color: var(--cv2c-text-muted);
    line-height: 1.3;
  }
  .cv2-sp-sticky__total strong {
    display: block;
    font-size: 18px;
    color: var(--cv2c-pink-ink);
    font-weight: 700;
  }
  .cv2-sp-sticky__btn {
    flex: 1;
    max-width: 200px;
    padding: 12px 18px;
    background: var(--cv2c-pink);
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
  }
  /* SP で画面下部がボタンで塞がる分の余白を body に */
  body.cv2-page { padding-bottom: 80px; }
}

/* ============================================================
   7. フォームセクション強化 (checkout.php)
   ============================================================ */
.cv2-form-section {
  background: #fff;
  border: 1px solid var(--cv2c-border);
  border-radius: 8px;
  padding: 20px 22px;
  margin-bottom: 18px;
}
.cv2-form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--cv2c-pink-ink);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--cv2c-pink-soft);
}
.cv2-form-section-title i {
  width: 28px;
  height: 28px;
  background: var(--cv2c-pink-soft);
  color: var(--cv2c-pink-ink);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* MailFormPro の th セルを読みやすく */
.cv2-page .mailform th {
  width: 180px !important;
  background: var(--cv2c-surface-soft) !important;
  font-size: 13px;
  font-weight: 600;
  color: var(--cv2c-text);
  padding: 12px 14px;
  vertical-align: top;
}
.cv2-page .mailform td {
  padding: 12px 14px;
}
.cv2-page .mailform th span {
  display: block;
  font-size: 10px;
  color: var(--cv2c-text-muted);
  font-weight: 400;
  margin-top: 2px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}
.cv2-page .mailform input[type="text"],
.cv2-page .mailform input[type="email"],
.cv2-page .mailform textarea,
.cv2-page .mailform select {
  padding: 10px 12px;
  border: 1px solid var(--cv2c-border);
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.2s;
}
.cv2-page .mailform input[type="text"]:focus,
.cv2-page .mailform input[type="email"]:focus,
.cv2-page .mailform textarea:focus,
.cv2-page .mailform select:focus {
  outline: none;
  border-color: var(--cv2c-pink);
  box-shadow: 0 0 0 3px rgba(215, 116, 144, 0.12);
}
@media (max-width: 640px) {
  .cv2-page .mailform th { width: auto !important; display: block; border-bottom: 0; padding-bottom: 4px; }
  .cv2-page .mailform td { display: block; padding-top: 4px; padding-bottom: 14px; }
}

/* 支払い方法カード強化 */
.cv2-payment-option {
  border: 2px solid var(--cv2c-border);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}
.cv2-payment-option:hover {
  border-color: var(--cv2c-pink);
  background: var(--cv2c-pink-soft);
}
.cv2-payment-option.selected {
  border-color: var(--cv2c-pink);
  background: var(--cv2c-pink-soft);
  box-shadow: 0 0 0 3px rgba(215, 116, 144, 0.15);
}
.cv2-payment-option label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}
.cv2-payment-option input[type="radio"] {
  accent-color: var(--cv2c-pink);
  width: 18px;
  height: 18px;
}

/* ============================================================
   8. サマリー sticky 改善 (PC のみ)
   ============================================================ */
@media (min-width: 992px) {
  .cv2-summary {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
  }
}

/* ============================================================
   9. 離脱防止: 残りの手続き時間を示すバッジ (cart.php)
   ============================================================ */
.cv2-time-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--cv2c-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  margin-left: 10px;
}
.cv2-time-hint i { font-size: 10px; }
