/**
 * BLACK FRIDAY 2026（inc/black-friday.php）。新色 PEN のプレゼントの枠・「あと◯箱」・ポップアップ、決済の枠、商品ページの帯。
 * KNUCKLE CASE のプレゼント（mymoods-kc-present.css）と同じ見た目。色は黒と白だけ。動きは付けない。
 */

/* --- 文節のかたまり（mymoods_kc_present_phrases()）。かたまりの間でだけ折り返し、言葉の途中で行を変えない。
       幅が1かたまりより狭いときだけ、かたまりの中でも折り返す（はみ出さない）。2026-11-14 石川さん「改行して」 --- */
.mm-bfg-phrase {
  display: inline-block;
}

/* --- カート・決済の「カートに追加する」の枠 --- */
.mm-bfg {
  margin: 0 0 28px;
  font-family: var(--font-body-family);
  text-align: left;
}

.mm-bfg.is-offer {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid #111;
  border-radius: 10px;
}

.mm-bfg__media {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: #eef1f3;
}

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

.mm-bfg__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mm-bfg__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
}

.mm-bfg__text {
  font-size: 12px;
  line-height: 1.6;
  color: #555;
}

.mm-bfg__error,
.mm-bfg-modal__error {
  font-size: 12px;
  line-height: 1.6;
  color: #c0392b;
}

