/* dfashion カート クロスセル「夏グッズ特別セール中！」モーダル 暫定CSS (CRE_DEV-737) [PC]
   dfashion トンマナのCSSは別途作成予定。暫定は LOCONDO 準拠のレイアウト。 */

/* レジに進む差し込みリンク（モーダル起動ボタン）
   見た目は既存の共有CSS content-cart-koichi.css(@layer assets) が
   「.new_steplink button, .additionalItemlink button」で本体レジボタンと
   まとめて定義済み（var(--color-primary) 等のテーマ変数ベース）。
   .newregistBtn の白背景・黒枠も同様に定義済みのため、ここでは何も上書きしない。
   JSの表示制御に使う display:none のみ指定する。 */
.additionalItemlink { display: none; }

/* remodal 本体（LOCONDO本番 width:560px を踏襲。背景は指定の #fafafa） */
.remodal[data-remodal-id="discoverAdditionalItems_Modal"] {
  width: 560px;
  max-width: 100%;
  padding: 30px 20px 20px;
  text-align: center;
  background: #fafafa;
}

/* 見出し「夏グッズ特別セール中！」（LOCONDO本番踏襲: 13px）
   左右に斜めの短線2本（ハの逆＝八の字）の飾りを付ける。 */
.AdditionalItemsModalLeadTextCare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  color: #333;
  font-weight: bold;
  line-height: 1.5;
  margin: 0 auto 10px;
}
.AdditionalItemsModalLeadTextCare::before,
.AdditionalItemsModalLeadTextCare::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 16px;
  background: #c03;
}
.AdditionalItemsModalLeadTextCare::before { transform: rotate(-25deg); }
.AdditionalItemsModalLeadTextCare::after { transform: rotate(25deg); }

/* ※ 閉じる（×）ボタンは廃止（LOCONDO準拠）。関連CSSも削除済み。
   モーダルはモーダル外エリアのクリックで閉じる（remodal 標準動作）。 */

.addCart_error_message { color: #c03; font-size: 13px; margin: 8px 0; }

/* モーダル内レジボタン。カート本体の .new_step レイアウトCSSの干渉を受けないよう、
   .modal_new_step で明示的にスタイルを上書きする（本体 .new_step 依存を切る）。 */
.remodal[data-remodal-id="discoverAdditionalItems_Modal"] .new_step.modal_new_step {
  position: static;
  width: auto;
  margin: 16px 0 0;
  padding: 0;
  text-align: center;
}
.remodal[data-remodal-id="discoverAdditionalItems_Modal"] .new_step.modal_new_step button {
  /* LOCONDO本番踏襲: width 260px / padding 18px 0。色はdfashion */
  display: block;
  width: 260px;
  max-width: 100%;
  margin: 0 auto;
  padding: 18px 0;
  line-height: 100%;
  font-size: 16px;
  font-weight: normal;
  color: #fff;
  background: #c03;
  border: none;
  border-radius: 2px;
  cursor: pointer;
}
.remodal[data-remodal-id="discoverAdditionalItems_Modal"] .new_step.modal_new_step button:hover { opacity: .85; }

/* 商品グリッド */
/* LOCONDO本番(content-cart.css)のモーダルレイアウトに準拠 */
#AdditionalItemsCare_wrap {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}
#AdditionalItemsCare_wrap li {
  list-style: none;
  position: relative;
  margin-bottom: 15px;
  width: 29%;
  text-align: left;
  /* 既存 smp-content-cart_order-koichi.css の .remodal .discoverAdditionalItems_item{background:#E3B03A}
     （旧キャンペーン用の黄色背景）を打ち消す。夏グッズは白背景。 */
  background-color: #fff;
  padding: 0;
  display: block;
}
#AdditionalItemsCare_wrap li .product-image {
  width: 100%;
}
#AdditionalItemsCare_wrap li .product-image img {
  width: 100%;
  height: auto;
  display: block;
}
/* LOCONDO本番 content-cart.css の数値に踏襲 */
#AdditionalItemsCare_wrap li .product-info { display: block; text-align: left; }
#AdditionalItemsCare_wrap li .product-info .AdditionalItems_detailText {
  font-size: 11px;
  color: #888;
  width: 100%;
  line-height: 1.7;
  margin-top: 5px;
}
/* 価格: サイズはLOCONDO踏襲(14px, margin-top:10px)。色は指定の #c03(赤) */
#AdditionalItemsCare_wrap li .product-info .price { font-size: 14px; margin-top: 10px; color: #c03; }
/* 元値(取り消し線)は非表示。セール価格(赤字)のみ見せる方針（展開モーダル側と同じ扱い） */
#AdditionalItemsCare_wrap li .product-info .price.old_price {
  text-decoration: line-through;
  color: #969696;
  display: none;
  margin-right: 3px;
}
#AdditionalItemsCare_wrap li .product-info .price.sale_price { color: #c03; }