.mm-bfg__add {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  height: 40px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.mm-bfg__add:disabled,
.mm-bfg-modal__add:disabled {
  opacity: 0.5;
  cursor: wait;
}

@media (max-width: 749px) {
  .mm-bfg.is-offer {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .mm-bfg__media {
    width: 56px;
    height: 56px;
  }

  .mm-bfg__add {
    grid-column: 1 / -1;
    width: 100%;
    height: 44px;
  }
}

/* 決済の右の列は狭いので、ボタンを下に回す。 */
.mm-bfg-checkout.is-offer {
  margin: 16px 0;
  grid-template-columns: 56px minmax(0, 1fr);
}

.mm-bfg-checkout .mm-bfg__media {
  width: 56px;
  height: 56px;
}

.mm-bfg-checkout .mm-bfg__add {
  grid-column: 1 / -1;
  width: 100%;
  height: 44px;
}

/* --- カート・決済のプレゼントの行の「プレゼント: 商品代金 ¥15,000 以上のご注文の特典」
       1つの文として続けて並べる（ブラウザの既定の dd の字下げ・WooCommerce の dt の float を外す。
       WooCommerce の .woocommerce td.product-name dl.variation dt より強くするため tr・td を付ける）。
       「プレゼント:」と文の間の空きは、テンプレートの dt と dd の間の改行（1文字分の空き）。 --- */
.woocommerce tr.mm-bfg-item td dl.variation {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.woocommerce tr.mm-bfg-item td dl.variation dt,
.woocommerce tr.mm-bfg-item td dl.variation dd,
.woocommerce tr.mm-bfg-item td dl.variation dd p {
  display: inline;
  float: none;
  margin: 0;
  padding: 0;
}

/* --- 「あと ¥◯◯ で KNUCKLE CASE が無料でついてくる！」の POP（カート・期間中だけ） --- */
.mm-bfg.is-progress {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: #fff;
  border: 2px solid #111;
  border-radius: 12px;
}

.mm-bfg.is-progress .mm-bfg__media {
  width: 72px;
  height: 72px;
}

.mm-bfg__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: #111;
}

.mm-bfg__lead {
  margin: 2px 0 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  color: #111;
}

/* 金額は黄色のマーカー（サイトの「最大◯%OFF」の札と同じ黄色） */
.mm-bfg__gap {
  padding: 0 4px;
  background: linear-gradient(transparent 52%, #f2e94e 52%);
  font-size: 1.2em;
  font-weight: 900;
}

.mm-bfg__bar {
  display: block;
  height: 8px;
  margin-top: 10px;
  background: #ecebe7;
  border-radius: 999px;
  overflow: hidden;
}

.mm-bfg__bar i {
  display: block;
  height: 100%;
  background: #111;
  border-radius: 999px;
}

.mm-bfg__note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #555;
}

@media (max-width: 749px) {
  .mm-bfg.is-progress {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
  }

  .mm-bfg.is-progress .mm-bfg__media {
    width: 56px;
    height: 56px;
  }

  .mm-bfg__lead {
    font-size: 15px;
  }
}

/* --- ニコチン店: 1箱ずつの POD が5箱以上のときの「6点・8点セット」の案内（カート・期間中だけ。inc/black-friday.php の mymoods_bf_set_hint） --- */
.mm-bfg.is-sethint {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid #111;
  border-radius: 10px;
}

.mm-bfg.is-sethint .mm-bfg__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* テーマの `.mmv2 a`・`.rte a` の方が強く、「セットを見る」の字が地と同じ黒になっていた（2026-11-19 の確かめ）。 */
.mm-bfg.is-sethint a.mm-bfg__add,
.mm-bfg.is-sethint a.mm-bfg__add:visited,
.mm-bfg.is-sethint a.mm-bfg__add:hover,
.mm-bfg.is-sethint a.mm-bfg__add:focus-visible {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 749px) {
  .mm-bfg.is-sethint {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- POD まとめセットの箱数のボタン（inc/bf-matome-set.php・assets/mymoods-bf-matome.js） --- */
.mm-bfm {
  margin: 0 0 20px;
  font-family: var(--font-body-family);
}

.mm-bfm__label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

.mm-bfm__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mm-bfm__chip {
  appearance: none;
  min-width: 64px;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid #111;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.mm-bfm__chip.is-on {
  background: #111;
  color: #fff;
}

.mm-bfm__chip:focus-visible {
  outline: 2px solid #1b2bd6;
  outline-offset: 2px;
}

.mm-bfm__note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #555;
}

/* JS が動かないときは、ボタンを出さずに欄を全部見せる（任意の欄は「追加しない」を選べるので、そのまま買える）。 */
.mm-bfm:not(.is-ready) .mm-bfm__chips {
  display: none;
}

.mm-bfm-ready .component.mm-bfm-off {
  display: none !important;
}

/* --- ポップアップ（カート） --- */
html.mm-bfg-modal-open {
  overflow: hidden;
}

.mm-bfg-modal[hidden] {
  display: none;
}

.mm-bfg-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* 中身の無い div なので、base.css の div:empty { display: none } に消される。詳細度を上げて出す。 */
.mm-bfg-modal > .mm-bfg-modal__overlay {
  display: block;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.mm-bfg-modal__panel {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 100%;
  overflow: auto;
  padding: 28px 24px 18px;
  background: #fff;
  border-radius: 16px;
  text-align: center;
  font-family: var(--font-body-family);
}

.mm-bfg-modal__x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #333;
  cursor: pointer;
}

.mm-bfg-modal__eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #888;
}

.mm-bfg-modal__image {
  display: block;
  width: 168px;
  height: 168px;
  margin: 0 auto 14px;
  border-radius: 12px;
  object-fit: cover;
}

.mm-bfg-modal__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
}

.mm-bfg-modal__text {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.7;
  color: #222;
}

.mm-bfg-modal__note {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.6;
  color: #666;
}

.mm-bfg-modal__error {
  margin: 0 0 10px;
}

.mm-bfg-modal__add {
  appearance: none;
  display: block;
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.mm-bfg-modal__later {
  appearance: none;
  margin-top: 8px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: #555;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

/* --- 商品ページの案内（ケース・セット） --- */


/* --- 色のボタン（シルバー・ホワイト。在庫のある色だけ並ぶ） --- */
.mm-bfg__colors {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mm-bfg__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #111;
}

@media (max-width: 749px) {
  .mm-bfg__colors {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .mm-bfg__colors .mm-bfg__add {
    flex: 1 1 0;
    width: auto;
  }
}

.mm-bfg-checkout .mm-bfg__colors {
  grid-column: 1 / -1;
  flex-direction: row;
}

.mm-bfg-checkout .mm-bfg__colors .mm-bfg__add {
  flex: 1 1 0;
  width: auto;
}

.mm-bfg-modal__colors {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.mm-bfg-modal__colors .mm-bfg-modal__add {
  flex: 1 1 0;
  width: auto;
  margin: 0;
}

/*
 * --- 商品ページの帯（カートボタンの上・統合した POD のページは購入バーの上） ---
 * KV・LP と同じ見た目（2026-11-22 石川さん「もっと目立たせてほしい」「LPやKVとトンマナを合わせてほしい」）：
 * 黒地の右上に赤い光（LP の帯の絵と同じ向き）、白い「BLACK FRIDAY」、白い線の丸い枠に期間、赤い大きな「40%」（KV の赤 #fc0000）、
 * 黄色の NEW（KV の #e8f800）、白い丸いボタン（KV の SHOP NOW と同じ）。字は Gen Interface JP（英字は Display）。
 */
.mm-bfg-band {
  --mm-bfg-red: #fc0000;
  --mm-bfg-en: "Gen Interface JP Display", "Gen Interface JP", "Helvetica Neue", Arial, sans-serif;
  position: relative;
  display: block;
  margin: 0 0 16px;
  padding: 16px 18px 16px;
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(85% 130% at 100% 0%, rgba(214, 0, 0, 0.7) 0%, rgba(140, 0, 8, 0.38) 40%, rgba(2, 2, 2, 0) 72%),
    linear-gradient(115deg, #020202 0%, #0a0507 58%, #2a0204 100%);
  box-shadow: 0 8px 24px rgba(252, 0, 0, 0.18);
  color: #fff;
  font-family: "Gen Interface JP", var(--font-body-family), sans-serif;
  text-decoration: none;
  -webkit-font-smoothing: antialiased;
}

/* 商品ページのリンクの色（テーマの a の指定）に負けないよう、帯の中の字の色はひとつずつ決める */
a.mm-bfg-band,
a.mm-bfg-band:visited,
a.mm-bfg-band:hover,
a.mm-bfg-band:focus-visible,
.mm-bfg-band .mm-bfg-band__title,
.mm-bfg-band .mm-bfg-band__period,
.mm-bfg-band .mm-bfg-band__pre,
.mm-bfg-band .mm-bfg-band__off,
.mm-bfg-band .mm-bfg-band__perks,
.mm-bfg-band .mm-bfg-band__perk,
.mm-bfg-band .mm-bfg-band__perk .mm-bfg-phrase {
  color: #fff;
  text-decoration: none;
}

.mm-bfg-band:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.mm-bfg-band__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.mm-bfg-band__title {
  font-family: var(--mm-bfg-en);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.mm-bfg-band__period {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.mm-bfg-band__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 12px;
}

.mm-bfg-band__offer {
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
  line-height: 1;
}

.mm-bfg-band__pre {
  display: inline-flex;
  flex-direction: column;
  align-self: center;
  font-family: var(--mm-bfg-en);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
}

.mm-bfg-band__pre small {
  margin-bottom: 3px;
  font-family: "Gen Interface JP", var(--font-body-family), sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.mm-bfg-band .mm-bfg-band__num {
  font-family: var(--mm-bfg-en);
  font-size: 56px;
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.03em;
  color: var(--mm-bfg-red);
}

.mm-bfg-band__off {
  margin-bottom: 1px;
  font-family: var(--mm-bfg-en);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.mm-bfg-band__perks {
  display: flex;
  flex: 1 1 180px;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.mm-bfg-band__perk {
  display: block;
}

.mm-bfg-band .mm-bfg-band__new {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e8f800;
  color: #000;
  font-family: var(--mm-bfg-en);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.04em;
  vertical-align: 1px;
}

.mm-bfg-band .mm-bfg-band__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 16px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.mm-bfg-band__arw {
  font-family: var(--mm-bfg-en);
  font-weight: 700;
}

.mm-bfg-band:hover .mm-bfg-band__btn {
  background: #f1f1f1;
}

@media (max-width: 380px) {
  .mm-bfg-band {
    padding: 14px 14px;
  }

  .mm-bfg-band__title {
    font-size: 21px;
  }

  .mm-bfg-band .mm-bfg-band__num {
    font-size: 48px;
  }
}