/* カートに入れるボタン（LOCONDO本番 content-cart.css の数値に踏襲） */
#AdditionalItemsCare_wrap li .product-info .btn_cart button {
  cursor: pointer;
  display: block;
  margin-top: 5px;
  margin-bottom: 5px;
  box-sizing: border-box;
  width: 100%;
  height: 28px;
  line-height: 26px;
  text-align: center;
  /* docomoは高齢ユーザーが多いため最低11pxとする方針。
     PCはセル内側146pxあり、最長文言「他のパターンを見る」(11px×9文字=99px)も余裕をもって収まる。 */
  font-size: 11px;
  font-weight: bold;
  color: #c03;
  border: 1px solid #c03;
  background: none;
  border-radius: 2px;
}
#AdditionalItemsCare_wrap li .product-info .btn_cart button:hover { opacity: 0.7; }

/* 他の（サイズ/パターン/カラー）を見る（LOCONDO本番踏襲） */
#AdditionalItemsCare_wrap li .product-info .btn_color_variants {
  cursor: pointer;
  display: block;
  margin-top: 5px;
  margin-bottom: 5px;
  box-sizing: border-box;
  width: 100%;
  height: 28px;
  line-height: 26px;
  text-align: center;
  /* .btn_cart button と同値（11pxの根拠はそちらのコメント参照）。 */
  font-size: 11px;
  font-weight: bold;
  color: #777;
  border: 1px solid #777;
  background: none;
  border-radius: 2px;
}
#AdditionalItemsCare_wrap li .product-info .btn_color_variants:hover { opacity: 0.7; }

/* 展開（サイズ/パターン/カラー）オーバーレイ
   寸法・レイアウトは LOCONDO本番(content-cart.css) を踏襲、色は dfashion トンマナ(#c03)。 */
#colorVariants_overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.5);
  z-index: 10000;
}
#colorVariants_dialog {
  width: 500px;
  max-width: 100%;
  height: 700px;
  position: absolute;
  top: calc(50% - 5px);
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fafafa;
}
.colorVariants_dialog_inner {
  height: 700px;
  padding: 15px 25px 50px 25px;
  overflow-y: auto;
  box-sizing: border-box;
}
#colorVariants_close {
  width: auto;
  margin: 0 auto 10px 0;
  padding-left: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #666;
  position: relative;
  border: none;
  background: none;
  cursor: pointer;
}
#colorVariants_close:before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-left: 1px solid #c03;
  border-top: 1px solid #c03;
  transform: rotate(-45deg);
  position: absolute;
  left: 0;
  top: 5px;
}
.colorVariants_title {
  position: relative;
  text-align: center;
  margin-bottom: 20px;
}
.colorVariants_title span {
  font-size: 13px;
  font-weight: bold;
  line-height: 1.5;
  display: inline-block;
  position: relative;
  z-index: 1;
  padding: 0 10px;
  background: #fafafa;
}
.colorVariants_title:after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: #e5e5e5;
  position: absolute;
  top: 50%;
  left: 0;
}
.colorVariants_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6.5%;
  padding: 0;
  margin: 0;
  list-style: none;
}
.colorVariants_item { width: 29%; margin-bottom: 30px; list-style: none; text-align: left; }
.colorVariants_image {
  width: 100%;
  padding-top: 100%;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.colorVariants_image.outofstock:after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.3);
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.colorVariants_image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  position: absolute;
  top: 0;
  left: 0;
}
.colorVariants_colorName { font-size: 11px; color: #888; width: 100%; line-height: 1.7; margin-top: 5px; }
.colorVariants_price .price { font-size: 14px; margin-top: 10px; color: #c03; }
.colorVariants_price .sale_price { color: #c03; }
.colorVariants_price .old_price { text-decoration: line-through; color: #969696; display: none; }
.colorVariants_cartBtn {
  cursor: pointer;
  display: block;
  margin-top: 5px;
  margin-bottom: 5px;
  box-sizing: border-box;
  width: 100%;
  height: 28px;
  line-height: 26px;
  text-align: center;
  /* .btn_cart button と同値（11pxの根拠はそちらのコメント参照）。 */
  font-size: 11px;
  font-weight: bold;
  color: #c03;
  border: 1px solid #c03;
  background: transparent;
  border-radius: 2px;
}
.colorVariants_cartBtn:disabled { cursor: default; color: #999; border-color: #999; }
.colorVariants_cartBtn:not(:disabled):hover { opacity: 0.7; }

/* カート追加リクエスト送信中（多重クリック防止）。JSが -sending クラスを付与する。
   .btn_cart は他画面(マイページお気に入り等)でも使われる汎用名のため、モーダル配下にスコープする。
   .colorVariants_cartBtn も本PR専用クラスだが、他セレクタと方針を揃えて
   展開オーバーレイ(#colorVariants_dialog)配下にスコープする。 */
#AdditionalItemsCare_wrap li .product-info .btn_cart button.-sending,
#colorVariants_dialog .colorVariants_cartBtn.-sending {
  opacity: .5;
  pointer-events: none;
}

/* スピナー */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #ddd;
  border-top-color: #c03;
  border-radius: 50%;
  animation: df-spin .8s linear infinite;
  margin: 20px auto;
}
@keyframes df-spin { to { transform: rotate(360deg); } }
